/* =========================================================
   Mavensum — Salary & Take-Home Pay Calculator
   Relies on /assets/css/base.css for tokens, nav and footer.
   ========================================================= */

body[data-page="salary-calculator"] { background: var(--slate-50); }

/* ---------- HERO (same pattern as other tool pages) ---------- */
.tool-hero { background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 55%, var(--brand-mid) 100%); padding: 52px 2rem 48px; text-align: center; position: relative; overflow: hidden; }
.tool-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.tool-hero-inner { position: relative; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { font-size: .75rem; color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { font-size: .75rem; color: rgba(255,255,255,.4); }
.tool-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 12px; }
.tool-hero h1 em { font-style: normal; color: #a5b4fc; }
.tool-hero p { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 600px; margin: 0 auto 24px; line-height: 1.7; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 500; padding: 5px 12px; border-radius: 100px; }
.hero-badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- LAYOUT ---------- */
.tool-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 2rem 24px; }
.calc-layout { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-layout > * { min-width: 0; }

/* ---------- FORM CARD ---------- */
.calc-card { background: var(--white); border: 2px solid var(--slate-200); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 84px; }
.calc-card-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--slate-100); }
.calc-card-head h2 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); letter-spacing: -.015em; }
.calc-card-head p { font-size: .76rem; color: var(--slate-500); margin-top: 2px; }
.calc-body { padding: 18px 22px 22px; }

.input-section { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px dashed var(--slate-200); }
.input-section:last-of-type { border-bottom: none; margin-bottom: 14px; padding-bottom: 0; }
.input-section-title { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

/* country picker */
.country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.country-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 9px; background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: var(--radius-md); cursor: pointer; transition: all .18s; font-family: 'Space Grotesk', sans-serif; }
.country-btn:hover { border-color: var(--brand-200); background: var(--white); transform: translateY(-1px); }
.country-btn.active { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(60,63,222,.08); }
.cb-code { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.cb-pk { background: #16a34a; } .cb-us { background: #3C3FDE; } .cb-uk { background: #e11d48; } .cb-in { background: #ea580c; } .cb-ae { background: #0d9488; } .cb-sa { background: #0f766e; }
.cb-name { font-size: .68rem; font-weight: 600; color: var(--slate-700); line-height: 1.15; text-align: center; }
.cb-cur { font-size: .6rem; color: var(--slate-400); font-weight: 500; }
.country-btn.active .cb-name { color: var(--brand); }

/* mode toggle */
.mode-toggle { display: flex; background: var(--slate-100); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.mode-btn { flex: 1; font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 600; padding: 8px 10px; border-radius: 6px; border: none; background: transparent; color: var(--slate-500); cursor: pointer; transition: all .2s; }
.mode-btn.active { background: var(--white); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* fields */
.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: .75rem; font-weight: 600; color: var(--slate-600); margin-bottom: 4px; display: block; }
.field input[type=number], .field input[type=text], .field select { width: 100%; font-family: 'Poppins', sans-serif; font-size: .85rem; padding: 10px 12px; background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); color: var(--slate-800); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(60,63,222,.08); background: var(--white); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.field-row .field { margin-bottom: 0; }
.field .hint { font-size: .68rem; color: var(--slate-400); margin-top: 4px; line-height: 1.45; display: block; }
/* Use a separate currency prefix cell: symbols never overlap typed numbers. */
.prefix-wrap { display: flex; align-items: stretch; min-width: 0; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--slate-50); transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.prefix-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(60,63,222,.08); background: var(--white); }
.prefix-wrap .prefix { position: static; transform: none; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 11px; border-right: 1px solid var(--slate-200); background: var(--slate-100); font-size: .8rem; color: var(--slate-500); font-weight: 600; white-space: nowrap; pointer-events: none; }
.field .prefix-wrap input[type=number] { width: 100%; min-width: 0; flex: 1 1 auto; padding: 10px 12px !important; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.field .prefix-wrap input[type=number]:focus { border: 0; box-shadow: none; background: transparent; }
.suffix-wrap { position: relative; }
.suffix-wrap .suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--slate-400); font-weight: 600; pointer-events: none; }
.field .suffix-wrap input[type=number] { padding-right: 34px; }
.amount-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; }
.amount-row .prefix-wrap input { font-size: 1rem; font-weight: 600; }
.amount-row .prefix-wrap .prefix { font-size: .85rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.chips-lbl { font-size: .68rem; color: var(--slate-400); font-weight: 500; margin-right: 2px; }
.chip { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); cursor: pointer; transition: all .15s; }
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.check-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check-row span { font-size: .78rem; color: var(--slate-600); line-height: 1.45; }
.check-row small { display: block; font-size: .68rem; color: var(--slate-400); }

