/* Phase 5.5 presentation layer. Brand tokens and approved artwork stay in
   wallet.css / wallet-reference.css. No financial state is defined here. */
body { -webkit-font-smoothing: antialiased; }
main { max-width: 1680px; margin-inline: auto; }
.card { border-radius: 14px; box-shadow: 0 3px 12px #11396a04; }
.panel { padding: 24px; }
.two-column, .equal-columns, .upi-overview { align-items: start; }
.stack { align-content: start; }
.heading h1, .page-heading h1 { font-weight: 700; }
.section-heading h3 { font-size: 18px; font-weight: 650; letter-spacing: -.45px; }
.section-heading p, .subtle-note, .field-note { font-size: 12px; line-height: 1.65; }
.section-heading { margin-bottom: 20px; }
.metric-card { gap: 12px; padding: 19px; box-shadow: none; }
.metric-card .metric-label { font-size: 12px; color: #536987; }
.metric-card .metric-note { font-size: 11px; color: #637795; }
.metric-value { font-size: clamp(23px, 1.9vw, 30px); font-weight: 650; }
.metric-card .metric-icon { width: 36px; height: 36px; border-radius: 10px; }
.button { min-height: 42px; border-radius: 9px; font-size: 13px; transition: background .18s, box-shadow .18s, transform .18s; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button.primary:not(:disabled):hover { box-shadow: 0 5px 14px #0b5fff25; }
.button.small { min-height: 36px; }
.icon-button { min-width: 40px; min-height: 40px; }
.sidebar nav button { font-weight: 550; transition: background .18s, box-shadow .18s; }
.sidebar .support-card { box-shadow: inset 0 1px #ffffff08; }
.topbar { border-bottom-color: #dee8f5; background: #fbfdff; }
.search { max-width: 460px; border-radius: 10px; }
.search input { font-size: 12px; }
.breadcrumb { font-size: 12px; }
.user-button b { font-weight: 600; }
.account-menu { border-radius: 12px; box-shadow: 0 12px 40px #061b3b18; }
label { font-size: 12px; color: #405878; }
input, select, textarea { border-radius: 8px; }
.form-footer { align-items: center; gap: 16px; }
.form-footer .subtle-note { max-width: 340px; }
.source-option { border-radius: 10px; padding: 14px; }
.source-option small { font-size: 11px; }
.source-option.active { background: #f0f5ff; box-shadow: inset 0 0 0 1px #0b5fff; }
.workspace-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 20px; list-style: none; color: #5e7391; font-size: 11px; }
.workspace-steps li { display: flex; align-items: center; gap: 7px; }
.workspace-steps span { display: grid; place-items: center; height: 21px; width: 21px; border: 1px solid #d9e5fa; border-radius: 50%; color: var(--blue); background: #f4f8ff; font-weight: 600; }
.plan-summary-card { border-top: 3px solid var(--blue); background: linear-gradient(150deg,#fff 65%,#f5f9ff); }
.estimate-box { padding: 17px; border-radius: 10px; }
.term-row { padding-block: 12px; gap: 14px; font-size: 12px; }
.term-row strong { text-align: right; font-weight: 600; }
.step-list { margin-top: 8px; gap: 19px; }
.activation-details summary { cursor: pointer; font-size: 15px; font-weight: 600; color: #405878; }
.activation-details[open] .step-list { margin-top: 20px; }
.step { font-size: 13px; }
.step small { font-size: 11px; }
.empty-state { padding: 28px 18px; min-height: 0; }
.empty-state .empty-icon { height: 44px; width: 44px; border-radius: 13px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 600; }
.empty-state p { font-size: 12px; max-width: 420px; }
.data-table { font-size: 12px; }
.data-table th { font-size: 10px; color: #5d7391; letter-spacing: .65px; padding-block: 13px; }
.data-table td { padding-block: 17px; }
.data-table td strong { font-weight: 600; }
.data-table .secondary { font-size: 11px; }
.data-table td:nth-child(2), .data-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.badge { font-size: 11px; border-radius: 6px; padding: 5px 9px; font-weight: 500; }
.activity-row { padding-block: 16px; }
.activity-row b { font-size: 13px; font-weight: 550; }
.activity-row small { font-size: 11px; }
.activity-date { font-size: 12px; }
.transaction-amount { font-variant-numeric: tabular-nums; font-size: 14px; }
.transaction-status { font-size: 11px; }
.statement-summary { display: flex; gap: 0; padding: 20px 0; margin-bottom: 22px; border-block: 1px solid var(--line); flex-wrap: wrap; }
.statement-summary > div { flex: 1; padding: 0 24px; border-right: 1px solid var(--line); min-width: 180px; }
.statement-summary > div:first-child { padding-left: 0; }
.statement-summary > div:last-child { border: 0; }
.statement-summary > div { min-width: 0; overflow-wrap: anywhere; }
.statement-summary small { display: block; color: #5e7391; font-size: 12px; }
.statement-summary strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.7px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.statement-summary p { color: #6e809f; font-size: 11px; margin: 4px 0 0; }
.advanced-filters { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 9px; }
.advanced-filters summary { cursor: pointer; padding: 11px 14px; font-size: 12px; font-weight: 550; color: #405878; }
.advanced-filters[open] summary { border-bottom: 1px solid var(--line); }
.advanced-filters .filter-bar { padding: 14px; margin: 0; border: 0; background: #f9fbff; }
.profile-overview { border-top: 3px solid var(--blue); }
.profile-top { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.profile-top .avatar { width: 64px; height: 64px; font-size: 22px; }
.profile-top h2 { font-size: 22px; font-weight: 650; }
.profile-tags { gap: 6px; }
.detail-item small { font-size: 11px; color: #5e7391; }
.detail-item b { font-size: 13px; font-weight: 550; }
.consent-row { padding-block: 14px; }
.consent-row small, .consent-row time { font-size: 11px; }
body[data-page="earnings"] .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.roi-feature { padding: 28px; border: 1px solid #ccebdd; background: linear-gradient(125deg,#f0fbf5,#fff 80%); }
.roi-feature .amount { font-size: 42px; font-weight: 650; color: #08784e; letter-spacing: -1.5px; margin-top: 12px; }
.roi-feature .eyebrow { color: #08784e; }
.roi-buckets { margin-block: 20px; padding-block: 16px; border-block: 1px solid #d9eee3; }
.roi-buckets small { font-size: 12px; }
.roi-buckets b { font-size: 17px; }
.upi-overview { grid-template-columns: minmax(0,1.35fr) minmax(260px,1fr); }
.upi-unavailable { padding: 28px; border-top: 3px solid var(--blue); }
.upi-hero-symbol { width: 64px; height: 64px; border-radius: 18px; }
.upi-hero-symbol svg { width: 30px; height: 30px; }
.upi-unavailable h2 { font-size: 21px; letter-spacing: -.5px; }
.upi-unavailable p { font-size: 13px; }
.bank-record { padding: 22px; background: linear-gradient(130deg,#fff,#f4f8ff); }
.bank-record .account-number { font-size: 24px; letter-spacing: 2px; margin-top: 20px; }
.referral-hero { padding: 30px; grid-template-columns: minmax(0,1.5fr) minmax(160px,.8fr); background: linear-gradient(110deg,#eaf6ff,#edf0ff); }
.referral-hero h2 { font-size: 30px; }
.referral-hero p { font-size: 13px; }
.referral-hero-art { align-self: stretch; overflow: hidden; }
.referral-hero-art img { width: min(100%,260px); height: auto; max-height: 260px; object-fit: contain; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 65% 63% at center,#000 48%,transparent 85%); }
.referral-banner { isolation: isolate; }
.referral-banner img { mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at center,#000 48%,transparent 80%); }
.referral-gift { mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at center,#000 42%,transparent 79%); }
.referral-code-control { background: #ffffffd9; border-style: solid; box-shadow: 0 2px 6px #0b5fff05; }
dialog { background: #fff; border-radius: 16px; box-shadow: 0 24px 80px #061b3b26; animation: premium-dialog .16s ease-out; }
dialog::backdrop { background: #061b3b66; backdrop-filter: blur(2px); }
.modal-heading { margin-bottom: 24px; }
.modal-heading h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 650; }
.modal-heading .eyebrow { font-size: 10px; }
#modal-body > .empty-state { padding: 16px 0; }
.notification-panel { width: min(420px,100vw); padding: 26px; }
.notification-item { padding: 16px 0; }
.notification-item p { font-size: 13px; }
.notification-item time { font-size: 11px; }
.toast { border-radius: 10px; box-shadow: 0 8px 32px #061b3b20; }
.wallet-heading h1 { font-size: clamp(30px,2.6vw,40px); }
.wallet-heading p { font-size: 15px; }
.summary-card { border-radius: 15px; }
.summary-card .amount { font-size: clamp(30px,2.7vw,42px); }
.wallet-card .amount { font-size: clamp(36px,3.2vw,48px); }
.reference-chart .chart-fallback { border: 1px solid #e5edf7; background: #f8fbff; font-size: 11px; }
.reference-chart .chart-fallback small { color: #637795; }
.quick-actions { border-color: #e1eaf6; }
.quick-action { transition: background .18s, transform .18s; border-radius: 10px; }
.quick-action:hover { background: #f5f9ff; transform: translateY(-2px); }
.main-footer { color: #6e809f; }
@keyframes premium-dialog { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media(min-width:1600px) { main { padding-inline: 40px; } }
@media(max-width:1200px) { .metric-card { padding: 16px; gap: 10px; } .metric-card .metric-icon { width: 30px; height: 30px; } .metric-value { font-size: 23px; } }
@media(max-width:1050px) { .upi-overview { grid-template-columns: 1fr; } .statement-summary > div { min-width: 150px; padding-inline: 16px; } }
@media(min-width:701px) and (max-width:900px) { .reference-chart .chart-fallback small { display: none; } .reference-chart .chart-fallback { font-size: 10px; } }
@media(max-width:768px) { .panel { padding: 20px; } .referral-hero { padding: 22px; } .roi-feature { padding: 24px; } .statement-summary > div { min-width: 45%; margin-block: 8px; } .statement-summary > div:nth-child(3) { padding-left: 0; } .statement-summary > div:nth-child(2) { border: 0; } }
@media(max-width:600px) {
 .topbar .breadcrumb { min-width: 0; overflow: hidden; flex: 1; font-size: 10px; }
 .topbar .breadcrumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .topbar .icon-button { min-width: 32px; min-height: 36px; }
 .topbar .user-button { flex-shrink: 0; gap: 0; }
 .topbar .user-button > svg { display: none; }
 .statement-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .statement-summary > div { min-width: 0; }
 .section-heading h3 { font-size: 17px; } .metric-card .metric-note { font-size: 11px; }
 body[data-page="earnings"] .metric-grid { grid-template-columns: 1fr; }
 .panel { padding: 18px; } .metric-card { padding: 15px; }
 .source-option { padding: 11px; } .form-footer { align-items: stretch; }
 .form-footer .button { width: 100%; } .statement-summary strong { font-size: 21px; }
 .statement-summary > div { padding-inline: 10px; min-width: 45%; }
 .referral-hero { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 20px; }
 .referral-hero > div:first-child { grid-row: 2; }
 .referral-hero h2 { font-size: 24px; }
 .referral-hero-art { grid-row: 1; justify-content: flex-end; height: 90px; }
 .referral-hero-art img { width: 110px; height: 100px; max-width: 100%; }
 .referral-hero .referral-code-control { gap: 8px; padding: 10px; }
 .referral-code-control code { font-size: 16px; letter-spacing: 1px; }
 .upi-unavailable { padding: 22px; gap: 16px; flex-direction: column; align-items: flex-start; }
 .upi-unavailable h2 { font-size: 20px; } .notification-panel { padding: 22px; }
 .modal-heading h2 { font-size: 21px; } .activity-row b { font-size: 12px; }
 .activity-row small { font-size: 10px; } .transaction-status { font-size: 10px; }
 .wallet-heading p { font-size: 13px; } .summary-card .amount { font-size: 36px; }
 .wallet-card .amount { font-size: 42px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
