/* Waisaas Customer V3 — owner design lab (dressed in the Waisaas logo palette: emerald night, gold, mint).
   Lightweight by construction: no images, no web fonts, no blur filters, no animated gradients. */

/* Host chrome while the owner preview is open. Every rule needs wa-customer-preview-mode too,
   so nothing here can leak into customer screens or other admin pages. */
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode){padding:0!important;background:#03100b!important}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode)::before,
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode)::after{display:none!important}
html:has(body.wa3-on:is(.wa-customer-preview-mode,.wa-reseller-v3-mode)){background:#03100b!important;scroll-padding-bottom:88px}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) .app-shell{width:100%;max-width:100%;margin:0}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) .app-shell::before{background:linear-gradient(180deg,#03100b 0,#03100b 72%,rgba(3,16,11,0) 100%)}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) .main-content{padding:0}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) #adminView{padding:0!important}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) #adminView>.wa-admin-title{display:none!important}
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) #adminBody,
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) #adminContent,
body.wa3-on.wa-admin-mode:is(.wa-customer-preview-mode,.wa-reseller-v3-mode) .wa-customer-v2-preview-host{width:100%;max-width:100%;min-width:0;margin:0;padding:0}

/* ---- tokens ---- */
.w3{
  --bg:#03100b;--bg2:#041a12;--card:#07221a;--card2:#0b2e23;--raise:#10392b;
  --line:rgba(62,232,187,.15);--line2:rgba(62,232,187,.28);--gl:rgba(227,187,83,.38);
  --tx:#f2f8f3;--mu:#a5c4b6;--di:#6f9585;
  --gold:#e3bb53;--gold-hi:#faf0b8;--ink:#1a1203;--mint:#3ee8bb;
  --goldg:linear-gradient(135deg,#fbeaa6 0%,#ecc760 40%,#c4922b 72%,#e8c765 100%);
  --pri:#e3bb53;--am:#f0b43c;--ok:#3ee8bb;--wn:#f0b43c;--bd:#ff7285;
  position:relative;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;
  padding-top:max(92px,calc(env(safe-area-inset-top) + 72px));
  background:radial-gradient(120% 50% at 50% 0%,rgba(20,150,108,.17),transparent 62%),
    repeating-linear-gradient(0deg,rgba(62,232,187,.03) 0 1px,transparent 1px 26px),
    repeating-linear-gradient(90deg,rgba(62,232,187,.03) 0 1px,transparent 1px 26px),var(--bg);
  color:var(--tx);direction:rtl;text-align:start;
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"SF Arabic","SF Pro Text","Segoe UI",system-ui,"Noto Sans Arabic","Noto Kufi Arabic",Tahoma,Roboto,sans-serif;
  -webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%;
}
.w3 *,.w3 *::before,.w3 *::after{box-sizing:border-box}
.w3 [hidden]{display:none!important}
:where(.w3) button{font:inherit;color:inherit;margin:0;padding:0;border:0;background:none;appearance:none;-webkit-appearance:none;cursor:pointer;text-align:inherit;touch-action:manipulation}
:where(.w3) input{font:inherit;color:inherit;margin:0;appearance:none;-webkit-appearance:none}
:where(.w3) h1,:where(.w3) h2,:where(.w3) p,:where(.w3) ol{margin:0}
.w3 bdi{unicode-bidi:isolate}
.w3 button:focus-visible,.w3 input:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.w3-i{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.w3-wrap{width:100%;max-width:480px;margin:0 auto}

/* ---- top bar + mode switch ---- */
.w3-bar{display:flex;align-items:center;gap:10px;padding:0 16px 12px}
.w3-chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px 0 11px;border-radius:999px;background:var(--card);border:1px solid var(--line);color:var(--mu);font-size:13px;font-weight:700}
.w3-chip .w3-i{width:17px;height:17px}
.w3-brand{display:flex;align-items:center;gap:8px;margin-inline:auto;direction:ltr}
.w3-official-logo{display:block;width:46px;height:46px;flex:none;border-radius:50%;object-fit:cover;box-shadow:0 0 12px rgba(227,187,83,.17)}
.w3-wm{font-weight:900;font-style:italic;font-size:19px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);
  background:linear-gradient(180deg,#fff4c6 0%,#e8c25a 52%,#b98a2b 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.w3-badge{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border-radius:999px;background:rgba(62,232,187,.1);border:1px solid rgba(62,232,187,.38);color:var(--mint);font-size:12px;font-weight:800}
.w3-badge i{width:6px;height:6px;background:var(--mint);transform:rotate(45deg)}
.w3-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 16px 6px;padding:4px;background:var(--card);border:1px solid var(--line);border-radius:15px}
.w3-mode button{height:36px;border-radius:11px;color:var(--mu);font-size:14px;font-weight:700;text-align:center}
.w3-mode button[aria-selected=true]{background:var(--goldg);color:var(--ink)}

/* ---- page frame ---- */
.w3-main{flex:1;width:100%;max-width:480px;margin:0 auto;padding:12px 16px 26px}
.w3-in-anim{animation:w3in .18s ease-out}
@keyframes w3in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.w3-head{display:flex;align-items:center;gap:10px;margin:2px 0 18px}
.w3-head .tt{flex:1;min-width:0}
.w3-head h1{font-size:22px;font-weight:800;line-height:1.25}
.w3-head p{margin-top:2px;color:var(--mu);font-size:13px}
.w3-ib{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);color:var(--gold);flex:none}
.w3-sec{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:24px 2px 10px}
.w3-sec h2{font-size:16px;font-weight:800}
.w3-sec h2::before{content:"";display:inline-block;width:7px;height:7px;margin-inline-end:9px;background:var(--gold);transform:rotate(45deg);position:relative;top:-1px}
.w3-sec button{color:var(--gold);font-size:13px;font-weight:700;padding:10px 6px;margin:-10px -6px}
.w3-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:15px}
.w3-card+.w3-card{margin-top:12px}
.w3-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:15px;background:rgba(62,232,187,.07);border:1px solid rgba(62,232,187,.22);color:var(--mu);font-size:13px;line-height:1.7}
.w3-note .w3-i{width:19px;height:19px;color:var(--mint);margin-top:2px}
.w3-note.warn{background:rgba(240,180,60,.09);border-color:rgba(240,180,60,.3)}
.w3-note.warn .w3-i{color:var(--am)}
.w3-stack>*+*{margin-top:12px}
.w3-muted{color:var(--mu)}

