/* ── PAYHIP ISOLATION RESET ── */
#viksya-calc {
  all: initial;
  display: block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #16241D;
  background: #FAF9F5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
#viksya-calc *, #viksya-calc *::before, #viksya-calc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#viksya-calc a { color: inherit; }
#viksya-calc button { font-family: inherit; cursor: pointer; }
#viksya-calc input, #viksya-calc select, #viksya-calc textarea {
  font-family: inherit;
  font-size: inherit;
}


:root {
  --paper:       #FAF9F5;
  --paper-line:  #DEDACE;
  --white:       #FFFFFF;
  --ink:         #16241D;
  --ink-soft:    #4B5B52;
  --ink-faint:   #8A9690;
  --forest:      #1B6E52;
  --forest-deep: #123F2E;
  --forest-tint: #E7F1EB;
  --gap-red:     #C1432B;
  --gap-red-tint:#FBEAE5;
  --gold:        #A9802F;
  --gold-tint:   #F6EEDC;
  --font-display:'Fraunces', serif;
  --font-body:   'Inter', -apple-system, sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
#viksya-calc html { scroll-behavior: smooth; }
#viksya-calc body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#viksya-calc a { color: inherit; }
#viksya-calc :focus-visible { outline: 2px solid var(--forest-deep); outline-offset: 3px; }
#viksya-calc .wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
#viksya-calc .nav { border-bottom: 1px solid var(--paper-line); padding: 18px 0; }
#viksya-calc .nav .wrap { display: flex; align-items: center; justify-content: space-between; }
#viksya-calc .nav-mark {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
#viksya-calc .nav-mark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); display: inline-block; }
#viksya-calc .nav-cta {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.03em; color: var(--forest-deep); text-decoration: none;
  border-bottom: 1px solid var(--forest-deep); padding-bottom: 2px; white-space: nowrap;
}

/* ── HERO ── */
#viksya-calc .hero { padding: 56px 0 8px; }
#viksya-calc .eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
#viksya-calc .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--forest); display: inline-block; }
#viksya-calc h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.5vw, 50px);
  line-height: 1.06; letter-spacing: -0.01em; color: var(--ink);
  max-width: 14ch; margin-bottom: 18px;
}
#viksya-calc .hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 48ch; margin-bottom: 40px; }

/* ── PROGRESS ── */
#viksya-calc .progress-bar {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--font-mono);
}
#viksya-calc .prog-step {
  flex: 1; padding: 10px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-faint);
  background: var(--white); border-right: 1px solid var(--paper-line);
  display: flex; align-items: center; gap: 7px; transition: all 0.2s;
}
#viksya-calc .prog-step:last-child { border-right: none; }
#viksya-calc .prog-step.active { background: var(--forest-tint); color: var(--forest-deep); }
#viksya-calc .prog-step.done { background: var(--forest-deep); color: rgba(255,255,255,0.85); }
#viksya-calc .prog-num {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0;
}
#viksya-calc .prog-step.done .prog-num { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }

/* ── STATEMENT CARD ── */
#viksya-calc .statement {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20,30,25,0.04), 0 12px 32px rgba(20,30,25,0.06);
  margin-bottom: 40px;
  overflow: hidden;
}
#viksya-calc .statement-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--paper-line);
  background: var(--forest-tint);
}
#viksya-calc .statement-head-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--forest-deep); text-transform: uppercase;
}
#viksya-calc .statement-head-no { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
#viksya-calc .statement-body { padding: 28px; }

/* ── PLATFORM GRID ── */
#viksya-calc .platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
@#viksya-calc media (max-width: 480px) {#viksya-calc .platform-grid {#viksya-calc grid-template-columns: repeat(2, #viksya-calc 1fr); } }
.plat-btn {
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  background: var(--paper);
  padding: 12px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint);
  transition: all 0.15s; outline: none;
}
/* --- Added By HV ---*/
#progressBar {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center; /* Keeps items centered vertically */
}
#viksya-calc .plat-btn:hover { border-color: var(--forest); color: var(--forest-deep); }
#viksya-calc .plat-btn.selected {
  border-color: var(--forest-deep); background: var(--forest-tint);
  color: var(--forest-deep);
}
#viksya-calc .plat-btn .ico { font-size: 20px; line-height: 1; }

