/* Shahdad AI — mobile Finance Center, matched to finance-center.final.js */
.finance-root{display:block;width:100%;max-width:100%;min-width:0}
.finance-shell{
  --finance-ink:var(--ink,#173d43);
  --finance-muted:var(--muted,#58716e);
  --finance-green:var(--green,#2f7d6b);
  --finance-green-deep:#246858;
  --finance-mint:var(--mint,#dff4e9);
  --finance-mint-soft:#eff9f4;
  --finance-gold:var(--gold,#e4c67d);
  --finance-gold-soft:#fff5d9;
  --finance-blush:#f8e2e9;
  --finance-blue:#dcecf8;
  --finance-lilac:#ebe4f7;
  --finance-paper:var(--paper,#f7fbf8);
  --finance-danger:#a44451;
  --finance-danger-soft:#fff0f2;
  --finance-line:rgba(47,125,107,.13);
  --finance-shadow:0 10px 28px rgba(31,86,73,.08);
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:2px 0 calc(18px + env(safe-area-inset-bottom));
  color:var(--finance-ink);
  direction:rtl;
  isolation:isolate;
  container-type:inline-size;
  container-name:finance;
}
.finance-shell,.finance-shell *{box-sizing:border-box}
.finance-shell button,.finance-shell input,.finance-shell select,.finance-shell textarea{font:inherit}
.finance-shell button{touch-action:manipulation}
.finance-shell :is(h1,h2,h3,p,span,strong,small,dt,dd){overflow-wrap:break-word;word-break:normal;hyphens:none}
.finance-shell .icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.finance-main{position:relative;display:grid;gap:12px;min-width:0;max-width:100%;background:radial-gradient(circle at 7% 14%,rgba(228,198,125,.13) 0 3px,transparent 4px),radial-gradient(circle at 92% 35%,rgba(47,125,107,.1) 0 4px,transparent 5px),radial-gradient(circle at 13% 79%,rgba(205,155,175,.1) 0 2px,transparent 3px);background-size:150px 150px,210px 210px,125px 125px}

/* Header and account context */
.finance-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:start;margin:1px 1px 0;min-width:0}
.finance-head-copy{display:grid;gap:3px;min-width:0}
.finance-kicker{display:flex;align-items:center;gap:7px;color:var(--finance-green);font-size:11px;font-weight:850;line-height:1.5}
.finance-kicker::before{content:"";width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--finance-gold);box-shadow:0 0 0 4px rgba(228,198,125,.2)}
.finance-head h1{margin:0;font-size:21px;line-height:1.42;letter-spacing:-.35px;color:var(--finance-ink)}
.finance-head-copy>p{max-width:300px;margin:0;font-size:12px;line-height:1.7;color:var(--finance-muted)}
.finance-source-badge{min-height:44px;max-width:150px;display:grid;align-content:center;justify-items:center;gap:1px;padding:7px 10px;border:1px solid rgba(99,110,105,.14);border-radius:16px;background:#eff3f1;color:#556b67;text-align:center}
.finance-source-badge strong{font-size:10.5px;line-height:1.35}.finance-source-badge span{font-size:10px;line-height:1.35}
.finance-source-badge[data-tone="preview"]{border-color:rgba(121,95,40,.14);background:var(--finance-gold-soft);color:#6f5829}
.finance-context{grid-column:1/-1;min-height:54px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:6px;border:1px solid var(--finance-line);border-radius:18px;background:rgba(255,255,255,.8);box-shadow:0 6px 18px rgba(31,86,73,.045)}
.finance-context>span{min-width:0;min-height:42px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px;padding:4px 7px;border-radius:13px;background:var(--finance-mint-soft);color:var(--finance-green)}
.finance-context>span:nth-child(2){background:var(--finance-gold-soft);color:#795f28}
.finance-context>span>.icon{width:17px;height:17px;justify-self:center}
.finance-context>span>span{display:grid;gap:1px;min-width:0}.finance-context small{font-size:10px;line-height:1.35;color:var(--finance-muted)}.finance-context strong{font-size:12px;line-height:1.45;color:var(--finance-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Primary wallet/plans navigation */
.finance-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px;border:1px solid var(--finance-line);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 6px 18px rgba(31,86,73,.05)}
.finance-tab{min-width:0;min-height:44px;border:0;border-radius:14px;background:transparent;color:#5d7672;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;font-size:12px;font-weight:850;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.finance-tab:active{transform:scale(.98)}
.finance-tab.active,.finance-tab[aria-selected="true"]{background:var(--finance-green);color:#fff;box-shadow:0 7px 18px rgba(47,125,107,.18)}
.finance-tab .icon{width:18px;height:18px}
.finance-view{display:grid;gap:12px;min-width:0;max-width:100%}
.finance-wallet,.finance-plans{align-content:start}

/* Shared bright hero */
.finance-hero{position:relative;min-width:0;overflow:hidden;border:1px solid rgba(47,125,107,.11);border-radius:26px;background:linear-gradient(125deg,#dff4e9 0%,rgba(255,255,255,.96) 53%,#f8e2e9 100%);box-shadow:var(--finance-shadow)}
.finance-hero::before,.finance-hero::after{content:"";position:absolute;pointer-events:none;border-radius:50%}
.finance-hero::before{width:104px;height:104px;left:-44px;top:-51px;border:1px solid rgba(47,125,107,.1);background:rgba(255,255,255,.25);animation:finance-final-float 8s ease-in-out infinite}
.finance-hero::after{width:50px;height:50px;right:36%;bottom:-31px;border:1px solid rgba(121,95,40,.09);background:rgba(228,198,125,.19);animation:finance-final-float 10s ease-in-out -3s infinite reverse}
.finance-wallet-hero{padding:15px 16px}
.finance-hero-top{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.finance-hero-top>span:first-child{display:grid;gap:4px;min-width:0}.finance-hero-top>span:first-child>small{font-size:10.5px;font-weight:850;line-height:1.5;color:var(--finance-green)}
.finance-balance-value{display:grid;gap:2px;min-width:0}.finance-balance-value strong{font-size:27px;line-height:1.3;letter-spacing:-.3px;color:var(--finance-ink)}.finance-balance-value span{font-size:11.5px;line-height:1.6;color:var(--finance-muted)}
.finance-truth-chip{min-height:34px;max-width:150px;display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid rgba(47,125,107,.1);border-radius:999px;background:rgba(255,255,255,.7);color:#4d6c67;font-size:11px;font-weight:750;line-height:1.45;text-align:center}.finance-truth-chip .icon{width:15px;height:15px;flex:0 0 auto}
.finance-hero-actions{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.finance-hero-note{position:relative;z-index:1;margin:10px 0 0;font-size:11.5px;line-height:1.7;color:#4f6965}
.finance-primary,.finance-secondary{min-width:0;min-height:44px;border-radius:15px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:850;line-height:1.4;text-align:center;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.finance-primary{border:1px solid var(--finance-green);background:var(--finance-green);color:#fff;box-shadow:0 8px 18px rgba(47,125,107,.16)}
.finance-secondary{border:1px solid var(--finance-line);background:rgba(255,255,255,.82);color:var(--finance-green-deep)}
.finance-primary:active,.finance-secondary:active{transform:scale(.98)}.finance-primary:active{background:var(--finance-green-deep)}
.finance-primary[disabled],.finance-secondary[disabled]{cursor:not-allowed;box-shadow:none;opacity:.57;transform:none}
.finance-primary .icon,.finance-secondary .icon{width:17px;height:17px;flex:0 0 auto}

/* Wallet shortcuts */
.finance-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.finance-shortcuts>button{min-width:0;min-height:88px;border:1px solid var(--finance-line);border-radius:19px;background:rgba(255,255,255,.87);padding:10px;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:8px;text-align:right;color:var(--finance-ink);box-shadow:0 7px 20px rgba(31,86,73,.05);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.finance-shortcuts>button:active{transform:scale(.98)}.finance-shortcuts>button:hover{border-color:rgba(47,125,107,.24);box-shadow:0 9px 23px rgba(31,86,73,.08)}
.finance-shortcuts>button>.icon{width:17px;height:17px;color:#6b807d}
.finance-shortcuts>button>span:nth-child(2){display:grid;gap:2px;min-width:0}.finance-shortcuts>button strong{font-size:13px;line-height:1.5}.finance-shortcuts>button small{font-size:11.5px;line-height:1.55;color:var(--finance-muted)}
.finance-shortcut-icon{width:42px;height:42px;border-radius:15px;display:grid;place-items:center}.finance-shortcut-icon .icon{width:19px;height:19px}
.finance-shortcut-icon.mint{background:var(--finance-mint);color:var(--finance-green)}.finance-shortcut-icon.blush{background:var(--finance-blush);color:#8b5266}.finance-shortcut-icon.gold{background:var(--finance-gold-soft);color:#795f28}.finance-shortcut-icon.lilac{background:var(--finance-lilac);color:#675582}
.finance-soon{justify-self:end;max-width:76px;border-radius:999px;background:#eff3f1;color:#607571;padding:5px 7px;font-size:10px!important;font-weight:800;line-height:1.35!important;text-align:center}

/* Sections, ledgers and invoices */
.finance-section{min-width:0;border:1px solid var(--finance-line);border-radius:22px;background:rgba(255,255,255,.84);padding:13px;box-shadow:0 8px 23px rgba(31,86,73,.055)}
.finance-recent{display:grid;gap:9px}
.finance-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;min-width:0}
.finance-section-head>div{display:grid;gap:1px;min-width:0}.finance-section-head small{font-size:11.5px;line-height:1.5;color:var(--finance-green);font-weight:800}.finance-section-head h2{margin:0;font-size:14px;line-height:1.55;color:var(--finance-ink)}
.finance-section-head>button{min-height:44px;flex:0 0 auto;border:0;border-radius:14px;background:var(--finance-mint-soft);color:var(--finance-green-deep);padding:8px 10px;display:flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;cursor:pointer}.finance-section-head>button .icon{width:15px;height:15px}
.finance-demo-banner,.finance-draft-note{display:flex;align-items:flex-start;gap:7px;border:1px solid rgba(121,95,40,.12);border-radius:15px;background:#fff9e9;color:#67552f;padding:9px 10px;font-size:11.5px;line-height:1.65}.finance-demo-banner>.icon,.finance-draft-note>.icon{width:17px;height:17px;flex:0 0 auto;margin-top:1px}.finance-demo-banner span,.finance-draft-note span{min-width:0}.finance-demo-banner strong,.finance-draft-note strong{font-weight:850}
.finance-ledger-list,.finance-invoice-list{display:grid;gap:8px;min-width:0}
.finance-ledger-row{position:relative;min-width:0;min-height:80px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid rgba(47,125,107,.1);border-radius:18px;background:#fff;box-shadow:0 5px 16px rgba(31,86,73,.035)}
.finance-ledger-row.compact{min-height:74px}
.finance-ledger-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--finance-mint);color:var(--finance-green)}.finance-ledger-icon.debit{background:var(--finance-blush);color:#8b5266}.finance-ledger-icon .icon{width:19px;height:19px}
.finance-ledger-copy{display:grid;gap:3px;min-width:0}.finance-ledger-copy strong{font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finance-ledger-copy span{font-size:11.5px;line-height:1.55;color:var(--finance-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl}
.finance-ledger-amount{display:grid;justify-items:end;gap:2px;min-width:82px;font-style:normal;font-variant-numeric:tabular-nums}.finance-ledger-amount strong{font-size:12.5px;line-height:1.45;color:var(--finance-green);white-space:nowrap}.finance-ledger-amount.debit strong{color:#8b5266}.finance-ledger-amount span{font-size:10.5px;line-height:1.4;color:var(--finance-muted)}
.finance-demo-tag{position:absolute;top:5px;left:7px;border-radius:999px;background:#f1f5f3;color:#4f6664;padding:3px 5px;font-size:9.5px;font-weight:800;font-style:normal;line-height:1.25}
.finance-invoice-row{min-width:0;min-height:78px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid rgba(47,125,107,.1);border-radius:18px;background:#fff}
.finance-invoice-icon{width:44px;height:44px;border-radius:15px;background:var(--finance-blush);color:#8b5266;display:grid;place-items:center}.finance-invoice-icon .icon{width:19px;height:19px}
.finance-invoice-row>span:not(.finance-invoice-icon){display:grid;gap:3px;min-width:0}.finance-invoice-row>span:nth-child(2) strong{font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finance-invoice-row>span:nth-child(3){justify-items:end}.finance-invoice-row>span:nth-child(3) strong{font-size:12px;line-height:1.45;white-space:nowrap;font-variant-numeric:tabular-nums}.finance-invoice-row small{font-size:11px;line-height:1.45;color:var(--finance-muted)}
.finance-security-note{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:start;gap:10px;padding:12px;border:1px solid rgba(47,125,107,.12);border-radius:19px;background:linear-gradient(120deg,var(--finance-mint-soft),#fff);color:var(--finance-ink)}
.finance-security-note>span{width:46px;height:46px;border-radius:16px;background:var(--finance-mint);color:var(--finance-green);display:grid;place-items:center}.finance-security-note>span .icon{width:21px;height:21px}.finance-security-note>div{display:grid;gap:3px;min-width:0}.finance-security-note strong{font-size:13px;line-height:1.55}.finance-security-note p{margin:0;font-size:11.5px;line-height:1.75;color:var(--finance-muted)}

/* Plans */
.finance-plan-hero{padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.finance-plan-hero>div{position:relative;z-index:1;display:grid;gap:3px;min-width:0}.finance-plan-hero h2{margin:0;font-size:19px;line-height:1.45;color:var(--finance-ink)}.finance-plan-hero p{max-width:310px;margin:0;font-size:11.5px;line-height:1.7;color:var(--finance-muted)}.finance-plan-hero>button{position:relative;z-index:1;flex:0 0 auto}
.finance-plan-toolbar{display:grid;gap:8px}
.finance-segment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--finance-line);border-radius:16px;background:#f1f6f3}
.finance-segment>button{min-width:0;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--finance-muted);padding:7px 9px;font-size:12px;font-weight:800;line-height:1.35;cursor:pointer}.finance-segment>button small{display:block;margin-top:1px;font-size:10px;line-height:1.3;color:inherit}.finance-segment>button.active,.finance-segment>button[aria-pressed="true"]{background:#fff;color:var(--finance-green-deep);box-shadow:0 4px 13px rgba(31,86,73,.08)}
.finance-plan-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.finance-plan-card{position:relative;min-width:0;border:1px solid rgba(47,125,107,.12);border-radius:22px;background:#fff;padding:14px;box-shadow:0 8px 24px rgba(31,86,73,.06);display:grid;gap:11px}
.finance-plan-card.recommended{border-color:rgba(47,125,107,.34);box-shadow:0 12px 30px rgba(31,86,73,.1)}.finance-plan-card.current{outline:2px solid rgba(47,125,107,.2);outline-offset:2px}
.finance-plan-ribbon{position:absolute;top:10px;left:10px;max-width:calc(100% - 20px);border-radius:999px;background:var(--finance-mint);color:var(--finance-green-deep);padding:5px 8px;font-size:10px;font-weight:900;line-height:1.35}
.finance-plan-head{display:flex;align-items:center;gap:10px;min-width:0;padding-left:74px}.finance-plan-head>span:nth-child(2){display:grid;gap:1px;min-width:0}.finance-plan-head small{font-size:10.5px;line-height:1.4;color:var(--finance-muted)}.finance-plan-head h3{margin:0;font-size:15px;line-height:1.45;color:var(--finance-ink)}.finance-plan-head em{margin-right:auto;border-radius:999px;background:var(--finance-gold-soft);color:#705826;padding:5px 7px;font-size:10px;font-weight:850;font-style:normal;line-height:1.3;white-space:nowrap}
.finance-plan-orb{width:48px;height:48px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:var(--finance-mint);color:var(--finance-green);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 5px 14px rgba(31,86,73,.08)}.finance-plan-orb .icon{width:20px;height:20px}.finance-plan-orb.moon{background:var(--finance-blue);color:#426f85}.finance-plan-orb.earth{background:var(--finance-blush);color:#8b5266}.finance-plan-orb.sun{background:var(--finance-gold-soft);color:#795f28}.finance-plan-orb.constellation{background:var(--finance-lilac);color:#675582}.finance-plan-orb.galaxy{background:#e6edf6;color:#365b78}
.finance-plan-card>p{margin:0;font-size:11.5px;line-height:1.7;color:var(--finance-muted)}
.finance-plan-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;font-variant-numeric:tabular-nums}.finance-plan-price strong{font-size:22px;line-height:1.3;color:var(--finance-ink)}.finance-plan-price span{font-size:11.5px;line-height:1.5;color:var(--finance-muted)}
.finance-plan-card>ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.finance-plan-card>ul li{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.65;color:#4f6965}.finance-plan-card>ul .icon{width:15px;height:15px;flex:0 0 auto;margin-top:2px;color:var(--finance-green)}
.finance-plan-card>button{width:100%;margin-top:auto}
.finance-plan-footnote{margin:0 3px;text-align:center;font-size:11.5px;line-height:1.7;color:var(--finance-muted)}

/* Loading, empty and error */
.finance-loading{min-height:260px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed var(--finance-line);border-radius:24px;background:rgba(255,255,255,.68)}.finance-loading span{width:9px;height:9px;border-radius:50%;background:var(--finance-green);animation:finance-final-bounce .9s ease-in-out infinite}.finance-loading span:nth-child(2){animation-delay:.13s;background:var(--finance-gold)}.finance-loading span:nth-child(3){animation-delay:.26s;background:#c993a8}
.finance-state,.finance-empty{min-height:210px;border:1px dashed rgba(47,125,107,.2);border-radius:22px;background:rgba(255,255,255,.72);padding:22px 18px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center}.finance-state>span,.finance-empty>.icon{width:56px;height:56px;border-radius:20px;background:var(--finance-mint);color:var(--finance-green);display:grid;place-items:center}.finance-state>span .icon{width:25px;height:25px}.finance-empty>.icon{padding:16px}.finance-state strong,.finance-empty strong{font-size:13.5px;line-height:1.5}.finance-state p,.finance-empty span{max-width:270px;margin:0;font-size:12px;line-height:1.75;color:var(--finance-muted)}.finance-state button{margin-top:3px}
.finance-ledger-list>.finance-empty,.finance-invoice-list>.finance-empty{min-height:180px}

/* Shared modal sheet */
.finance-sheet-layer{position:fixed;inset:0;z-index:70;display:grid;align-items:end;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.finance-sheet-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(15,43,47,.36);backdrop-filter:blur(2px);cursor:pointer;animation:finance-final-fade .18s ease-out both}
.finance-sheet{position:relative;z-index:1;width:100%;max-width:560px;max-height:min(82dvh,720px);margin-inline:auto;overflow-y:auto;overscroll-behavior:contain;border:1px solid rgba(47,125,107,.14);border-radius:26px;background:#fff;color:var(--finance-ink);box-shadow:0 22px 60px rgba(18,51,54,.27);padding:8px 14px calc(15px + env(safe-area-inset-bottom));animation:finance-final-sheet-in .22s cubic-bezier(.2,.78,.3,1) both;scrollbar-width:thin;scrollbar-color:rgba(47,125,107,.28) transparent}
.finance-sheet-grip{width:46px;height:5px;border-radius:999px;background:#d2dfdc;margin:2px auto 10px}
.finance-sheet-close{position:absolute;top:10px;left:10px;width:44px;height:44px;border:0;border-radius:15px;background:#f1f6f3;color:var(--finance-green-deep);display:grid;place-items:center;cursor:pointer}.finance-sheet-close .icon{width:19px;height:19px}
.finance-sheet-body{display:grid;gap:12px;min-width:0}
.finance-sheet-head{min-height:48px;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;padding-left:52px}.finance-sheet-head>div{display:grid;gap:1px;min-width:0}.finance-sheet-head small{font-size:10.5px;line-height:1.4;color:var(--finance-muted)}.finance-sheet-head h2{margin:0;font-size:16px;line-height:1.5;color:var(--finance-ink)}
.finance-sheet-icon{width:48px;height:48px;border-radius:17px;display:grid;place-items:center}.finance-sheet-icon .icon{width:21px;height:21px}.finance-sheet-icon.mint{background:var(--finance-mint);color:var(--finance-green)}.finance-sheet-icon.blush{background:var(--finance-blush);color:#8b5266}.finance-sheet-icon.gold{background:var(--finance-gold-soft);color:#795f28}
.finance-sheet-list{padding-bottom:2px}
.finance-sheet-truth{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border:1px solid rgba(47,125,107,.11);border-radius:16px;background:var(--finance-mint-soft);color:#4c6762;font-size:11.5px;line-height:1.7}.finance-sheet-truth .icon{width:18px;height:18px;flex:0 0 auto;margin-top:1px;color:var(--finance-green)}
.finance-sheet-submit{width:100%;margin-top:1px}

/* Top-up form */
.finance-topup-form{display:grid;gap:11px;min-width:0}.finance-topup-form>label{font-size:12px;font-weight:850;line-height:1.5;color:var(--finance-ink)}
.finance-amount-field{min-height:52px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid var(--finance-line);border-radius:16px;background:#fff;padding:3px 11px;transition:border-color .18s ease,box-shadow .18s ease}.finance-amount-field:focus-within{border-color:rgba(47,125,107,.48);box-shadow:0 0 0 3px rgba(47,125,107,.1)}.finance-amount-field:has(input[aria-invalid="true"]){border-color:rgba(164,68,81,.52);box-shadow:0 0 0 3px rgba(164,68,81,.08)}
.finance-amount-field input{width:100%;min-width:0;height:44px;border:0;outline:0;background:transparent;color:var(--finance-ink);font-size:16px;direction:rtl;padding:0}.finance-amount-field input::placeholder{color:#536b67;opacity:1}.finance-amount-field>span{font-size:12px;font-weight:800;color:var(--finance-muted);white-space:nowrap}
.finance-field-help{margin:-4px 1px 0;font-size:11.5px;line-height:1.6;color:var(--finance-muted)}.finance-field-help[data-tone="ok"]{color:var(--finance-green-deep)}.finance-field-help[data-tone="error"]{color:var(--finance-danger)}
.finance-quick-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.finance-quick-amounts>button{min-width:0;min-height:44px;border:1px solid var(--finance-line);border-radius:14px;background:#fff;color:var(--finance-ink);padding:8px;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer}.finance-quick-amounts>button:active{background:var(--finance-mint)}
.finance-topup-form fieldset{display:grid;gap:8px;margin:0;padding:10px;border:1px solid var(--finance-line);border-radius:17px;min-width:0}.finance-topup-form legend{padding:0 5px;font-size:12px;font-weight:850;color:var(--finance-ink)}.finance-topup-form fieldset>label{min-width:0;min-height:58px;display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;padding:8px 9px;border-radius:14px;background:#f8faf9;cursor:pointer}.finance-topup-form fieldset input{width:20px;height:20px;margin:0;accent-color:var(--finance-green)}.finance-topup-form fieldset label>span{display:grid;gap:2px;min-width:0}.finance-topup-form fieldset strong{font-size:12px;line-height:1.45}.finance-topup-form fieldset small{font-size:11.5px;line-height:1.55;color:var(--finance-muted)}

.finance-toolbar-title{grid-column:1/-1;min-height:30px;display:flex;align-items:center;padding:0 3px;color:var(--finance-green-deep);font-size:11.5px;font-weight:850;line-height:1.5}
.finance-compare-price{display:grid;justify-items:end;gap:1px;min-width:104px;text-align:left;font-variant-numeric:tabular-nums}.finance-compare-price b{font-size:12px;line-height:1.5}.finance-compare-price small{font-size:10.5px;line-height:1.45;color:var(--finance-muted)}

/* Comparison and plan detail sheets */
.finance-sheet-segment{margin-bottom:1px}
.finance-compare-list{display:grid;gap:9px;min-width:0}
.finance-compare-card{min-width:0;border:1px solid var(--finance-line);border-radius:19px;background:#fff;padding:12px;display:grid;gap:10px}.finance-compare-card.recommended{border-color:rgba(47,125,107,.35);box-shadow:0 9px 22px rgba(31,86,73,.08)}
.finance-compare-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.finance-compare-card>header>span{display:grid;gap:2px;min-width:0}.finance-compare-card header small{font-size:10.5px;line-height:1.4;color:var(--finance-green);font-weight:800}.finance-compare-card header strong{font-size:14px;line-height:1.45}.finance-compare-card header b{font-size:12px;line-height:1.5;text-align:left;font-variant-numeric:tabular-nums}
.finance-compare-card dl,.finance-plan-details{display:grid;gap:0;margin:0;border:1px solid rgba(47,125,107,.1);border-radius:15px;background:var(--finance-mint-soft);overflow:hidden}.finance-compare-card dl>div,.finance-plan-details>div{min-width:0;display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);gap:9px;padding:8px 9px;font-size:11.5px;line-height:1.55}.finance-compare-card dl>div+div,.finance-plan-details>div+div{border-top:1px solid rgba(47,125,107,.1)}.finance-compare-card dt,.finance-plan-details dt{color:var(--finance-muted)}.finance-compare-card dd,.finance-plan-details dd{margin:0;color:var(--finance-ink);font-weight:800;text-align:left}
.finance-compare-card>button{min-height:44px;border:0;border-radius:14px;background:var(--finance-mint);color:var(--finance-green-deep);padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px;font-weight:850;cursor:pointer}.finance-compare-card>button .icon{width:15px;height:15px}
.finance-plan-sheet-summary{margin:0;font-size:12px;line-height:1.75;color:var(--finance-muted)}
.finance-form-feedback{min-height:0;border-radius:14px;font-size:11.5px;line-height:1.65;color:var(--finance-muted)}.finance-form-feedback:not(:empty){min-height:44px;padding:9px 10px;display:flex;align-items:center;background:#f1f5f3}.finance-form-feedback[data-tone="warning"]:not(:empty){background:var(--finance-gold-soft);color:#69542b}.finance-form-feedback[data-tone="error"]:not(:empty){background:var(--finance-danger-soft);color:var(--finance-danger)}.finance-form-feedback[data-tone="ok"]:not(:empty){background:var(--finance-mint);color:var(--finance-green-deep)}
.finance-live-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Readability and compact finance controls */
.finance-shell{--finance-muted:#4f6664}
.finance-kicker,.finance-source-badge strong,.finance-source-badge span,.finance-context small,.finance-hero-top>span:first-child>small,.finance-truth-chip,.finance-hero-note,.finance-shortcuts>button small,.finance-section-head small,.finance-section-head>button,.finance-demo-banner,.finance-draft-note,.finance-ledger-copy span,.finance-ledger-amount span,.finance-invoice-row small,.finance-security-note p,.finance-plan-hero p,.finance-plan-card>p,.finance-plan-price span,.finance-plan-card>ul li,.finance-plan-footnote,.finance-sheet-truth,.finance-field-help,.finance-topup-form fieldset small,.finance-toolbar-title,.finance-compare-card dl>div,.finance-plan-details>div,.finance-compare-card>button,.finance-plan-sheet-summary,.finance-form-feedback{font-size:14px}
.finance-tab,.finance-primary,.finance-secondary,.finance-segment>button,.finance-topup-form>label,.finance-topup-form legend,.finance-topup-form fieldset strong,.finance-quick-amounts>button{font-size:14px}
.finance-shortcuts>button strong,.finance-ledger-copy strong,.finance-invoice-row>span:nth-child(2) strong,.finance-security-note strong{font-size:14px}
.finance-sheet-head small,.finance-compare-card header small,.finance-compare-price small,.finance-plan-head small,.finance-plan-head em,.finance-plan-ribbon,.finance-demo-tag,.finance-segment>button small{font-size:14px}
.finance-shortcuts>button[data-finance-disabled]{grid-template-columns:42px minmax(0,1fr) auto}
.finance-soon{max-width:none;min-width:max-content;white-space:nowrap;font-size:14px!important;color:#4f6664}
.finance-ledger-copy span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;word-break:normal}
.finance-sheet-period{margin-top:-5px}

/* Keyboard and resilience */
.finance-shell :is(button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(47,125,107,.42);outline-offset:2px}
.finance-shell [aria-busy="true"]{cursor:progress}
@keyframes finance-final-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(5px,7px,0)}}
@keyframes finance-final-fade{from{opacity:0}to{opacity:1}}
@keyframes finance-final-sheet-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes finance-final-bounce{0%,100%{transform:translateY(0);opacity:.55}50%{transform:translateY(-6px);opacity:1}}

@container finance (max-width:430px){
  .finance-head{grid-template-columns:minmax(0,1fr)}.finance-source-badge{grid-row:1;justify-self:end;max-width:100%}.finance-head-copy{grid-row:2}.finance-context{grid-row:3;grid-template-columns:minmax(0,1fr)}
  .finance-hero-top,.finance-plan-hero{display:grid}.finance-truth-chip{max-width:100%;justify-self:start}.finance-plan-hero>button{width:100%}
  .finance-shortcuts{grid-template-columns:minmax(0,1fr)}
  .finance-shortcuts>button,.finance-shortcuts>button[data-finance-disabled]{min-height:80px;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;gap:8px;align-content:center}
  .finance-shortcuts>button[data-finance-disabled]>.finance-shortcut-icon,.finance-shortcuts>button[data-finance-disabled]>span:nth-child(2),.finance-shortcuts>button[data-finance-disabled]>.finance-soon{grid-column:auto;grid-row:auto}
  .finance-shortcuts>button[data-finance-disabled]>.finance-soon{justify-self:end;padding:5px 8px}
  .finance-ledger-row,.finance-invoice-row{grid-template-columns:44px minmax(0,1fr)}.finance-ledger-amount,.finance-invoice-row>span:nth-child(3){grid-column:2;justify-items:start;min-width:0}.finance-demo-tag{top:4px}
  .finance-plan-head{padding-left:0}.finance-plan-ribbon{position:static;width:max-content;max-width:100%}
  .finance-section-head{align-items:flex-start}.finance-section-head>button{max-width:46%;white-space:normal}
}

/* Narrow portrait and 200% zoom */
@container finance (max-width:359px){
  .finance-head{grid-template-columns:minmax(0,1fr)}.finance-source-badge{grid-row:1;justify-self:end;max-width:126px}.finance-head-copy{grid-row:2}.finance-context{grid-row:3}.finance-head h1{font-size:19px}
  .finance-context{grid-template-columns:minmax(0,1fr)}
  .finance-wallet-hero,.finance-plan-hero{padding:13px}.finance-hero-top{display:grid}.finance-truth-chip{max-width:100%}.finance-balance-value strong{font-size:26px}
  .finance-hero-actions,.finance-shortcuts{grid-template-columns:minmax(0,1fr)}
  .finance-shortcuts>button{min-height:74px}
  .finance-ledger-row,.finance-invoice-row{grid-template-columns:42px minmax(0,1fr)}.finance-ledger-amount,.finance-invoice-row>span:nth-child(3){grid-column:2;justify-items:start;min-width:0}.finance-demo-tag{top:4px}
  .finance-plan-hero{display:grid}.finance-plan-hero>button{width:100%}.finance-plan-head{padding-left:0}.finance-plan-ribbon{position:static;width:max-content;max-width:100%}
  .finance-sheet-head{padding-left:48px;grid-template-columns:42px minmax(0,1fr)}.finance-sheet-icon{width:42px;height:42px}.finance-compare-card>header{display:grid}.finance-compare-card header b{text-align:right}
  .finance-compare-card dl>div,.finance-plan-details>div{grid-template-columns:minmax(0,1fr)}.finance-compare-card dd,.finance-plan-details dd{text-align:right}
}

/* Tablet */
@container finance (min-width:900px){
  .finance-head{grid-template-columns:minmax(0,1fr) auto}.finance-context{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finance-wallet{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-areas:"hero shortcuts" "recent recent" "security security";align-items:start}.finance-wallet-hero{grid-area:hero;height:100%}.finance-shortcuts{grid-area:shortcuts}.finance-recent{grid-area:recent}.finance-security-note{grid-area:security}
  .finance-plan-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finance-compare-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Compact mobile landscape: 844 × 390 reference */
@media (orientation:landscape) and (max-height:520px) and (min-width:900px){
  .finance-shell{padding:0 6px calc(10px + env(safe-area-inset-bottom))}
  .finance-main{gap:7px}.finance-head{align-items:center;margin:0}.finance-head-copy>p,.finance-kicker{display:none}.finance-head h1{font-size:18px;line-height:1.3}.finance-source-badge{min-height:36px;padding:4px 9px;border-radius:13px}.finance-source-badge span{display:none}.finance-context{min-height:44px;padding:4px}.finance-context>span{min-height:36px}
  .finance-tabs{padding:3px}.finance-tab{min-height:44px}
  .finance-wallet{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);grid-template-areas:"hero shortcuts" "hero recent" "security security";gap:8px}.finance-wallet-hero{padding:11px;border-radius:21px}.finance-hero-top{display:grid;gap:6px}.finance-truth-chip{max-width:100%;min-height:30px}.finance-balance-value strong{font-size:26px}.finance-hero-actions{grid-template-columns:minmax(0,1fr);margin-top:8px}.finance-hero-note{margin-top:7px}.finance-shortcuts{gap:6px}.finance-shortcuts>button{min-height:66px;grid-template-columns:38px minmax(0,1fr) 16px;padding:7px}.finance-shortcut-icon{width:38px;height:38px}.finance-shortcuts small{display:none}
  .finance-section{padding:10px;border-radius:19px}.finance-demo-banner{padding:7px 8px}.finance-ledger-row{min-height:68px;padding:7px}.finance-ledger-list .finance-ledger-row:nth-child(n+3){display:none}.finance-security-note{padding:8px}.finance-security-note p{line-height:1.55}
  .finance-plan-hero{padding:11px;border-radius:21px}.finance-plan-hero p{display:none}.finance-plan-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.finance-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-plan-card{padding:11px;gap:7px}.finance-plan-card>p{display:none}.finance-plan-card>ul{gap:3px}.finance-plan-card>ul li{font-size:11.5px}.finance-plan-price strong{font-size:19px}.finance-draft-note{padding:7px 8px}
  .finance-sheet-layer{padding:5px}.finance-sheet{max-height:96dvh;max-width:660px;padding-bottom:10px}.finance-sheet-body{gap:8px}.finance-compare-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  .finance-shell *{scroll-behavior:auto!important}
  .finance-hero::before,.finance-hero::after,.finance-loading span,.finance-sheet-scrim,.finance-sheet{animation:none!important}
  .finance-tab,.finance-primary,.finance-secondary,.finance-shortcuts>button,.finance-amount-field{transition:none!important}
}

@media (forced-colors:active){
  .finance-shell :is(.finance-hero,.finance-section,.finance-plan-card,.finance-ledger-row,.finance-invoice-row,.finance-tabs,.finance-amount-field,.finance-sheet){border:1px solid CanvasText}
  .finance-tab[aria-selected="true"],.finance-primary{background:Highlight;color:HighlightText}
}
/* 2026-08-08 mobile inspection: readable RTL copy, safe-area and width hardening. */
.finance-shell{font-size:14px;line-height:1.65;overflow-x:hidden;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.finance-main,.finance-view,.finance-wallet,.finance-plans,.finance-section,.finance-sheet,.finance-sheet-body{min-width:0;max-width:100%;overflow-x:hidden}
.finance-head-copy>p,.finance-context strong,.finance-balance-value span,.finance-ledger-amount strong,.finance-invoice-row>span:nth-child(3) strong,.finance-amount-field>span,.finance-empty strong,.finance-state strong,.finance-state p,.finance-empty span,.finance-compare-card header b{font-size:14px}
.finance-amount-field input{font-size:16px}
.finance-shell :is(button,a[href],input:not([type="radio"]),select,textarea){min-height:44px}

/* 2026-08-09: container-aware mobile-first hardening.
   The mobile app can live inside a 390px device frame while the outer browser
   is desktop-wide, so responsive decisions follow the module itself. */
.finance-root,.finance-shell,.finance-main,.finance-view,.finance-wallet,.finance-plans{inline-size:100%;width:100%;min-inline-size:0;max-inline-size:100%}
.finance-main{grid-template-columns:minmax(0,1fr)}
.finance-view{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important}
.finance-view>*{grid-area:auto!important;min-width:0;max-width:100%;height:auto!important}

@container finance (max-width:899px){
  .finance-head{grid-template-columns:minmax(0,1fr)}
  .finance-source-badge{grid-row:1;justify-self:end;max-width:100%}
  .finance-head-copy{grid-row:2}
  .finance-context{grid-row:3;grid-template-columns:minmax(0,1fr)}
  .finance-hero-top,.finance-plan-hero{display:grid;grid-template-columns:minmax(0,1fr)}
  .finance-truth-chip{max-width:100%;justify-self:start}
  .finance-plan-hero>button{width:100%}
  .finance-shortcuts,.finance-plan-toolbar,.finance-plan-grid,.finance-compare-list{grid-template-columns:minmax(0,1fr)}
  .finance-shortcuts>button,.finance-shortcuts>button[data-finance-disabled]{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;min-height:80px}
  .finance-shortcuts>button[data-finance-disabled]>.finance-shortcut-icon,
  .finance-shortcuts>button[data-finance-disabled]>span:nth-child(2),
  .finance-shortcuts>button[data-finance-disabled]>.finance-soon{grid-column:auto;grid-row:auto}
  .finance-plan-head{padding-left:0}
  .finance-plan-ribbon{position:static;width:max-content;max-width:100%}
}

@container finance (max-width:430px){
  .finance-hero-actions{grid-template-columns:minmax(0,1fr)}
  .finance-ledger-row,.finance-invoice-row{grid-template-columns:44px minmax(0,1fr)}
  .finance-ledger-amount,.finance-invoice-row>span:nth-child(3){grid-column:2;justify-items:start;min-width:0}
  .finance-section-head{align-items:flex-start;flex-wrap:wrap}
  .finance-section-head>div{flex:1 1 180px}
  .finance-section-head>button{max-width:100%;white-space:normal}
  .finance-compare-card>header{display:grid}
  .finance-compare-card header b,.finance-compare-price{text-align:right;justify-items:start}
  .finance-compare-card dl>div,.finance-plan-details>div{grid-template-columns:minmax(0,1fr)}
  .finance-compare-card dd,.finance-plan-details dd{text-align:right}
}