details.adv { border: 1.5px solid var(--slate-200); border-radius: var(--radius-md); background: var(--slate-50); margin-bottom: 12px; }
details.adv summary { cursor: pointer; list-style: none; padding: 10px 14px; font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 600; color: var(--slate-700); display: flex; align-items: center; justify-content: space-between; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: '+'; font-size: 1.1rem; color: var(--slate-400); font-weight: 500; }
details.adv[open] summary::after { content: '–'; }
details.adv .adv-body { padding: 4px 14px 14px; }

.calc-btn { width: 100%; padding: 15px; background: var(--brand); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: -.01em; }
.calc-btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(60,63,222,.3); }
.calc-btn:disabled { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.calc-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-status { margin: 0 0 12px; }

/* ---------- RESULTS ---------- */
#results { display: none; }
#results.show { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#resultsPanel.loading #results { opacity: .55; pointer-events: none; transition: opacity .2s; }

.results-empty { background: var(--white); border: 2px dashed var(--slate-200); border-radius: var(--radius-xl); padding: 56px 32px; text-align: center; }
.results-empty .re-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.results-empty .re-icon svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.results-empty h3 { font-size: 1.2rem; font-weight: 700; color: var(--slate-900); letter-spacing: -.02em; margin-bottom: 8px; }
.results-empty p { font-size: .86rem; color: var(--slate-500); max-width: 420px; margin: 0 auto 18px; line-height: 1.7; }
.re-points { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.re-points span { font-size: .72rem; font-weight: 500; color: var(--slate-600); background: var(--slate-100); padding: 5px 12px; border-radius: 100px; }

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.action-btn { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 7px; border: none; }
.action-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-primary { background: var(--brand); color: #fff; }
.action-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.action-ghost { background: var(--white); color: var(--slate-700); border: 1.5px solid var(--slate-200) !important; }
.action-ghost:hover { border-color: var(--slate-300) !important; transform: translateY(-1px); }
.result-actions .spacer { flex: 1; }

/* hero result */
.result-hero { border-radius: var(--radius-xl); padding: 30px 28px 26px; margin-bottom: 20px; position: relative; overflow: hidden; text-align: center; background: linear-gradient(135deg, var(--brand-darker), var(--brand)); color: #fff; }
.result-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.result-hero > * { position: relative; }
.rh-label { font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.period-tabs { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 100px; padding: 3px; gap: 2px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.ptab { font-family: 'Space Grotesk', sans-serif; font-size: .74rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; border: none; background: transparent; color: rgba(255,255,255,.75); cursor: pointer; transition: all .18s; }
.ptab:hover { color: #fff; }
.ptab.active { background: #fff; color: var(--brand); }
.rh-main { line-height: 1.05; margin-bottom: 10px; }
.rh-amount { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; color: #fff; word-break: break-word; }
.rh-sub { font-size: .84rem; color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 22px; line-height: 1.65; }
.rh-sub strong { color: #fff; }
.rh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rh-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); padding: 12px 8px; }
.rh-stat-val { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.rh-stat-lbl { display: block; font-size: .66rem; color: rgba(255,255,255,.65); margin-top: 2px; font-weight: 500; }

/* generic result card */
.r-card { background: var(--white); border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg); padding: 22px 22px 20px; margin-bottom: 20px; }
.r-card-title { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 700; color: var(--slate-900); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; letter-spacing: -.01em; }
.r-card-title svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.r-sub { font-size: .78rem; color: var(--slate-500); margin: -6px 0 14px; line-height: 1.6; }
.r-foot { font-size: .72rem; color: var(--slate-400); margin-top: 12px; line-height: 1.6; }
.r-foot strong { color: var(--slate-600); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(0deg); }
.donut-seg { transition: stroke-dasharray .6s ease; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dc-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--slate-900); letter-spacing: -.03em; line-height: 1; }
.dc-lbl { font-size: .68rem; color: var(--slate-400); font-weight: 500; margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }
.legend { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 10px; align-items: center; font-size: .8rem; padding: 8px 10px; background: var(--slate-50); border-radius: var(--radius-sm); }
.lg-dot { width: 12px; height: 12px; border-radius: 4px; }
.lg-name { color: var(--slate-700); font-weight: 500; }
.lg-val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--slate-900); text-align: right; }
.lg-val em { font-style: normal; font-weight: 500; font-size: .66rem; color: var(--slate-400); margin-left: 2px; }
.lg-pct { text-align: right; color: var(--slate-500); font-size: .74rem; font-weight: 600; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.r-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 460px; }
.r-table th { text-align: left; font-family: 'Space Grotesk', sans-serif; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-400); font-weight: 700; padding: 0 10px 10px; border-bottom: 1.5px solid var(--slate-200); white-space: nowrap; }
.r-table th:not(:first-child), .r-table td:not(:first-child) { text-align: right; }
.r-table td { padding: 11px 10px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); vertical-align: top; }
.r-table td.strong { font-weight: 700; color: var(--slate-900); font-family: 'Space Grotesk', sans-serif; }
.r-table td.neg { color: var(--red); }
.r-table tbody tr:last-child td { border-bottom: none; }
.r-table .row-gross td { font-weight: 600; color: var(--slate-900); background: var(--slate-50); }
.r-table .row-net td { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--green); background: var(--green-bg); border-bottom: none; font-size: .9rem; }
.r-table .row-net td:first-child { border-radius: 8px 0 0 8px; }
.r-table .row-net td:last-child { border-radius: 0 8px 8px 0; }
.cell-note { display: block; font-size: .68rem; color: var(--slate-400); font-weight: 400; margin-top: 2px; padding-left: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }

/* brackets */
.r-table.brackets td:first-child { white-space: nowrap; }
.r-table.brackets tr.unreached td { color: var(--slate-400); }
.rate-pill { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; background: var(--brand-50); color: var(--brand); }
tr.unreached .rate-pill { background: var(--slate-100); color: var(--slate-400); }
.slab-bar { display: inline-block; width: 70px; height: 6px; background: var(--slate-100); border-radius: 100px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.slab-bar span { display: block; height: 100%; background: var(--brand-mid); border-radius: 100px; }
.slab-amt { vertical-align: middle; }

/* bonus card */
.bonus-card { background: linear-gradient(135deg, var(--purple-bg), var(--white)); border-color: var(--purple-light); }
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.bg-val { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--slate-900); letter-spacing: -.02em; }
.bg-val.neg { color: var(--red); } .bg-val.pos { color: var(--green); }
.bg-lbl { display: block; font-size: .7rem; color: var(--slate-500); margin-top: 2px; }

/* compare */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-col { border: 1.5px solid var(--slate-200); border-radius: var(--radius-md); padding: 16px; position: relative; background: var(--slate-50); }
.cmp-col.win { border-color: var(--green); background: var(--green-bg); }
.cmp-badge { position: absolute; top: -10px; right: 12px; background: var(--green); color: #fff; font-size: .62rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .05em; }
.cmp-name { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
.cmp-row { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; padding: 6px 0; border-top: 1px solid rgba(15,23,42,.06); color: var(--slate-500); }
.cmp-row strong { color: var(--slate-900); font-family: 'Space Grotesk', sans-serif; text-align: right; }

/* insights (same look as job-offer tool) */
.insights-card { border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 18px; }
.insights-card.good { background: var(--green-bg); border: 1.5px solid var(--green-light); }
.insights-card.warn { background: var(--yellow-bg); border: 1.5px solid var(--yellow-light); }
.insights-card.info { background: var(--brand-50); border: 1.5px solid var(--brand-100); }
.insights-title { font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.insights-title svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.insights-card.good .insights-title { color: var(--green); } .insights-card.warn .insights-title { color: var(--yellow); } .insights-card.info .insights-title { color: var(--brand); }
.insight-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: .82rem; line-height: 1.65; }
.insight-item:last-child { margin-bottom: 0; }
.insight-item::before { content: '→'; font-weight: 700; flex-shrink: 0; }
.insights-card.good .insight-item { color: #14532d; } .insights-card.warn .insight-item { color: #713f12; } .insights-card.info .insight-item { color: var(--brand-darker); }

/* assumptions */
details.assump { background: var(--white); border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg); padding: 0; margin-bottom: 8px; }
details.assump summary { cursor: pointer; padding: 16px 22px; font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700; color: var(--slate-800); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.assump summary::-webkit-details-marker { display: none; }
details.assump summary::after { content: '+'; color: var(--slate-400); font-size: 1.2rem; font-weight: 500; }
details.assump[open] summary::after { content: '–'; }
details.assump summary span { font-weight: 500; font-size: .72rem; color: var(--slate-400); margin-left: auto; }
details.assump ul { padding: 0 22px 0 40px; }
details.assump li { font-size: .8rem; color: var(--slate-600); line-height: 1.7; margin-bottom: 6px; }
details.assump p { font-size: .74rem; color: var(--slate-400); line-height: 1.65; padding: 6px 22px 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--slate-900); color: #fff; font-size: .82rem; padding: 11px 20px; border-radius: 100px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 600; box-shadow: 0 10px 30px rgba(15,23,42,.25); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- INFO SECTIONS ---------- */
.info-section { max-width: 1240px; margin: 0 auto; padding: 20px 2rem 40px; }
.info-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--slate-900); letter-spacing: -.02em; margin-bottom: 6px; }
.info-section > p.lead { font-size: .88rem; color: var(--slate-500); margin-bottom: 22px; max-width: 720px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { background: var(--white); border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg); padding: 20px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: .92rem; font-weight: 700; color: var(--slate-900); margin-bottom: 5px; letter-spacing: -.01em; }
.feature-card p { font-size: .78rem; color: var(--slate-500); line-height: 1.65; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rule-card { background: var(--white); border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg); padding: 18px 20px; border-top: 4px solid var(--brand); }
.rule-card.pk { border-top-color: #16a34a; } .rule-card.us { border-top-color: #3C3FDE; } .rule-card.uk { border-top-color: #e11d48; } .rule-card.in { border-top-color: #ea580c; } .rule-card.ae { border-top-color: #0d9488; }
.rule-card h3 { font-size: .95rem; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.rule-card ul { list-style: none; }
.rule-card li { font-size: .76rem; color: var(--slate-600); line-height: 1.6; padding: 4px 0 4px 14px; position: relative; }
.rule-card li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-200); }

.faq-section { max-width: 1240px; margin: 0 auto; padding: 0 2rem 64px; }
.faq-title { font-size: 1.3rem; font-weight: 700; color: var(--slate-900); margin-bottom: 20px; letter-spacing: -.02em; }
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--slate-800); gap: 16px; }
.faq-q svg { width: 18px; height: 18px; stroke: var(--slate-400); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform .2s; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { font-size: .855rem; color: var(--slate-500); line-height: 1.75; padding-bottom: 16px; display: none; }
.faq-a.open { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-card { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tool-wrap, .info-section, .faq-section { padding-left: 1rem; padding-right: 1rem; }
  .tool-hero { padding: 40px 1.25rem 36px; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cb-name { font-size: .68rem; } .cb-cur { display: block; }
  .rh-stats { grid-template-columns: 1fr; }
  .cmp-grid, .bonus-grid, .feature-grid { grid-template-columns: 1fr; }
  .donut { width: 170px; height: 170px; }
  .legend { min-width: 100%; }
  .lg-row { grid-template-columns: 12px 1fr auto; } .lg-pct { display: none; }
  .result-hero { padding: 26px 16px 22px; }
  .r-card { padding: 18px 14px; }
  .amount-row { grid-template-columns: 1fr 108px; }
}

/* ---------- PRINT ---------- */
@media print {
  nav, footer, .tool-hero, .calc-card, .result-actions, .faq-section, .info-section, .toast, .period-tabs { display: none !important; }
  .calc-layout { display: block; }
  .r-card, .insights-card, .result-hero { break-inside: avoid; }
  .result-hero { background: #3C3FDE !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.assump { display: block; }
  details.assump ul, details.assump p { display: block; }
}