/* ── FORM FIELDS ── */
#viksya-calc .field-section { margin-top: 24px; display: none; }
#viksya-calc .field-section.visible { display: block; }
#viksya-calc .section-divider {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest);
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px;
}
#viksya-calc .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--forest-tint); }

#viksya-calc .field-row {
  display: grid; grid-template-columns: 1fr 168px;
  align-items: center; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--paper-line);
}
#viksya-calc .field-row:last-of-type { border-bottom: none; }
#viksya-calc .field-row.two-col { grid-template-columns: 1fr 1fr; }
#viksya-calc .field-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
#viksya-calc .field-label .hint { display: block; font-size: 10px; color: var(--ink-faint); letter-spacing: 0.02em; text-transform: none; margin-top: 2px; font-weight: 400; }
#viksya-calc .field-input, #viksya-calc .field-select {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--ink); text-align: right;
  background: transparent; border: none;
  border-bottom: 1px solid var(--paper-line);
  padding: 6px 2px; width: 100%;
  transition: border-color 0.15s;
}
#viksya-calc .field-input:focus, #viksya-calc .field-select:focus { border-bottom-color: var(--forest); outline: none; }
#viksya-calc .field-select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234B5B52' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 2px center;
  padding-left: 16px; cursor: pointer;
}

/* ── BUTTONS ── */
#viksya-calc .calc-btn {
  width: 100%; margin-top: 22px; padding: 14px;
  background: var(--forest-deep); color: var(--white); border: none; border-radius: 3px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
#viksya-calc .calc-btn:hover { background: var(--forest); }
#viksya-calc .calc-btn:active { transform: scale(0.99); }
#viksya-calc .calc-btn:disabled { opacity: 0.35; cursor: not-allowed; }
#viksya-calc .back-link {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  text-decoration: none; letter-spacing: 0.05em; display: inline-block;
  margin-top: 12px; cursor: pointer; background: none; border: none;
}
#viksya-calc .back-link:hover { color: var(--forest-deep); }

/* ── PERFORATION ── */
#viksya-calc .perforation {
  position: relative; height: 1px; margin: 28px -28px 24px;
  border-top: 2px dashed var(--paper-line);
}
#viksya-calc .perforation::before, #viksya-calc .perforation::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--paper-line);
}
#viksya-calc .perforation::before { left: -11px; }
#viksya-calc .perforation::after { right: -11px; }

/* ── RESULTS ── */
#viksya-calc .results-section { display: none; }
#viksya-calc .results-section.visible { display: block; }

#viksya-calc .result-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0;
}
#viksya-calc .result-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
#viksya-calc .result-value {
  font-family: var(--font-mono); font-weight: 600; font-size: 22px;
  color: var(--forest-deep);
}

#viksya-calc .breakdown-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--paper-line);
  border: 1px solid var(--paper-line); border-radius: 3px;
  overflow: hidden; margin: 16px 0;
}
#viksya-calc .breakdown-cell {
  background: var(--paper); padding: 14px 16px;
}
#viksya-calc .breakdown-cell .bc-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 5px;
}
#viksya-calc .breakdown-cell .bc-val {
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  color: var(--forest-deep);
}

#viksya-calc .stamp {
  position: absolute; top: 10px; right: 28px;
  border: 1.5px solid var(--forest-deep); color: var(--forest-deep);
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  transform: rotate(-4deg); opacity: 0.6;
}

#viksya-calc .result-range-row {
  background: var(--forest-tint);
  margin: 6px -28px 0; padding: 16px 28px;
  position: relative;
}
#viksya-calc .result-range-row .result-label { color: var(--forest-deep); }
#viksya-calc .result-range-row .result-value { color: var(--forest-deep); font-size: 28px; }

/* ── PER-PLATFORM LEDGER ── */
#viksya-calc .platform-ledger { margin: 24px 0; }
#viksya-calc .ledger-head {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  display: grid; grid-template-columns: 1fr repeat(3, 80px);
  gap: 8px; padding: 0 0 8px;
  border-bottom: 1px solid var(--paper-line);
}
#viksya-calc .ledger-head span { text-align: right; }
#viksya-calc .ledger-head span:first-child { text-align: left; }
#viksya-calc .ledger-row {
  display: grid; grid-template-columns: 1fr repeat(3, 80px);
  gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
