:root{--bg:#f5f5f2;--ink:#121212;--muted:#6d6d68;--yellow:#ffd400;--yellow2:#ffe466;--card:#fff;--green:#0d8f55;--red:#d82c2c;--line:#e8e8e1;--shadow:0 12px 32px rgba(0,0,0,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.hidden{display:none!important}button,input{font:inherit}button{cursor:pointer}.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%) translateY(-80px);background:#111;color:#fff;padding:12px 16px;border-radius:12px;z-index:1000;transition:.25s;max-width:90%;box-shadow:var(--shadow)}.toast.show{transform:translateX(-50%) translateY(0)}.toast.error{background:#a81717}
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#111}.brand-card{padding:7vw;background:radial-gradient(circle at 80% 20%,#ffe266 0,#ffd400 35%,#efbd00 100%);display:flex;flex-direction:column;justify-content:center}.brand-mark{font-weight:1000;font-size:44px;letter-spacing:-3px}.brand-mark span{background:#111;color:#ffd400;padding:0 5px;border-radius:8px;margin-left:2px}.brand-mark.small{font-size:26px;letter-spacing:-2px}.eyebrow{font-weight:900;letter-spacing:3px}.brand-card h1{font-size:clamp(40px,6vw,88px);line-height:.96;margin:18px 0 32px;max-width:760px}.offer-card{max-width:650px;background:#111;color:#fff;border-radius:26px;padding:26px;display:flex;justify-content:space-between;align-items:end;gap:18px}.offer-card div{display:flex;flex-direction:column}.offer-card strong{font-size:56px;color:var(--yellow)}.offer-card .price strong{font-size:44px}.offer-card small,.offer-card span{color:#d9d9d9}.auth-card{background:#fff;padding:8vw 7vw;display:flex;flex-direction:column;justify-content:center}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:28px}.tab{border:0;background:none;padding:14px 4px;margin-right:22px;font-weight:800;color:#888;border-bottom:3px solid transparent}.tab.active{color:#111;border-color:var(--yellow)}.form{display:none}.form.active{display:block}.form label{display:block;font-weight:750;margin:16px 0}.form label small{font-weight:500;color:var(--muted)}input{width:100%;border:1px solid #d9d9d2;border-radius:13px;padding:15px;background:#fff;margin-top:7px;outline:none}.search:focus,input:focus{border-color:#c6a400;box-shadow:0 0 0 3px rgba(255,212,0,.18)}.primary,.secondary,.ghost{border:0;border-radius:13px;padding:14px 18px;font-weight:900}.primary{background:#111;color:var(--yellow);width:100%}.primary.big{font-size:18px;padding:18px}.secondary{background:#fff;border:1px solid #ccc}.ghost{background:#fff;border:1px solid var(--line);padding:9px 12px}.legal,.muted{color:var(--muted);font-size:12px;line-height:1.5;margin-top:22px}
.app{min-height:100vh;padding-bottom:86px}.topbar{height:64px;background:#111;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 920px)/2));position:sticky;top:0;z-index:20}.topbar>div{display:flex;align-items:center;gap:8px}.topbar small{letter-spacing:2px;color:#bbb}.topbar .brand-mark span{background:var(--yellow);color:#111}.topbar .ghost{background:#242424;border:0;color:var(--yellow)}main{max-width:920px;margin:auto;padding:22px}.view{display:none}.view.active{display:block}.hello,.page-head,.section-head{display:flex;align-items:center;justify-content:space-between}.hello small,.page-head small{color:var(--muted);font-weight:800;letter-spacing:1.5px}.hello h2,.page-head h2{margin:3px 0 0}.icon-btn,.back,.section-head button{border:0;background:none;font-weight:900}.icon-btn{font-size:20px}.back{font-size:38px;padding:0 15px 0 0}.balance-card{background:#111;color:#fff;padding:24px;border-radius:24px;box-shadow:var(--shadow);margin:18px 0;display:grid;grid-template-columns:1fr auto;align-items:center}.balance-card span{color:#aaa}.balance-card strong{font-size:42px;grid-row:2}.balance-card button{grid-row:1/3;grid-column:2;background:var(--yellow);border:0;border-radius:12px;padding:12px;font-weight:900}.balance-card.compact{display:flex;flex-direction:column;align-items:flex-start}.sell-hero{width:100%;border:0;border-radius:24px;background:linear-gradient(135deg,var(--yellow),var(--yellow2));padding:25px;text-align:left;box-shadow:var(--shadow)}.sell-hero span,.sell-hero small{display:block;font-weight:800}.sell-hero strong{display:block;font-size:36px;margin:3px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.stats-grid>div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}.stats-grid small,.stats-grid span{display:block;color:var(--muted)}.stats-grid strong{display:block;font-size:22px;margin:5px 0}.section-head{margin-top:22px}.section-head h3{margin:0}.section-head button{color:#826b00}.list{display:flex;flex-direction:column;gap:9px;margin-top:12px}.row{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.row .left{min-width:0}.row strong,.row span,.row small{display:block}.row small{color:var(--muted);margin-top:3px}.row .amount{text-align:right}.status{display:inline-block!important;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:3px}.status.success{background:#daf4e7;color:#08683d}.status.pending{background:#fff0bd;color:#725800}.status.failed{background:#ffe0e0;color:#a01515}.page-head{justify-content:flex-start;margin-bottom:18px}.product-box{display:grid;grid-template-columns:auto 1fr auto;gap:15px;background:#111;color:#fff;border-radius:20px;padding:18px;align-items:center}.network{height:52px;width:52px;background:var(--yellow);color:#111;border-radius:14px;display:grid;place-items:center;font-weight:1000}.product-box strong,.product-box span{display:block}.product-box>div:nth-child(2)>strong{font-size:30px;color:var(--yellow)}.agent-price{text-align:right}.agent-price small{display:block;color:#aaa}.agent-price strong{font-size:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;margin-top:14px}.profit-preview{background:#eef9f3;color:#0a6f42;padding:13px;border-radius:12px;display:flex;justify-content:space-between}.warning{font-size:12px;line-height:1.5;color:#755d00;background:#fff6d7;border:1px solid #f4df8c;padding:12px;border-radius:12px;margin:14px 0}.quick-amounts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick-amounts button{border:1px solid var(--line);background:#fafafa;border-radius:10px;padding:10px;font-weight:800}.search{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fff}.receipt{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}.receipt-head{text-align:center;border-bottom:1px dashed #ccc;padding-bottom:18px}.receipt-head .logo{font-weight:1000;font-size:27px}.receipt-head .logo span{color:#ad8d00}.receipt-status{text-align:center;padding:18px}.receipt-status strong{display:block;font-size:25px}.receipt-lines{display:grid;grid-template-columns:1fr auto;gap:13px;padding:18px 0;border-top:1px dashed #ccc;border-bottom:1px dashed #ccc}.receipt-lines span:nth-child(odd){color:var(--muted)}.receipt-footer{text-align:center;color:var(--muted);font-size:12px;padding-top:18px}.receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.switchline{display:flex!important;justify-content:space-between;align-items:center}.switchline input{width:auto}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;z-index:30;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{width:min(20%,184px);border:0;background:none;padding:10px 5px;color:#777;font-size:20px}.bottom-nav span{display:block;font-size:11px;margin-top:2px}.bottom-nav button.active{color:#111;font-weight:900}.bottom-nav button.active:before{content:"";display:block;height:3px;background:var(--yellow);border-radius:3px;margin:-10px 20px 7px}
@media(max-width:760px){.auth-wrap{display:block;background:var(--bg)}.brand-card{padding:30px 20px 24px;min-height:42vh}.brand-card h1{font-size:42px;margin:10px 0 22px}.brand-mark{font-size:34px}.offer-card{padding:18px}.offer-card strong{font-size:43px}.offer-card .price strong{font-size:33px}.auth-card{padding:25px 20px 50px}.stats-grid{grid-template-columns:repeat(3,1fr);gap:8px}.stats-grid>div{padding:12px}.stats-grid strong{font-size:17px}.balance-card strong{font-size:36px}.quick-amounts{grid-template-columns:repeat(2,1fr)}.receipt-actions{grid-template-columns:1fr}.topbar{padding:0 18px}main{padding:18px}.product-box{grid-template-columns:auto 1fr}.agent-price{grid-column:2;text-align:left}.sell-hero strong{font-size:31px}}

/* TAI247 PWA install CTA */
.install-panel{
  margin-top:18px;
}

.install-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:4px 0 14px;
  color:#8a8a8a;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.install-divider::before,
.install-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:#e6e2d8;
}

.install-cta{
  width:100%;
  min-height:62px;
  border:1.5px solid #111;
  border-radius:12px;
  background:#fff;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  cursor:pointer;
  padding:10px 18px;
  font:inherit;
}

.install-cta:hover{
  background:#fff8d8;
}

.install-cta .install-icon{
  width:34px;
  height:34px;
  border-radius:9px;
  background:#ffd400;
  display:grid;
  place-items:center;
  color:#111;
  font-size:22px;
  font-weight:900;
  line-height:1;
}

.install-cta > span:last-child{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
}

.install-cta strong{
  font-size:14px;
  font-weight:800;
}

.install-cta small{
  margin-top:2px;
  color:#666;
  font-size:11px;
  font-weight:500;
}

.install-hint{
  margin:10px 4px 0;
  font-size:12px;
  line-height:1.5;
  color:#666;
  text-align:center;
}
