:root{
  --bg:#fbf8f4;--surface:#fff;--surface-2:#f7f4f0;--ink:#172033;--muted:#80889a;--line:#ebe6df;
  --orange:#ff6b22;--orange-2:#ff8a43;--orange-soft:#fff0e7;--blue:#4a7cff;--violet:#8066e8;--green:#18ad7a;
  --red:#df3c4d;--shadow:0 18px 50px rgba(42,36,28,.08);--shadow-sm:0 10px 28px rgba(42,36,28,.06);
}
*{box-sizing:border-box}html{background:var(--bg);-webkit-text-size-adjust:100%}body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}.svg-sprite symbol,.svg-sprite path,.svg-sprite circle,.svg-sprite rect{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.boot-view{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;align-content:center;gap:18px;background:#fbf8f4}.brand-mark{display:grid;place-items:center;width:72px;height:72px;border-radius:25px;background:linear-gradient(145deg,var(--orange),var(--orange-2));color:#fff;font-size:34px;font-weight:900;box-shadow:0 18px 38px rgba(255,107,34,.24)}.brand-mark.small{width:46px;height:46px;border-radius:16px;font-size:22px}.boot-dots{display:flex;gap:6px}.boot-dots span{width:7px;height:7px;border-radius:50%;background:#ffc1a1;animation:pulse 1s infinite alternate}.boot-dots span:nth-child(2){animation-delay:.18s}.boot-dots span:nth-child(3){animation-delay:.36s}@keyframes pulse{to{background:var(--orange);transform:translateY(-3px)}}
.login-view{min-height:100dvh;background:#fbf8f4}.login-shell{width:min(100%,460px);min-height:100dvh;margin:auto;padding:18px 18px 28px;display:flex;flex-direction:column}.login-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand-row{display:flex;align-items:center;gap:11px}.brand-row>div:last-child{display:grid;gap:2px}.brand-row strong{font-size:17px}.brand-row span{font-size:11px;color:var(--muted)}.secure-pill{display:flex;align-items:center;gap:5px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:10px;color:#677084;box-shadow:var(--shadow-sm)}.secure-pill svg{width:14px;height:14px;color:var(--green);fill:none;stroke:currentColor;stroke-width:1.8}
.login-visual{position:relative;height:210px;margin:24px 0 10px;display:grid;place-items:center;overflow:hidden;border-radius:34px;background:linear-gradient(145deg,#fff6ed 0,#f8eee5 100%);border:1px solid #f1e6dc}.visual-orb{position:absolute;border-radius:50%;filter:blur(1px)}.orb-one{width:180px;height:180px;right:-55px;top:-65px;background:rgba(255,130,68,.16)}.orb-two{width:150px;height:150px;left:-45px;bottom:-65px;background:rgba(121,102,232,.10)}.login-hero-card{position:relative;width:78%;padding:22px 20px;border-radius:27px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.9);box-shadow:0 22px 55px rgba(66,45,26,.1);display:grid;gap:5px}.mini-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;margin-bottom:5px;background:var(--orange-soft);color:var(--orange)}.mini-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9}.login-hero-card span{font-size:11px;color:var(--orange);font-weight:800}.login-hero-card strong{font-size:20px;line-height:1.5}.login-hero-card small{font-size:11px;color:var(--muted)}.login-copy{margin:14px 2px 18px}.kicker{font-size:11px;color:var(--orange);font-weight:900;letter-spacing:.02em}.login-copy h1{margin:4px 0 7px;font-size:27px}.login-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.login-card{display:grid;gap:14px}.field{display:grid;gap:7px}.field label{font-size:12px;font-weight:800;color:#4c5568}.input-shell{height:56px;background:#fff;border:1px solid var(--line);border-radius:18px;display:flex;align-items:center;gap:10px;padding:0 14px;transition:.2s;box-shadow:0 6px 18px rgba(42,36,28,.025)}.input-shell:focus-within{border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.08)}.input-shell>svg{width:19px;height:19px;color:#8e95a3;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}.input-shell input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px;direction:ltr;text-align:right}.input-shell input::placeholder{color:#bcc0c8}.peek{width:38px;height:38px;border:0;background:transparent;color:#8e95a3;display:grid;place-items:center}.peek svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.form-error{min-height:18px;color:var(--red);font-size:12px}.primary-btn,.cta-btn{height:58px;border:0;border-radius:19px;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:900;box-shadow:0 14px 30px rgba(255,107,34,.24)}.primary-btn svg,.cta-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.login-footnote{margin:auto 0 0;padding-top:22px;text-align:center;color:#9a9faa;font-size:10px;line-height:1.7}
.portal-view{min-height:100dvh;background:#fbf8f4}.app-shell{width:min(100%,480px);min-height:100dvh;margin:auto;background:#fbf8f4;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.015)}.app-header{height:76px;padding:14px 16px 8px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40;background:rgba(251,248,244,.92);backdrop-filter:blur(15px)}.profile-wrap{display:flex;align-items:center;gap:10px}.avatar{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,var(--orange),var(--orange-2));color:#fff;font-size:20px;font-weight:900;box-shadow:0 9px 20px rgba(255,107,34,.19)}.profile-copy{display:grid;gap:2px}.profile-copy span{font-size:10px;color:var(--muted)}.profile-copy strong{font-size:15px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn,.round-btn{border:1px solid var(--line);background:#fff;color:#566074;display:grid;place-items:center;box-shadow:var(--shadow-sm)}.icon-btn{width:42px;height:42px;border-radius:15px}.icon-btn svg,.round-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9}.app-main{padding-bottom:88px}.home-screen{padding:8px 13px 26px}.hero-transfer{padding:18px;border-radius:30px;background:#fff;border:1px solid #eee8e1;box-shadow:var(--shadow)}.hero-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.hero-top h1{margin:3px 0 0;font-size:22px}.hero-icon{width:48px;height:48px;border-radius:17px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center}.hero-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9}.trade-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;margin:0 0 18px;border-radius:20px;background:#f4f1ed}.trade-option{border:0;border-radius:16px;background:transparent;color:#7f8795;padding:10px 8px;display:grid;gap:1px;text-align:center}.trade-option span{font-weight:900;font-size:14px}.trade-option small{font-size:9px}.trade-option.active{background:#fff;color:var(--ink);box-shadow:0 8px 20px rgba(46,38,31,.07)}.trade-option.active span{color:var(--orange)}.field-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.field-label-row label,.section-mini-title span{font-size:12px;font-weight:900}.network-indicator{padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900;background:#f2f2f2;color:#7d8490}.network-indicator.syriatel{background:#ffebec;color:#c9363d}.network-indicator.mtn{background:#fff5cb;color:#7b6510}.phone-entry{height:58px;border:1px solid var(--line);border-radius:19px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px}.phone-entry:focus-within{border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.07)}.phone-icon{width:34px;height:34px;border-radius:12px;background:#f7f4f0;color:#7a8393;display:grid;place-items:center}.phone-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.phone-entry input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17px;font-weight:800;direction:ltr;text-align:right;letter-spacing:.04em}.hint{margin:7px 2px 14px;color:#969ca8;font-size:10px;line-height:1.6}.wholesale-note{display:flex;align-items:flex-start;gap:10px;padding:13px;border-radius:18px;background:#fff5ef;border:1px solid #ffe0ce;margin-bottom:14px}.note-icon{width:38px;height:38px;border-radius:13px;background:#fff;color:var(--orange);display:grid;place-items:center}.note-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.wholesale-note b{font-size:12px}.wholesale-note p{margin:3px 0 0;font-size:10px;color:#8e827b;line-height:1.6}.network-choice{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:16px}.network-btn{position:relative;min-height:65px;border:1px solid var(--line);background:#fff;border-radius:18px;display:flex;align-items:center;gap:9px;padding:9px 10px;text-align:right;color:var(--ink);transition:.18s}.network-btn>span:nth-child(2){display:grid;gap:2px}.network-btn b{font-size:12px}.network-btn small{font-size:8px;color:#969ca8}.network-btn i{position:absolute;left:9px;top:9px;width:8px;height:8px;border-radius:50%;background:#d9dbe0}.network-btn.selected{border-color:#ffb58d;background:#fff9f5;box-shadow:0 0 0 3px rgba(255,107,34,.06)}.network-btn.selected i{background:var(--orange)}.network-logo{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-size:11px;font-weight:1000;flex:none}.network-logo.syr{background:#ffe9ea;color:#c6383f}.network-logo.mtn{background:#fff1a8;color:#111}.section-mini-title{display:flex;align-items:end;justify-content:space-between;margin:2px 1px 9px}.section-mini-title small{font-size:9px;color:#a0a5ae}.operation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.operation-btn{min-height:95px;border:1px solid var(--line);background:#fff;border-radius:19px;padding:11px 6px;display:grid;place-items:center;align-content:center;gap:4px;color:#566074}.operation-btn b{font-size:11px}.operation-btn small{font-size:8px;color:#a0a5ae}.op-icon{width:37px;height:37px;border-radius:13px;display:grid;place-items:center}.op-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.op-icon.blue{background:#eef3ff;color:var(--blue)}.op-icon.violet{background:#f1edff;color:var(--violet)}.op-icon.green{background:#eaf9f3;color:var(--green)}.operation-btn.active{border-color:#ffb58d;background:#fff9f5;color:var(--ink);box-shadow:0 0 0 3px rgba(255,107,34,.05)}.quick-error{min-height:17px;margin:8px 2px 4px;color:var(--red);font-size:10px}.cta-btn{width:100%;height:54px;border-radius:18px}.services-section{padding:23px 2px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:0 3px 12px}.section-heading h2{margin:2px 0 0;font-size:18px}.text-btn{border:0;background:transparent;color:var(--orange);font-size:10px;font-weight:900}.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.service-tile{min-height:106px;border:1px solid #eee8e1;background:#fff;border-radius:23px;padding:13px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;text-align:right;color:var(--ink);box-shadow:0 8px 24px rgba(44,37,31,.035)}.service-tile>span:nth-child(2){display:grid;gap:3px}.service-tile b{font-size:11px}.service-tile small{font-size:8px;color:#979da8;line-height:1.5}.service-tile em{font-size:19px;font-style:normal;color:#c1c4ca}.service-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center}.service-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}.service-icon.game{background:#f1edff;color:#775be3}.service-icon.bill{background:#fff0e8;color:#ef712d}.service-icon.transfer{background:#edf4ff;color:#4f79e7}.service-icon.settle{background:#eaf9f3;color:#15a676}.service-icon.account{background:#fff3d9;color:#bc8523}.service-icon.more{background:#f1f2f4;color:#667083}
/* Structured service flow: no chat UI. */
.flow-screen{min-height:calc(100dvh - 76px);padding:0 13px 108px}.flow-header{position:sticky;top:76px;z-index:30;height:68px;margin:0 -13px;padding:8px 13px;background:rgba(251,248,244,.94);backdrop-filter:blur(15px);display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}.round-btn{width:42px;height:42px;border-radius:15px}.flow-title-wrap{text-align:center}.flow-title-wrap span{font-size:9px;color:var(--orange);font-weight:900}.flow-title-wrap h1{margin:2px 0 0;font-size:15px}.flow-stage{padding-top:10px}.step-panel{display:grid;gap:12px}.step-card{background:#fff;border:1px solid #eee8e1;border-radius:28px;padding:18px;box-shadow:var(--shadow-sm)}.step-card.success{border-color:#d8f0e5;background:#f8fdfa}.step-card.error{border-color:#f2d7da;background:#fffafb}.step-card-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}.step-status-icon{width:42px;height:42px;border-radius:15px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;flex:none}.step-card.success .step-status-icon{background:#e9f8f2;color:var(--green)}.step-card.error .step-status-icon{background:#fff0f1;color:var(--red)}.step-status-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9}.step-card-head div{display:grid;gap:2px}.step-card-head strong{font-size:14px}.step-card-head small{font-size:9px;color:var(--muted)}.step-description{white-space:pre-wrap;font-size:12px;line-height:1.9;color:#4b5568}.step-card.success .step-description{color:#167c5d}.step-card.error .step-description{color:#a73a47}.step-options-title{margin:4px 1px -3px;font-size:10px;color:#8d94a0;font-weight:800}.step-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.step-option,.step-link{min-height:56px;border:1px solid var(--line);background:#fff;border-radius:18px;padding:11px 12px;color:#465064;text-decoration:none;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:right;box-shadow:0 6px 18px rgba(44,37,31,.025)}.step-option:after,.step-link:after{content:'›';font-size:19px;color:#c1c4ca;font-weight:400}.step-option:hover,.step-option:focus-visible,.step-link:hover,.step-link:focus-visible{border-color:#ffb58d;background:#fff9f5;outline:none}.step-option.primary-action{grid-column:1/-1;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff;border:0;box-shadow:0 13px 28px rgba(255,107,34,.19)}.step-option.primary-action:after{color:#fff}.step-empty{min-height:230px;background:#fff;border:1px solid #eee8e1;border-radius:28px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#687184;box-shadow:var(--shadow-sm)}.step-empty-icon{width:52px;height:52px;border-radius:18px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;margin-bottom:4px}.step-empty-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9}.step-empty strong{font-size:14px;color:var(--ink)}.step-empty small{font-size:10px;color:var(--muted)}.step-form{margin-top:12px;padding:16px;background:#fff;border:1px solid #eee8e1;border-radius:28px;box-shadow:var(--shadow-sm);display:grid;gap:13px}.step-field-wrap{display:grid;gap:8px}.step-field-wrap>label{font-size:11px;font-weight:900;color:#4c5568}.step-input-shell{height:58px;border:1px solid var(--line);border-radius:19px;background:#fbfaf8;display:flex;align-items:center;gap:10px;padding:0 13px;transition:.2s}.step-input-shell:focus-within{background:#fff;border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.07)}.step-input-icon{width:35px;height:35px;border-radius:12px;background:#f2eee9;color:#7b8392;display:grid;place-items:center;flex:none}.step-input-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.step-input-shell input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px;font-weight:700}.step-field-hint{min-height:12px;color:#999faa;font-size:9px;line-height:1.6}.step-upload{min-height:64px;border:1px dashed #ddd4ca;border-radius:18px;background:#fbfaf8;padding:10px 12px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;cursor:pointer}.step-upload>span{width:38px;height:38px;border-radius:13px;background:#fff0e7;color:var(--orange);display:grid;place-items:center}.step-upload svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9}.step-upload div{display:grid;gap:2px}.step-upload b{font-size:10px}.step-upload small{font-size:8px;color:var(--muted)}.step-upload em{font-size:9px;color:var(--orange);font-style:normal;font-weight:900}.step-submit{height:56px;border:0;border-radius:18px;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:900;box-shadow:0 13px 28px rgba(255,107,34,.20)}.step-submit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}.step-submit:disabled{opacity:.55}.flow-image{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:18px;margin-top:10px}@media(max-width:360px){.step-options{grid-template-columns:1fr}}

.bottom-nav{position:fixed;z-index:60;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);height:78px;padding:7px 14px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid #eee8e1;display:grid;grid-template-columns:repeat(4,1fr)}.nav-item{border:0;background:transparent;color:#9a9faa;display:grid;place-items:center;align-content:center;gap:4px}.nav-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.nav-item b{font-size:9px}.nav-item.active{color:var(--orange)}
@media (min-width:700px){body{background:#f2eee9}.login-shell,.app-shell{box-shadow:0 0 70px rgba(35,28,22,.08)}.login-shell{background:#fbf8f4}.portal-view{background:#f2eee9}}
@media (max-width:360px){.service-grid{grid-template-columns:1fr}.operation-grid{gap:6px}.operation-btn{min-height:88px}.network-choice{grid-template-columns:1fr}.login-visual{height:190px}}

/* Favorites + customer credit */
.favorite-pick-btn,.mini-favorite-btn{border:1px solid var(--line);background:#fff;color:var(--ink)}
.favorite-pick-btn{width:100%;min-height:58px;border-radius:18px;margin-top:9px;padding:10px 12px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;text-align:right}
.favorite-pick-btn>svg{width:20px;height:20px;fill:none;stroke:var(--orange);stroke-width:1.8}.favorite-pick-btn>span{display:grid;gap:2px}.favorite-pick-btn b{font-size:10px}.favorite-pick-btn small{font-size:8px;color:var(--muted)}.favorite-pick-btn em{font-style:normal;font-size:20px;color:#bbb}
.mini-favorite-btn{margin-inline-start:auto;border-radius:13px;padding:8px 10px;font-size:9px;font-weight:900;display:flex;align-items:center;gap:5px}.mini-favorite-btn svg{width:15px;height:15px;fill:none;stroke:var(--orange);stroke-width:1.9}
.debt-option{margin:14px 0 2px;border-top:1px dashed #e9e1d8;padding-top:13px}.debt-switch{display:flex;align-items:center;gap:10px;cursor:pointer}.debt-switch input{position:absolute;opacity:0}.switch-ui{width:43px;height:24px;border-radius:99px;background:#ddd8d2;position:relative;transition:.2s;flex:none}.switch-ui:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;right:3px;box-shadow:0 2px 6px rgba(0,0,0,.15);transition:.2s}.debt-switch input:checked+.switch-ui{background:var(--orange)}.debt-switch input:checked+.switch-ui:after{transform:translateX(-19px)}.switch-copy{display:grid;gap:2px}.switch-copy b{font-size:11px}.switch-copy small{font-size:8px;color:var(--muted)}
.customer-price-wrap{margin-top:11px;padding:12px;border-radius:16px;background:#fff8f3;border:1px solid #ffe0ce;display:grid;gap:7px}.customer-price-wrap label{font-size:10px;font-weight:900}.customer-price-wrap>small{font-size:8px;color:#8f8179;line-height:1.6}.money-input{height:48px;border:1px solid #eadfd6;background:#fff;border-radius:14px;display:flex;align-items:center;gap:8px;padding:0 11px}.money-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;font-weight:800}.money-input span{font-size:9px;color:var(--muted);font-weight:900}
.manager-screen{min-height:calc(100dvh - 76px);padding:0 13px 108px}.manager-header{position:sticky;top:76px;z-index:30;margin:0 -13px;padding:10px 13px;background:rgba(251,248,244,.95);backdrop-filter:blur(14px);display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}.manager-header>div{text-align:center}.manager-header h1{margin:2px 0 0;font-size:16px}.manager-content{display:grid;gap:12px;padding-top:12px}.manager-card{background:#fff;border:1px solid #eee8e1;border-radius:23px;padding:14px;box-shadow:var(--shadow-sm)}.search-shell{height:50px;border:1px solid var(--line);background:#fff;border-radius:16px;display:flex;align-items:center;gap:9px;padding:0 12px}.search-shell svg{width:18px;height:18px;fill:none;stroke:#8a909b;stroke-width:1.8}.search-shell input{flex:1;border:0;outline:0;background:transparent;font-size:12px}.favorite-list,.customer-list,.ledger-list{display:grid;gap:9px}.favorite-row,.customer-row,.ledger-row{border:1px solid #eee8e1;background:#fff;border-radius:18px;padding:12px}.favorite-row,.customer-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.favorite-row strong,.customer-row strong{font-size:12px}.favorite-row small,.customer-row small{display:block;margin-top:3px;font-size:9px;color:var(--muted)}.row-actions{display:flex;gap:6px}.tiny-btn{border:1px solid var(--line);background:#faf9f7;border-radius:11px;padding:7px 9px;font-size:9px;font-weight:900}.tiny-btn.danger{color:#b94752;background:#fff7f8}.tiny-btn.primary{color:var(--orange);background:#fff8f3;border-color:#ffd9c3}.empty-state{padding:28px 12px;text-align:center;color:var(--muted);font-size:10px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.summary-box{background:#fff;border:1px solid #eee8e1;border-radius:18px;padding:12px 8px;text-align:center}.summary-box small{display:block;font-size:8px;color:var(--muted)}.summary-box b{display:block;margin-top:4px;font-size:13px}.summary-box.balance{background:#fff8f3;border-color:#ffe0ce}.filter-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filter-bar label{font-size:8px;color:var(--muted);display:grid;gap:5px}.filter-bar input{height:42px;border:1px solid var(--line);border-radius:13px;padding:0 9px;background:#fff}.preset-row{display:flex;gap:6px;overflow:auto;padding-bottom:2px}.preset-btn{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-size:9px;font-weight:900}.preset-btn.active{background:#fff1e8;color:var(--orange);border-color:#ffc9aa}.ledger-row{display:grid;grid-template-columns:1fr auto;gap:8px}.ledger-row.debt{border-inline-start:4px solid #e05a63}.ledger-row.payment{border-inline-start:4px solid #19a877}.ledger-row b{font-size:11px}.ledger-row small{font-size:8px;color:var(--muted);display:block;margin-top:3px}.ledger-amount{font-size:12px;font-weight:1000}.ledger-row.debt .ledger-amount{color:#c54650}.ledger-row.payment .ledger-amount{color:#168663}
.app-modal{position:fixed;inset:0;z-index:200}.modal-backdrop{position:absolute;inset:0;background:rgba(35,30,25,.34);backdrop-filter:blur(2px)}.modal-sheet{position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,480px);max-height:88dvh;overflow:auto;background:#fbf8f4;border-radius:28px 28px 0 0;padding:10px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -25px 60px rgba(0,0,0,.15)}.modal-handle{width:42px;height:4px;border-radius:9px;background:#d9d3cc;margin:0 auto 8px}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:4px 0 12px}.modal-head h2{margin:2px 0 0;font-size:17px}.modal-body{display:grid;gap:11px}.modal-form{display:grid;gap:10px}.modal-form label{font-size:9px;color:#616978;font-weight:900;display:grid;gap:6px}.modal-form input,.modal-form select,.modal-form textarea{width:100%;height:48px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:0 11px;outline:0;font:inherit}.modal-form textarea{height:72px;padding-top:10px;resize:vertical}.modal-submit{height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff;font-weight:1000}.modal-note{font-size:9px;color:var(--muted);line-height:1.7}.customer-total{font-size:18px;font-weight:1000}.customer-total.owed{color:#c54650}.customer-total.credit{color:#168663}


/* Inline tier picker + protected confirmations */
.quick-amount-block{margin:14px 0 2px}.amount-entry{height:58px;border:1px solid var(--line);border-radius:19px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;transition:.2s}.amount-entry:focus-within{border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.07)}.amount-icon{width:34px;height:34px;border-radius:12px;background:#f7f4f0;color:#7a8393;display:grid;place-items:center;flex:none}.amount-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.amount-entry input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17px;font-weight:900;direction:ltr;text-align:right}.tier-count{padding:5px 9px;border-radius:999px;background:#fff1e8;color:var(--orange);font-size:9px;font-weight:900}.tier-suggestions{display:flex;gap:7px;overflow:auto;padding:9px 1px 2px;scrollbar-width:none}.tier-suggestions::-webkit-scrollbar{display:none}.tier-chip{flex:none;border:1px solid #eadfd6;background:#fff;border-radius:14px;padding:9px 12px;font-weight:1000;font-size:11px;color:var(--ink);box-shadow:0 5px 14px rgba(42,36,28,.035)}.tier-chip:hover,.tier-chip.selected{background:#fff3eb;border-color:#ffc8a9;color:var(--orange)}.tier-hint{margin-bottom:0}.tier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tier-dialog-btn{min-height:48px;border:1px solid var(--line);background:#fff;border-radius:15px;font-weight:1000;color:var(--ink)}.tier-dialog-btn:active{transform:scale(.98)}.modal-warning{padding:12px;border:1px solid #ffe0ce;background:#fff8f3;border-radius:16px;font-size:10px;line-height:1.7;color:#7e6355}.loading-spinner{width:17px;height:17px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}.step-option.is-loading,.cta-btn.is-loading,.step-submit.is-loading{pointer-events:none}.step-option.is-loading:before{content:'';width:15px;height:15px;border:2px solid rgba(255,107,34,.25);border-top-color:var(--orange);border-radius:50%;animation:spin .7s linear infinite}.step-option.primary-action.is-loading:before{border-color:rgba(255,255,255,.45);border-top-color:#fff}.step-option.is-loading{display:flex;align-items:center;justify-content:center;gap:7px}

/* 2026-09-14 - larger readable UI + primary debts/records navigation */
body{font-size:16px}
.app-shell{width:min(100%,520px)}
.app-header{height:84px;padding:16px 18px 10px}.avatar{width:50px;height:50px;font-size:23px}.profile-copy span{font-size:13px}.profile-copy strong{font-size:18px;max-width:270px}.icon-btn{width:48px;height:48px}.icon-btn svg,.round-btn svg{width:22px;height:22px}
.home-screen{padding:10px 15px 30px}.hero-transfer{padding:21px;border-radius:30px}.hero-top h1{font-size:26px}.kicker{font-size:14px}.trade-option{padding:13px 9px}.trade-option span{font-size:17px}.trade-option small{font-size:12px}.field-label-row label,.section-mini-title span{font-size:15px}.section-mini-title small{font-size:12px}.network-indicator{font-size:12px;padding:6px 10px}.phone-entry,.amount-entry{height:64px}.phone-entry input,.amount-entry input{font-size:20px}.hint,.tier-hint{font-size:12px;line-height:1.7}.favorite-pick-btn{min-height:66px;padding:12px 14px}.favorite-pick-btn b{font-size:14px}.favorite-pick-btn small{font-size:11px}.network-btn b,.operation-btn b{font-size:15px}.network-btn small,.operation-btn small{font-size:11px}.operation-btn{min-height:100px}.cta-btn,.primary-btn{height:64px;font-size:16px}.debt-switch{gap:12px}.switch-copy b{font-size:15px}.switch-copy small{font-size:11px}.customer-price-wrap label{font-size:13px}.customer-price-wrap>small{font-size:11px}.money-input{height:54px}.money-input input{font-size:18px}.money-input span{font-size:12px}.service-tile b{font-size:14px}.service-tile small{font-size:11px;line-height:1.5}
.bottom-nav{width:min(100%,520px);height:86px;padding:9px 12px calc(9px + env(safe-area-inset-bottom))}.nav-item{gap:6px}.nav-item svg{width:25px;height:25px}.nav-item b{font-size:12px}
.manager-screen{min-height:calc(100dvh - 84px);padding:0 15px 118px}.manager-header{top:84px;margin:0 -15px;padding:12px 15px;grid-template-columns:48px 1fr 48px}.manager-header h1{font-size:21px}.manager-content{gap:14px;padding-top:14px}.manager-card{padding:16px;border-radius:22px}.search-shell{height:58px}.search-shell input{font-size:15px}.favorite-row,.customer-row,.ledger-row{padding:15px;border-radius:18px}.favorite-row strong,.customer-row strong{font-size:16px}.favorite-row small,.customer-row small{font-size:12px;line-height:1.55}.tiny-btn{font-size:12px;padding:9px 12px}.empty-state{font-size:13px;padding:34px 14px}.summary-box{padding:14px 9px}.summary-box small{font-size:11px}.summary-box b{font-size:15px}.filter-bar{gap:10px}.filter-bar label{font-size:12px}.filter-bar input{height:50px;font-size:14px;padding:0 11px}.preset-btn{padding:10px 14px;font-size:12px}.ledger-row b{font-size:14px}.ledger-row small{font-size:11px;line-height:1.55}.ledger-amount{font-size:15px}.customer-total{font-size:20px}
.modal-sheet{width:min(100%,520px);padding:12px 16px calc(20px + env(safe-area-inset-bottom))}.modal-head h2{font-size:21px}.modal-form{gap:13px}.modal-form label{font-size:13px}.modal-form input,.modal-form select,.modal-form textarea{height:56px;font-size:15px}.modal-form textarea{height:86px}.modal-submit{height:58px;font-size:15px}.modal-note{font-size:12px}
.step-description{font-size:14px!important;line-height:1.9}.step-card-head strong{font-size:17px!important}.step-card-head small{font-size:12px!important}.step-option,.step-link{font-size:14px!important;min-height:54px}.step-field-label{font-size:13px!important}.step-field-hint{font-size:11px!important}

.manager-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:6px;background:#eeeae5;border-radius:18px;position:sticky;top:152px;z-index:26;box-shadow:0 8px 24px rgba(42,36,28,.05)}
.manager-tab{height:50px;border:0;border-radius:14px;background:transparent;color:#7b8290;font-size:15px;font-weight:900}.manager-tab.active{background:#fff;color:var(--orange);box-shadow:0 6px 18px rgba(42,36,28,.08)}
.info-strip{display:grid;gap:5px}.info-strip b{font-size:16px}.info-strip small{font-size:12px;color:var(--muted);line-height:1.6}
.account-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-card>div{display:grid;gap:4px}.account-card strong{font-size:18px}.account-card small{font-size:13px;color:var(--muted)}
.load-more{min-height:58px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:12px}.mini-spinner{width:19px;height:19px;border-radius:50%;border:2px solid #e6ddd5;border-top-color:var(--orange);animation:spin .7s linear infinite}
.transfer-list{display:grid;gap:11px}.transfer-row{border:1px solid #eee8e1;background:#fff;border-radius:19px;padding:15px;display:grid;gap:12px}.transfer-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.transfer-row-head>span{display:grid;gap:4px}.transfer-row-head b{font-size:16px}.transfer-row-head small{font-size:11px;color:var(--muted)}.status-pill{font-style:normal;white-space:nowrap;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900}.status-pill.good{background:#eaf9f3;color:#168663}.status-pill.warn{background:#fff6d9;color:#8a6b00}.status-pill.bad{background:#fff0f1;color:#bc3e4a}.transfer-details{display:grid;grid-template-columns:1fr 1fr;gap:8px}.transfer-details span{display:grid;gap:2px;padding:9px 10px;border-radius:13px;background:#f9f7f4;color:var(--muted);font-size:11px}.transfer-details b{color:var(--ink);font-size:13px}.record-reason{padding:10px 11px;border-radius:13px;background:#fff6f6;color:#a94b54;font-size:12px;line-height:1.6}.filter-card{display:grid;gap:11px}
@media(max-width:370px){.summary-grid{grid-template-columns:1fr}.transfer-details{grid-template-columns:1fr}.manager-tabs{top:152px}}

/* One-tap transfer result dialog */
.result-dialog{display:grid;gap:14px}.result-badge{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:18px;padding:16px;font-size:16px}.result-badge span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:1000}.result-badge.good{background:#eaf9f3;color:#168663}.result-badge.good span{background:#d5f4e8}.result-badge.warn{background:#fff7de;color:#8a6b00}.result-badge.warn span{background:#ffedaf}.result-badge.bad{background:#fff0f1;color:#bc3e4a}.result-badge.bad span{background:#ffdce0}.result-order-id{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff}.result-order-id small{font-size:12px;color:var(--muted);font-weight:800}.result-order-id b{font-size:17px}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.result-grid>div{display:grid;gap:5px;padding:12px;border-radius:15px;background:#f8f5f1;border:1px solid #eee8e1}.result-grid small{font-size:11px;color:var(--muted);font-weight:800}.result-grid b{font-size:14px;overflow-wrap:anywhere}.result-message{padding:13px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:13px;line-height:1.8;color:#555e6e}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-actions button{height:54px;border-radius:16px;font-weight:1000;font-size:14px}.result-share{border:0;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff}.result-close{border:1px solid var(--line);background:#fff;color:var(--ink)}
/* 2026-09-17 prepaid shops + self-registration */
.secondary-auth-btn{width:100%;min-height:50px;margin-top:10px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font-weight:900;font-size:14px}.register-form{display:grid;gap:12px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:22px;background:#fff}.register-form[hidden]{display:none}.register-head{display:grid;gap:4px}.register-head strong{font-size:18px}.register-head small{font-size:12px;color:var(--muted);line-height:1.6}.register-form label{display:grid;gap:7px;font-size:12px;font-weight:900;color:#5d6572}.register-form input,.register-form select{width:100%;height:52px;border:1px solid var(--line);border-radius:14px;background:#fbfaf8;padding:0 12px;font-size:14px;outline:0}.register-form input:focus,.register-form select:focus{border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.07)}.register-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wallet-card{margin:0 0 14px;padding:17px;border-radius:24px;background:#fff;border:1px solid #eadfd6;box-shadow:0 10px 30px rgba(42,36,28,.06);display:flex;align-items:center;justify-content:space-between;gap:14px}.wallet-card[hidden]{display:none}.wallet-card>div{display:grid;gap:4px}.wallet-kicker{font-size:11px;color:var(--orange);font-weight:1000}.wallet-card strong{font-size:24px}.wallet-card small{font-size:11px;color:var(--muted);line-height:1.5}.wallet-card button{min-height:50px;border:0;border-radius:16px;padding:0 13px;background:linear-gradient(135deg,var(--orange),var(--orange-2));color:#fff;font-weight:1000;display:flex;align-items:center;gap:7px}.wallet-card button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}@media(max-width:420px){.register-grid{grid-template-columns:1fr}.wallet-card{align-items:stretch;flex-direction:column}.wallet-card button{justify-content:center}}

/* Wholesale target selector: additive UI only, no database schema changes. */
.wholesale-target-card{margin-top:12px;padding:14px;border:1px solid rgba(22,70,53,.12);border-radius:16px;background:#fff}.wholesale-target-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.wholesale-target-head span{font-size:13px;color:#6b746f}.wholesale-target-head strong{font-size:15px;direction:ltr;text-align:left;word-break:break-all}.wholesale-override-toggle{display:flex;align-items:center;gap:9px;margin-top:12px;font-weight:700;cursor:pointer}.wholesale-override-toggle input{width:18px;height:18px}.wholesale-target-card .field{margin-top:12px}.register-form select{width:100%;min-height:48px;border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:0 12px;background:#fff;font:inherit}.register-form select:disabled{opacity:.6}

/* 2026-09-17 prepaid balance presentation */
.prepaid-balance-card{position:relative;overflow:hidden;padding:0;background:linear-gradient(145deg,#fff 0%,#fffaf6 100%);border:1px solid #f0dfd2;box-shadow:0 18px 42px rgba(63,42,25,.09)}
.prepaid-balance-card:before{content:"";position:absolute;inset:auto -42px -72px auto;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(255,107,34,.14),rgba(255,107,34,0) 68%);pointer-events:none}
.wallet-card-main{position:relative;z-index:1;flex:1;padding:18px 18px 17px;display:grid;gap:10px}
.wallet-card-title-row{display:flex;align-items:center;gap:10px}.wallet-card-title-row>div{display:grid;gap:2px;min-width:0}.wallet-card-title-row b{font-size:13px;color:#2f2b27}.wallet-icon-badge{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#fff0e7,#ffe1d0);color:var(--orange);box-shadow:inset 0 0 0 1px rgba(255,107,34,.08)}.wallet-icon-badge svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9}
.wallet-status{margin-inline-start:auto;align-self:flex-start;padding:6px 9px;border-radius:999px;background:#ecf9f0;color:#237842;font-size:10px;font-weight:1000;white-space:nowrap}.wallet-status.is-empty{background:#fff0ec;color:#b6492e}
.wallet-balance-line{display:flex;align-items:baseline;gap:7px;direction:ltr;justify-content:flex-end}.wallet-balance-line strong{font-size:32px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.5px;color:#201c19}.wallet-balance-line span{font-size:12px;font-weight:1000;color:#82766e}.prepaid-balance-card .wallet-kicker{font-size:10px;letter-spacing:.1px}.prepaid-balance-card small{font-size:11px;color:#7d736c;line-height:1.6}
.wallet-topup-btn{position:relative;z-index:1;align-self:stretch;min-width:142px;border:0;border-radius:0;padding:0 18px;background:linear-gradient(145deg,var(--orange),#f45113);color:#fff;font-weight:1000;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:none}.wallet-topup-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}.wallet-topup-btn>span{display:grid;text-align:right;gap:2px}.wallet-topup-btn b{font-size:14px}.wallet-topup-btn small{color:rgba(255,255,255,.82);font-size:9px;font-weight:800}.wallet-topup-btn:active{transform:translateY(1px)}
.prepaid-topup-tile{border-color:#ffd7c1!important;background:linear-gradient(145deg,#fff,#fff8f4)!important}.prepaid-topup-tile .service-icon.settle{background:linear-gradient(135deg,#fff0e7,#ffdcc8)!important;color:var(--orange)!important}
@media(max-width:520px){.prepaid-balance-card{flex-direction:column;align-items:stretch}.wallet-topup-btn{min-height:58px;border-radius:0 0 22px 22px}.wallet-balance-line{justify-content:flex-start}.wallet-card-main{width:100%}}

/* 2026-09-26 home UI refresh */
.home-screen{padding:var(--ui-home-top,10px) var(--ui-home-side,15px) var(--ui-home-bottom,30px);transition:padding .16s ease}
.hero-transfer{padding:var(--ui-hero-padding,21px);padding-top:var(--ui-hero-top-padding,15px);border-radius:var(--ui-hero-radius,30px);transition:padding .16s ease,border-radius .16s ease}
.trade-switch{max-width:330px;margin:0 auto 16px;padding:var(--ui-trade-shell-pad,4px);gap:var(--ui-trade-gap,5px);border-radius:var(--ui-trade-radius,17px);transition:padding .16s ease,gap .16s ease,border-radius .16s ease}
.trade-option{padding:var(--ui-trade-item-y,7px) 7px;border-radius:var(--ui-trade-item-radius,13px);min-height:var(--ui-trade-height,48px);transition:min-height .16s ease,padding .16s ease,border-radius .16s ease}
.trade-option span{font-size:13px}.trade-option small{font-size:8px}
.network-indicator{border:0;appearance:none;transition:.16s;line-height:1;white-space:nowrap}
.network-indicator:not(:disabled){cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.035),0 4px 12px rgba(42,36,28,.06)}
.network-indicator:not(:disabled):active{transform:scale(.97)}
.network-indicator:disabled{opacity:1;cursor:default}
.network-indicator.is-toggleable:after{content:"↔";font-size:8px;margin-inline-start:4px;opacity:.7}

/* The size control stays at the very top of the home screen. It changes layout density, not font size. */
.icon-scale-control{display:grid;grid-template-columns:minmax(112px,1fr) auto minmax(105px,1.25fr) auto auto;align-items:center;gap:8px;margin:0 0 12px;padding:10px 11px;border:1px solid #eee8e1;border-radius:17px;background:rgba(255,255,255,.94);box-shadow:0 6px 20px rgba(42,36,28,.045);backdrop-filter:blur(12px)}
.icon-scale-copy{display:grid;gap:1px}.icon-scale-copy span{font-size:11px;font-weight:1000}.icon-scale-copy small{font-size:8px;color:var(--muted);line-height:1.45}
.icon-scale-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#f4f1ed;font-weight:1000;color:#7f8795;line-height:1}.icon-scale-mark.small{font-size:16px}.icon-scale-mark.large{font-size:16px}
.icon-scale-control input[type="range"]{width:100%;accent-color:var(--orange);cursor:pointer}.icon-scale-control output{min-width:42px;text-align:center;padding:5px 6px;border-radius:999px;background:var(--orange-soft);color:var(--orange);font-size:9px;font-weight:1000}

/* Uniform home scaling: every glyph, label, icon, field and card scales together. */
.home-scale-area{
  --home-zoom:1;
  zoom:var(--home-zoom);
  width:100%;
  transform-origin:top center;
}
@supports not (zoom:1){
  .home-scale-area{
    transform:scale(var(--home-zoom));
    transform-origin:top center;
  }
}
@media(max-width:420px){.icon-scale-control{grid-template-columns:1fr auto minmax(90px,1.1fr) auto}.icon-scale-control output{grid-column:1/-1;justify-self:end;margin-top:-2px}.icon-scale-copy small{display:none}}
@media(max-width:360px){.trade-switch{max-width:100%}.icon-scale-control{grid-template-columns:1fr auto minmax(80px,1fr) auto}.service-grid{grid-template-columns:1fr 1fr}}



/* v1.1.3: wholesale code auto-detection + tier-only balance UI */
.wholesale-default-choices{display:flex;gap:7px;overflow:auto;margin-top:10px;padding:2px 0}.wholesale-code-chip{flex:none;border:1px solid #e7ddd4;background:#fff;border-radius:13px;padding:9px 12px;font-weight:900;font-size:12px;direction:ltr}.wholesale-code-chip.selected{background:#fff3eb;border-color:#ffc8a9;color:var(--orange)}
.tier-suggestions.tier-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:8px;padding-top:10px}.tier-suggestions.tier-picker .tier-chip{width:100%;text-align:center;padding:11px 6px}.amount-entry[hidden]{display:none!important}
@media(max-width:370px){.tier-suggestions.tier-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.1.4: centered responsive layout + modal-only tier picker */
html,body,.portal-view{width:100%;max-width:100%;overflow-x:hidden}
.app-shell{width:100%;max-width:480px;margin-inline:auto;overflow-x:hidden}
.app-main,.home-screen,.home-scale-area,.hero-transfer{min-width:0;max-width:100%}
.home-scale-area{margin-inline:auto;contain:layout style}
.tier-suggestions{display:none!important}
.tier-picker-entry{margin-top:8px}
.tier-picker-button{width:100%;min-height:58px;border:1px solid var(--line);border-radius:19px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--ink);text-align:right}
.tier-picker-button:hover{border-color:#ffb58d;box-shadow:0 0 0 4px rgba(255,107,34,.07)}
.tier-picker-copy{display:grid;gap:2px;flex:1;min-width:0}.tier-picker-copy small{font-size:9px;color:var(--muted);font-weight:800}.tier-picker-copy strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tier-picker-button em{font-style:normal;font-size:24px;color:#a0a6b0}
.tier-dialog-btn.selected{background:#fff3eb;border-color:#ffc8a9;color:var(--orange)}
.wholesale-default-choices{max-width:100%;padding-bottom:4px}.wholesale-code-chip{max-width:100%;overflow-wrap:anywhere}
@media(max-width:520px){.modal-sheet{left:0;right:0;transform:none;width:100%;max-width:100%}.tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:340px){.tier-grid{grid-template-columns:1fr}.home-screen{padding-inline:9px}.hero-transfer{padding-inline:13px}}

/* v1.1.5: unified viewport-safe dialogs */
body.modal-open{overflow:hidden;overscroll-behavior:none}
.app-modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:16px;
  overflow:hidden;
}
.app-modal .modal-backdrop{position:absolute;inset:0}
.app-modal .modal-sheet{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  transform:none;
  width:min(100%,520px);
  max-width:520px;
  max-height:calc(100dvh - 32px);
  margin:0;
  padding:10px 16px calc(16px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fbf8f4;
  border-radius:28px;
  box-shadow:0 28px 80px rgba(0,0,0,.20);
}
.app-modal .modal-handle{flex:none;margin:0 auto 8px}
.app-modal .modal-head{
  flex:none;
  position:relative;
  z-index:2;
  padding:4px 0 12px;
  background:#fbf8f4;
}
.app-modal .modal-body{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-bottom:2px;
  -webkit-overflow-scrolling:touch;
}
.app-modal .tier-grid{align-content:start}

@media(max-width:520px){
  .app-modal{
    place-items:end center;
    padding:10px 0 0;
  }
  .app-modal .modal-sheet{
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 10px);
    border-radius:28px 28px 0 0;
    padding:10px 14px calc(18px + env(safe-area-inset-bottom));
  }
  .app-modal .tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-height:620px) and (min-width:521px){
  .app-modal{padding:10px}
  .app-modal .modal-sheet{max-height:calc(100dvh - 20px);border-radius:22px}
}

/* =========================================================
   v1.2.0 — Premium white/blue visual system
   UI-only refresh. Transfer fields and execution hooks remain intact.
   ========================================================= */
:root{
  --bg:#f4f8ff;
  --surface:#ffffff;
  --surface-2:#f6f9fe;
  --ink:#0f2850;
  --muted:#7c8da8;
  --line:#dce7f5;
  --orange:#1677f2;
  --orange-2:#4ba4ff;
  --orange-soft:#edf5ff;
  --blue:#1677f2;
  --violet:#7567e8;
  --green:#18b77d;
  --red:#e64a5d;
  --shadow:0 18px 48px rgba(28,73,132,.10);
  --shadow-sm:0 8px 24px rgba(28,73,132,.07);
  --blue-soft:#eef6ff;
  --blue-soft-2:#dff0ff;
  --navy:#0d2b57;
}
html,body,.portal-view{background:linear-gradient(180deg,#f8fbff 0%,#f1f6fd 100%)}
.app-shell{background:linear-gradient(180deg,#f9fcff 0%,#f5f9ff 100%);box-shadow:0 0 0 1px rgba(23,79,150,.035)}
.app-header{height:78px;padding:13px 18px 8px;background:rgba(249,252,255,.90);border-bottom:1px solid rgba(220,231,245,.45);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.header-main{display:flex;align-items:center;gap:11px;min-width:0}.menu-trigger{width:43px;height:43px;flex:none;border:1px solid #d8e6f7;border-radius:15px;background:#fff;color:#0e4388;display:grid;place-items:center;box-shadow:0 7px 20px rgba(31,86,154,.07)}.menu-trigger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9}.profile-copy span{color:#8b9ab2;font-size:10px}.profile-copy strong{color:var(--navy);font-size:15px}.user-avatar{width:42px;height:42px;border-radius:15px;background:linear-gradient(145deg,#eff7ff,#dcecff);color:#237cf1;box-shadow:none;border:1px solid #d8e8fb}.user-avatar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
.home-screen{padding:8px 13px 28px}.app-main{padding-bottom:92px}

/* Summary carousel */
.dashboard-carousel-shell{margin:2px 0 14px;overflow:hidden}.stats-carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 3px 4px;direction:rtl;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.stats-carousel::-webkit-scrollbar{display:none}.summary-card{position:relative;flex:0 0 calc(100% - 18px);min-height:168px;scroll-snap-align:center;border-radius:28px;padding:18px 19px;overflow:hidden;border:1px solid rgba(181,211,246,.7);box-shadow:0 14px 34px rgba(31,88,158,.09);background:linear-gradient(135deg,#f7fbff 0%,#e7f4ff 55%,#dcecff 100%);isolation:isolate}.summary-card:before,.summary-card:after{content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:-1}.summary-card:before{width:170px;height:170px;left:-78px;top:-86px;background:rgba(255,255,255,.52)}.summary-card:after{width:150px;height:150px;right:-78px;bottom:-88px;background:rgba(92,160,243,.13)}.dues-summary-card{background:linear-gradient(135deg,#fbfdff 0%,#eef7ff 56%,#e8f2ff 100%)}.today-total-card{background:linear-gradient(135deg,#f2f9ff 0%,#dcefff 64%,#d7ebff 100%)}.today-count-card{background:linear-gradient(135deg,#f7f6ff 0%,#e9e9ff 60%,#e1ecff 100%)}.summary-card-head{display:flex;align-items:center;gap:11px;position:relative;z-index:2}.summary-card-head>div{display:grid;gap:2px}.summary-card-head b{font-size:15px;color:#0b2a57}.summary-card-head small{font-size:9px;color:#8193ad}.summary-icon{width:43px;height:43px;border-radius:14px;background:rgba(255,255,255,.76);color:#247ef0;display:grid;place-items:center;box-shadow:0 7px 20px rgba(36,105,189,.10);border:1px solid rgba(255,255,255,.88)}.summary-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}.summary-value{display:flex;align-items:baseline;gap:8px;margin-top:25px;direction:ltr;justify-content:flex-end}.summary-value strong{font-size:35px;letter-spacing:-1px;color:#092752;font-variant-numeric:tabular-nums}.summary-value span{font-size:12px;color:#617893;font-weight:900}.mini-bars{position:absolute;left:25px;bottom:23px;display:flex;align-items:end;gap:5px;height:58px;direction:ltr;opacity:.74}.mini-bars i{display:block;width:8px;border-radius:8px;background:linear-gradient(180deg,#58adff,#1b74eb)}.mini-bars i:nth-child(1){height:19px;opacity:.35}.mini-bars i:nth-child(2){height:31px;opacity:.5}.mini-bars i:nth-child(3){height:44px;opacity:.7}.mini-bars i:nth-child(4){height:58px}.count-orb{position:absolute;width:88px;height:88px;left:24px;bottom:18px;border-radius:28px;background:radial-gradient(circle at 35% 30%,#fff,rgba(104,118,240,.15) 50%,rgba(43,124,241,.04) 75%);border:1px solid rgba(255,255,255,.65)}.stats-dots{display:flex;gap:5px;justify-content:center;align-items:center;margin-top:7px;direction:ltr}.stats-dots i{display:block;width:6px;height:6px;border-radius:999px;background:#cbd7e7;transition:.25s}.stats-dots i.active{width:25px;background:#1a65cb}
.dues-currency-carousel{height:78px;margin-top:15px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;border-radius:18px}.dues-currency-carousel::-webkit-scrollbar{display:none}.currency-pane{height:78px;scroll-snap-align:start;display:flex;align-items:center;gap:12px;padding:8px 10px;background:rgba(255,255,255,.60);border:1px solid rgba(255,255,255,.80);border-radius:18px}.currency-badge{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:1000;flex:none}.currency-badge.syp{background:#eaf4ff;color:#176fcf}.currency-badge.usd{background:#edf9f3;color:#13885e}.currency-copy{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:7px;direction:ltr;text-align:right;flex:1}.currency-copy small{grid-column:1/-1;direction:rtl;color:#71849e;font-size:9px;margin-bottom:2px}.currency-copy strong{font-size:25px;color:#102d59;font-variant-numeric:tabular-nums}.currency-copy em{font-style:normal;font-size:10px;color:#69809d;font-weight:900}

/* Prepaid strip retained because it is functional account information */
.prepaid-balance-card{border-color:#d8e8fa;background:linear-gradient(145deg,#fff,#edf6ff);box-shadow:0 12px 32px rgba(34,90,157,.08);margin-bottom:12px}.prepaid-balance-card:before{background:radial-gradient(circle,rgba(61,145,241,.13),rgba(61,145,241,0) 68%)}.wallet-icon-badge{background:linear-gradient(135deg,#eaf4ff,#d9ebff);color:#1677f2}.wallet-topup-btn{background:linear-gradient(145deg,#1d79ed,#429dfc)}

/* Transfer card */
.hero-transfer{padding:17px;border-radius:28px;background:rgba(255,255,255,.96);border:1px solid #dfeaf7;box-shadow:0 16px 42px rgba(35,83,142,.08)}.trade-switch{background:#f1f5fb;border:1px solid #e6edf7}.trade-option{color:#74849d}.trade-option.active{background:linear-gradient(135deg,#1c75eb,#368ff8);color:#fff;box-shadow:0 9px 22px rgba(31,118,232,.22)}.trade-option.active span,.trade-option.active small{color:#fff}.field-label-row label,.section-mini-title span{color:#17345f}.network-indicator.neutral{background:#f0f4f9;color:#7f8ea3}.phone-entry,.favorite-pick-btn,.tier-picker-button,.amount-entry,.money-input,.wholesale-target-card{border-color:#dfe8f3;background:#fff}.phone-entry:focus-within,.input-shell:focus-within{border-color:#8dc0fa;box-shadow:0 0 0 4px rgba(32,126,240,.08)}.phone-icon{background:#edf5ff;color:#327fdc}.favorite-pick-btn svg{color:#1c76e8}.wholesale-note{background:#eef6ff;border-color:#d6e8fb}.note-icon{background:#fff;color:#1976e8}.wholesale-code-chip.selected,.tier-dialog-btn.selected{background:#eaf4ff;border-color:#98c5f7;color:#176fcf}.operation-grid{gap:9px}.operation-btn{border-color:#e0e9f3;background:#fff}.operation-btn.active{border-color:#5da5f6;background:linear-gradient(180deg,#f8fbff,#edf6ff);box-shadow:0 0 0 3px rgba(32,126,240,.07),0 8px 20px rgba(38,97,164,.06)}.operation-btn.active b{color:#156fd5}.op-icon.blue{background:#e9f3ff;color:#1677f2}.op-icon.violet{background:#f0edff;color:#7567e8}.op-icon.green{background:#e9faf4;color:#15a873}.debt-option{border-top-color:#e6edf7}.switch-ui{background:#dce4ee}.debt-switch input:checked+.switch-ui{background:#2784f3}.cta-btn,.primary-btn,.step-submit,.modal-submit{background:linear-gradient(135deg,#146fe8,#3995f8);box-shadow:0 14px 30px rgba(28,116,229,.22)}.quick-error{color:#d93c52}

/* Bottom navigation */
.bottom-nav{height:80px;padding:7px 11px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #dfe8f3;box-shadow:0 -10px 32px rgba(24,66,118,.07);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.nav-item{position:relative;color:#8796aa}.nav-item svg{width:22px;height:22px}.nav-item b{font-size:10px}.nav-item.active{color:#126fe8}.nav-item.active:after{content:"";position:absolute;top:-7px;width:29px;height:3px;border-radius:5px;background:#1677f2}.nav-item.active svg{filter:drop-shadow(0 5px 9px rgba(22,119,242,.18))}

/* Side drawer */
body.drawer-open{overflow:hidden;overscroll-behavior:none}.side-drawer{position:fixed;z-index:150;top:0;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);overflow:hidden}.drawer-backdrop{position:absolute;inset:0;background:rgba(9,33,66,.28);opacity:0;transition:opacity .22s ease;backdrop-filter:blur(2px)}.drawer-panel{position:absolute;top:0;right:0;width:min(89%,410px);height:100%;padding:18px 16px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fbfdff,#f6faff);box-shadow:-22px 0 52px rgba(15,54,105,.20);transform:translateX(104%);transition:transform .24s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;overflow:hidden;border-left:1px solid rgba(204,223,246,.9)}.side-drawer.open .drawer-backdrop{opacity:1}.side-drawer.open .drawer-panel{transform:translateX(0)}.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.drawer-close{font-size:24px;color:#244b7d;background:#fff;border-color:#dbe7f5}.drawer-brand{display:flex;align-items:center;gap:10px}.drawer-brand>div{display:grid;gap:1px}.drawer-brand strong{font-size:18px;color:#0b2a55}.drawer-brand small{font-size:9px;color:#8a9ab1}.drawer-logo{width:43px;height:43px;border-radius:15px;background:linear-gradient(145deg,#1c75eb,#55a9ff);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(26,116,229,.22)}.drawer-logo svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2}.drawer-shop-card{margin:18px 0 12px;padding:13px;border-radius:19px;background:#fff;border:1px solid #e0eaf5;box-shadow:0 8px 24px rgba(29,74,132,.06);display:flex;align-items:center;gap:11px;flex:none}.drawer-shop-icon{width:39px;height:39px;border-radius:13px;background:#edf5ff;color:#247af0;display:grid;place-items:center}.drawer-shop-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.drawer-shop-card>div{display:grid;gap:2px}.drawer-shop-card small{font-size:9px;color:#8b99ad}.drawer-shop-card strong{font-size:13px;color:#18385f}.drawer-services{min-height:0;flex:1;overflow-y:auto;padding:0 2px 8px;scrollbar-width:none}.drawer-services::-webkit-scrollbar{display:none}.drawer-services-section{margin:0;padding:0}.drawer-services-section .section-heading{margin:6px 3px 8px}.drawer-services-section .section-heading h2{font-size:14px;margin:2px 0}.drawer-services-section .section-heading .kicker{color:#2378e8}.drawer-services-section #showAllServices{display:none}.drawer-services-section .service-grid{display:grid;grid-template-columns:1fr;gap:7px}.drawer-services-section .service-tile{min-height:62px;border-radius:18px;padding:9px 11px;grid-template-columns:auto 1fr auto;border-color:#e1eaf5;background:#fff;box-shadow:0 5px 17px rgba(26,69,123,.045)}.drawer-services-section .service-tile b{font-size:12px;color:#18365d}.drawer-services-section .service-tile small{font-size:9px;color:#8998ac}.drawer-services-section .service-icon{width:37px;height:37px;border-radius:12px}.drawer-services-section .service-icon svg{width:19px;height:19px}.drawer-services-section .service-icon.game,.drawer-services-section .service-icon.bill,.drawer-services-section .service-icon.transfer,.drawer-services-section .service-icon.history,.drawer-services-section .service-icon.security,.drawer-services-section .service-icon.contact,.drawer-services-section .service-icon.more{background:#edf5ff;color:#2479e9}.drawer-services-section .service-icon.settle{background:#e9faf4;color:#10a873}.drawer-services-section .service-icon.account{background:#fff7df;color:#dfa315}.drawer-services-section .service-icon.dues{background:#f0edff;color:#7567e8}.drawer-settings{flex:none;margin-top:8px}.drawer-scale-control{margin:0;padding:9px;grid-template-columns:minmax(100px,1fr) auto minmax(80px,1fr) auto auto;border-color:#e1eaf5;background:#fff;box-shadow:none}.drawer-scale-control input[type=range]{accent-color:#1677f2}.drawer-scale-control output{background:#edf5ff;color:#1677f2}.drawer-logout{flex:none;margin-top:10px;height:54px;border:1px solid #ffdfe4;border-radius:17px;background:#fff5f6;color:#d9364c;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:900}.drawer-logout svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}

/* Record list */
.flow-screen{padding:7px 13px 24px}.flow-header{padding:7px 1px 13px}.flow-title-wrap span{color:#7e91ab}.flow-title-wrap h1{color:#102e59}.records-toolbar{display:flex;gap:7px;position:sticky;top:77px;z-index:3;padding:7px 0 11px;background:linear-gradient(180deg,#f5f9ff 75%,rgba(245,249,255,0))}.record-filter{border:1px solid #dce7f4;background:#fff;color:#6d8099;border-radius:999px;padding:8px 15px;font-weight:900;font-size:10px}.record-filter.active{background:#1677f2;color:#fff;border-color:#1677f2;box-shadow:0 7px 18px rgba(24,112,226,.19)}.records-list{display:grid;gap:11px}.transfer-record-card{position:relative;overflow:hidden;border:1px solid #dde8f5;border-radius:24px;padding:15px 16px 13px;background:#fff;box-shadow:0 10px 28px rgba(29,75,132,.07)}.transfer-record-card.mtn{background:linear-gradient(135deg,#fff 0%,#fffdf5 100%)}.transfer-record-card.syriatel{background:linear-gradient(135deg,#fff 0%,#fff7f8 100%)}.record-accent{position:absolute;right:0;top:0;bottom:0;width:4px}.transfer-record-card.mtn .record-accent{background:linear-gradient(#f3c719,#2c73d8)}.transfer-record-card.syriatel .record-accent{background:linear-gradient(#ef3d56,#db1934)}.record-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.record-network{display:flex;align-items:center;gap:9px}.record-network>div{display:grid;gap:2px}.record-network strong{font-size:13px;color:#152f55}.record-network small{font-size:9px;color:#8998ad}.record-logo{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:1000;direction:ltr}.record-logo.mtn{background:#ffdf29;color:#173e78;box-shadow:inset 0 0 0 3px rgba(255,255,255,.65)}.record-logo.syriatel{background:#ef3b51;color:#fff;box-shadow:inset 0 0 0 3px rgba(255,255,255,.75)}.record-status{padding:6px 9px;border-radius:999px;font-size:9px;font-weight:1000}.record-status.success{background:#e5f8ed;color:#15844b}.record-status.failed{background:#ffe8eb;color:#d7354a}.record-status.pending{background:#fff4d8;color:#94701a}.record-main{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px;margin-top:13px;padding-top:11px;border-top:1px solid rgba(216,229,244,.75)}.record-reference,.record-amount{display:grid;gap:2px}.record-reference span,.record-amount span,.record-target span,.record-meta-line span{font-size:9px;color:#8898ad}.record-reference strong{font-size:18px;color:#102d59;direction:ltr;text-align:right}.record-amount{padding:8px 12px;border-radius:16px;background:#eef6ff;text-align:left;direction:ltr;grid-template-columns:auto auto;align-items:baseline}.record-amount span{grid-column:1/-1;text-align:right;direction:rtl}.record-amount strong{font-size:20px;color:#176fd3}.record-amount em{font-size:9px;font-style:normal;color:#54779f;font-weight:900}.record-target,.record-meta-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.record-target b,.record-meta-line b{font-size:11px;color:#344f72;direction:ltr;overflow-wrap:anywhere}.record-footer{display:flex;align-items:center;gap:6px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(216,229,244,.7);color:#70849f;font-size:10px;direction:ltr;justify-content:flex-end}.record-footer svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.dues-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.dues-modal-card{border-radius:19px;padding:14px;display:grid;gap:5px;border:1px solid #dce8f5}.dues-modal-card.syp{background:#edf6ff}.dues-modal-card.usd{background:#edf9f4}.dues-modal-card span{font-size:9px;color:#7b8da5}.dues-modal-card strong{font-size:23px;color:#15335f;direction:ltr;text-align:right}.dues-modal-card small{font-size:9px;color:#6b819d}

/* Unified blue dialogs and controls */
.app-modal .modal-sheet{background:#f7faff}.app-modal .modal-head{background:#f7faff}.kicker{color:#1677f2}.tiny-btn.primary{background:#eaf4ff;color:#176fd3;border-color:#bfdbfb}.round-btn{border-color:#dce7f4;color:#476486}.icon-scale-control{border-color:#dfe9f5}.icon-scale-control input[type=range]{accent-color:#1677f2}.icon-scale-control output{background:#edf5ff;color:#1677f2}.tier-picker-button:hover{border-color:#8ebff7;box-shadow:0 0 0 4px rgba(32,126,240,.07)}

@media(max-width:390px){.summary-card{flex-basis:calc(100% - 12px);padding:16px}.summary-value strong{font-size:31px}.drawer-panel{width:92%}.dues-modal-grid{grid-template-columns:1fr}.record-main{grid-template-columns:1fr auto}}
.stats-carousel{direction:ltr}.summary-card{direction:rtl}

/* v121 - paged records, server search, filter dialog, debt search */
.today-count-card,.today-total-card,.dues-summary-card{
  background:linear-gradient(135deg,#fbfdff 0%,#eef7ff 56%,#e6f2ff 100%);
}
.today-count-card .count-orb{
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.95),rgba(96,170,255,.16) 52%,rgba(43,124,241,.05) 78%);
  border-color:rgba(255,255,255,.8);
}
.records-controlbar{position:sticky;top:76px;z-index:6;display:grid;grid-template-columns:minmax(0,1fr) 50px;gap:9px;padding:8px 0 5px;background:linear-gradient(180deg,#f5f9ff 78%,rgba(245,249,255,.94) 90%,rgba(245,249,255,0));backdrop-filter:blur(12px)}
.record-search-shell{height:50px;display:flex;align-items:center;gap:9px;padding:0 14px;border-radius:17px;background:#fff;border:1px solid #dce7f4;box-shadow:0 7px 22px rgba(29,75,132,.055)}
.record-search-shell svg,.debt-search-shell svg{width:19px;height:19px;fill:none;stroke:#4d78ad;stroke-width:1.9;flex:none}
.record-search-shell input,.debt-search-shell input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#17375f;font:inherit;font-size:12px;font-weight:750;text-align:right}
.record-search-shell input::placeholder,.debt-search-shell input::placeholder{color:#97a6b9}
.records-filter-button{position:relative;width:50px;height:50px;border:1px solid #dce7f4;border-radius:17px;background:#fff;color:#276fca;display:grid;place-items:center;box-shadow:0 7px 22px rgba(29,75,132,.055)}
.records-filter-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9}
.records-filter-button.active{background:#eaf4ff;border-color:#acd1fb;color:#116ddd}
.records-filter-button span{position:absolute;top:-5px;left:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#1677f2;color:#fff;font-size:9px;font-weight:1000;display:grid;place-items:center;border:2px solid #f5f9ff}
.records-filter-summary{min-height:24px;padding:1px 4px 7px;color:#7388a3;font-size:9px;font-weight:800}
.records-loading{padding:24px;text-align:center;color:#7589a3;font-size:11px}
.records-load-sentinel{min-height:58px;display:flex;align-items:center;justify-content:center;gap:7px;color:#8495aa;font-size:10px;font-weight:800;text-align:center}
.load-pulse{width:8px;height:8px;border-radius:50%;background:#2785f2;box-shadow:0 0 0 0 rgba(39,133,242,.35);animation:loadPulse 1.5s infinite}
@keyframes loadPulse{70%{box-shadow:0 0 0 9px rgba(39,133,242,0)}100%{box-shadow:0 0 0 0 rgba(39,133,242,0)}}
.record-filter-form{gap:13px}.filter-date-grid,.filter-two-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.record-filter-form label{display:grid;gap:6px;color:#405b7e;font-size:10px;font-weight:900}.record-filter-form input,.record-filter-form select{width:100%;height:48px;border:1px solid #dce7f4;border-radius:15px;background:#fff;color:#17375f;padding:0 11px;outline:0;font:inherit;font-size:11px}.record-filter-form input:focus,.record-filter-form select:focus{border-color:#86baf5;box-shadow:0 0 0 4px rgba(30,123,234,.07)}
.record-filter-actions{display:grid;grid-template-columns:.72fr 1.28fr;gap:9px;align-items:center}.filter-reset-btn{height:50px;border-radius:16px;border:1px solid #dce7f4;background:#f3f7fc;color:#607a9b;font-weight:900;font-size:10px}.record-filter-actions .modal-submit{margin:0}
.debt-search-card{padding:10px!important}.debt-search-shell{height:48px;display:flex;align-items:center;gap:9px;padding:0 13px;border-radius:16px;background:#f8fbff;border:1px solid #dce8f5}
@media(max-width:390px){.filter-date-grid,.filter-two-grid{grid-template-columns:1fr}.records-controlbar{grid-template-columns:minmax(0,1fr) 48px}.records-filter-button{width:48px;height:48px}.record-search-shell{height:48px}}
.records-load-sentinel{margin-bottom:72px}

/* Wholesale carrier selection uses the existing network logo images. */
.wholesale-default-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible}
.wholesale-code-chip{width:100%;min-width:0;min-height:102px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;direction:rtl;padding:9px;border-radius:16px}
.wholesale-code-chip img{width:62px;height:62px;object-fit:contain;border-radius:10px;display:block}
.wholesale-code-chip span{font-size:13px;font-weight:900}
.wholesale-code-chip.selected{outline:2px solid #3995f8;outline-offset:1px}
.wholesale-favorite-pick{margin-top:10px}.internal-platform-grid{display:grid;gap:10px}.internal-platform-card{width:100%;border:1px solid #ece8e3;background:linear-gradient(145deg,#fff,#fbfaf8);border-radius:21px;padding:15px;display:grid;grid-template-columns:46px 1fr auto;gap:11px;align-items:center;text-align:right;color:var(--ink);box-shadow:0 9px 25px rgba(45,39,34,.04)}.internal-platform-card .pic{width:46px;height:46px;border-radius:16px;background:#eef4ff;color:#4268d6;display:grid;place-items:center;font-weight:1000}.internal-platform-card.sham .pic{background:#e9f9f1;color:#168459}.internal-platform-card.khuzai .pic{background:#fff2e8;color:var(--orange)}.internal-platform-card b{display:block;font-size:13px}.internal-platform-card small{color:#9097a3;font-size:9px}.internal-platform-card em{font-style:normal;color:#a3a8b0;font-size:22px}.internal-form-note{padding:11px 13px;border-radius:15px;background:#f5f8ff;color:#66728a;font-size:10px;line-height:1.7}.internal-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.internal-choice button{border:1px solid var(--line);background:#fff;border-radius:15px;padding:11px;color:#5d6677;font-weight:850}.internal-choice button.active{border-color:#9db8ff;background:#f3f6ff;color:#305bd1}.file-picked{font-size:10px;color:#168459;margin-top:5px}

/* Unified history cards: internal transfers, bills and games */
.transfer-record-card.internal{background:linear-gradient(135deg,#fff 0%,#f7fbff 100%)}
.transfer-record-card.internal.abily4 .record-accent{background:linear-gradient(#1578ef,#58a6ff)}
.transfer-record-card.internal.shamcash .record-accent{background:linear-gradient(#6c5ce7,#00b894)}
.transfer-record-card.internal.khuzai .record-accent{background:linear-gradient(#2d6a8d,#63b3cf)}
.transfer-record-card.bills{background:linear-gradient(135deg,#fff 0%,#f7fbff 100%)}
.transfer-record-card.bills .record-accent{background:linear-gradient(#4f7cff,#7aa7ff)}
.transfer-record-card.games{background:linear-gradient(135deg,#fff 0%,#fbf8ff 100%)}
.transfer-record-card.games .record-accent{background:linear-gradient(#7c5cff,#b58cff)}
.record-logo.abily4{background:#e9f4ff;color:#126fd1;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8)}
.record-logo.shamcash{background:#eeeaff;color:#5f4bc8;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8)}
.record-logo.khuzai{background:#e8f7fb;color:#246982;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8)}
.record-logo.bills{background:#eaf2ff;color:#315fca;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8)}
.record-logo.games{background:#f0eaff;color:#6b4bc8;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8);font-size:17px}

/* v126 - compact service dialogs, protected submits, distinct service history identities */
.app-modal.service-dialog .modal-sheet{
  width:min(calc(100% - 28px),446px);
  max-height:min(82dvh,720px);
  bottom:max(12px,env(safe-area-inset-bottom));
  border:1px solid rgba(202,219,239,.88);
  border-radius:27px;
  padding:9px 13px 14px;
  overflow:hidden;
  background:linear-gradient(180deg,#fbfdff 0%,#f6faff 100%);
  box-shadow:0 24px 70px rgba(22,58,104,.20),0 3px 14px rgba(22,58,104,.08);
}
.app-modal.service-dialog .modal-head{
  flex:none;
  padding:5px 2px 11px;
  border-bottom:1px solid rgba(215,229,245,.72);
}
.app-modal.service-dialog .modal-head h2{font-size:16px;color:#17365f}
.app-modal.service-dialog .modal-handle{background:#cfdced;margin-bottom:7px}
.app-modal.service-dialog .modal-body{
  max-height:calc(min(82dvh,720px) - 76px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 2px 4px;
  scrollbar-width:thin;
  scrollbar-color:#c8d9ed transparent;
}
.app-modal.service-dialog .modal-body::-webkit-scrollbar{width:5px}
.app-modal.service-dialog .modal-body::-webkit-scrollbar-thumb{background:#c8d9ed;border-radius:999px}
.service-request-form{gap:9px}
.service-request-form label{font-size:9.5px;color:#526b8a;gap:5px}
.service-request-form input,.service-request-form select,.service-request-form textarea{
  height:46px;
  border-color:#dce8f5;
  border-radius:14px;
  background:#fff;
  color:#193b65;
  box-shadow:0 5px 14px rgba(30,82,145,.035);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.service-request-form input:focus,.service-request-form select:focus,.service-request-form textarea:focus{
  border-color:#83b8f6;
  box-shadow:0 0 0 4px rgba(32,126,240,.075);
}
.service-request-form input:disabled,.service-request-form select:disabled,.service-request-form textarea:disabled{opacity:.72;background:#f5f8fc}
.service-form-hero{
  min-height:62px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px 11px;
  margin-bottom:2px;
  border:1px solid #dce9f7;
  border-radius:18px;
  background:linear-gradient(135deg,#f6fbff,#edf6ff);
}
.service-form-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff;color:#2478df;font-weight:1000;font-size:14px;box-shadow:0 7px 18px rgba(38,103,183,.09)}
.service-form-hero strong{display:block;color:#17375f;font-size:12px}
.service-form-hero small{display:block;margin-top:3px;color:#7b8da5;font-size:8.5px;line-height:1.5}
.service-form-hero.games-hero{background:linear-gradient(135deg,#fbf8ff,#f2ecff);border-color:#e7dcff}.games-hero .service-form-icon{color:#704ed0;background:#fff}
.service-form-hero.bills-hero{background:linear-gradient(135deg,#f6fbff,#eaf4ff);border-color:#d9e8fb}.bills-hero .service-form-icon{color:#2f70d5}
.service-form-hero.sham-hero{background:linear-gradient(135deg,#f8f6ff,#eefaf7);border-color:#dfdcf6}.sham-hero .service-form-icon{color:#624fc8}
.service-form-hero.khuzai-hero{background:linear-gradient(135deg,#f5fbfd,#eaf7fb);border-color:#d9ebf1}.khuzai-hero .service-form-icon{color:#2d718d}
.service-price-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #dbe8f7;border-radius:15px;background:#edf6ff;color:#56718f}
.service-price-card span{font-size:9px;font-weight:900}.service-price-card strong{font-size:15px;color:#176fd3;direction:ltr}.service-price-card strong small{font-size:9px}.service-price-card .unavailable{font-size:11px;color:#c2414f}
.service-choice-grid{display:grid;gap:9px}
.service-choice-card{min-height:67px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;padding:11px 12px!important;border:1px solid #dfeaf7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(29,75,132,.045)!important;text-align:right!important}
.service-choice-card .service-choice-icon{width:40px;height:40px;border-radius:13px;background:#edf5ff;color:#2376dc;display:grid;place-items:center;font-size:17px;font-weight:1000}
.service-choice-card b{font-size:12px;color:#18385f}.service-choice-card small{font-size:8.5px;color:#8393a8}.service-choice-card em{font-style:normal;color:#9db0c7;font-size:19px}
.service-choice-card.internet .service-choice-icon{background:#edf9f7;color:#168a6a}.service-choice-card.other .service-choice-icon{background:#f4f0ff;color:#7056ca}
.app-modal.service-dialog .internal-platform-grid{gap:9px}
.app-modal.service-dialog .internal-platform-card{min-height:67px;padding:11px 12px;border-color:#dfeaf7;border-radius:18px;grid-template-columns:42px 1fr auto;box-shadow:0 8px 22px rgba(29,75,132,.045)}
.app-modal.service-dialog .internal-platform-card .pic{width:40px;height:40px;border-radius:13px}.app-modal.service-dialog .internal-platform-card b{font-size:12px}.app-modal.service-dialog .internal-platform-card small{font-size:8.5px}
.service-request-form .modal-submit{position:relative;overflow:hidden;height:49px;margin-top:2px;background:linear-gradient(135deg,#2688f5,#146dda);box-shadow:0 10px 24px rgba(29,119,225,.18);display:flex;align-items:center;justify-content:center;gap:8px}
.service-request-form .modal-submit:disabled{cursor:not-allowed;opacity:.88}
.submit-spinner,.request-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:serviceSpin .75s linear infinite;flex:none}
.request-progress{
  display:grid;
  gap:8px;
  padding:10px 11px;
  border:1px solid #d7e7f9;
  border-radius:15px;
  background:#f1f7ff;
  color:#35638f;
  animation:serviceFade .18s ease both;
}
.request-progress-copy{display:flex;align-items:center;gap:8px;font-size:9.5px}.request-progress-copy strong{font-size:9.5px}.request-progress .request-spinner{width:14px;height:14px;border-color:rgba(35,119,218,.22);border-top-color:#2479df}
.request-progress-track{height:4px;border-radius:999px;background:#dbeafa;overflow:hidden;position:relative}.request-progress-track i{position:absolute;inset-block:0;width:42%;border-radius:999px;background:linear-gradient(90deg,#6db4ff,#207ce8);animation:serviceProgress 1.05s ease-in-out infinite}
.service-result-card{display:grid;grid-template-columns:45px minmax(0,1fr);gap:11px;align-items:center;padding:14px;border:1px solid #d9e8f7;border-radius:19px;background:#fff;box-shadow:0 10px 26px rgba(29,75,132,.055)}
.service-result-icon{width:43px;height:43px;border-radius:14px;background:#e9f8f1;color:#14865a;display:grid;place-items:center;font-size:19px;font-weight:1000}.service-result-card strong{display:block;color:#17375f;font-size:12px}.service-result-card p{margin:4px 0 0;color:#6c829d;font-size:10px;line-height:1.55}.service-result-card small{display:block;margin-top:4px;color:#8193a9;font-size:9px}.games-result .service-result-icon{background:#f0eaff;color:#6b4bc8}.bills-result .service-result-icon{background:#eaf2ff;color:#315fca}.error-result .service-result-icon{background:#ffecef;color:#ce3d50}
@keyframes serviceSpin{to{transform:rotate(360deg)}}
@keyframes serviceProgress{0%{right:-45%}55%{right:45%}100%{right:105%}}
@keyframes serviceFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Records: every family keeps the same card system but owns a distinct identity. */
.transfer-record-card.internal{border-color:#d9e8f7;background:linear-gradient(135deg,#fff 0%,#f2f8ff 100%)}
.transfer-record-card.internal.abily4 .record-accent{background:linear-gradient(#187be9,#71b8ff)}
.transfer-record-card.internal.shamcash{background:linear-gradient(135deg,#fff 0%,#f7f4ff 55%,#f0fbf8 100%);border-color:#e1ddf5}
.transfer-record-card.internal.shamcash .record-accent{background:linear-gradient(#6752cf,#28aa82)}
.transfer-record-card.internal.khuzai{background:linear-gradient(135deg,#fff 0%,#f0f9fc 100%);border-color:#d9eaf0}
.transfer-record-card.internal.khuzai .record-accent{background:linear-gradient(#2a6887,#67bfd5)}
.transfer-record-card.games{border-color:#e4dcf7;background:linear-gradient(135deg,#fff 0%,#f7f2ff 100%)}
.transfer-record-card.games .record-accent{background:linear-gradient(#7958d5,#b08cf3)}
.transfer-record-card.bills{border-color:#d8e7f9;background:linear-gradient(135deg,#fff 0%,#edf6ff 100%)}
.transfer-record-card.bills .record-accent{background:linear-gradient(#347de4,#73b8ff)}
.record-logo.games{background:linear-gradient(145deg,#eee6ff,#f8f4ff);color:#6547bd}.record-logo.bills{background:linear-gradient(145deg,#e6f1ff,#f5f9ff);color:#2768c8}.record-logo.abily4{background:linear-gradient(145deg,#e4f1ff,#f4f9ff);color:#126fd1}.record-logo.shamcash{background:linear-gradient(145deg,#ece8ff,#f2fbf8);color:#5c49c1}.record-logo.khuzai{background:linear-gradient(145deg,#e5f6fa,#f4fbfd);color:#286c86}

@media(max-width:480px){
  .app-modal.service-dialog .modal-sheet{width:calc(100% - 20px);bottom:max(9px,env(safe-area-inset-bottom));max-height:84dvh;border-radius:24px;padding-inline:11px}
  .app-modal.service-dialog .modal-body{max-height:calc(84dvh - 73px);padding-top:10px}
}
@media(max-width:360px){
  .app-modal.service-dialog .modal-sheet{width:calc(100% - 14px)}
  .service-form-hero{grid-template-columns:39px minmax(0,1fr);padding:9px}.service-form-icon{width:38px;height:38px}
  .service-choice-card{grid-template-columns:38px minmax(0,1fr) auto!important;padding:10px!important}.service-choice-card .service-choice-icon{width:37px;height:37px}
}
.record-logo-svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* v127 - premium service pickers + route loading feedback */
.service-picker-intro{
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:11px;
  margin:0 0 11px;
  padding:12px 13px;
  overflow:hidden;
  border:1px solid #dbe9f8;
  border-radius:20px;
  background:linear-gradient(135deg,#f9fcff 0%,#edf6ff 100%);
  box-shadow:0 9px 24px rgba(29,75,132,.05);
}
.service-picker-intro::after{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  left:-34px;
  top:-42px;
  border-radius:50%;
  background:rgba(70,145,233,.07);
  pointer-events:none;
}
.service-picker-intro-icon{
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#2577d9;
  box-shadow:0 8px 18px rgba(31,95,168,.10);
}
.service-picker-intro-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.service-picker-intro strong{display:block;font-size:12.5px;color:#17375f;line-height:1.45}
.service-picker-intro small{display:block;margin-top:3px;font-size:8.8px;line-height:1.65;color:#7c90a9}
.service-picker-intro.internal-picker-intro{background:linear-gradient(135deg,#f9fcff 0%,#f1f7ff 52%,#f5fbfa 100%)}

.service-option-grid{display:grid;gap:10px}
.service-option-card{
  --option-accent:#2d7fe4;
  --option-soft:#edf5ff;
  --option-border:#bcd5f0;
  --option-spin:#b9d4f2;
  width:100%;
  min-height:82px;
  display:grid;
  grid-template-columns:50px minmax(0,1fr) 30px;
  align-items:center;
  gap:11px;
  position:relative;
  overflow:hidden;
  padding:12px 12px 12px 13px;
  border:1px solid #dce9f7;
  border-radius:20px;
  background:linear-gradient(145deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 8px 24px rgba(27,70,122,.055);
  text-align:right;
  font-family:inherit;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.service-option-card::before{
  content:"";
  position:absolute;
  inset-block:12px;
  right:0;
  width:3px;
  border-radius:99px 0 0 99px;
  background:var(--option-accent);
  opacity:.72;
}
.service-option-card::after{
  content:"";
  position:absolute;
  width:84px;
  height:84px;
  left:-44px;
  bottom:-54px;
  border-radius:50%;
  background:var(--option-soft);
  opacity:.55;
  pointer-events:none;
}
.service-option-card:hover{transform:translateY(-1px);border-color:#c8dcf2;box-shadow:0 12px 28px rgba(27,70,122,.08)}
.service-option-card:active{transform:scale(.992)}
.service-option-card:disabled{cursor:default}
.service-option-card:disabled:not(.is-selected){opacity:.56;filter:saturate(.72)}
.service-option-card.is-selected{border-color:var(--option-border);background:linear-gradient(145deg,#fff 0%,var(--option-soft) 155%);box-shadow:0 12px 28px rgba(27,70,122,.09),inset 0 0 0 1px rgba(255,255,255,.65)}
.service-option-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:1;
  color:var(--option-accent);
  background:var(--option-soft);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}
.service-option-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-monogram{font-size:13px;font-weight:1000;letter-spacing:-.2px;direction:ltr}
.service-option-copy{min-width:0;position:relative;z-index:1}
.service-option-copy strong{display:block;color:#18385f;font-size:12.5px;line-height:1.35}
.service-option-copy small{display:block;margin-top:4px;color:#8192a8;font-size:8.7px;line-height:1.55;white-space:normal}
.service-option-tag{display:inline-flex;align-items:center;margin-top:6px;padding:3px 7px;border-radius:999px;background:var(--option-soft);color:var(--option-accent);font-size:7.6px;font-weight:950;line-height:1.3}
.service-option-tail{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:1;
  border-radius:10px;
  background:#f5f8fc;
  color:#9aacc0;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.service-option-card:hover .service-option-tail,.service-option-card.is-selected .service-option-tail{background:var(--option-soft);color:var(--option-accent);transform:translateX(-1px)}
.service-option-tail svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.service-option-card.packages{--option-accent:#2977dd;--option-soft:#eaf3ff;--option-border:#a8caef;--option-spin:#b9d5f4}
.service-option-card.internet{--option-accent:#13866f;--option-soft:#e8f8f4;--option-border:#a9d9ce;--option-spin:#b7dfd6}
.service-option-card.other{--option-accent:#7657c8;--option-soft:#f1ecff;--option-border:#cbbcea;--option-spin:#d3c7ef}
.service-option-card.abily4{--option-accent:#1877df;--option-soft:#e9f3ff;--option-border:#a8caee;--option-spin:#bad6f3}
.service-option-card.shamcash{--option-accent:#6a55c8;--option-soft:#efebff;--option-border:#c6b9e9;--option-spin:#d0c5ed}
.service-option-card.khuzai{--option-accent:#2b718d;--option-soft:#e8f6fa;--option-border:#afd4df;--option-spin:#bfdee6}

.choice-spinner{
  width:15px;
  height:15px;
  border-radius:50%;
  border:2px solid var(--option-spin);
  border-top-color:var(--option-accent);
  animation:serviceSpin .7s linear infinite;
}
.service-route-loading{
  margin-top:10px;
  padding:12px 13px;
  border:1px solid #d8e7f7;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fbff,#eef6ff);
  box-shadow:0 8px 22px rgba(28,74,130,.045);
  animation:serviceFade .18s ease both;
}
.service-route-loading-head{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px}
.route-loader-orb{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#fff;box-shadow:0 5px 14px rgba(31,95,168,.08)}
.route-loader-orb span{width:15px;height:15px;border-radius:50%;border:2px solid #cfe1f5;border-top-color:#287ce0;animation:serviceSpin .72s linear infinite}
.service-route-loading strong{display:block;color:#315f91;font-size:10.2px}
.service-route-loading small{display:block;margin-top:2px;color:#8295ab;font-size:8.3px;line-height:1.5}
.service-route-progress{height:4px;margin-top:10px;border-radius:999px;background:#dceafa;overflow:hidden;position:relative}
.service-route-progress i{position:absolute;inset-block:0;width:38%;border-radius:999px;background:linear-gradient(90deg,#7ab9ff,#247be0);animation:serviceProgress 1.05s ease-in-out infinite}

@media(max-width:360px){
  .service-picker-intro{grid-template-columns:41px minmax(0,1fr);padding:10px 11px}.service-picker-intro-icon{width:39px;height:39px;border-radius:13px}
  .service-option-card{grid-template-columns:44px minmax(0,1fr) 27px;gap:9px;min-height:75px;padding:10px 10px 10px 11px;border-radius:18px}
  .service-option-icon{width:43px;height:43px;border-radius:14px}.service-option-copy strong{font-size:11.8px}.service-option-copy small{font-size:8.2px}
}

/* Shop sales reporting: same dashboard card, no new navigation. */
.today-total-card .summary-value{margin-top:14px}
.today-total-card .summary-value strong{font-size:29px}
.today-profit-detail{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;border-top:1px solid rgba(40,112,195,.16);margin-top:12px;padding-top:12px;color:#365b87;font-size:11px;font-weight:900}
.today-profit-detail strong{margin-right:auto;color:#147f60;font-size:19px;font-variant-numeric:tabular-nums;direction:ltr}
.today-profit-detail small{font-size:10px;color:#66809c}
.records-sales-summary{margin:3px 0 13px}
.sales-summary-list{display:grid;gap:10px}
.sales-summary-currency{padding:14px;border:1px solid #d7e8f8;border-radius:18px;background:linear-gradient(135deg,#ffffff,#eff7ff)}
.sales-summary-caption{font-size:12px;font-weight:950;color:#245485;margin-bottom:12px}
.sales-summary-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.sales-summary-figures>span{display:grid;gap:7px;padding:10px 5px;background:#fff;border-radius:12px;text-align:center;min-width:0}
.sales-summary-figures small{font-size:9px;color:#738da7;font-weight:850}
.sales-summary-figures b{font-size:14px;color:#24466e;overflow-wrap:anywhere;direction:ltr}
.sales-summary-figures .profit b{color:#12815b}
.sales-summary-missing{display:block;margin-top:10px;font-size:10px;color:#85672f;line-height:1.6}
.transfer-record-card .record-meta-line b{max-width:62%;text-align:left}

/* Clear transfer result dialog, separate from the service picker and tier dialogs. */
.app-modal.transfer-result-dialog .modal-sheet{width:min(94vw,420px);border-radius:26px;background:#fff;box-shadow:0 24px 80px rgba(12,44,91,.24);padding:17px 18px 22px}
.app-modal.transfer-result-dialog .modal-head{display:none}
.app-modal.transfer-result-dialog .modal-handle{background:#d4e4f5;margin-bottom:9px}
.app-modal.transfer-result-dialog .modal-body{padding:4px 2px;overflow:visible}
.transfer-outcome{display:flex;flex-direction:column;align-items:center;text-align:center;gap:11px}
.transfer-outcome-symbol{width:70px;height:70px;border-radius:23px;display:grid;place-items:center;font-size:33px;font-weight:900;background:#e5f8f0;color:#178259;box-shadow:0 9px 24px rgba(20,151,95,.09)}
.transfer-outcome.failed .transfer-outcome-symbol{background:#ffedf0;color:#cf3f56}
.transfer-outcome.pending .transfer-outcome-symbol{background:#fff4dc;color:#ba891f}
.transfer-outcome>strong{font-size:19px;color:#15385f}
.transfer-outcome>p{font-size:12px;color:#627b97;line-height:1.8;margin:0;overflow-wrap:anywhere}
.transfer-outcome-order{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px;border:1px solid #dae9f9;border-radius:16px;background:#f5faff;color:#617f9e;font-size:11px}
.transfer-outcome-order b{font-size:15px;color:#195b9f;direction:ltr}
.transfer-outcome-detail,.transfer-outcome-warning{width:100%;border-radius:13px;padding:10px 12px;font-size:11px;line-height:1.7;background:#eaf9f1;color:#147f58}
.transfer-outcome-warning{background:#fff3e8;color:#a56524}
.transfer-outcome .modal-submit{width:100%;margin-top:8px;border-radius:15px}
@media(max-width:380px){.sales-summary-figures b{font-size:12px}.sales-summary-figures small{font-size:8px}}

/* Startup health: show a retry action rather than an endless spinner if the API is unreachable. */
.boot-error{max-width:310px;margin:0 18px;text-align:center;font-size:13px;line-height:1.9;color:#a53628;font-weight:700}
.boot-retry{background:var(--orange);border:0;border-radius:13px;padding:12px 25px;color:#fff;font-weight:900;font-size:13px}

/* Recover a known selling price for successful legacy operations without changing old sales. */
.record-sale-action{display:block;width:100%;min-height:42px;margin-top:12px;border:1px solid #92b9ee;border-radius:13px;background:#edf5ff;color:#145aab;font-weight:900;font-size:12px;cursor:pointer}
.record-sale-action:hover,.record-sale-action:focus-visible{background:#dcecff;border-color:#2478df;color:#124c98;outline:2px solid transparent}
.sales-summary-missing{display:block;padding:9px 11px;margin-bottom:9px;border-radius:11px;background:#fff5e5;color:#8b5b1f;font-size:12px;line-height:1.65}


/* 2026-11-04: retail-only financial card and signed shop dues (not customer-credit ledger). */
.currency-pane[data-state="due"]{background:rgba(255,243,245,.92);border-color:#ffd5da}
.currency-pane[data-state="due"] .currency-copy strong,.currency-pane[data-state="due"] .currency-copy small{color:#ca3547}
.currency-pane[data-state="credit"]{background:rgba(234,251,241,.92);border-color:#c5efd8}
.currency-pane[data-state="credit"] .currency-copy strong,.currency-pane[data-state="credit"] .currency-copy small{color:#128650}
.currency-pane[data-state="settled"] .currency-copy strong{color:#647991}
.dues-modal-card.due{background:linear-gradient(145deg,#fff7f8,#ffe8ec);border-color:#f8cbd2}
.dues-modal-card.due strong,.dues-modal-card.due .dues-state-label{color:#c53146}
.dues-modal-card.credit{background:linear-gradient(145deg,#f5fff9,#e4f9ec);border-color:#bde8cc}
.dues-modal-card.credit strong,.dues-modal-card.credit .dues-state-label{color:#118453}
.dues-modal-card.settled{background:#f3f6fb}
.dues-modal-card .dues-state-label{font-size:12px;font-weight:950;color:#647b91}
.dues-allowance{border:1px solid #d8e7f7;border-radius:20px;padding:15px;background:linear-gradient(145deg,#fff,#f0f7ff)}
.dues-allowance-title{display:grid;gap:3px;margin-bottom:12px}.dues-allowance-title strong{font-size:14px;color:#16487a}.dues-allowance-title small{font-size:10px;color:#74899c}
.dues-allowance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dues-allowance-grid>div{min-width:0;padding:12px 10px;border-radius:14px;background:white;border:1px solid #e0eafa;display:grid;gap:8px}
.dues-allowance-grid small{font-size:10px;color:#718399;font-weight:850}.dues-allowance-grid b{font-size:14px;color:#173b69;overflow-wrap:anywhere}
.dues-allowance-grid>.available{grid-column:1/-1;background:linear-gradient(110deg,#e5f3ff,#f5faff);border-color:#b9dafb}.dues-allowance-grid>.available b{font-size:22px;color:#146fd1;direction:ltr;text-align:right}
.dues-allowance p{margin:11px 0 0;color:#66829c;font-size:10px;line-height:1.8}

/* 2026-11-04 — compact, legible signed dues and shop identity in the drawer. */
.stats-carousel .summary-card{padding:15px 16px;min-height:148px;border-radius:23px}
.stats-carousel .summary-card-head{gap:9px}
.stats-carousel .summary-card-head b{font-size:14px;line-height:1.4}
.stats-carousel .summary-card-head small{font-size:11px;line-height:1.45}
.stats-carousel .summary-icon{height:38px;width:38px;border-radius:12px}
.dues-summary-card .dues-currency-carousel{height:68px;margin-top:11px;border-radius:14px}
.dues-summary-card .currency-pane{height:68px;padding:8px 10px;gap:10px;border-radius:14px;background:rgba(255,255,255,.66);border:1px solid #dce8f4}
.dues-summary-card .currency-badge{height:37px;width:37px;border-radius:11px;font-size:12px}
.dues-summary-card .currency-copy{min-width:0;gap:5px}
.dues-summary-card .currency-copy small{font-size:11px;font-weight:850;line-height:1.4;color:#52647b;direction:rtl}
.dues-summary-card .currency-copy strong{font-size:clamp(22px,6vw,28px);line-height:1.2;color:#16345d;white-space:nowrap;letter-spacing:-.5px}
.dues-summary-card .currency-copy em{font-size:11px;color:#52647b}
/* Status backgrounds stay neutral: only the number carries red/green meaning. */
.dues-summary-card .currency-pane[data-state="due"],.dues-summary-card .currency-pane[data-state="credit"],.dues-summary-card .currency-pane[data-state="settled"]{background:rgba(255,255,255,.66);border-color:#dce8f4}
.dues-summary-card .currency-pane[data-state="due"] .currency-copy strong{color:#bd3048}
.dues-summary-card .currency-pane[data-state="credit"] .currency-copy strong{color:#087b4a}
.dues-summary-card .currency-pane[data-state] .currency-copy small{color:#52647b}
.dues-modal-grid{gap:8px}
.dues-modal-grid .dues-modal-card{min-width:0;padding:12px;border-radius:15px;gap:5px;background:#fff!important;border:1px solid #dfe9f5!important}
.dues-modal-grid .dues-modal-card>span{font-size:12px!important;font-weight:900;color:#48617c}
.dues-modal-grid .dues-state-label{font-size:12px!important;font-weight:800;color:#586e84!important;line-height:1.45}
.dues-modal-grid .dues-modal-card>strong{font-size:clamp(20px,5.3vw,26px);line-height:1.4;overflow-wrap:anywhere;color:#17365e;letter-spacing:-.4px}
.dues-modal-grid .dues-modal-card.due>strong{color:#bd3048}
.dues-modal-grid .dues-modal-card.credit>strong{color:#087b4a}
.dues-modal-grid .dues-modal-card>small:last-child{font-size:11px;color:#667b93}
@media(max-width:390px){.dues-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:330px){.dues-modal-grid{grid-template-columns:1fr}}
.drawer-panel .drawer-identity-header{display:flex;gap:10px;align-items:flex-start;margin:0 0 15px;padding:7px 0 15px;border-bottom:1px solid #deebf7}
.drawer-panel .drawer-head .drawer-close{width:36px;height:36px;min-width:36px;flex:none;font-size:21px;border-radius:12px}
.drawer-panel .drawer-shop-card{margin:0;padding:0;min-width:0;flex:1;gap:11px;background:transparent;box-shadow:none;border:0;border-radius:0;align-items:center}
.drawer-shop-photo{width:66px;height:66px;min-width:66px;position:relative;border:2px solid #d5e7fa;border-radius:21px;background:linear-gradient(140deg,#1f77e3,#53a4f0);color:#fff;display:grid;place-items:center;padding:0;overflow:visible;cursor:pointer;box-shadow:0 9px 20px rgba(22,95,185,.15)}
.drawer-shop-initials{font-weight:1000;font-size:22px;letter-spacing:-1px}
.drawer-shop-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;border-radius:19px}
.drawer-shop-photo img[hidden]{display:none!important}
.drawer-photo-edit{position:absolute;left:-5px;bottom:-6px;width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:#fff;color:#1268d2;border:1px solid #c9dcf4;box-shadow:0 3px 9px rgba(15,65,122,.18)}
.drawer-photo-edit svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.3}
.drawer-shop-copy{min-width:0;flex:1;display:grid;gap:4px}
.drawer-shop-copy small{font-size:11px!important;line-height:1.5;color:#69829f!important}
.drawer-shop-copy strong{font-size:clamp(14px,4vw,17px)!important;line-height:1.45;color:#15365e!important;overflow-wrap:anywhere}
.drawer-shop-caption{font-size:11px;font-weight:800;color:#3671b3}
.drawer-photo-status{margin:-10px 0 10px;padding:8px 10px;background:#edf5ff;color:#1b5ea6;font-size:11px;line-height:1.6;border-radius:10px}
.drawer-photo-status[data-error="true"]{background:#fff3f3;color:#ad3449}
.drawer-photo-status[hidden]{display:none!important}
/* Two unambiguous ways to choose a verified retail tier. */
.retail-tier-mode{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;border:1px solid #dae8f8;border-radius:15px;background:#edf4fc;margin:5px 0 12px}
.retail-tier-mode button{height:43px;border:1px solid transparent;border-radius:11px;background:transparent;color:#526985;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.retail-tier-mode button.active{background:#fff;border-color:#c7dffc;color:#116ed3;box-shadow:0 4px 11px rgba(20,79,150,.07)}
.retail-pay-entry{display:grid;gap:9px}
.retail-pay-entry>label{font-size:12px;font-weight:900;color:#22466e}
.retail-pay-input{display:flex!important;align-items:center;margin:0!important;min-height:53px}
.retail-pay-input input{min-width:0;flex:1;font-size:16px!important;direction:ltr;text-align:right}
.retail-pay-currency{color:#52769a;font-weight:900;font-size:12px;margin-inline-start:6px}
.retail-price-feedback{margin:0;font-size:12px;line-height:1.75;font-weight:750;color:#436587}
.retail-price-matches{display:flex;flex-wrap:wrap;gap:7px}
.retail-price-choice{padding:10px 12px;border:1px solid #93bdef;background:#eaf3ff;color:#135eae;border-radius:11px;font-weight:900;cursor:pointer;font-size:12px}
.retail-tier-mode[hidden],.retail-pay-entry[hidden],.retail-price-matches[hidden]{display:none!important}

/* Compact dashboard slides with readable labels, including small phones. */
/* Shorter, narrower slides: peek at the next card without tiny text. */
.dashboard-carousel-shell{margin-bottom:8px}
.stats-carousel{gap:8px;padding:2px 4px 3px;scroll-padding-inline:4px}
.stats-carousel .summary-card{flex:0 0 clamp(238px,78%,310px);min-height:130px;padding:11px 13px;border-radius:18px;scroll-snap-align:center}
.stats-carousel .summary-card-head{gap:8px}
.stats-carousel .summary-card-head b{font-size:13px;line-height:1.4}
.stats-carousel .summary-card-head small{font-size:10px;line-height:1.45}
.stats-carousel .summary-icon{width:32px;height:32px;border-radius:10px;flex:none}
.stats-carousel .summary-icon svg{width:17px;height:17px}
.stats-carousel .summary-value{margin-top:8px;gap:5px}
.stats-carousel .summary-value strong{font-size:clamp(24px,6.6vw,29px);line-height:1.2}
.stats-carousel .today-total-card .summary-value{margin-top:8px}
.stats-carousel .today-total-card .summary-value strong{font-size:clamp(23px,6.4vw,28px)}
.stats-carousel .today-profit-detail{margin-top:5px;padding-top:6px;gap:5px;font-size:11px}
.stats-carousel .today-profit-detail strong{font-size:17px;color:#0d8559}
.stats-carousel .dues-currency-carousel{height:57px;margin-top:7px;border-radius:12px}
.stats-carousel .currency-pane{height:57px;padding:6px 8px;gap:7px;border-radius:12px}
.stats-carousel .currency-badge{height:32px;width:32px;border-radius:10px}
.stats-carousel .currency-copy strong{font-size:clamp(20px,5.6vw,25px)}
.stats-carousel .count-orb{width:56px;height:56px;left:16px;bottom:12px;border-radius:18px}
.stats-dots{margin-top:3px}
/* The existing tier button and the price input sit on ONE line: no mode-switch click. */
.retail-tier-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:end;gap:8px}
.retail-tier-row.with-price{grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr)}
.retail-tier-row .tier-picker-entry{min-width:0;margin:0}
.retail-tier-row .tier-picker-button{min-height:58px;padding:0 9px;gap:5px;border-radius:14px}
.retail-tier-row .tier-picker-button .amount-icon{width:28px;height:28px;border-radius:9px}
.retail-tier-row .tier-picker-copy small{font-size:10px}
.retail-tier-row .tier-picker-copy strong{font-size:clamp(12px,3.5vw,15px)}
.retail-tier-row .tier-picker-button em{font-size:21px}
.retail-tier-row .retail-pay-entry{display:grid;gap:4px;min-width:0}
.retail-tier-row .retail-pay-entry>label{font-size:12px;line-height:1.3;font-weight:900;color:#22466e}
.retail-tier-row .retail-pay-input{height:42px;min-height:42px;padding:0 7px;border-radius:12px;gap:3px;min-width:0}
.retail-tier-row .retail-pay-input input{min-width:0;font-size:14px!important;padding:0;direction:ltr;text-align:right}
.retail-tier-row .retail-pay-input input::placeholder{font-size:12px}
.retail-tier-row .retail-pay-currency{margin:0;font-size:11px;flex:none}
.retail-price-feedback{margin:7px 1px 0;font-size:12px;line-height:1.6;font-weight:750}
.retail-price-feedback[hidden],.retail-tier-row .retail-pay-entry[hidden]{display:none!important}
@media(max-width:350px){
  .stats-carousel .summary-card{padding:11px 12px;flex-basis:clamp(226px,82%,250px)}
  .retail-tier-row{gap:6px}
  .retail-tier-row .tier-picker-button{padding:0 6px}
  .retail-tier-row .tier-picker-button .amount-icon{display:none}
}

/* Dashboard statistics visibility: the hidden carousel takes up zero layout space. */
.header-actions{display:flex;align-items:center;gap:9px;flex:none}
.header-stats-toggle{width:42px;height:42px;flex:none;border:1px solid #d8e6f7;border-radius:15px;background:#fff;color:#1667c6;display:grid;place-items:center;box-shadow:0 7px 20px rgba(31,86,154,.07);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.header-stats-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.header-stats-toggle:hover,.header-stats-toggle:focus-visible{background:#eaf3ff;border-color:#4a9af8;color:#0d59b5;outline:2px solid transparent}
.header-stats-toggle:focus-visible{outline:2px solid #3d8ff0;outline-offset:2px}
.dashboard-carousel-shell[hidden]{display:none!important}
.home-screen.stats-collapsed{padding-top:3px}
/* The eye is a home-dashboard control, not a navigation or account control. */
.portal-view:has(#homeScreen[hidden]) .header-stats-toggle{display:none!important}
/* Leave room for the shop title and both header icons on narrow phones. */
.app-header .header-main{flex:1 1 auto}
.app-header .header-main .profile-copy{min-width:0;flex:1 1 auto}
.app-header .header-main .profile-copy strong{max-width:100%}
@media(max-width:520px) and (max-height:820px){
  /* When summaries are hidden, favor showing the transfer form without scrolling. */
  .home-screen.stats-collapsed .hero-transfer{padding-top:12px;padding-bottom:12px}
  .home-screen.stats-collapsed .trade-switch{margin-bottom:10px}
  .home-screen.stats-collapsed .phone-entry{height:55px}
  .home-screen.stats-collapsed .favorite-pick-btn{min-height:54px}
  .home-screen.stats-collapsed .operation-btn{min-height:82px}
  .home-screen.stats-collapsed .cta-btn{height:56px}
}

/* 2026-11-07: last transfer action, device multi-filter, remaining dues */
.phone-entry .last-transfer-button{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid #c9ddf7;border-radius:13px;background:#eaf4ff;color:#216fc7;cursor:pointer}
.phone-entry .last-transfer-button svg{width:23px;height:23px}
.phone-entry .last-transfer-button:disabled{opacity:.45;cursor:wait}
.record-device-section{display:grid;gap:8px;padding:12px;border:1px solid #dce7f4;border-radius:16px;background:#f8fbff}
.device-filter-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.device-filter-heading strong{font-size:12px;color:#17375f}
.device-filter-heading button{border:0;background:transparent;color:#176fd3;font-size:11px;font-weight:800;cursor:pointer}
.record-device-section>small{font-size:11px;color:#637c9b;line-height:1.5}
.record-device-options{max-height:225px;overflow-y:auto;display:grid;gap:7px;font-size:11px;color:#617a9a}
.record-device-option{display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px;border:1px solid #dbe6f4;border-radius:12px;padding:9px;background:#fff;cursor:pointer}
.record-device-option input{width:18px!important;height:18px!important;flex:none;accent-color:#1976ed}
.record-device-option span{display:grid;gap:3px}
.record-device-option b{font-size:12px;color:#1a365d;direction:ltr;text-align:right}
.record-device-option small,.record-device-empty{font-size:11px;color:#7990ac}
.debt-settled-message{padding:12px 14px;border-radius:14px;border:1px solid #b8e2c5;background:#f0fcf3;color:#187747;font-size:12px;font-weight:800}

/* Startup recovery: an explicit full reload is available for outdated browser pages. */
.boot-reload{border:1px solid currentColor;background:transparent;color:var(--orange);border-radius:13px;padding:10px 23px;font-size:13px;font-weight:900;cursor:pointer}
.boot-retry:disabled{opacity:.6;cursor:wait}


/* Voice action: only the navigation gains a fifth slot; existing theme/layout stays untouched. */
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
.voice-nav-button{--voice-accent:#086df5;--voice-accent-2:#19aeff;position:relative;isolation:isolate;align-self:start;justify-self:center;display:grid;place-items:center;width:68px;height:68px;margin:-27px 0 0;padding:0;border:0;border-radius:50%;background:transparent;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.voice-nav-button:focus-visible{outline:3px solid var(--voice-accent);outline-offset:5px}
.voice-nav-circle{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:3px solid var(--surface);background:linear-gradient(145deg,var(--voice-accent),var(--voice-accent-2));color:#fff;box-shadow:0 7px 20px rgba(23,60,110,.19),0 2px 10px rgba(8,109,245,.24);transition:transform .22s ease,box-shadow .22s ease;z-index:1}
.voice-nav-caption{position:absolute;top:64px;color:var(--voice-accent);font-size:10px;font-weight:900;line-height:1.3;white-space:nowrap;pointer-events:none}
.voice-nav-circle>svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .24s ease}
.voice-nav-pulse{position:absolute;inset:2px;border:1.5px solid var(--voice-accent);border-radius:50%;opacity:.55;pointer-events:none;transform:scale(1.03)}
.voice-nav-button:active .voice-nav-circle{transform:scale(.93)}
.voice-nav-button.is-listening .voice-nav-circle{box-shadow:0 0 0 5px color-mix(in srgb,var(--voice-accent) 16%,transparent),0 0 27px color-mix(in srgb,var(--voice-accent) 36%,transparent),0 9px 20px rgba(23,60,110,.16)}
.voice-nav-button.is-listening .voice-nav-pulse{animation:voice-ring 1.65s ease-out infinite}
.voice-nav-button.is-listening .voice-nav-pulse:after{content:"";position:absolute;inset:-1px;border:1.5px solid var(--voice-accent);border-radius:50%;animation:voice-ring 1.65s ease-out .65s infinite}
.voice-nav-wave{position:absolute;bottom:7px;display:none;align-items:center;justify-content:center;gap:2px;height:10px}
.voice-nav-wave i{height:5px;width:2px;border-radius:8px;background:#fff;animation:voice-equalizer .82s ease-in-out infinite alternate;opacity:.94}
.voice-nav-wave i:nth-child(2){animation-delay:.17s}.voice-nav-wave i:nth-child(3){animation-delay:.32s}.voice-nav-wave i:nth-child(4){animation-delay:.11s}.voice-nav-wave i:nth-child(5){animation-delay:.25s}
.voice-nav-button.is-listening .voice-nav-wave{display:flex}
.voice-nav-button.is-listening .voice-nav-circle>svg{transform:translateY(-4px)}
.voice-nav-button.is-processing .voice-nav-pulse,.voice-nav-button.is-settling .voice-nav-pulse{animation:voice-ring 2.15s ease-out infinite;opacity:.5}
.voice-nav-button.is-processing .voice-nav-circle>svg{animation:voice-breathe 1.3s ease-in-out infinite}
.voice-nav-button.is-complete .voice-nav-circle{box-shadow:0 0 0 5px color-mix(in srgb,var(--voice-accent) 13%,transparent),0 9px 20px rgba(23,60,110,.16)}
.voice-feedback{position:fixed;z-index:66;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:9px;width:max-content;max-width:min(calc(100vw - 32px),450px);padding:10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:100px;color:var(--ink);font-size:12px;font-weight:800;text-align:center;line-height:1.7;box-shadow:0 12px 34px rgba(18,38,65,.16);pointer-events:none}
.voice-feedback[hidden]{display:none!important}
.voice-feedback-light{flex:none;width:7px;height:7px;border-radius:50%;background:#1377fc;box-shadow:0 0 0 4px rgba(19,119,252,.13)}
.voice-feedback[data-error="true"]{color:var(--red)}
.voice-feedback[data-error="true"] .voice-feedback-light{background:var(--red);box-shadow:none}
@keyframes voice-ring{0%{transform:scale(.98);opacity:.75}75%,100%{transform:scale(1.38);opacity:0}}
@keyframes voice-equalizer{0%{height:3px}100%{height:10px}}
@keyframes voice-breathe{50%{opacity:.63;transform:scale(.88)}}
@media(max-width:355px){.voice-nav-button{width:59px;height:59px;margin-top:-23px}.voice-nav-caption{top:56px}.voice-nav-circle{width:55px;height:55px}.voice-nav-circle>svg{width:24px;height:24px}.bottom-nav .nav-item b{font-size:9px}}
@media(prefers-reduced-motion:reduce){.voice-nav-button *{animation:none!important;transition:none!important}}

/* New V3 mic experience: accessible, live audio-driven and visually separate from financial UI. */
.voice-v3-card.voice-feedback{width:min(410px,calc(100vw - 22px));max-width:none;bottom:calc(103px + env(safe-area-inset-bottom));padding:14px 14px 12px;display:flex;align-items:flex-start;gap:12px;border-radius:22px;border:1px solid rgba(69,135,207,.24);background:var(--surface);box-shadow:0 18px 60px rgba(19,65,116,.24),0 2px 12px rgba(11,44,89,.06);pointer-events:auto;text-align:right;direction:rtl;line-height:1.6;animation:voice-v3-enter .25s cubic-bezier(.2,.7,.2,1) both}
.voice-v3-indicator{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:15px;background:linear-gradient(145deg,#0566e9,#2db4f3);color:#fff;box-shadow:0 6px 17px rgba(7,117,235,.23)}
.voice-v3-indicator svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-v3-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.voice-v3-top{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink);font-weight:900}
.voice-v3-live-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#2c9ef0;box-shadow:0 0 0 4px rgba(44,158,240,.14)}
.voice-v3-message{font-size:11px;font-weight:750;color:var(--muted,#64748b);overflow-wrap:anywhere;line-height:1.8}
.voice-v3-cancel{display:grid;place-items:center;flex:none;width:27px;height:27px;margin:-2px -3px 0 0;padding:0;border:1px solid var(--line);background:transparent;border-radius:50%;color:var(--ink);font-size:18px;font-weight:400;cursor:pointer;pointer-events:auto}
.voice-v3-cancel:focus-visible{outline:3px solid #3b9dfa;outline-offset:2px}
.voice-v3-waveform{min-height:43px;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:3px;overflow:hidden;margin-top:4px;padding:4px 2px}
.voice-v3-waveform i{display:block;width:4px;height:5px;border-radius:8px;flex:none;background:linear-gradient(180deg,#39c3e5,#1977ee);transition:height .09s ease-out}
.voice-v3-card:not([data-state="listening"]) .voice-v3-waveform{display:none}
.voice-v3-card[data-state="listening"] .voice-v3-live-dot{background:#23bb83;animation:voice-v3-dot 1.3s ease-in-out infinite}
.voice-v3-card[data-state="processing"] .voice-v3-indicator,.voice-v3-card[data-state="applying"] .voice-v3-indicator{animation:voice-v3-float 1.4s ease-in-out infinite}
.voice-v3-card[data-state="complete"] .voice-v3-indicator{background:linear-gradient(135deg,#129f7d,#3ed0a1)}
.voice-v3-card[data-state="error"] .voice-v3-indicator{background:linear-gradient(135deg,#c94a4e,#fa7773)}
.voice-v3-card[data-state="error"] .voice-v3-message{color:#c7474b}
.voice-v3-card[data-state="listening"]::after{content:"";position:absolute;bottom:0;right:22px;left:22px;height:2px;border-radius:5px;background:linear-gradient(90deg,#169ae7,#36dbb5);transform-origin:right;transform:scaleX(var(--voice-quiet-ratio,0));transition:transform .12s linear;opacity:.7}
.voice-nav-button.is-processing .voice-nav-circle{filter:saturate(.83)}
@keyframes voice-v3-enter{from{transform:translate(-50%,9px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes voice-v3-dot{50%{box-shadow:0 0 0 7px rgba(35,187,131,.09)}}
@keyframes voice-v3-float{50%{transform:translateY(-2px)}}
@media(max-width:365px){.voice-v3-card.voice-feedback{padding:11px;gap:9px}.voice-v3-waveform{gap:2px}.voice-v3-waveform i{width:3px}}
@media(prefers-reduced-motion:reduce){.voice-v3-card *{animation:none!important;transition:none!important}}

/* Optional voice training: consent is off by default; does not affect one-tap microphone. */
.voice-learning-optin{display:flex;align-items:center;gap:12px;padding:13px 14px;margin:8px 0;border:1px solid var(--line);border-radius:16px;cursor:pointer;background:var(--surface)}
.voice-learning-label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.voice-learning-label strong{font-size:12px;color:var(--ink)}
.voice-learning-label small{font-size:10px;line-height:1.7;color:var(--muted)}
.voice-learning-optin input{width:18px;height:18px;accent-color:#1686eb;flex:none}
.voice-learning-optin:has(input:disabled){opacity:.62;cursor:not-allowed}
.voice-learning-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-top:7px}
.voice-learning-actions[hidden]{display:none!important}
.voice-learning-actions span{width:100%;font-size:10px;color:var(--muted)}
.voice-learning-actions button{padding:5px 9px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;font-size:11px;font-weight:750}
.voice-learning-actions button:hover{border-color:#1597e2;color:#1489d0}
.voice-learning-actions button:disabled{opacity:.6;cursor:wait}