#viksya-calc .ledger-row:last-child { border-bottom: none; }
#viksya-calc .ledger-plat {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.03em;
}
#viksya-calc .ledger-type {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint); margin-top: 1px;
}
#viksya-calc .ledger-val {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-align: right;
}
#viksya-calc .ledger-val.floor { color: var(--ink-faint); }
#viksya-calc .ledger-val.market { color: var(--forest-deep); }
#viksya-calc .ledger-val.premium { color: var(--gold); }

/* ── INSIGHT ── */
#viksya-calc .insight-box {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--forest);
  border-radius: 2px;
  padding: 18px 22px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.65;
  margin: 20px 0;
}
#viksya-calc .insight-box strong { color: var(--ink); font-weight: 600; }

/* ── ACTION ROW ── */
#viksya-calc .action-row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
#viksya-calc .action-btn {
  flex: 1; min-width: 120px; padding: 11px 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--paper-line); border-radius: 3px;
  background: var(--white); color: var(--ink-soft);
  cursor: pointer; transition: all 0.15s; text-align: center;
  text-decoration: none; display: inline-block;
}
#viksya-calc .action-btn:hover { border-color: var(--forest); color: var(--forest-deep); }
#viksya-calc .action-btn.primary {
  background: var(--forest-deep); color: var(--white); border-color: var(--forest-deep);
}
#viksya-calc .action-btn.primary:hover { background: var(--forest); border-color: var(--forest); }

/* ── CROSS-LINK ── */
#viksya-calc .cross-link-box {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 18px 22px;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
#viksya-calc .cross-link-box .cl-text {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5; flex: 1; min-width: 200px;
}
#viksya-calc .cross-link-box .cl-text strong { color: var(--ink); }
#viksya-calc .cross-link-box a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--forest-deep); text-decoration: none;
  border-bottom: 1px solid var(--forest-deep); white-space: nowrap;
}
#viksya-calc .cross-link-box a:hover { color: var(--forest); border-color: var(--forest); }

/* ── SECTIONS ── */
#viksya-calc .section { padding: 8px 0 48px; }
#viksya-calc .section-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 10px;
}
#viksya-calc h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--ink); max-width: 20ch; margin-bottom: 28px; line-height: 1.18;
}

#viksya-calc .ledger-list { border-top: 1px solid var(--paper-line); }
#viksya-calc .ledger-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
#viksya-calc .ledger-mark { flex-shrink: 0; width: 18px; padding-top: 5px; }
#viksya-calc .ledger-mark svg { display: block; }
#viksya-calc .ledger-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
#viksya-calc .ledger-text { font-size: 14px; color: var(--ink-soft); max-width: 54ch; }

/* ── FOOTER ── */
#viksya-calc footer { border-top: 1px solid var(--paper-line); padding: 28px 0 40px; }
#viksya-calc .footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
#viksya-calc .footer-mark { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
#viksya-calc .footer-links { display: flex; gap: 18px; font-size: 12px; }
#viksya-calc .footer-links a { text-decoration: none; color: var(--ink-soft); }
#viksya-calc .footer-links a:hover { color: var(--forest-deep); }

/* ── RESPONSIVE ── */
@#viksya-calc media (max-width: 560px) {#viksya-calc .statement-body { padding: 20px; }
#viksya-calc .perforation { margin: 24px -20px 20px; }
#viksya-calc .result-range-row { margin: 6px -20px 0; padding: 14px 20px; }
#viksya-calc .stamp { right: 20px; }
#viksya-calc .breakdown-grid { grid-template-columns: 1fr; }
#viksya-calc .ledger-head, #viksya-calc .ledger-row { grid-template-columns: 1fr repeat(3, 60px); font-size: 10px; }
#viksya-calc .platform-grid { grid-template-columns: repeat(2, 1fr); }
#viksya-calc .field-row { grid-template-columns: 1fr; gap: 4px; }
#viksya-calc .field-input, #viksya-calc .field-select { text-align: left; }
}
@#viksya-calc media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── PRINT ── */
@#viksya-calc media print {#viksya-calc .nav, #viksya-calc .hero, #viksya-calc .progress-bar, #viksya-calc #step-platforms, #viksya-calc #step-inputs, #viksya-calc .action-row, #viksya-calc .cross-link-box, #viksya-calc footer, #viksya-calc .back-link { display: none !important; }
#viksya-calc .results-section.visible { display: block !important; }
#viksya-calc body { background: #fff; }
#viksya-calc .statement { box-shadow: none; border: 1px solid #ccc; }
}
