/**
 * AFROTOOLS — Japa Cost Calculator Styles
 * ═══════════════════════════════════════
 */

/* ── FOUNDATION ── */
*,*::before,*::after { box-sizing: border-box; }
.jp h1,.jp h2,.jp h3,.jp h4 { text-transform: none !important; letter-spacing: normal !important; font-family: 'DM Sans', sans-serif !important; }
.jp svg { display: inline-block !important; max-width: none !important; }

/* ── BREADCRUMB ── */
.crumb { max-width: 1200px; margin: 0 auto; padding: 12px 20px 0; font-size: 12px; font-weight: 500; color: #9ca3af; }
.crumb a { color: #9ca3af; text-decoration: none; }
.crumb a:hover { color: var(--color-primary); }
.crumb span { margin: 0 5px; }

/* ── WRAPPER ── */
.jw { max-width: 900px; margin: 0 auto; padding: 0 20px 100px; }

/* ── HERO ── */
.jh { padding: 48px 0 24px; text-align: center; }
.jh h1 { font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif !important; font-size: clamp(28px, 5vw, 44px); font-weight: 800; color: #111; margin-bottom: 12px; line-height: 1.08; letter-spacing: -.03em; }
.jh h1 b { background: linear-gradient(135deg, var(--color-brand), var(--color-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.jh > p { font-size: 16px; color: #4b5563; max-width: 520px; margin: 0 auto 16px; line-height: 1.7; }
.tag { display: inline-block; padding: 5px 14px; background: #fef3cd; border: 1px solid #fde68a; border-radius: 100px; font-size: 11px; font-weight: 700; color: #92400e; margin-bottom: 16px; }

/* ── STATS BAR ── */
.stats-bar { display: flex; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.stat-item { flex: 1; padding: 14px; text-align: center; border-right: 1px solid #e5e7eb; }
.stat-item:last-child { border-right: none; }
.stat-item .sv { font-size: 20px; font-weight: 800; color: var(--color-brand); }
.stat-item .sl { font-size: 11px; color: #6b7280; font-weight: 600; margin-top: 1px; }

/* ── FORM SECTIONS ── */
.jf { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; padding: 26px; margin-bottom: 16px; }
.jf h2 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.jf h2 .n { width: 26px; height: 26px; background: var(--color-brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.jr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; overflow: hidden; }
.jfl { display: flex; flex-direction: column; gap: 5px; }
.jfl label, .fi-label { font-size: 11px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 5px; }
.jfl select, .jfl input, .fi-inp { padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #111; outline: none; transition: .15s; background: #fff; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.jfl select:focus, .jfl input:focus, .fi-inp:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(0,122,255,.08); }
.jfl .ht { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ── PATHWAY GRID ── */
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pw { border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: .18s; position: relative; background: #fff; }
.pw:hover { border-color: #d1d5db; background: #f9fafb; transform: translateY(-1px); }
.pw.on { border-color: var(--color-brand); background: #EFF6FF; box-shadow: 0 2px 12px rgba(0,122,255,.12); }
.pw .pw-name { font-size: 13px; font-weight: 700; color: #111; padding-right: 22px; }
.pw .pw-desc { font-size: 11px; color: #6b7280; margin-top: 4px; line-height: 1.4; }
.pw .pw-time { font-size: 11px; color: var(--color-brand); font-weight: 700; margin-top: 8px; }
.pw .pw-best { position: absolute; top: 8px; right: 8px; background: var(--color-brand); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.pw .pw-dot { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border: 2px solid #d1d5db; border-radius: 50%; transition: .15s; }
.pw.on .pw-dot { border-color: var(--color-brand); background: var(--color-brand); }
.pw.on .pw-dot::after { content: ''; width: 5px; height: 5px; background: #fff; border-radius: 50%; position: absolute; top: 3.5px; left: 3.5px; }
.pw-note { font-size: 12px; color: #4b5563; padding: 10px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; line-height: 1.6; margin-top: 2px; display: none; }
.pw-note.on { display: block; }

/* ── TOGGLE CHIPS ── */
.tg-section { margin-bottom: 14px; }
.tg-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.tg-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tg { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: #4b5563; background: #fff; transition: .15s; user-select: none; }
.tg:hover { border-color: #d1d5db; }
.tg.on { border-color: var(--color-brand); background: #EFF6FF; color: var(--color-brand); }
.tg input { display: none; }
.tg .bx { width: 16px; height: 16px; border: 2px solid #d1d5db; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: .15s; flex-shrink: 0; }
.tg.on .bx { background: var(--color-brand); border-color: var(--color-brand); }
.tg.on .bx::after { content: ''; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }

/* ── DEPENDENTS ROW ── */
.dep-row { display: none; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #EFF6FF; border: 1px solid rgba(0,122,255,.15); border-radius: 8px; margin-bottom: 10px; }
.dep-row.on { display: flex; }
.dep-row label { font-size: 13px; font-weight: 700; color: #374151; }
.dep-row input[type=number] { width: 72px; padding: 8px 10px; border: 1.5px solid #e5e7eb; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 14px; text-align: center; }
.dep-row .dep-hint { font-size: 11px; color: #6b7280; flex: 1; min-width: 160px; }

/* ── EXTRA GRID ── */
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid #f3f4f6; margin-top: 14px; }

/* ── CALCULATE BUTTON ── */
.jgo { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--color-brand), #2563EB); color: #fff; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: .18s; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.jgo:hover { background: linear-gradient(135deg, #1D4ED8, var(--color-brand)); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,122,255,.3); }
.jgo:active { transform: translateY(0); }

/* ── RESULTS ── */
.res { display: none; margin-top: 8px; }
.res.on { display: block; }

/* ── TOTAL CARD ── */
.tot-card { background: linear-gradient(135deg, #060D18 0%, #0D1B33 55%, #060D18 100%); border-radius: 20px; padding: 36px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; animation: fadeInScale 0.6s ease-out; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.tot-card::before { content: ''; position: absolute; top: -40%; right: -15%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(0,122,255,.1), transparent 70%); pointer-events: none; }
.tot-card::after { content: ''; position: absolute; bottom: -40%; left: -10%; width: 240px; height: 240px; background: radial-gradient(circle, rgba(0,122,255,.07), transparent 70%); pointer-events: none; }
.tot-inner { position: relative; z-index: 1; }
.tot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.tot-lbl { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.tot-usd { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tot-local { font-size: 20px; color: var(--color-brand); font-weight: 700; margin-top: 4px; }
.tot-sub { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 8px; line-height: 1.65; white-space: pre-line; }
.tot-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.t-badge { padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.badge-g { background: rgba(0,122,255,.15); color: var(--color-brand); border: 1px solid rgba(0,122,255,.2); }
.badge-a { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.2); }
.badge-r { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* ── RANGE BAR ── */
.range-bar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.range-bar-title { font-size: 10px; color: rgba(255,255,255,.35); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.range-track { position: relative; height: 6px; background: rgba(255,255,255,.1); border-radius: 100px; margin-bottom: 8px; }
.range-fill { position: absolute; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--color-brand), var(--color-brand)); }
.range-dot { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; background: #fff; border-radius: 50%; border: 2px solid var(--color-brand); }
.range-labels { display: flex; justify-content: space-between; }
.range-labels span { font-size: 10px; color: rgba(255,255,255,.35); }
.range-labels .rl-mid { color: var(--color-brand); font-weight: 700; }

/* ── SAVINGS PROGRESS BAR ── */
.sp-bar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 20px; }
.sp-bar-title { font-size: 10px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.sp-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-track { flex: 1; min-width: 140px; height: 8px; background: rgba(255,255,255,.1); border-radius: 100px; overflow: hidden; }
.sp-fill { height: 100%; background: linear-gradient(90deg, var(--color-brand), var(--color-brand)); border-radius: 100px; transition: .5s ease; }
.sp-txt { font-size: 13px; color: #fff; font-weight: 600; }
.sp-sub { font-size: 11px; color: rgba(255,255,255,.4); }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; background: #f3f4f6; border-radius: 10px; padding: 3px; margin-bottom: 16px; overflow-x: auto; }
.tab { flex: 1; min-width: 80px; padding: 9px 6px; border: none; background: transparent; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; color: #6b7280; cursor: pointer; transition: .15s; white-space: nowrap; text-align: center; }
.tab.on { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ── BREAKDOWN TABLE ── */
.bk { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.bk-head { padding: 14px 22px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bk-head h3 { font-size: 15px; font-weight: 800; color: #111; }
.bk-actions { display: flex; gap: 8px; align-items: center; }
.bk-total-lbl { font-size: 13px; font-weight: 700; color: var(--color-brand); }
.bk-filter { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 22px; border-bottom: 1px solid #f3f4f6; background: #fafafa; }
.bk-filter button { padding: 5px 11px; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; cursor: pointer; color: #6b7280; transition: .15s; }
.bk-filter button.on, .bk-filter button:hover { border-color: var(--color-brand); color: var(--color-brand); background: #EFF6FF; }
.bk-cat { padding: 8px 22px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.bk-cat span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.bk-cat .cat-pct { font-size: 10px; color: #9ca3af; font-weight: 600; }
.bk-r { display: flex; align-items: flex-start; justify-content: space-between; padding: 11px 22px; border-bottom: 1px solid #f3f4f6; transition: .08s; gap: 12px; }
.bk-r.hidden { display: none; }
.bk-r:hover { background: #fafafa; }
.bk-r .rn { font-size: 13px; color: #374151; font-weight: 500; }
.bk-r .rd { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.bk-r .ra { font-size: 14px; font-weight: 700; color: #111; text-align: right; white-space: nowrap; }
.bk-r .rl { font-size: 11px; color: #6b7280; text-align: right; }
.bk-r .rr { font-size: 10px; color: #d1d5db; text-align: right; margin-top: 1px; }
.bk-r.subtot { background: #EFF6FF; padding: 10px 22px; border-bottom: 1px solid #e5e7eb; }
.bk-r.subtot .rn { font-weight: 800; color: var(--color-brand); font-size: 12px; }
.bk-r.subtot .ra { color: var(--color-brand); font-size: 13px; }
.bk-grand { background: #060D18; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.bk-grand .rn { color: #fff; font-size: 15px; font-weight: 800; }
.bk-grand .ra { color: var(--color-brand); font-size: 17px; font-weight: 800; }
.bk-grand .rl { color: rgba(255,255,255,.5); text-align: right; font-size: 12px; }

/* ── CHART PANEL ── */
.chart-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.chart-panel h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 16px; }
.chart-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.chart-canvas-wrap { width: 200px; height: 200px; position: relative; flex-shrink: 0; }
.chart-legend { display: flex; flex-direction: column; gap: 6px; }
.legend-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-name { font-size: 12px; color: #374151; font-weight: 600; flex: 1; }
.legend-pct { font-size: 12px; font-weight: 800; color: #111; min-width: 32px; text-align: right; }
.legend-amt { font-size: 11px; color: #9ca3af; min-width: 80px; text-align: right; }

/* ── COMPARE TABLE ── */
.cmp-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.cmp-panel h3 { font-size: 15px; font-weight: 800; color: #111; padding: 16px 22px; border-bottom: 1px solid #e5e7eb; margin: 0; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th { padding: 10px 16px; font-size: 10px; font-weight: 700; color: #6b7280; text-align: left; border-bottom: 1px solid #f3f4f6; background: #fafafa; text-transform: uppercase; letter-spacing: .05em; }
.cmp-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr.sel-row td { background: #EFF6FF; }
.cmp-badge { display: inline-block; padding: 2px 7px; font-size: 9px; font-weight: 800; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.badge-cheap { background: var(--color-brand); color: #fff; }
.badge-sel { background: #3b82f6; color: #fff; }
.cmp-bar-wrap { height: 6px; background: #f3f4f6; border-radius: 100px; overflow: hidden; min-width: 80px; }
.cmp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-brand), var(--color-brand)); border-radius: 100px; }

/* ── TIMELINE ── */
.tl-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.tl-panel h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 20px; }
.tl-steps { display: flex; gap: 0; position: relative; }
.tl-steps::before { content: ''; position: absolute; top: 15px; left: 16px; right: 16px; height: 2px; background: #e5e7eb; z-index: 0; }
.tl-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.ts-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-brand); background: var(--color-brand); }
.tl-step.future .ts-dot { background: #f9fafb; box-shadow: 0 0 0 2px #e5e7eb; border-color: #f9fafb; }
.ts-label { font-size: 11px; font-weight: 700; color: #374151; }
.ts-time { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.ts-cost { font-size: 11px; color: var(--color-brand); font-weight: 700; margin-top: 3px; }

/* ── SAVINGS PLAN ── */
.plan-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.plan-panel h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 4px; }
.plan-sub { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.plan-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pi label { font-size: 11px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 5px; }
.pi input { padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #111; outline: none; width: 100%; transition: .15s; }
.pi input:focus { border-color: var(--color-brand); }
.plan-result { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border: 1.5px solid rgba(0,122,255,.15); border-radius: 12px; padding: 18px; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pr-item .pv { font-size: 22px; font-weight: 800; color: var(--color-brand); }
.pr-item .pl { font-size: 11px; color: #374151; font-weight: 600; margin-top: 2px; }
.milestone { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0,122,255,.1); }
.milestone:last-child { border-bottom: none; }
.ms-pct { width: 32px; font-size: 11px; font-weight: 800; color: var(--color-brand); text-align: right; flex-shrink: 0; }
.ms-track { flex: 1; height: 5px; background: #e5e7eb; border-radius: 100px; overflow: hidden; }
.ms-bar { height: 100%; background: linear-gradient(90deg, var(--color-brand), var(--color-brand)); border-radius: 100px; }
.ms-label { font-size: 12px; color: #374151; flex: 1; font-weight: 500; }
.ms-time { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* ── SHARE ROW ── */
.sh-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.sh-btn { padding: 10px 18px; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: #374151; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: .15s; }
.sh-btn:hover { border-color: var(--color-brand); color: var(--color-brand); background: #EFF6FF; }

/* ── AI SECTION ── */
.ai-sec { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-top: 14px; }
.ai-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; flex-wrap: wrap; gap: 8px; }
.ai-sec h3 { font-size: 15px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 8px; margin: 0; }
.ai-badge { padding: 3px 9px; background: #EFF6FF; border: 1px solid rgba(0,122,255,.2); border-radius: 100px; font-size: 10px; color: var(--color-brand); font-weight: 700; }
.ai-ctx { font-size: 11px; color: #9ca3af; margin-bottom: 12px; line-height: 1.5; }
.ai-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ai-p { padding: 7px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 7px; font-size: 12px; color: #4b5563; cursor: pointer; transition: .15s; font-weight: 600; }
.ai-p:hover { border-color: var(--color-brand); color: var(--color-brand); background: #EFF6FF; }
.ai-chat { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; scroll-behavior: smooth; }
.ai-msg { padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.65; max-width: 88%; }
.ai-msg.user { background: #EFF6FF; color: #111; border: 1px solid rgba(0,122,255,.12); align-self: flex-end; font-weight: 500; }
.ai-msg.bot { background: #f9fafb; color: #374151; border: 1px solid #f3f4f6; align-self: flex-start; white-space: pre-wrap; }
.ai-msg.typing { color: #9ca3af; font-style: italic; background: #f9fafb; border: 1px solid #f3f4f6; align-self: flex-start; }
.ai-input-row { display: flex; gap: 8px; overflow: hidden; }
.ai-input-row input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; transition: .15s; }
.ai-input-row input:focus { border-color: var(--color-brand); }
.ai-input-row button { padding: 10px 20px; background: var(--color-brand); color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; flex-shrink: 0; }
.ai-input-row button:hover { filter: brightness(1.1); }
.ai-input-row button:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── DISCLAIMER ── */
.disc { margin-top: 14px; padding: 12px 16px; background: #fef3cd; border: 1px solid #fde68a; border-radius: 10px; font-size: 11px; color: #92400e; line-height: 1.6; }
.disc strong { color: #78350f; }

/* ── COST OF LIVING ── */
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.col-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 18px; }
.col-card h4 { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.col-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.col-row:last-child { border-bottom: none; }
.col-row .col-label { color: #4b5563; font-weight: 500; }
.col-row .col-val { font-weight: 700; color: #111; }
.col-row .col-val.cheaper { color: var(--color-brand); }
.col-row .col-val.pricier { color: #ef4444; }
.col-summary { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border: 1.5px solid rgba(0,122,255,.15); border-radius: 12px; padding: 18px; margin-bottom: 16px; text-align: center; }
.col-summary .col-ppi { font-size: 28px; font-weight: 800; color: var(--color-brand); margin-bottom: 4px; }
.col-summary .col-ppi-label { font-size: 13px; color: #374151; }
.col-diff { font-size: 13px; color: #4b5563; line-height: 1.6; margin-top: 8px; }
.col-chart-wrap { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.col-chart-wrap h4 { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 12px; }
.col-select-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.col-select-row select { padding: 8px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #111; outline: none; }
.col-select-row select:focus { border-color: var(--color-brand); }

/* ── QUALITY OF LIFE ── */
.qol-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.qol-panel h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 16px; }
.qol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.qol-metric { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.qol-metric .qol-name { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.qol-metric .qol-score { font-size: 24px; font-weight: 800; margin-bottom: 2px; }
.qol-metric .qol-bar { height: 6px; background: #e5e7eb; border-radius: 100px; overflow: hidden; margin-top: 6px; }
.qol-metric .qol-bar-fill { height: 100%; border-radius: 100px; transition: .4s; }
.qol-score.score-high { color: var(--color-brand); }
.qol-score.score-mid { color: #f59e0b; }
.qol-score.score-low { color: #ef4444; }
.qol-desc { font-size: 13px; color: #4b5563; line-height: 1.65; padding: 14px 18px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 16px; }
.qol-chart-wrap { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.qol-chart-wrap h4 { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 12px; }
.qol-diaspora { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.qol-diaspora.large { background: #EFF6FF; color: var(--color-brand); border: 1px solid rgba(0,122,255,.2); }
.qol-diaspora.medium { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.qol-diaspora.small { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── VISA PREDICTOR ── */
.vp-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.vp-panel h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 16px; }
.vp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.vp-field label { font-size: 11px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 5px; }
.vp-field select, .vp-field input { padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #111; outline: none; width: 100%; transition: .15s; }
.vp-field select:focus, .vp-field input:focus { border-color: var(--color-brand); }
.vp-submit { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--color-brand), #2563EB); color: #fff; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: .18s; margin-bottom: 16px; grid-column: 1 / -1; }
.vp-submit:hover { filter: brightness(1.1); }
.vp-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.vp-result { display: none; }
.vp-result.on { display: block; }
.vp-gauge-wrap { text-align: center; margin-bottom: 16px; }
.vp-gauge { position: relative; width: 200px; height: 110px; margin: 0 auto; }
.vp-gauge svg { width: 200px; height: 110px; }
.vp-gauge-score { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 32px; font-weight: 800; }
.vp-gauge-label { font-size: 12px; color: #6b7280; font-weight: 600; margin-top: 4px; }
.vp-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.vp-factor { padding: 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.vp-factor.positive { background: #EFF6FF; border: 1px solid rgba(0,122,255,.15); color: #1E40AF; }
.vp-factor.negative { background: #fef2f2; border: 1px solid rgba(239,68,68,.15); color: #991b1b; }
.vp-factor .vp-factor-title { font-weight: 700; margin-bottom: 4px; font-size: 12px; }
.vp-recs { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; }
.vp-recs h4 { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 8px; }
.vp-recs ul { margin: 0; padding-left: 18px; font-size: 13px; color: #4b5563; line-height: 1.7; }
.vp-disclaimer { font-size: 11px; color: #9ca3af; margin-top: 12px; text-align: center; font-style: italic; }

/* ── COMMUNITY INSIGHTS ── */
.ci-panel { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.ci-panel h3 { font-size: 15px; font-weight: 800; color: #111; padding: 18px 22px; margin: 0; border-bottom: 1px solid #e5e7eb; }
.ci-acc { border-bottom: 1px solid #e5e7eb; }
.ci-acc:last-child { border-bottom: none; }
.ci-acc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; cursor: pointer; transition: .15s; background: #fff; user-select: none; }
.ci-acc-head:hover { background: #f9fafb; }
.ci-acc-head .ci-dest { font-size: 14px; font-weight: 700; color: #111; }
.ci-acc-head .ci-arrow { font-size: 12px; color: #9ca3af; transition: .2s; }
.ci-acc.open .ci-acc-head .ci-arrow { transform: rotate(180deg); }
.ci-acc-body { display: none; padding: 0 22px 16px; }
.ci-acc.open .ci-acc-body { display: block; }
.ci-section { margin-bottom: 14px; }
.ci-section h4 { font-size: 12px; font-weight: 800; color: var(--color-brand); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ci-section p, .ci-section ul { font-size: 13px; color: #4b5563; line-height: 1.7; margin: 0; }
.ci-section ul { padding-left: 18px; }
.ci-section ul li { margin-bottom: 4px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 22px; right: 22px; background: #111; color: #fff; padding: 11px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; transform: translateY(80px); opacity: 0; transition: .3s; z-index: 2000; max-width: 320px; }
.toast.on { transform: translateY(0); opacity: 1; }

/* ── PRINT ── */
@media print {
  afro-navbar, afro-footer, .sh-row, .ai-sec, .jf, .tabs, .bk-filter, .crumb, .tag, .stats-bar { display: none !important; }
  .res { display: block !important; }
  .res.on { display: block !important; }
  .tot-card { background: #0A1628 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bk, .cmp-panel, .plan-panel, .tl-panel, .chart-panel { page-break-inside: avoid; }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .jr { grid-template-columns: 1fr; }
  .jw { padding: 0 14px 60px; }
  .jf { padding: 16px; }
  .pw-grid { grid-template-columns: 1fr; }
  .tot-card { padding: 20px 16px; }
  .tot-top { flex-direction: column; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid #e5e7eb; }
  .chart-wrap { grid-template-columns: 1fr; }
  .chart-canvas-wrap { margin: 0 auto; }
  .plan-inputs { grid-template-columns: 1fr 1fr; }
  .pr-grid { grid-template-columns: 1fr 1fr; }
  .tl-steps::before { display: none; }
  .tl-steps { flex-wrap: wrap; gap: 10px; }
  .tl-step { min-width: calc(50% - 5px); }
  .extra-grid { grid-template-columns: 1fr; gap: 10px; }
  .extra-grid > div { min-width: 0; overflow: hidden; }
  .tabs { gap: 1px; }
  .ai-input-row { flex-wrap: wrap; }
  .ai-input-row input { width: 100%; }
  .col-grid { grid-template-columns: 1fr; }
  .vp-form { grid-template-columns: 1fr; }
  .vp-factors { grid-template-columns: 1fr; }
  .qol-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .extra-grid { grid-template-columns: 1fr; }
  .fi-inp[type="month"], .fi-inp[type="number"] { width: 100%; box-sizing: border-box; font-size: 14px; }
  .fi-label { white-space: normal; word-break: break-word; }
  .jf { padding: 12px; }
  .plan-inputs { grid-template-columns: 1fr; }
  .qol-grid { grid-template-columns: 1fr; }
  .tl-step { min-width: 100%; }
}