/* ---- buttons ---- */
.w3-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:16px;font-size:15px;font-weight:800;text-align:center;transition:transform .12s,opacity .12s}
.w3-btn:active{transform:scale(.98)}
.w3-btn .w3-i{width:19px;height:19px}
.w3-btn.wide{width:100%}
.w3-btn.pri{background:var(--goldg);color:var(--ink)}
.w3-btn.sec{background:var(--card2);border:1px solid var(--line2);color:var(--tx)}
.w3-btn.light{background:linear-gradient(135deg,#fff6cf,#f0d27a);color:var(--ink)}
.w3-btn.ghost{background:rgba(3,16,11,.35);border:1px solid rgba(227,187,83,.5);color:#f6e7ad}
.w3-btn.dng{background:rgba(255,114,133,.1);border:1px solid rgba(255,114,133,.4);color:var(--bd)}
.w3-btn.blk{background:#000;border:1px solid #2c3a34;color:#fff;font-size:17px;letter-spacing:.2px;direction:ltr}
.w3-seg [data-pay=apple]{direction:ltr}
.w3-i.fill{fill:currentColor;stroke:none}
.w3-btn.sm{min-height:36px;padding:0 14px;border-radius:12px;font-size:13px}
.w3-btn[disabled]{opacity:.5;pointer-events:none}

/* ---- hero (subscriber): emerald night panel, gold hairline, HUD corner brackets ---- */
.w3-hero{--h1:#0e5a41;--h2:#073123;--h3:#041a12;--sh:20,160,110;--gb:rgba(227,187,83,.8);position:relative;overflow:hidden;border-radius:28px;padding:18px;color:var(--tx);
  background:radial-gradient(120% 85% at 100% 0%,rgba(62,232,187,.2),transparent 58%),linear-gradient(150deg,var(--h1) 0%,var(--h2) 55%,var(--h3) 100%);
  border:1px solid rgba(227,187,83,.42);box-shadow:0 14px 26px -18px rgba(var(--sh),.9)}
.w3-hero.s-soon{--h1:#6b4a10;--h2:#3a290b;--h3:#1d1507;--sh:200,140,30}
.w3-hero.s-off,.w3-hero.s-none{--h1:#1f2d27;--h2:#16211d;--h3:#0e1714;--sh:60,90,80}
.w3-hero.s-hold{--h1:#17495a;--h2:#0f2f3c;--h3:#091c25;--sh:40,130,160}
.w3-hero.s-block{--h1:#5c2028;--h2:#361219;--h3:#1c0a0e;--sh:190,50,70}
.w3-hero::before{content:"";position:absolute;inset:8px;border-radius:20px;pointer-events:none;
  background:linear-gradient(var(--gb),var(--gb)) left top/16px 1.5px no-repeat,linear-gradient(var(--gb),var(--gb)) left top/1.5px 16px no-repeat,
    linear-gradient(var(--gb),var(--gb)) right top/16px 1.5px no-repeat,linear-gradient(var(--gb),var(--gb)) right top/1.5px 16px no-repeat,
    linear-gradient(var(--gb),var(--gb)) left bottom/16px 1.5px no-repeat,linear-gradient(var(--gb),var(--gb)) left bottom/1.5px 16px no-repeat,
    linear-gradient(var(--gb),var(--gb)) right bottom/16px 1.5px no-repeat,linear-gradient(var(--gb),var(--gb)) right bottom/1.5px 16px no-repeat}
.w3-hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(62,232,187,.045) 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,rgba(62,232,187,.045) 0 1px,transparent 1px 22px)}
.w3-hero>*{position:relative;z-index:1}
.w3-id{display:flex;align-items:center;gap:12px}
.w3-av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(3,16,11,.55);border:1.5px solid var(--gold);color:var(--gold-hi);font-size:20px;font-weight:800}
.w3-id-t{min-width:0;flex:1}
.w3-id-t strong{display:block;font-size:17px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.w3-id-t small{display:block;color:var(--mu);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.w3-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:rgba(3,16,11,.55);border:1px solid rgba(227,187,83,.35);color:#f6e7ad;font-size:12px;font-weight:800;white-space:nowrap;flex:none}
.w3-pill i{width:7px;height:7px;background:var(--c,#3ee8bb);transform:rotate(45deg)}
.w3 .s-soon{--c:#ffd27a}.w3 .s-hold{--c:#7fd6ee}.w3 .s-off{--c:#ff8da0}.w3 .s-block{--c:#ff8da0}.w3 .s-none{--c:#c4d8cd}
.w3-time{display:flex;align-items:center;gap:16px;margin-top:18px}
.w3-ring{position:relative;width:128px;height:128px;flex:none}
.w3-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.w3-ring circle{fill:none}
.w3-ring .tr{stroke:rgba(62,232,187,.16);stroke-width:8}
.w3-ring .pg{stroke-width:8;stroke-linecap:round;transition:stroke-dashoffset .8s ease}
.w3-ring .tk{stroke:rgba(62,232,187,.55);stroke-width:3;stroke-dasharray:1.3 4.9}
.w3-ring .in{stroke:rgba(227,187,83,.35);stroke-width:.8}
.w3-ring-c{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.w3-ring-c b{font-size:36px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;color:var(--gold-hi)}
.w3-ring-c small{margin-top:4px;font-size:12px;color:var(--mu)}
.w3-hms{flex:1;min-width:0}
.w3-hms>small{display:block;font-size:12px;color:var(--mu);margin-bottom:8px}
.w3-hms-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.w3-hms-row div{padding:8px 0 7px;border-radius:13px;background:rgba(3,16,11,.5);border:1px solid rgba(62,232,187,.2);text-align:center}
.w3-hms-row b{display:block;font-size:22px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;direction:ltr;color:#f4e9b8}
.w3-hms-row span{display:block;margin-top:2px;font-size:11px;color:var(--mu)}
.w3-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0 16px;padding-top:14px;border-top:1px solid rgba(227,187,83,.25)}
.w3-hero-stats div{padding-inline:4px;min-width:0}
.w3-hero-stats div+div{border-inline-start:1px solid rgba(227,187,83,.2);padding-inline-start:12px}
.w3-hero-stats small{display:block;font-size:11px;color:var(--mu)}
.w3-hero-stats b{display:block;margin-top:1px;font-size:14px;font-weight:800;white-space:nowrap}
.w3-hero-note{margin:16px 0 0;padding:11px 13px;border-radius:14px;background:rgba(0,0,0,.28);border:1px solid rgba(227,187,83,.2);font-size:13px;line-height:1.7}

/* ---- visitor welcome: the logo badge ---- */
.w3-welcome{position:relative;overflow:hidden;border-radius:28px;padding:20px 20px 20px;color:var(--tx);text-align:center;border:1px solid rgba(227,187,83,.42);
  background:radial-gradient(110% 80% at 50% 0%,rgba(62,232,187,.2),transparent 60%),linear-gradient(150deg,#0e5a41 0%,#073123 55%,#041a12 100%);
  box-shadow:0 14px 26px -18px rgba(20,160,110,.9)}
.w3-welcome::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(62,232,187,.045) 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,rgba(62,232,187,.045) 0 1px,transparent 1px 22px)}
.w3-welcome>*{position:relative;z-index:1}
.w3-welcome .big{display:block;width:112px;height:112px;margin:0 auto 8px;overflow:visible}\n.w3-welcome .w3-official-hero-logo{border-radius:50%;object-fit:cover;box-shadow:0 0 20px rgba(227,187,83,.23)}
.w3-welcome h1{font-size:23px;font-weight:800;color:var(--gold-hi)}
.w3-welcome p{margin:6px 0 18px;color:var(--mu);font-size:14px}
.w3-welcome .w3-btn+.w3-btn{margin-top:10px}
.w3-steps{counter-reset:s}
.w3-step{display:flex;align-items:center;gap:13px;padding:13px 14px;background:var(--card);border:1px solid var(--line);border-radius:18px}
.w3-step+.w3-step{margin-top:10px}
.w3-step::before{counter-increment:s;content:counter(s);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(227,187,83,.1);border:1px solid rgba(227,187,83,.45);color:var(--gold);font-weight:800}
.w3-step strong{display:block;font-size:15px}
.w3-step small{display:block;color:var(--mu);font-size:12px}

/* ---- quick actions ---- */
.w3-qa{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:14px}
.w3-qa button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 2px 11px;border-radius:18px;background:var(--card);border:1px solid var(--line);font-size:12px;font-weight:800;text-align:center;line-height:1.3}
.w3-qa button:active{background:var(--card2)}
.w3 .ico{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;flex:none;background:rgba(var(--cr,227,187,83),.13);border:1px solid rgba(var(--cr,227,187,83),.3);color:var(--c,var(--gold))}
.w3 .c1{--c:#e8c25a;--cr:232,194,90}.w3 .c2{--c:#3ee8bb;--cr:62,232,187}.w3 .c3{--c:#f0a04b;--cr:240,160,75}.w3 .c4{--c:#a5e36a;--cr:165,227,106}.w3 .c5{--c:#2fcf93;--cr:47,207,147}.w3 .c6{--c:#45cfe0;--cr:69,207,224}

/* ---- lists / rows ---- */
.w3-list{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.w3-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;min-height:62px}
.w3-row+.w3-row{border-top:1px solid var(--line)}
.w3-row:active{background:var(--card2)}
.w3-row .ico{width:40px;height:40px;border-radius:13px}
.w3-row .tx{flex:1;min-width:0}
.w3-row strong{display:block;font-size:15px;font-weight:700;line-height:1.35}
.w3-row small{display:block;color:var(--mu);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.w3-row .val{color:var(--mu);font-size:13px;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.w3-row .chev{color:var(--gold);opacity:.7;width:18px;height:18px}
.w3-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.w3-mini{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:13px;border-radius:18px;background:var(--card);border:1px solid var(--line);min-height:104px}
.w3-mini:active{background:var(--card2)}
.w3-mini .ico{width:38px;height:38px;border-radius:13px}
.w3-mini strong{display:block;font-size:14px;font-weight:800;line-height:1.3}
.w3-mini small{display:block;color:var(--mu);font-size:12px}

/* ---- devices ---- */
.w3-dev{display:flex;align-items:center;gap:12px;padding:11px 0}
.w3-dev+.w3-dev{border-top:1px solid var(--line)}
.w3-dev .ico{width:42px;height:42px}
.w3-dev .tx{flex:1;min-width:0}
.w3-dev strong{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.w3-dev small{display:block;color:var(--mu);font-size:12px}
.w3-cap{display:flex;gap:5px;margin-top:12px}
.w3-cap i{flex:1;height:6px;border-radius:3px;background:var(--raise)}
.w3-cap i.on{background:var(--goldg)}
.w3-cap-top{display:flex;align-items:baseline;justify-content:space-between}
.w3-cap-top b{font-size:30px;font-weight:800;line-height:1;direction:ltr;color:var(--gold-hi)}
.w3-cap-top span{color:var(--mu);font-size:13px}
.w3-empty{display:grid;justify-items:center;gap:8px;padding:22px 10px;text-align:center;color:var(--mu);font-size:14px}
.w3-empty .ico{width:54px;height:54px;border-radius:18px}
.w3-empty strong{color:var(--tx);font-size:16px}

/* ---- forms ---- */
.w3-f{display:block;margin-bottom:14px}
.w3-f-l{display:block;margin:0 2px 7px;color:var(--mu);font-size:13px;font-weight:700}
.w3-in{display:block;width:100%;height:52px;padding:0 14px;border-radius:15px;border:1px solid var(--line2);background:var(--bg2);color:var(--tx);font-size:16px;outline:0}
.w3-in::placeholder{color:var(--di)}
.w3-in[type="file"]{height:auto;min-height:54px;padding:13px 12px;line-height:1.4}
.w3-in[type="file"]::file-selector-button{
  padding:9px 12px;margin-inline-end:10px;border:1px solid var(--gl);
  border-radius:10px;background:var(--card2);color:var(--gold-hi);
  font:inherit;font-weight:700;
}
.w3-in[type="password"]{direction:ltr;text-align:start}
.w3 select.w3-in{cursor:pointer;color:var(--tx)}
.w3-btn[disabled]{opacity:.55;cursor:wait}

.w3-in:focus{border-color:var(--mint);box-shadow:0 0 0 3px rgba(62,232,187,.2)}
.w3-f.bad .w3-in{border-color:var(--bd)}
.w3-f-e{display:block;margin:6px 2px 0;color:var(--bd);font-size:12px;font-weight:600}
.w3-f-h{display:block;margin:6px 2px 0;color:var(--di);font-size:12px}
.w3-pw{position:relative}
.w3-pw .w3-in{padding-right:50px}
.w3-pw button{position:absolute;top:0;bottom:0;right:4px;width:44px;display:grid;place-items:center;color:var(--di)}
.w3-pw button[aria-pressed=true]{color:var(--gold)}
.w3-str{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:9px}
.w3-str i{height:5px;border-radius:3px;background:var(--raise)}
.w3-str i.on{background:var(--c)}
.w3-str-t{display:block;margin-top:6px;font-size:12px;color:var(--mu)}
.w3-chk{display:flex;align-items:center;gap:11px;min-height:44px;margin:0 0 8px;color:var(--mu);font-size:13px;line-height:1.7;text-align:start}
.w3-chk i{width:22px;height:22px;border-radius:7px;border:1.5px solid var(--line2);flex:none;display:grid;place-items:center;margin-top:1px;color:transparent}
.w3-chk[aria-checked=true] i{background:var(--goldg);border-color:var(--gold);color:var(--ink)}
.w3-chk .w3-i{width:15px;height:15px;stroke-width:3}
.w3-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;background:var(--card);border:1px solid var(--line);border-radius:15px}
.w3-seg button{height:40px;border-radius:11px;color:var(--mu);font-size:14px;font-weight:700;text-align:center;display:flex;align-items:center;justify-content:center;gap:7px}
.w3-seg button .w3-i{width:18px;height:18px}
.w3-seg button[aria-selected=true]{background:var(--raise);color:#f6e7ad;box-shadow:inset 0 0 0 1px rgba(227,187,83,.5)}

/* ---- switch rows ---- */
.w3-sw-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;min-height:56px}
.w3-sw-row+.w3-sw-row{border-top:1px solid var(--line)}
.w3-sw-row span:first-child{flex:1;font-size:14px;font-weight:600}
.w3-sw{position:relative;width:50px;height:30px;border-radius:15px;background:var(--raise);border:1px solid var(--line2);flex:none;transition:background .15s}
.w3-sw::after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s}
[aria-checked=true]>.w3-sw{background:#12a67e;border-color:var(--mint)}
[aria-checked=true]>.w3-sw::after{transform:translateX(-20px)}
.w3-glab{margin:20px 4px 8px;color:var(--mu);font-size:13px;font-weight:800}
.w3-glab:first-child{margin-top:0}

/* ---- checkout ---- */
.w3-ribbon{display:flex;align-items:center;gap:9px;padding:11px 14px;margin-bottom:16px;border-radius:15px;background:rgba(240,180,60,.1);border:1px solid rgba(240,180,60,.32);color:var(--am);font-size:13px;font-weight:700;line-height:1.6}
.w3-plan{position:relative;display:flex;align-items:center;gap:13px;width:100%;padding:15px 14px;border-radius:20px;background:var(--card);border:1.5px solid var(--line)}
.w3-plan+.w3-plan{margin-top:12px}
/* The production catalogue shares the owner's approved full-width plan design. */
.w3-live-checkout .w3-plan{cursor:pointer}
.w3-live-checkout>.w3-sec{margin-top:16px}
.w3-live-checkout>.w3-seg{margin-top:0}
.w3-live-method{display:flex;align-items:center;gap:12px;padding:13px;border-radius:16px;border:1px solid var(--line);background:var(--card)}
.w3-live-method .ico{flex:none}
.w3-live-method>div{flex:1;min-width:0}
.w3-live-method strong{display:block;font-size:14px}
.w3-live-method small{display:block;margin-top:3px;font-size:12px;color:var(--mu);line-height:1.7}
.w3-live-checkout .w3-sum{margin-top:12px;padding:13px 4px;border-top:1px solid var(--line)}
.w3-live-checkout .w3-seg button[aria-selected=true]{color:var(--gold-hi)}
/* Three methods share one row; no additional activation form below the checkout. */
.w3-checkout-modes button{min-width:0;padding:0 3px;gap:4px;font-size:clamp(11px,3.2vw,14px)}
.w3-checkout-modes button .w3-i{width:16px;height:16px;flex:none}
.w3-live-code-panel,.w3-preview-code-panel{margin-top:12px}
.w3-live-code-panel .w3-f:first-child{margin-top:0}
.w3-live-provider{margin-top:12px;overflow:visible;padding:14px 10px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
/* Geidea's genuine wallet button replaces the preview-only black Pay button. */
.w3-live-provider[data-mode="apple"]{padding:0;border:0;background:transparent;border-radius:18px}
.w3-live-provider[data-mode="apple"] .w3-geidea-wallet{min-height:56px}
.w3-live-provider[data-mode="apple"] .w3-geidea-status:empty{display:none}
.w3-geidea-wallet{width:100%;min-height:60px;overflow:visible}
.w3-geidea-wallet iframe{display:block;width:100%;min-height:56px;border:0}
/* Geidea's SDK sets the checkout host to 600px and resizes it through
   resizeCheckoutContainer messages. Do not impose an 880px floor: it made
   a large white area below the actual card form and prevented resizing. */
.w3-geidea-card{width:100%;min-height:64px;overflow:visible;background:transparent;border-radius:14px;isolation:isolate}
.w3-geidea-card iframe{display:block;width:100%;height:100%;min-height:0;border:0}
.w3-geidea-status{padding:10px 5px 4px;text-align:center;line-height:1.8;font-size:12px}
.w3-geidea-status:empty{display:none}

.w3-plan[aria-checked=true]{border-color:var(--gold);background:linear-gradient(135deg,rgba(227,187,83,.14),rgba(62,232,187,.06))}
.w3-radio{width:24px;height:24px;border-radius:50%;border:2px solid var(--di);display:grid;place-items:center;flex:none;color:transparent}
.w3-radio .w3-i{width:14px;height:14px;stroke-width:3.2}
.w3-plan[aria-checked=true] .w3-radio{background:var(--goldg);border-color:var(--gold);color:var(--ink)}
.w3-plan .tx{flex:1;min-width:0}
.w3-plan .tx strong{display:block;font-size:16px;font-weight:800}
.w3-plan .tx small{display:block;color:var(--mu);font-size:12px}
.w3-plan .pr{text-align:end;flex:none}
.w3-plan .pr b{display:block;font-size:24px;font-weight:800;line-height:1.1;direction:ltr;color:var(--gold-hi)}
.w3-plan .pr small{display:block;color:var(--mu);font-size:11px;direction:ltr}
.w3-tag{position:absolute;top:-10px;inset-inline-end:16px;padding:2px 10px;border-radius:999px;background:var(--goldg);color:var(--ink);font-size:11px;font-weight:800}
.w3-tag.cur{background:rgba(62,232,187,.14);color:var(--mint);border:1px solid rgba(62,232,187,.4)}
.w3-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 14px}
.w3-sum span{color:var(--mu);font-size:14px}
.w3-sum b{font-size:22px;font-weight:800;direction:ltr;color:var(--gold-hi)}
.w3-or{display:flex;align-items:center;gap:12px;margin:20px 0 14px;color:var(--di);font-size:12px;font-weight:700}
.w3-or::before,.w3-or::after{content:"";flex:1;height:1px;background:var(--line)}
.w3-cardform{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-top:14px}
.w3-cardform .full{grid-column:1/-1}
.w3-code-row{display:flex;gap:10px}
.w3-code-row .w3-f{flex:1;margin:0}
.w3-code-row .w3-btn{min-height:52px;flex:none}
.w3-code-row .w3-f-l{display:none}

/* ---- referral / telegram / info ---- */
.w3-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(227,187,83,.13),rgba(62,232,187,.06));border:1px solid var(--gl)}
.w3-code small{display:block;color:var(--mu);font-size:12px}
.w3-code b{display:block;margin-top:3px;font-size:22px;font-weight:800;letter-spacing:1.5px;direction:ltr;text-align:start;color:var(--gold-hi);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.w3-bignum{display:flex;align-items:baseline;gap:6px}
.w3-bignum b{font-size:40px;font-weight:800;line-height:1;color:var(--gold)}
.w3-bignum span{color:var(--mu);font-size:14px}
.w3-hero-sm{display:flex;align-items:center;gap:14px;padding:16px;border-radius:22px;background:var(--card);border:1px solid var(--line)}
.w3-hero-sm .ico{width:54px;height:54px;border-radius:18px}
.w3-hero-sm>div:last-child{min-width:0;flex:1}
.w3-hero-sm strong{display:block;font-size:17px;overflow-wrap:anywhere}
.w3-hero-sm small{display:block;color:var(--mu);font-size:13px;margin-top:1px;overflow-wrap:anywhere}
.w3-steps-l{margin:0;padding:0;list-style:none;counter-reset:l}
.w3-steps-l li{display:flex;gap:11px;align-items:flex-start;padding:9px 0;font-size:14px;line-height:1.7;color:var(--mu)}
.w3-steps-l li::before{counter-increment:l;content:counter(l);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(227,187,83,.1);border:1px solid rgba(227,187,83,.45);color:var(--gold);font-size:12px;font-weight:800;margin-top:2px}

/* ---- dock ---- */
.w3-dock{position:sticky;bottom:0;z-index:20;margin-top:auto;background:#031610;border-top:1px solid rgba(227,187,83,.28)}
.w3-dock>div{display:grid;grid-template-columns:repeat(4,1fr);max-width:480px;margin:0 auto;padding:7px 8px max(8px,env(safe-area-inset-bottom))}
.w3-tab{display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 0;color:var(--di);font-size:11px;font-weight:700;text-align:center}
.w3-tab .ti{width:52px;height:30px;border-radius:15px;display:grid;place-items:center;transition:background .15s}
.w3-tab[aria-current=page]{color:var(--gold)}
.w3-tab[aria-current=page] .ti{background:rgba(227,187,83,.14)}

/* ---- sheet + toast ---- */
.w3-ov{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
.w3-ov::before{content:"";position:absolute;inset:0;background:rgba(1,6,4,.72)}
.w3-sh{position:relative;width:100%;max-width:480px;max-height:88vh;overflow:auto;padding:10px 18px max(22px,env(safe-area-inset-bottom));background:var(--card);border:1px solid rgba(227,187,83,.32);border-bottom:0;border-radius:28px 28px 0 0;animation:w3up .22s ease-out}
@keyframes w3up{from{transform:translateY(26px);opacity:0}to{transform:none;opacity:1}}
.w3-grab{width:40px;height:4px;border-radius:2px;background:rgba(227,187,83,.5);margin:0 auto 16px}
.w3-sh h2{font-size:20px;font-weight:800;margin-bottom:6px;color:var(--gold-hi)}
.w3-sh p{color:var(--mu);font-size:14px;line-height:1.75;margin-bottom:16px}
.w3-sh .w3-btn+.w3-btn{margin-top:10px}
.w3-ok{width:76px;height:76px;margin:6px auto 14px;border-radius:50%;display:grid;place-items:center;background:rgba(62,232,187,.12);color:var(--ok);border:2px solid rgba(62,232,187,.45)}
.w3-ok .w3-i{width:38px;height:38px;stroke-width:2.6;stroke-dasharray:30;stroke-dashoffset:30;animation:w3draw .45s .1s ease-out forwards}
@keyframes w3draw{to{stroke-dashoffset:0}}
.w3-spin{width:54px;height:54px;margin:10px auto 16px;border-radius:50%;border:4px solid var(--raise);border-top-color:var(--gold);animation:w3rot .8s linear infinite}
@keyframes w3rot{to{transform:rotate(360deg)}}
.w3-center{text-align:center}
.w3-toast{position:fixed;inset-inline:16px;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 78px);z-index:60;max-width:440px;margin:0 auto;padding:12px 14px;border-radius:15px;background:#0c3a2b;border:1px solid rgba(227,187,83,.4);color:var(--tx);font-size:14px;font-weight:600;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.5);animation:w3in .18s ease-out}

/* At 390px the official emblem, EN and account chip need a smaller title.
   This also corrects the one remaining owner-preview layout regression. */
@media (min-width:390px) and (max-width:415px){
  .w3-bar{gap:7px;padding-inline:12px}
  .w3-brand{gap:5px}
  .w3-official-logo{width:40px;height:40px}
  .w3-wm{font-size:16px;letter-spacing:.08em}
  .w3-badge{padding-inline:10px}
}
@media (max-width:389px){
  .w3-bar{gap:6px}.w3-chip{padding:0 10px 0 8px;gap:4px;font-size:12px}.w3-brand{min-width:0;gap:5px}.w3-official-logo{width:42px;height:42px}.w3-wm{font-size:16px;letter-spacing:.08em}.w3-badge{padding:0 10px;gap:5px;font-size:11px}
}
@media (max-width:359px){
  .w3-main{padding-inline:12px}.w3-bar{padding-inline:12px}.w3-mode{margin-inline:12px}
  .w3-official-logo{width:38px;height:38px}.w3-wm{font-size:14px;letter-spacing:.06em}
  .w3-ring{width:112px;height:112px}.w3-ring-c b{font-size:30px}.w3-hms-row b{font-size:19px}
  .w3-qa{gap:7px}.w3-qa button{font-size:11px}.w3-plan .pr b{font-size:21px}
  .w3-cardform{grid-template-columns:1fr}
}
/* Responsive Telegram WebView layout:
   phone/split-screen keeps 480px; tablet and desktop use their available width.
   Never infer content width from UA alone (iPad Split View can be phone-sized). */
@media (min-width:700px){
  .w3-wrap,.w3-main{max-width:760px}
  .w3-main{padding:18px 24px 42px}
  .w3-dock>div{max-width:760px}
  .w3-bar{padding-inline:14px}
  .w3-live-provider[data-mode="card"]{max-width:700px;margin-inline:auto}
  .w3-sh{max-width:700px}
}
@media (min-width:1100px){
  .w3-wrap,.w3-main{max-width:940px}
  .w3-main{padding:20px 32px 48px}
  .w3-dock>div{max-width:940px}
  .w3-live-provider[data-mode="card"]{max-width:760px}
  .w3-sh{max-width:760px}
}
@media (prefers-reduced-motion:reduce){.w3 *,.w3 *::before,.w3 *::after{animation:none!important;transition:none!important}}

/* Published V3 customer presentation. No admin-preview selectors are changed. */
body.wa3-live:not(.wa-admin-mode){
  padding:0!important;
  background:#03100b!important;
}
body.wa3-live:not(.wa-admin-mode) .topbar{display:none!important}
body.wa3-live:not(.wa-admin-mode) .app-shell{
  width:100%;max-width:100%;margin:0;
}
body.wa3-live:not(.wa-admin-mode) .main-content.onepage-main{
  width:100%;max-width:100%;padding:0!important;
}
body.wa3-live:not(.wa-admin-mode) #customerHome{
  width:100%;max-width:100%;margin:0;padding:0;
}
body.wa3-live:not(.wa-admin-mode) #customerHome > :not(.wa-customer-v3-live-host){
  display:none!important;
}
body.wa3-live:not(.wa-admin-mode) .wa-customer-v3-live-host{
  width:100%;max-width:100%;margin:0;padding:0;
}
body.wa3-live:not(.wa-admin-mode) .w3{
  min-height:100vh;min-height:100dvh;
}
body.wa3-live:not(.wa-admin-mode) .sheet-card{
  border-color:#c59c57;
}
body.wa3-live:not(.wa-admin-mode) .sheet input,
body.wa3-live:not(.wa-admin-mode) .sheet select{
  font-size:16px;
}

/* V3 English mirrors the customer view; payment inputs retain their own layout. */
.w3[dir="ltr"]{direction:ltr;text-align:start}
.w3-lang{flex:none;min-width:45px;height:34px;padding:0 7px;border-radius:10px;border:1px solid var(--line2);background:var(--card2);color:var(--gold);font-size:12px;font-weight:800;text-align:center}
.w3-lang[disabled]{opacity:.55}

/* Owner-only reseller illustration; real checkout uses the same provider SDK. */
.w3-reseller .wa-reseller-card-preview{background:#fff;color:#23354b;border-radius:0 0 12px 12px;overflow:hidden;padding:0 15px 18px}
.w3-reseller .wa-reseller-preview-brand{display:grid;place-items:center;background:#092d24;margin:0 -15px 18px;padding:7px 0;border-radius:0 0 50% 8%}
.w3-reseller .wa-reseller-preview-logo{width:88px;height:88px;object-fit:contain}
.w3-reseller .wa-reseller-card-preview h3{margin:20px 0;color:#23354b;font-size:17px}
.w3-reseller .wa-reseller-card-preview h3:first-of-type{text-align:center;font-size:21px}
.w3-reseller .wa-reseller-preview-banks{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:22px 0 12px;font-size:14px}
.w3-reseller .wa-reseller-preview-banks>div{display:flex;gap:5px;direction:ltr}
.w3-reseller .wa-reseller-preview-banks span{font-size:10px;font-weight:900;padding:5px 6px;color:#244e7b;background:#ebeff3;border-radius:4px}
.w3-reseller .wa-reseller-card-preview .w3-f-l{color:#23354b}
.w3-reseller .wa-reseller-card-preview .w3-in{background:#f1f1f1;color:#23354b;border-color:#e8e8e8;border-radius:16px;opacity:1;text-align:right}
.w3-reseller .wa-reseller-card-preview .w3-in::placeholder{color:#9ca7b4}
.w3-reseller .wa-reseller-card-preview .w3-cardform{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.w3-reseller .wa-reseller-preview-notice{color:#546577;font-size:11px;margin-top:12px}
.w3-reseller .w3-geidea-wallet>.blk{max-width:260px;margin:20px auto;display:flex;justify-content:center}
/* VIP uses the same plan layout; color only the VIP prices. */
.w3-reseller.w3-reseller-vip .w3-live-checkout .w3-plan .pr b,
.w3-reseller.w3-reseller-vip .w3-live-checkout .w3-sum b{color:#ff6573}
.w3-reseller.w3-reseller-vip .w3-live-checkout .w3-plan .pr small{color:#ff9ca4}
.w3-reseller.w3-reseller-vip .w3-live-checkout .w3-vip-usd{color:#ff6573;direction:ltr;unicode-bidi:isolate}

/* Browser account: same V3 surface without Telegram's top chrome. */
body.wa-web-customer.wa3-live .w3{padding-top:max(18px,env(safe-area-inset-top))}

/* Customer retail VIP keeps the same compact plan cards; only VIP prices turn red. */
.w3-customer-tiers{margin:8px 0 16px}
.w3-customer-tiers button[aria-selected=true]{color:var(--gold-hi)}
.w3-live-checkout.w3-customer-vip .w3-plan .pr b,
.w3-live-checkout.w3-customer-vip .w3-sum b{color:#ff6573}
.w3-live-checkout.w3-customer-vip .w3-plan .pr small{color:#ff9ca4}
