/* CLEAN REBUILD — subscription.css */
/* PasTele UI — CLEAN SAAS DESIGN SYSTEM v2026.09
   One page = one stylesheet. No cascade patches. */
:root{
  --bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--surface-3:#eef2f7;
  --text:#0f172a;--muted:#64748b;--line:#e2e8f0;--line-strong:#cbd5e1;
  --primary:#635bff;--primary-2:#8b5cf6;--cyan:#06b6d4;--blue:#3b82f6;
  --green:#10b981;--orange:#f59e0b;--red:#ef4444;--pink:#ec4899;
  --shadow-sm:0 6px 20px rgba(15,23,42,.06);--shadow:0 18px 55px rgba(15,23,42,.09);
  --radius:16px;--radius-sm:12px;--max:1180px;--nav-h:72px;
  --app-bg:var(--bg);--pt-bg:var(--bg);--pt-surface:var(--surface);--pt-surface-2:var(--surface-2);
  --pt-text:var(--text);--pt-muted:var(--muted);--pt-border:var(--line);--pt-border-strong:var(--line-strong);
  --pt-primary:var(--primary);--pt-primary-2:var(--primary-2);--pt-cyan:var(--cyan);--pt-green:var(--green);--pt-orange:var(--orange);--pt-red:var(--red);
  color-scheme:light;
}
html[data-theme="dark"],html.theme-dark,body.theme-dark{
  --bg:#080d16;--surface:#101722;--surface-2:#151e2b;--surface-3:#1b2635;
  --text:#f8fafc;--muted:#94a3b8;--line:rgba(255,255,255,.10);--line-strong:rgba(255,255,255,.17);
  --shadow-sm:0 8px 24px rgba(0,0,0,.20);--shadow:0 20px 65px rgba(0,0,0,.34);color-scheme:dark;
}
html{scroll-behavior:smooth;background:var(--bg);color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
*,*:before,*:after{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body:has(.navbar){padding:0}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img,svg,video{max-width:100%}h1,h2,h3,h4,h5{line-height:1.2;letter-spacing:-.025em}p{margin-top:0}.container,.page-container,.main-container,.content-container{width:min(var(--max),calc(100% - 32px));margin-inline:auto}.section{padding:40px 0}main{min-height:calc(100vh - 1px)}.muted{color:var(--muted)!important}.hidden{display:none!important}
.row{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.panel,.box,.dashboard-card,.stat-card,.content-card,.form-card,.create-card,.market-card,.product-card,.settings-card{background:var(--surface)!important;color:var(--text);border:1px solid var(--line)!important;border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card{padding:20px}.card:hover{border-color:var(--line-strong)!important}
.btn,.button,button{font-weight:750;-webkit-tap-highlight-color:transparent}.btn,.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 15px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--text);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}.btn:hover,.button:hover{transform:translateY(-1px);background:var(--surface-2)}
.btn.primary,.btn-primary,.button-primary,button.primary{background:linear-gradient(135deg,var(--primary),var(--primary-2))!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 24px rgba(99,91,255,.22)}.btn.primary:hover,.btn-primary:hover,.button-primary:hover,button.primary:hover{box-shadow:0 14px 30px rgba(99,91,255,.30)}.btn.danger,.btn-danger{color:var(--red);background:color-mix(in srgb,var(--red) 8%,var(--surface));border-color:color-mix(in srgb,var(--red) 20%,var(--line))}.btn.success{color:#fff;background:linear-gradient(135deg,#10b981,#059669);border-color:transparent}
input:not([type="radio"]):not([type="checkbox"]),select,textarea,.input,.select,.textarea,.composer{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--line-strong)!important;border-radius:12px;background:var(--surface)!important;color:var(--text)!important;outline:0;transition:border-color .18s,box-shadow .18s,background .18s}.input::placeholder,input::placeholder,textarea::placeholder{color:var(--muted)}textarea,.textarea{min-height:120px;resize:vertical}input:focus,select:focus,textarea:focus,.input:focus,.select:focus,.textarea:focus,.composer:focus{border-color:var(--primary)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 16%,transparent)!important;outline:0}.field{display:grid;gap:7px}.field label,label{color:var(--text);font-weight:750}.field small,.hint,.help-text{color:var(--muted)}
.badge,.chip,.eyebrow{display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}.eyebrow{letter-spacing:.09em;text-transform:uppercase}.notice{padding:13px 15px;border:1px solid color-mix(in srgb,var(--cyan) 25%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--cyan) 8%,var(--surface));color:var(--text)}
.iconbox{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 13%,var(--surface)),color-mix(in srgb,var(--cyan) 10%,var(--surface)));color:var(--primary);font-size:18px}.list{display:grid;gap:4px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-item:hover{background:var(--surface-2)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.table{width:100%;min-width:680px;border-collapse:collapse}.table th,.table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left}.table th{background:var(--surface-2);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.table tbody tr:hover td{background:var(--surface-2)}.empty{text-align:center;padding:44px;color:var(--muted)}.progress{height:8px;background:var(--surface-3);border-radius:99px;overflow:hidden}.progress>i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--cyan),var(--green));border-radius:inherit}.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:3px}.tabs .btn.active{background:color-mix(in srgb,var(--primary) 10%,var(--surface));border-color:color-mix(in srgb,var(--primary) 25%,var(--line));color:var(--primary)}
/* Navbar / footer */
.navbar{min-height:var(--nav-h);background:color-mix(in srgb,var(--surface) 90%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);position:sticky;top:0;z-index:1000}.navbar .container{min-height:var(--nav-h)}.footer{margin-top:40px;padding:32px 0 24px;background:var(--surface);border-top:1px solid var(--line);color:var(--muted)}
/* Full-color icon system */
.fa-solid,.fa-regular,.fa-brands{line-height:1}.fa-link,.fa-link-slash,.fa-arrow-up-right-from-square,.fa-paperclip{color:#3b82f6}.fa-code,.fa-file-code,.fa-terminal,.fa-laptop-code{color:#8b5cf6}.fa-credit-card,.fa-money-check-dollar,.fa-wallet,.fa-coins,.fa-money-bill,.fa-money-bill-transfer{color:#10b981}.fa-chart-line,.fa-chart-simple,.fa-chart-pie,.fa-gauge-high,.fa-chart-column{color:#f59e0b}.fa-telegram,.fa-paper-plane{color:#06a9e8}.fa-rocket,.fa-wand-magic-sparkles,.fa-sparkles{color:#ec4899}.fa-shield-halved,.fa-lock,.fa-key,.fa-user-shield{color:#6366f1}.fa-users,.fa-user-group,.fa-user-plus{color:#06b6d4}.fa-box,.fa-box-open,.fa-bag-shopping{color:#f97316}.fa-bolt,.fa-circle-check,.fa-check,.fa-circle-play{color:#10b981}.fa-store,.fa-shop,.fa-cart-shopping{color:#f43f5e}.fa-gear,.fa-sliders,.fa-wrench{color:#64748b}.fa-bell,.fa-bullhorn{color:#eab308}.fa-trash,.fa-xmark,.fa-circle-xmark{color:#ef4444}.fa-circle-info,.fa-info{color:#06b6d4}.fa-question,.fa-circle-question{color:#a855f7}.fa-right-to-bracket{color:#3b82f6}.fa-right-from-bracket{color:#ef4444}.fa-arrow-trend-up{color:#10b981}.fa-arrow-trend-down{color:#ef4444}.fa-star,.fa-crown{color:#f59e0b}.fa-robot{color:#8b5cf6}.fa-file-lines,.fa-receipt{color:#64748b}.fa-floppy-disk{color:#10b981}.fa-circle-notch{color:var(--primary)}.btn.primary .fa-solid,.btn.primary .fa-regular,.btn.primary .fa-brands,.btn-primary i,.button-primary i{color:#fff!important}.iconbox .fa-brands.fa-telegram,.iconbox .fa-solid{color:inherit}
/* Common icon containers */
.feature-icon,.step-icon,.profile-quick-icon,.section-icon,.preview-icon,.detail-icon,.stat-icon,.kpi-icon{display:grid;place-items:center}.feature-icon i,.step-icon i,.profile-quick-icon i,.section-icon i,.preview-icon i,.stat-icon i,.kpi-icon i{font-size:1.05em}.feature-icon,.step-icon,.profile-quick-icon,.section-icon,.stat-icon,.kpi-icon{background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 13%,var(--surface)),color-mix(in srgb,var(--cyan) 11%,var(--surface)));border:1px solid color-mix(in srgb,var(--primary) 14%,var(--line))}
/* Landing */
.landing-header{position:sticky;top:0;z-index:1000;background:color-mix(in srgb,var(--surface) 88%,transparent);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.landing-header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}.landing-brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:19px}.landing-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--primary),var(--cyan),var(--green));box-shadow:0 10px 24px rgba(99,91,255,.22)}.landing-brand-mark i{color:#fff}.landing-header-actions,.hero-actions,.cta-actions,.trust{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.hero{padding:70px 0 54px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);align-items:center;gap:50px}.hero h1{font-size:clamp(40px,6vw,72px);margin:16px 0}.hero p{max-width:700px;color:var(--muted);font-size:17px}.typing-word{background:linear-gradient(90deg,var(--primary),var(--cyan),var(--pink));background-clip:text;-webkit-background-clip:text;color:transparent}.hero-visual{position:relative;min-height:420px;display:grid;place-items:center}.hero-card{width:min(100%,520px);padding:14px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,var(--surface)),var(--surface));box-shadow:var(--shadow)}.window{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:var(--surface)}.window-head{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px solid var(--line)}.dots{display:flex;gap:5px}.dots i{width:8px;height:8px;border-radius:50%;background:var(--surface-3)}.window-title{font-weight:800;flex:1}.pill{font-size:10px;font-weight:900;color:var(--green)}.dashboard-preview{padding:20px}.preview-kpi{padding:18px;border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 9%,var(--surface)),color-mix(in srgb,var(--cyan) 7%,var(--surface)))}.preview-kpi span{display:block;color:var(--muted)}.preview-kpi b{display:block;font-size:30px;margin:6px 0}.preview-list{display:grid;gap:10px;margin-top:12px}.preview-list>div{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:13px}.preview-list small{display:block;color:var(--muted)}.preview-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);font-size:17px}.floating-card{position:absolute;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(16px)}.floating-card small{display:block;color:var(--muted)}.floating-one{left:-10px;bottom:35px}.floating-two{right:-5px;top:30px}.feature-grid,.monetize-grid,.steps,.topgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.feature,.monetize-card,.step{height:100%}.section-head{max-width:760px;margin:0 auto 26px;text-align:center}.section-head h2{font-size:clamp(28px,4vw,44px);margin:10px 0}.section-head p{color:var(--muted)}.feature-icon{width:50px;height:50px;border-radius:15px;font-size:20px}.feature h3,.monetize-card h3,.step h3{margin:16px 0 8px}.feature-tag{display:inline-flex;gap:7px;align-items:center;margin-top:12px;font-size:12px;font-weight:800;color:var(--muted)}.number,.num{font-weight:900;color:var(--primary)}.monetize-card>i{font-size:28px;margin-top:18px}.step .step-icon{width:54px;height:54px;border-radius:16px;font-size:21px;margin-top:14px}.marketbar,.security-panel,.cta{display:flex;align-items:center;justify-content:space-between;gap:20px}.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.market-skeleton{padding:35px;text-align:center;color:var(--muted);border:1px dashed var(--line-strong);border-radius:16px}.topgrid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}.topcard h3{display:flex;align-items:center;gap:8px}.security-panel,.cta{padding:30px;border-radius:24px;border:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 8%,var(--surface)),var(--surface))}.security-panel{align-items:flex-start}.security-points{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:320px}.security-points span{display:flex;gap:8px;align-items:center;color:var(--muted)}.cta h2{font-size:clamp(28px,4vw,46px);margin:10px 0}.cta p{color:var(--muted);max-width:650px}.btn.light{background:#fff;color:#0f172a}.btn.ghost{background:transparent;color:inherit;border-color:currentColor}
/* Generic responsive */
@media(max-width:1000px){.hero-grid{grid-template-columns:1fr;gap:30px}.hero-copy{text-align:center}.hero-copy p{margin-inline:auto}.hero-actions,.trust{justify-content:center}.feature-grid,.monetize-grid,.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3,.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.container,.page-container,.main-container,.content-container{width:min(100% - 20px,var(--max))}.section{padding:28px 0}.card{padding:16px}.landing-header-inner{min-height:62px}.landing-header-actions .btn{min-height:40px;padding:8px 11px}.landing-header-actions .btn span{display:none}.hero{padding:42px 0 32px}.hero h1{font-size:clamp(34px,11vw,52px)}.hero p{font-size:15px}.hero-actions .btn{width:100%}.hero-visual{min-height:390px}.floating-card{position:relative;inset:auto!important;margin-top:10px;width:100%}.hero-visual{display:block}.hero-card{margin-inline:auto}.feature-grid,.monetize-grid,.steps,.grid-2,.grid-3,.grid-4,.market-grid,.topgrid{grid-template-columns:1fr}.marketbar,.security-panel,.cta{align-items:flex-start;flex-direction:column}.security-points{min-width:0;width:100%;grid-template-columns:1fr}.preview-list>div{grid-template-columns:38px 1fr auto}.btn,.button{min-height:46px}.table{min-width:620px}.tabs{scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(hover:none){.btn:hover,.button:hover{transform:none}}
/* Theme safety: common hard-coded white/black surfaces follow the active theme. */
html[data-theme="dark"] body,[data-theme="dark"] .card,[data-theme="dark"] .panel,[data-theme="dark"] .box{color:var(--text)}

/* PAGE-SPECIFIC COMPONENTS */
/* ===== SOURCE: css/app.css ===== */
/* PasTele canonical shared UI stylesheet. */

/* ===== global.css ===== */

:root{
  --app-bg:#f4f7fa;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --surface-blue:#edf7ff;
  --text:#17212b;
  --muted:#70808f;
  --line:#e3e9ee;
  --line-strong:#d5e0e8;
  --blue:#2aabee;
  --blue-dark:#229ed9;
  --cyan:#2aabee;
  --green:#21a366;
  --blue-soft:#e8f4fb;
  --success:#21a366;
  --warning:#d99a00;
  --danger:#e55353;
  --shadow-sm:0 1px 2px rgba(23,33,43,.04);
  --shadow:0 10px 32px rgba(23,33,43,.06);
  --radius:14px;
  --radius-lg:18px;
  --sidebar:272px;
}
html{scroll-behavior:smooth}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  background:var(--app-bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
  line-height:1.55;
}
body:has(.navbar){padding:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}
h1,h2,h3,h4{line-height:1.25;letter-spacing:-.25px}
.container{width:min(1120px,calc(100% - 32px));margin-inline:auto}
.section{padding:34px 0}
main{min-height:calc(100vh - 1px)}
.muted{color:var(--muted)!important}
.hidden{display:none!important}
.row{display:flex;align-items:center;gap:10px}
.wrap{flex-wrap:wrap}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.card{padding:20px}
.card:hover{border-color:var(--line-strong)}
.btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-weight:650;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.btn:hover{background:var(--surface-soft);border-color:#c7d5df;transform:translateY(-1px)}
.btn.primary,.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
  box-shadow:0 5px 16px rgba(42,171,238,.18);
}
.btn.primary:hover,.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn.danger{color:var(--danger);background:#fff4f4;border-color:#f3d0d0;box-shadow:none}
.input,.select,.textarea,.composer{
  width:100%;
  min-height:42px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  outline:0;
  padding:10px 12px;
  background:var(--surface);
  color:var(--text);
  transition:border-color .16s,box-shadow .16s;
}
.input:focus,.select:focus,.textarea:focus,.composer:focus{
  border-color:#76bce5;
  box-shadow:0 0 0 3px rgba(42,171,238,.10);
}
.textarea{min-height:120px;resize:vertical}
.field{display:grid;gap:6px}
.field label{font-size:12px;font-weight:700;color:#526474}
.notice{
  padding:12px 14px;
  border:1px solid #d7ebf8;
  border-radius:10px;
  background:var(--surface-blue);
  color:#31556b;
}
.badge,.chip,.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid #d7ebf8;
  background:var(--surface-blue);
  color:var(--blue-dark);
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:750;
}
.iconbox{
  width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;
  border-radius:12px;background:var(--blue-soft);color:var(--blue-dark);
}
.list{display:grid;gap:4px}
.list-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px;border-bottom:1px solid var(--line);
}
.list-item:last-child{border-bottom:0}
.list-item:hover{background:var(--surface-soft)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.table{width:100%;min-width:680px;border-collapse:collapse}
.table th,.table td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left}
.table th{background:var(--surface-soft);font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.35px}
.table tbody tr:hover td{background:#fbfdff}
.empty{text-align:center;padding:42px;color:var(--muted)}
.progress{height:8px;background:#eef2f5;border-radius:99px;overflow:hidden}
.progress>i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#54c7f5);border-radius:inherit}
.tabs{display:flex;gap:6px;overflow:auto;padding-bottom:3px}
.tabs .btn.active{background:var(--blue-soft);border-color:#bfe1f4;color:var(--blue-dark)}
.kpi{font-size:12px;color:var(--muted)}
.footer{
  margin-top:36px;
  padding:30px 0 22px;
  background:var(--surface);
  border-top:1px solid var(--line);
  color:var(--muted);
}
.footer a:hover{color:var(--blue-dark)}
#toast{z-index:2000}
.toast{
  position:fixed;right:18px;bottom:18px;
  padding:11px 15px;border-radius:10px;
  background:#17212b;color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.18);
}
@media(max-width:900px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .container{width:min(100% - 22px,1120px)}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .section{padding:24px 0}
  .card{padding:16px}
}
html[data-theme="dark"]{
  --app-bg:#0e1621;--surface:#17212b;--surface-soft:#202b36;
  --surface-blue:#1e3a52;--text:#eef4f8;--muted:#9aaab8;
  --line:#263442;--line-strong:#334453;--blue:#2aabee;--blue-dark:#53b9ed;
  --blue-soft:#1c3a52;
  --shadow-sm:0 1px 2px rgba(0,0,0,.20);--shadow:0 12px 35px rgba(0,0,0,.22);
}
html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea,
html[data-theme="dark"] .composer{background:var(--surface);color:var(--text)}
html[data-theme="dark"] .footer{background:var(--surface)}


/* =========================================================
   PasTele — Universal Premium / Responsive Final Pass
   ========================================================= */
:root{
  --premium-bg:#f6f8fb;
  --premium-surface:#ffffff;
  --premium-line:#e4eaf0;
  --premium-shadow:0 14px 45px rgba(23,33,43,.065);
}
html{min-width:320px;overflow-x:hidden}
body{overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.container{max-width:1180px}
.card,.panel{box-shadow:var(--premium-shadow)}
.btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.input,.select,.textarea{max-width:100%}
img,video,iframe{max-width:100%}
table{max-width:100%}

/* Consistent premium footer across application pages */
.footer{
  position:relative;
  margin-top:48px;
  padding:42px 0 22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
  border-top:1px solid var(--premium-line);
  color:var(--muted);
}
.footer .container{width:min(1180px,calc(100% - 32px))}
.footer .brand{font-size:18px;font-weight:850}
.footer .brand:hover{background:transparent}
.footer h4{margin:2px 0 10px;color:var(--text);font-size:12px}
.footer a{transition:color .16s ease,opacity .16s ease}
.footer .copyright{border-top:1px solid var(--premium-line);margin-top:28px;padding-top:18px;font-size:11px}
.footer .grid{align-items:start}

@media(max-width:900px){
  .container{width:min(100% - 28px,1180px)}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2{grid-template-columns:1fr}
  .section{padding:30px 0}
  .footer{padding:36px 0 20px}
}
@media(max-width:600px){
  .container,.footer .container{width:calc(100% - 24px)}
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .row.wrap{align-items:stretch}
  .tabs{scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .btn{min-height:42px}
  .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
  .footer{margin-top:34px;padding-top:30px}
  .footer .copyright{display:block;line-height:1.7}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* ===== premium-clean.css ===== */
/* PasTele — Universal Clean UI / Responsive Polish */
:root{
  --pc-bg:#f5f7fb;--pc-surface:rgba(255,255,255,.94);--pc-surface-2:#f8fafc;
  --pc-text:#101828;--pc-muted:#667085;--pc-line:#e4e7ec;--pc-brand:#229ed9;
  --pc-brand-2:#168ac3;--pc-success:#12b76a;--pc-danger:#f04438;
  --pc-shadow:0 18px 55px rgba(16,24,40,.08);--pc-shadow-sm:0 6px 22px rgba(16,24,40,.06);
  --pc-radius:18px;--pc-radius-sm:12px;
}
html[data-theme="dark"]{
  --pc-bg:#0b1118;--pc-surface:rgba(18,27,38,.96);--pc-surface-2:#151f2b;
  --pc-text:#f2f4f7;--pc-muted:#98a2b3;--pc-line:#253241;--pc-brand:#2aabee;--pc-brand-2:#53b9ed;
  --pc-shadow:0 22px 65px rgba(0,0,0,.28);--pc-shadow-sm:0 8px 28px rgba(0,0,0,.22)
}
*{scrollbar-width:thin;scrollbar-color:var(--pc-line) transparent}
body{background:var(--pc-bg);color:var(--pc-text);letter-spacing:-.01em}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(700px 380px at 8% -10%,rgba(42,171,238,.10),transparent 70%),radial-gradient(600px 360px at 95% 5%,rgba(120,95,255,.07),transparent 70%)}
.container,.dash-container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.card,.panel,.stat-card,.auth-card,.security-panel,.cta,.market-card,.product-card{border-radius:var(--pc-radius);border:1px solid var(--pc-line);background:var(--pc-surface);box-shadow:var(--pc-shadow-sm);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.card:hover,.panel:hover,.stat-card:hover{box-shadow:var(--pc-shadow);border-color:color-mix(in srgb,var(--pc-brand) 22%,var(--pc-line))}
.btn{border-radius:12px;min-height:42px;font-weight:750;border:1px solid var(--pc-line);box-shadow:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.08)}
.btn.primary,.primary{background:linear-gradient(135deg,var(--pc-brand),var(--pc-brand-2));border-color:transparent;color:#fff;box-shadow:0 8px 22px rgba(42,171,238,.20)}
.input,.select,.textarea,.composer{min-height:46px;border-radius:12px;border:1px solid var(--pc-line);background:var(--pc-surface);color:var(--pc-text);padding:11px 13px}
.input::placeholder,.textarea::placeholder{color:#98a2b3}
.input:focus,.select:focus,.textarea:focus,.composer:focus{border-color:var(--pc-brand);box-shadow:0 0 0 4px rgba(42,171,238,.11)}
.field{gap:7px}.field label{font-size:12px;font-weight:750;color:var(--pc-muted)}
.notice,.auth-error{border-radius:12px!important}
.badge,.chip,.eyebrow{border-radius:999px;font-weight:800;letter-spacing:.02em}
.footer{background:var(--pc-surface)!important;border-top:1px solid var(--pc-line)!important}
/* Navbar */
.navbar,.topbar,.app-navbar{background:color-mix(in srgb,var(--pc-surface) 90%,transparent)!important;border-bottom:1px solid var(--pc-line)!important;box-shadow:0 6px 28px rgba(16,24,40,.05)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.navbar a,.topbar a{transition:.18s ease}.navbar a:hover,.topbar a:hover{color:var(--pc-brand)}
/* Authentication */
.auth-shell{min-height:calc(100vh - 1px);display:grid;place-items:center;padding:42px 16px 24px;position:relative}
.auth-card{width:min(460px,100%);padding:30px!important;position:relative;overflow:hidden}
.auth-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--pc-brand),#7c5cff,var(--pc-brand))}
.auth-logo{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;margin:0 auto 18px;background:linear-gradient(135deg,var(--pc-brand),#6b7cff);color:#fff;font-size:22px;box-shadow:0 12px 30px rgba(42,171,238,.22)}
.auth-card h1{text-align:center;font-size:28px;margin:0 0 7px}.auth-card>p{text-align:center;margin:0 0 24px}
.auth-card form.list{gap:15px}.auth-card .btn.primary{width:100%}.auth-card .row .input{flex:1}
.auth-card>button{width:100%;margin-top:14px}.auth-card .page-style-2,.auth-card .page-style-4{display:inline-flex}
.auth-card a{color:var(--pc-brand);font-weight:700}.auth-card .muted a:hover{text-decoration:underline}
.auth-error{display:flex!important;align-items:center;gap:9px;padding:11px 13px;margin-bottom:14px;background:rgba(240,68,56,.08);border:1px solid rgba(240,68,56,.22);color:var(--pc-danger)}
/* Landing */
.landing-header{position:sticky!important;top:0;z-index:50;background:color-mix(in srgb,var(--pc-surface) 88%,transparent)!important;border-bottom:1px solid var(--pc-line)!important;backdrop-filter:blur(18px)}
.landing-header-inner{min-height:72px}.landing-brand{font-weight:900;letter-spacing:-.04em}.landing-brand-mark{box-shadow:0 8px 22px rgba(42,171,238,.22)}
.hero{padding-top:64px!important}.hero h1{letter-spacing:-.045em}.hero h1 span{background:linear-gradient(90deg,var(--pc-brand),#765cff);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Dashboard / admin */
.dashboard-main{padding-bottom:24px}.dash-head{gap:18px}.stat-card{min-height:128px!important}.stat-card:hover{transform:translateY(-2px)}
.admin-layout{align-items:start}.admin-side{position:sticky;top:92px}.admin-nav a{border-radius:11px;transition:.18s ease}.admin-nav a:hover,.admin-nav a.active{background:rgba(42,171,238,.10);color:var(--pc-brand)}
/* tables and lists */
.table-wrap{border-radius:14px!important;border-color:var(--pc-line)!important;box-shadow:none}.table th{background:var(--pc-surface-2)!important;color:var(--pc-muted)!important}.table td{border-color:var(--pc-line)!important}.list-item{border-color:var(--pc-line)!important}.empty{min-height:120px;display:grid;place-items:center}
/* dialogs */
.modal,.dialog,.sheet{border:1px solid var(--pc-line)!important;border-radius:20px!important;box-shadow:var(--pc-shadow)!important;background:var(--pc-surface)!important}
/* responsive */
@media(max-width:800px){.container,.dash-container{width:calc(100% - 24px)}.auth-shell{padding:26px 12px 18px}.auth-card{padding:24px 18px!important}.hero{padding-top:38px!important}.admin-side{position:static}.dash-head{flex-direction:column;align-items:stretch}}
@media(max-width:560px){body{font-size:14px}.auth-card h1{font-size:24px}.auth-logo{width:52px;height:52px}.card{padding:16px}.btn{min-height:44px}.landing-header-actions .btn{padding-inline:10px}.landing-header-actions .btn:first-child{font-size:0}.landing-header-actions .btn:first-child i{font-size:15px}.table{min-width:620px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* =========================================================
   TeleCod SaaS Premium — Universal final visual system
   ========================================================= */
:root{
  --saas-bg:#f7f9fc;
  --saas-surface:#ffffff;
  --saas-surface-soft:#f9fafb;
  --saas-text:#101828;
  --saas-muted:#667085;
  --saas-line:#e4e7ec;
  --saas-brand:#229ed9;
  --saas-brand-2:#157fba;
  --saas-radius:16px;
  --saas-shadow:0 10px 32px rgba(16,24,40,.055);
  --saas-shadow-lg:0 24px 70px rgba(16,24,40,.10)
}
html[data-theme="dark"]{
  --saas-bg:#080d14;--saas-surface:#101923;--saas-surface-soft:#151f2a;--saas-text:#f5f7fa;--saas-muted:#98a2b3;--saas-line:#263442;
  --saas-shadow:0 12px 38px rgba(0,0,0,.20);--saas-shadow-lg:0 26px 80px rgba(0,0,0,.30)
}
html,body{background:var(--saas-bg);color:var(--saas-text)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.55}
body:before{background:radial-gradient(720px 400px at 0 -12%,rgba(34,158,217,.09),transparent 68%),radial-gradient(600px 360px at 100% 0,rgba(99,102,241,.06),transparent 68%)}
.container,.dash-container{max-width:1200px}
.card,.panel,.stat-card,.auth-card,.security-panel,.cta,.market-card,.product-card{border:1px solid var(--saas-line);background:var(--saas-surface);border-radius:var(--saas-radius);box-shadow:var(--saas-shadow);}
.card:hover,.panel:hover,.stat-card:hover{border-color:color-mix(in srgb,var(--saas-brand) 22%,var(--saas-line));box-shadow:var(--saas-shadow-lg)}
.btn{min-height:42px;padding:10px 15px;border-radius:11px;font-weight:750;letter-spacing:-.01em;border:1px solid var(--saas-line);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.08)}
.btn:active{transform:translateY(0)}
.btn.primary,.primary{background:linear-gradient(135deg,var(--saas-brand),var(--saas-brand-2));border-color:transparent;box-shadow:0 8px 22px rgba(34,158,217,.18)}
.input,.select,.textarea,.composer{min-height:46px;border-radius:11px;border:1px solid var(--saas-line);background:var(--saas-surface);color:var(--saas-text);box-shadow:0 1px 2px rgba(16,24,40,.02)}
.input:focus,.select:focus,.textarea:focus,.composer:focus{outline:0;border-color:var(--saas-brand);box-shadow:0 0 0 4px rgba(34,158,217,.10)}
.field label{font-weight:700;color:var(--saas-muted)}
.badge,.chip,.eyebrow{border:1px solid var(--saas-line);background:var(--saas-surface-soft);color:var(--saas-muted);font-weight:800}
.table-wrap{border:1px solid var(--saas-line)!important;border-radius:14px!important;background:var(--saas-surface)}
.table th{background:var(--saas-surface-soft)!important;color:var(--saas-muted)!important;font-weight:800}
.table td,.list-item{border-color:var(--saas-line)!important}
.footer{background:var(--saas-surface)!important;border-color:var(--saas-line)!important}
.navbar,.topbar,.app-navbar,.landing-header{background:color-mix(in srgb,var(--saas-surface) 90%,transparent)!important;border-color:var(--saas-line)!important;box-shadow:0 5px 24px rgba(16,24,40,.045)!important;backdrop-filter:blur(18px)}
.navbar a,.topbar a{font-weight:650}
.auth-card{box-shadow:var(--saas-shadow-lg);border-radius:20px}
.auth-card:before{height:3px;background:linear-gradient(90deg,var(--saas-brand),#667eea,var(--saas-brand))}
.auth-logo{border-radius:15px}
.stat-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.stat-card:hover{transform:translateY(-2px)}
.admin-side{box-shadow:var(--saas-shadow)}
.admin-nav a{font-weight:650}
.modal,.dialog,.sheet{background:var(--saas-surface)!important;border-color:var(--saas-line)!important;box-shadow:var(--saas-shadow-lg)!important}
@media(max-width:700px){.container,.dash-container{width:calc(100% - 24px)}.card,.panel{border-radius:14px}.section{padding-block:26px}.btn{min-height:44px}.input,.select,.textarea{min-height:46px}}


/* ===== ui-master-20260903.css ===== */
/* PasTele UI MASTER — 2026-09-03
   Loaded last. Visual-only normalization layer; does not alter application logic. */
:root{
  --ui-bg:#f5f7fa;--ui-surface:#fff;--ui-surface-2:#f8fafc;--ui-text:#15212b;--ui-muted:#718293;
  --ui-line:#e3e9ee;--ui-line-2:#cfd9e1;--ui-brand:#229ed9;--ui-brand-2:#168ac3;
  --ui-radius:16px;--ui-shadow:0 10px 32px rgba(15,23,42,.055);--ui-shadow-hover:0 16px 40px rgba(15,23,42,.09);
  --sidebar:272px;
}
html{min-width:320px;background:var(--ui-bg);-webkit-text-size-adjust:100%}
html[data-theme="dark"]{--ui-bg:#0b121a;--ui-surface:#111c27;--ui-surface-2:#172532;--ui-text:#edf4f8;--ui-muted:#91a4b2;--ui-line:#273947;--ui-line-2:#38505f;--ui-brand:#2aabee;--ui-brand-2:#64c6f3;--ui-shadow:0 12px 35px rgba(0,0,0,.20);--ui-shadow-hover:0 18px 45px rgba(0,0,0,.28)}
html,body{overflow-x:hidden}
body{background:var(--ui-bg);color:var(--ui-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.55}
*,*:before,*:after{box-sizing:border-box}
img,svg,video,canvas,iframe{max-width:100%}
button,input,select,textarea{max-width:100%;font:inherit}
button{touch-action:manipulation}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.section{padding:34px 0}
.card,.panel,.stat,.dash-stat,.wallet-card,.withdraw-card,.tx-section,.profile-hero,.product-detail,.market-card,.purchase-card,.notification-item,.transaction-card,.paste-card,.content-card{border-radius:var(--ui-radius);border:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:var(--ui-shadow);color:var(--ui-text)}
.card,.panel{padding:20px}
.card:hover,.panel:hover,.market-card:hover,.purchase-card:hover,.transaction-card:hover{border-color:var(--ui-line-2)}
.btn{min-height:42px;padding:9px 14px;border-radius:11px;border:1px solid var(--ui-line-2);background:var(--ui-surface);color:var(--ui-text);font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:none;white-space:nowrap}
.btn:hover{background:var(--ui-surface-2);border-color:#b9cbd7;transform:translateY(-1px)}
.btn.primary,.btn.primary:hover{background:var(--ui-brand);border-color:var(--ui-brand);color:#fff;box-shadow:0 7px 18px rgba(34,158,217,.20)}
.btn.danger{background:#fff5f5;color:#c53d3d;border-color:#f0cfcf}
html[data-theme="dark"] .btn.danger{background:#321b1e;color:#ff9a9a;border-color:#5b3034}
.input,.select,.textarea,.composer,input,select,textarea{border:1px solid var(--ui-line-2);border-radius:11px;background:var(--ui-surface);color:var(--ui-text)}
.input,.select,.textarea,.composer{min-height:44px;padding:10px 12px}
input,select,textarea{padding:10px 12px}
.input:focus,.select:focus,.textarea:focus,.composer:focus,input:focus,select:focus,textarea:focus{outline:0;border-color:#6eb8df;box-shadow:0 0 0 3px rgba(42,171,238,.11)}
input::placeholder,textarea::placeholder{color:var(--ui-muted)}
label{color:var(--ui-text)}
.muted,.kpi,small{color:var(--ui-muted)}
.badge,.chip,.eyebrow{border-radius:999px}
.table-wrap{max-width:100%;overflow:auto;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface);-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
th,td{border-color:var(--ui-line)!important}
th{background:var(--ui-surface-2)}
/* Application shell: desktop sidebar, mobile drawer */
body:has(.navbar) main,body:has(.navbar)>footer,body:has(.navbar)>#toast{margin-left:var(--sidebar)}
.navbar{width:var(--sidebar)!important;background:rgba(255,255,255,.96)!important;border-right:1px solid var(--ui-line)!important;box-shadow:8px 0 32px rgba(15,23,42,.055)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-theme="dark"] .navbar{background:rgba(14,23,32,.97)!important;box-shadow:12px 0 35px rgba(0,0,0,.22)!important}
.nav-inner{padding:14px 12px!important}
.brand{color:var(--ui-text)!important}
.nav-links a{color:var(--ui-text)!important;border-color:transparent!important}
.nav-links a:hover{background:var(--ui-surface-2)!important;border-color:var(--ui-line)!important}
.nav-links a.active{background:#e9f6fc!important;color:var(--ui-brand-2)!important;border-color:#cbe8f7!important}
html[data-theme="dark"] .nav-links a.active{background:#12364c!important;color:#67c9f5!important;border-color:#245773!important}
.nav-account{border-color:var(--ui-line)!important}
.nav-avatar{background:#e9f6fc!important;color:var(--ui-brand-2)!important}
html[data-theme="dark"] .nav-avatar{background:#12364c!important;color:#67c9f5!important}
.nav-balance{color:var(--ui-brand-2)!important}
.nav-theme{background:var(--ui-surface)!important;color:var(--ui-muted)!important;border-color:var(--ui-line)!important}
.nav-tools .nav-logout{background:#fff6f6!important;border-color:#efd5d5!important;color:#c53d3d!important}
html[data-theme="dark"] .nav-tools .nav-logout{background:#301b1e!important;border-color:#563035!important;color:#ff9a9a!important}
.nav-toggle{z-index:10001!important}
.nav-backdrop{z-index:9998!important}.navbar{z-index:9999!important}
/* Consistent page rhythm */
body:has(.navbar) main{min-height:100vh}
body:has(.navbar) main>.section:first-child{padding-top:28px}
.page-head,.dash-head{margin-bottom:20px}
.page-head h1,.dash-head h1{margin:0;font-size:clamp(25px,3vw,34px);letter-spacing:-.7px}
.section-head{max-width:780px;margin-bottom:22px}
.section-head h2{margin:7px 0 8px;font-size:clamp(23px,3vw,32px);letter-spacing:-.7px}
.section-head p{margin:0;line-height:1.7}
/* Grids never create overflow */
.grid,.grid-2,.grid-3,.grid-4,.feature-grid,.monetize-grid,.steps,.topgrid,.admin-layout,.settings-grid,.profile-grid,.withdraw-sections{min-width:0}
.grid>*{min-width:0}
/* Admin */
.admin-layout{grid-template-columns:220px minmax(0,1fr)!important;align-items:start!important;gap:18px!important}
.admin-side{position:sticky!important;top:18px!important;padding:10px!important}
.admin-nav{display:grid!important;gap:4px!important}
.admin-nav a{min-height:41px!important;border-radius:11px!important;color:var(--ui-text)!important}
.admin-nav a.active{background:#e9f6fc!important;color:var(--ui-brand-2)!important;border-color:#cbe8f7!important}
html[data-theme="dark"] .admin-nav a.active{background:#12364c!important;color:#67c9f5!important;border-color:#245773!important}
/* Footer generated by site-shell */
.pastele-footer{margin-left:var(--sidebar)!important;background:var(--ui-surface)!important;color:var(--ui-muted)!important;border-top:1px solid var(--ui-line)!important;padding:36px 0 0!important}
.pastele-footer .footer-grid{width:min(1180px,calc(100% - 32px))!important;margin:auto!important}
.pastele-footer .footer-grid>div>b{color:var(--ui-text)!important}
.pastele-footer a,.pastele-footer button{color:var(--ui-muted)!important}
.pastele-footer a:hover,.pastele-footer button:hover{color:var(--ui-brand-2)!important}
.pastele-footer .footer-bottom{border-color:var(--ui-line)!important}
/* Auth */
.auth-shell,.reset-shell,.callback-shell,.setup-shell{background:var(--ui-bg)!important;color:var(--ui-text)!important}
.auth-card,.reset-box,.setup-shell .card{border-radius:20px!important;box-shadow:0 18px 55px rgba(15,23,42,.09)!important}
html[data-theme="dark"] .auth-card,html[data-theme="dark"] .reset-box,html[data-theme="dark"] .setup-shell .card{box-shadow:0 18px 55px rgba(0,0,0,.30)!important}
/* Landing: no sidebar/footer offset */
body.landing-page main,body.landing-page>footer,body.landing-page>#toast{margin-left:0!important}
body.landing-page .pastele-footer{margin-left:0!important}
body.landing-page .container{width:min(1180px,calc(100% - 36px))}
body.landing-page .hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:52px}
body.landing-page .feature-grid,body.landing-page .monetize-grid,body.landing-page .steps{grid-template-columns:repeat(4,minmax(0,1fr))}
body.landing-page .market-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Prevent long generated content from breaking cards */
.card h1,.card h2,.card h3,.panel h1,.panel h2,.panel h3{overflow-wrap:anywhere}
.card p,.panel p,.detail-body,.product-body,.my-row-main{overflow-wrap:anywhere}
/* Mobile */
@media(max-width:1100px){
  body.landing-page .hero-grid{grid-template-columns:1fr;gap:32px}.hero-copy{max-width:760px}.hero-visual{min-height:380px}
  body.landing-page .feature-grid,body.landing-page .monetize-grid,body.landing-page .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.landing-page .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body:has(.navbar) main,body:has(.navbar)>footer,body:has(.navbar)>#toast,.pastele-footer{margin-left:0!important}
  .navbar{width:min(310px,88vw)!important}
  .admin-layout{grid-template-columns:1fr!important}.admin-side{position:relative!important;top:auto!important}
  .admin-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .container{width:min(100% - 28px,1180px)}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .withdraw-sections{grid-template-columns:1fr!important}
  .pastele-footer .footer-grid{grid-template-columns:1.5fr 1fr 1fr!important}
}
@media(max-width:650px){
  .container,body.landing-page .container{width:calc(100% - 22px)}
  .section{padding:25px 0}.card,.panel{padding:16px;border-radius:14px}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr!important}
  .admin-nav{grid-template-columns:1fr!important}
  .row{align-items:stretch}.row.wrap{flex-direction:column}.row.wrap>.btn{width:100%}
  .btn{min-height:44px}.tabs{overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs .btn{flex:0 0 auto}
  .table-wrap{border-radius:12px}.table{min-width:640px}
  .page-head,.dash-head{margin-bottom:16px}.page-head h1,.dash-head h1{font-size:25px}
  body.landing-page .feature-grid,body.landing-page .monetize-grid,body.landing-page .steps,body.landing-page .market-grid{grid-template-columns:1fr}
  body.landing-page .hero{padding:55px 0 50px}.hero h1{font-size:clamp(38px,12vw,54px);letter-spacing:-2.4px}.hero-copy>p{font-size:15px;line-height:1.65}.hero-visual{min-height:300px}
  body.landing-page .hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}
  body.landing-page .security-panel{grid-template-columns:1fr;padding:24px;border-radius:18px}
  body.landing-page .cta{display:grid;padding:25px;border-radius:18px}.cta-actions{justify-content:stretch}.cta-actions .btn{flex:1}
  body.landing-page .landing-header-inner{min-height:64px}.landing-header-actions .btn{padding:8px 10px;font-size:11px}.landing-header-actions .btn:first-child{display:none}
  .pastele-footer{padding-top:30px!important}.pastele-footer .footer-grid{grid-template-columns:1fr 1fr!important;gap:20px 15px!important}.pastele-footer .footer-brand-block{grid-column:1/-1}.pastele-footer .footer-bottom{flex-direction:column!important}
  .auth-card{width:min(100% - 22px,460px)!important;padding:22px 17px!important}.auth-card h1{font-size:25px!important}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* ===== final-fix-20260903.css ===== */
/* PasTele final UI hardening — 2026-09-03 */
html[data-theme="dark"],body.theme-dark{color-scheme:dark}
html[data-theme="dark"] body,body.theme-dark{background:#070d14!important;color:#edf4f8!important}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .wallet-card,html[data-theme="dark"] .tx-section,html[data-theme="dark"] .profile-hero,html[data-theme="dark"] .profile-grid>.card,html[data-theme="dark"] .settings-grid>.card,html[data-theme="dark"] .withdraw-card,html[data-theme="dark"] .auth-card,body.theme-dark .card,body.theme-dark .panel,body.theme-dark .stat-card,body.theme-dark .wallet-card,body.theme-dark .tx-section,body.theme-dark .profile-hero,body.theme-dark .profile-grid>.card,body.theme-dark .settings-grid>.card,body.theme-dark .withdraw-card{background:#0f1924!important;color:#edf4f8!important;border-color:#253746!important}
html[data-theme="dark"] .card *,html[data-theme="dark"] .panel *,html[data-theme="dark"] .wallet-card *,html[data-theme="dark"] .profile-grid>.card *,html[data-theme="dark"] .settings-grid>.card *,html[data-theme="dark"] .withdraw-card *,body.theme-dark .card *,body.theme-dark .panel *,body.theme-dark .wallet-card *,body.theme-dark .profile-grid>.card *,body.theme-dark .settings-grid>.card *,body.theme-dark .withdraw-card *{border-color:#253746}
html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea,body.theme-dark .input,body.theme-dark .select,body.theme-dark .textarea{background:#0a131d!important;color:#edf4f8!important;border-color:#2a3f4f!important}
html[data-theme="dark"] .input::placeholder,body.theme-dark .input::placeholder{color:#718696!important}
html[data-theme="dark"] table,html[data-theme="dark"] th,html[data-theme="dark"] td,body.theme-dark table,body.theme-dark th,body.theme-dark td{background:#0f1924!important;color:#edf4f8!important;border-color:#253746!important}
html[data-theme="dark"] .table th,body.theme-dark .table th{background:#152230!important;color:#9fb4c3!important}
html[data-theme="dark"] .saved-payment,html[data-theme="dark"] .saved-withdraw,body.theme-dark .saved-payment,body.theme-dark .saved-withdraw{background:#13212d!important;color:#edf4f8!important}
html[data-theme="dark"] .notice,html[data-theme="dark"] .empty,body.theme-dark .notice,body.theme-dark .empty{background:#101d29;color:#a8bac7}
html[data-theme="dark"] .btn:not(.primary),body.theme-dark .btn:not(.primary){background:#13222f!important;color:#e8f2f7!important;border-color:#2b4353!important}
html[data-theme="dark"] .eyebrow,body.theme-dark .eyebrow{background:#102b3a!important;border-color:#24506a!important;color:#67c9f5!important}

/* Shared footer: four columns on desktop, compact 2x2 on mobile. */
.pastele-footer{width:auto!important;margin-top:52px!important;padding:38px 0 0!important;background:#fff!important;color:#334155!important;border-top:1px solid #e5ebf0!important}
.pastele-footer .footer-grid{display:grid!important;grid-template-columns:minmax(220px,1.55fr) repeat(3,minmax(130px,1fr));gap:30px!important;align-items:start!important}
.pastele-footer .footer-brand-block,.pastele-footer .footer-social{min-width:0}
.pastele-footer .brand{display:inline-flex!important;align-items:center;gap:10px;margin:0!important}
.pastele-footer .footer-grid>div:not(.footer-brand-block){padding-top:3px}
.pastele-footer .footer-grid>b,.pastele-footer .footer-grid>div>b{display:block;margin-bottom:12px;color:#17212b;font-size:12px}
.pastele-footer a,.pastele-footer button{display:flex!important;align-items:center;gap:9px;width:max-content;max-width:100%;margin:7px 0!important;color:#718293!important;font-size:12px;text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.pastele-footer a:hover,.pastele-footer button:hover{color:#168ac3!important}
.pastele-footer p{max-width:390px!important;margin:13px 0!important;color:#7b8b99!important;line-height:1.7!important;font-size:12px!important}
.pastele-footer .footer-status{display:inline-flex!important;align-items:center;gap:6px;color:#16824a!important;font-size:10px!important;font-weight:800}
.pastele-footer .footer-bottom{margin-top:28px!important;padding:17px 0!important;border-top:1px solid #e5ebf0!important;display:flex!important;justify-content:space-between!important;gap:15px!important;color:#8794a0!important;font-size:10px!important}
html[data-theme="dark"] .pastele-footer,body.theme-dark .pastele-footer{background:#0b141d!important;color:#d8e5ed!important;border-color:#253746!important}
html[data-theme="dark"] .pastele-footer .footer-grid>div>b,body.theme-dark .pastele-footer .footer-grid>div>b{color:#edf4f8!important}
html[data-theme="dark"] .pastele-footer a,html[data-theme="dark"] .pastele-footer button,body.theme-dark .pastele-footer a,body.theme-dark .pastele-footer button{color:#93a9b8!important}
html[data-theme="dark"] .pastele-footer p,body.theme-dark .pastele-footer p{color:#8fa5b4!important}
html[data-theme="dark"] .pastele-footer .footer-bottom,body.theme-dark .pastele-footer .footer-bottom{border-color:#253746!important;color:#728797!important}

/* Auth spacing + floating feedback */
.auth-card .page-style-3,.auth-card .page-style-1[id="google"]{margin-top:18px!important}
.auth-card .page-style-4,.auth-card .page-style-2{display:block!important;text-align:center!important;margin:20px 0 0!important;padding-top:4px!important;line-height:1.9}
.auth-card .page-style-4 a,.auth-card .page-style-2 a{margin:0 4px}
.auth-card .row{gap:8px}
.auth-card form.list{gap:16px!important}
.auth-card .field{margin-bottom:0}
.floating-notice{position:fixed!important;top:20px!important;left:50%!important;z-index:100000!important;width:min(92vw,520px)!important;transform:translate(-50%,-16px)!important;opacity:0!important;pointer-events:none!important;transition:.22s ease!important}
.floating-notice.show{transform:translate(-50%,0)!important;opacity:1!important}
.auth-progress{height:6px;margin:4px 0 17px;border-radius:999px;background:#e7edf2;overflow:hidden}
.auth-progress>i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#229ed9,#765cff);transition:width .25s ease}
html[data-theme="dark"] .auth-progress{background:#1b2a36}

/* My Links CRUD */
.my-section{padding:18px 0;border-bottom:1px solid var(--line,#e4e7ec)}
.my-section:last-child{border-bottom:0}.my-section h2{display:flex;align-items:center;gap:8px;font-size:15px;margin:0 0 10px}.my-section h2 span{font-size:10px;padding:3px 7px;border-radius:999px;background:#edf7fc;color:#168ac3}
.my-row{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--line,#e4e7ec);border-radius:13px;margin-top:8px;background:var(--surface,#fff)}
.my-row-main{flex:1;min-width:0}.my-row-main b,.my-row-main small{display:block}.my-row-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-row-main small{margin-top:3px;color:#81909e;font-size:10px}.my-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.my-row-actions .btn{min-height:36px;padding:7px 10px;font-size:11px}

/* Withdraw split */
.withdraw-sections{display:grid!important;grid-template-columns:1fr 1fr;gap:15px!important}.withdraw-card .section-label{font-size:10px;font-weight:850;letter-spacing:.06em;color:#7a8b99;text-transform:uppercase;margin-bottom:8px}.instant-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.instant-actions .instant-choice{min-width:104px}.withdraw-manual-only .instant-only-hide{display:none}
.progress{height:8px!important;background:#e8edf1!important;border-radius:999px!important;overflow:hidden}.progress>i{display:block;height:100%;width:0;border-radius:inherit;transition:width .3s ease}

/* Landing typing headline */
.hero h1 .typing-word{display:inline-block;min-width:7ch;color:var(--landing-blue);background:linear-gradient(90deg,var(--pc-brand,#229ed9),#765cff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero h1 .typing-word::after{content:"";display:inline-block;width:2px;height:.82em;margin-left:3px;vertical-align:-.08em;background:#229ed9;animation:blink .8s step-end infinite}@keyframes blink{50%{opacity:0}}

/* Settings/Profile clean spacing */
.settings-grid,.profile-grid{align-items:start}.settings-grid>.card,.profile-grid>.card{overflow:hidden}.settings-grid form.list{gap:13px}.settings-grid label{display:grid;gap:7px}.profile-grid{gap:15px}.profile-details .detail-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line,#e4e7ec)}.profile-details .detail-row:last-child{border-bottom:0}

/* Mobile */
@media(max-width:900px){.pastele-footer .footer-grid{grid-template-columns:1.4fr 1fr 1fr!important;gap:22px!important}.pastele-footer .footer-brand-block{grid-column:1/-1}.withdraw-sections{grid-template-columns:1fr!important}.my-row{align-items:flex-start}.my-row-actions{width:100%;justify-content:flex-start}}
@media(max-width:560px){.pastele-footer{padding-top:30px!important}.pastele-footer .footer-grid{grid-template-columns:1fr 1fr!important;gap:22px 16px!important}.pastele-footer .footer-brand-block{grid-column:1/-1}.pastele-footer .footer-bottom{flex-direction:column!important}.auth-card{padding:24px 18px!important}.auth-card .page-style-4,.auth-card .page-style-2{margin-top:18px!important}.my-row{display:grid;grid-template-columns:36px minmax(0,1fr);}.my-row-actions{grid-column:1/-1}.my-row-actions .btn{flex:1}.hero h1 .typing-word{min-width:5ch}}
.auth-shell{margin-left:0!important}.auth-shell + #toast{margin-left:0!important}.auth-card{margin-inline:auto}
/* Dashboard-style finance KPI cards */
.wallet-stats,.grid.grid-3{gap:14px!important}.wallet-card,.stat{min-height:128px!important;padding:20px!important;display:flex;flex-direction:column;justify-content:center;gap:5px!important}.wallet-card>i,.stat>i{font-size:16px;color:var(--p-brand,#229ed9);margin-bottom:3px}.wallet-card small,.stat .kpi{font-size:11px;font-weight:750}.wallet-card b,.stat strong{font-size:25px;letter-spacing:-.04em}.wallet-card em{font-size:10px;color:#81909e;font-style:normal}.wallet-card:hover,.stat:hover{transform:translateY(-2px)}


/* =========================================================
   PasTele — GLOBAL VISUAL CONSISTENCY / CLEAN NAV
   2026-09-03
   One theme surface for every page.
   ========================================================= */

/* Light theme baseline */
html[data-theme="light"], html:not([data-theme]){
  color-scheme:light;
  --app-bg:#f6f8fb;
  --surface:#ffffff;
  --surface-soft:#f7f9fb;
  --surface-blue:#eef8fd;
  --text:#17212b;
  --muted:#718293;
  --line:#e3e9ee;
  --line-strong:#cfd9e1;
  --blue:#229ed9;
  --blue-dark:#168ac3;
  --blue-soft:#e8f4fb;
  --danger:#d64545;
}
html[data-theme="light"] body,
html:not([data-theme]) body{
  background:var(--app-bg)!important;
  color:var(--text)!important;
}
html[data-theme="light"] main,
html[data-theme="light"] .section,
html[data-theme="light"] .page,
html[data-theme="light"] .app-page,
html:not([data-theme]) main{
  color:var(--text);
}

/* Dark theme: eliminate white islands from page-specific styles. */
html[data-theme="dark"]{
  color-scheme:dark;
  --app-bg:#0b121a;
  --surface:#111c27;
  --surface-soft:#172532;
  --surface-blue:#123044;
  --text:#edf4f8;
  --muted:#91a4b2;
  --line:#273947;
  --line-strong:#38505f;
  --blue:#2aabee;
  --blue-dark:#64c6f3;
  --blue-soft:#12364c;
  --danger:#ff9292;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body.app-page,
html[data-theme="dark"] body.landing-page,
html[data-theme="dark"] body.reset-shell,
html[data-theme="dark"] body.callback-shell,
html[data-theme="dark"] body.setup-shell{
  background:var(--app-bg)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .container,
html[data-theme="dark"] .page,
html[data-theme="dark"] .app-page{
  color:var(--text);
}

/* Cards, panels, dialogs and common surfaces */
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .menu,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .dash-stat,
html[data-theme="dark"] .dash-panel,
html[data-theme="dark"] .wallet-card,
html[data-theme="dark"] .withdraw-card,
html[data-theme="dark"] .tx-section,
html[data-theme="dark"] .profile-hero,
html[data-theme="dark"] .profile-grid > .card,
html[data-theme="dark"] .settings-grid > .card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-shell > *,
html[data-theme="dark"] .reset-card,
html[data-theme="dark"] .setup-card{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .card *,
html[data-theme="dark"] .panel *,
html[data-theme="dark"] .modal *,
html[data-theme="dark"] .dialog *,
html[data-theme="dark"] .dash-stat *,
html[data-theme="dark"] .dash-panel *,
html[data-theme="dark"] .wallet-card *,
html[data-theme="dark"] .withdraw-card *,
html[data-theme="dark"] .tx-section *,
html[data-theme="dark"] .profile-hero *,
html[data-theme="dark"] .profile-grid > .card *,
html[data-theme="dark"] .settings-grid > .card *{
  border-color:var(--line);
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] label,
html[data-theme="dark"] .title,
html[data-theme="dark"] .heading{
  color:var(--text);
}
html[data-theme="dark"] p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] small,
html[data-theme="dark"] .subtle,
html[data-theme="dark"] .kpi{
  color:var(--muted);
}

/* Form controls */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .composer{
  background:#0c1721!important;
  color:var(--text)!important;
  border-color:var(--line-strong)!important;
}
html[data-theme="dark"] option{background:#111c27;color:var(--text)}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#6f8493!important}
html[data-theme="dark"] .notice,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .saved-payment,
html[data-theme="dark"] .saved-withdraw,
html[data-theme="dark"] .list-item{
  background:var(--surface-soft)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}

/* Tables and data lists */
html[data-theme="dark"] table,
html[data-theme="dark"] .table,
html[data-theme="dark"] th,
html[data-theme="dark"] td{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] th,
html[data-theme="dark"] .table th{background:#162532!important;color:#9fb3c0!important}
html[data-theme="dark"] tbody tr:hover td{background:#172936!important}

/* Buttons/tabs */
html[data-theme="dark"] .btn:not(.primary),
html[data-theme="dark"] button.btn:not(.primary){
  background:#162631!important;
  color:#eaf3f7!important;
  border-color:#304957!important;
}
html[data-theme="dark"] .btn:not(.primary):hover{background:#1b303f!important}
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .primary{
  color:#fff!important;
}
html[data-theme="dark"] .tabs .btn.active,
html[data-theme="dark"] .pay-tabs .btn.active{
  background:var(--blue-soft)!important;
  color:#67c9f5!important;
  border-color:#245773!important;
}

/* Page-specific white backgrounds frequently used by older styles. */
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-item,
html[data-theme="dark"] .paste-card,
html[data-theme="dark"] .notification-item,
html[data-theme="dark"] .transaction-card,
html[data-theme="dark"] .purchase-card,
html[data-theme="dark"] .my-row,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .preview-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .window{
  background:var(--surface)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .market-card *,
html[data-theme="dark"] .product-card *,
html[data-theme="dark"] .product-item *,
html[data-theme="dark"] .paste-card *,
html[data-theme="dark"] .notification-item *,
html[data-theme="dark"] .transaction-card *,
html[data-theme="dark"] .purchase-card *,
html[data-theme="dark"] .my-row *,
html[data-theme="dark"] .content-card *,
html[data-theme="dark"] .preview-card *,
html[data-theme="dark"] .window *{
  border-color:var(--line);
}

/* Admin secondary navigation — clean, compact and theme-safe. */
.admin-layout{align-items:start!important;gap:18px!important}
.admin-side{position:sticky;top:18px!important;padding:10px!important}
.admin-nav{display:grid!important;gap:4px!important}
.admin-nav a{
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:9px 11px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:700!important;
  color:var(--text)!important;
}
.admin-nav a i{width:18px;text-align:center;color:var(--muted)}
.admin-nav a:hover{background:var(--surface-soft)!important;border-color:var(--line)!important}
.admin-nav a.active{background:var(--blue-soft)!important;color:var(--blue-dark)!important;border-color:#c8e6f5!important}
html[data-theme="dark"] .admin-nav a.active{border-color:#245773!important;color:#67c9f5!important}
html[data-theme="dark"] .admin-nav a i{color:#8ea5b4}


/* Light theme must also be fully consistent when OS is dark. */


/* ===== FINAL THEME NORMALIZATION ===== */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .dash-stat,html[data-theme="dark"] .wallet-card,html[data-theme="dark"] .withdraw-card,html[data-theme="dark"] .tx-section,html[data-theme="dark"] .profile-hero,html[data-theme="dark"] .product-detail,html[data-theme="dark"] .market-card,html[data-theme="dark"] .purchase-card,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .transaction-card,html[data-theme="dark"] .paste-card,html[data-theme="dark"] .content-card,html[data-theme="dark"] .modal,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .table-wrap{background:var(--surface,#111c27)!important;color:var(--text,#edf4f8)!important;border-color:var(--line,#273947)!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea,html[data-theme="dark"] .composer{background:var(--surface,#111c27)!important;color:var(--text,#edf4f8)!important;border-color:var(--line-strong,#38505f)!important;color-scheme:dark}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:var(--muted,#91a4b2)!important;opacity:1}
html[data-theme="dark"] .table th{background:var(--surface-soft,#172532)!important;color:var(--muted,#91a4b2)!important}
html[data-theme="dark"] .table td,html[data-theme="dark"] .list-item,html[data-theme="dark"] .detail-row,html[data-theme="dark"] .saved-payment{border-color:var(--line,#273947)!important;color:var(--text,#edf4f8)}
html[data-theme="dark"] .table tbody tr:hover td,html[data-theme="dark"] .list-item:hover{background:var(--surface-soft,#172532)!important}
html[data-theme="dark"] .notice{background:var(--surface-blue,#1e3a52)!important;color:var(--text,#edf4f8)!important;border-color:var(--line-strong,#38505f)!important}
html[data-theme="dark"] .muted,html[data-theme="dark"] small,html[data-theme="dark"] .kpi{color:var(--muted,#91a4b2)}
html[data-theme="dark"] .btn:not(.primary):not(.danger){background:var(--surface,#111c27);color:var(--text,#edf4f8);border-color:var(--line-strong,#38505f)}
html[data-theme="dark"] .btn:not(.primary):not(.danger):hover{background:var(--surface-soft,#172532)}
html[data-theme="dark"] .btn.danger{background:#351d20!important;border-color:#63353a!important;color:#ffaaa8!important}

/* ===== FINAL CROSS-PAGE NORMALIZATION ===== */
html[data-theme="dark"] .field label{color:var(--muted)!important}
html[data-theme="dark"] .progress{background:#24313d!important}
html[data-theme="dark"] .btn.primary{color:#fff!important}
html[data-theme="dark"] .badge,html[data-theme="dark"] .chip,html[data-theme="dark"] .eyebrow{background:var(--blue-soft);border-color:var(--line-strong);color:#70cbf6}
html[data-theme="dark"] .toast{background:#111b25!important;color:#f2f7fa!important;border-color:#31556b!important}
html[data-theme="dark"] .code-preview,html[data-theme="dark"] pre,html[data-theme="dark"] code{color:#eaf5fb}
.table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
:focus-visible{outline:3px solid rgba(42,171,238,.28);outline-offset:2px}


/* ============================================================
   GLOBAL THEME — SYSTEM AUTO + MANUAL TOGGLE
============================================================ */
html[data-theme="dark"] {
  --app-bg:#07131d;
  --surface:#0c1b27;
  --surface-soft:#10212d;
  --surface-blue:rgba(41,167,223,.10);
  --text:#dce8ee;
  --muted:#8ea5b4;
  --line:#1b3443;
  --line-strong:#284556;
  --blue:#29a7df;
  --blue-dark:#43b5e8;
  --cyan:#29a7df;
  --green:#5cdaa0;
  --blue-soft:rgba(41,167,223,.10);
  --success:#5cdaa0;
  --warning:#efc967;
  --danger:#ff969e;
  --shadow-sm:0 3px 16px rgba(0,0,0,.18);
  --shadow:0 10px 32px rgba(0,0,0,.24);
}
html[data-theme="dark"] body {
  background:var(--app-bg);
  color:var(--text);
}
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .composer {
  background:var(--surface);
  color:var(--text);
  border-color:var(--line-strong);
}
html[data-theme="dark"] .field label { color:var(--muted); }
html[data-theme="dark"] .table th { background:var(--surface-soft); color:var(--muted); }
html[data-theme="dark"] .table tbody tr:hover td { background:#10212d; }
html[data-theme="dark"] .btn:not(.primary) { background:var(--surface); color:var(--text); border-color:var(--line-strong); }


/* =========================================================
   PasTele — NON-BLOCKING LIVE NOTIFICATIONS
   ========================================================= */
#pastele-live-notifications{
  position:fixed;
  right:16px;
  bottom:16px;
  width:min(360px,calc(100vw - 24px));
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:10050;
  pointer-events:none;
}
.pastele-live-notification{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:11px 36px 11px 11px;
  border:1px solid rgba(42,171,238,.18);
  border-radius:15px;
  background:color-mix(in srgb,var(--surface,#fff) 94%,transparent);
  color:var(--text,#17212b);
  box-shadow:0 10px 28px rgba(15,35,52,.13);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  opacity:0;
  transform:translateY(8px) scale(.985);
  transition:opacity .18s ease,transform .18s ease;
  pointer-events:auto;
}
.pastele-live-notification.is-visible{opacity:1;transform:none}
.pastele-live-notification.is-leaving{opacity:0;transform:translateY(6px) scale(.985)}
.pastele-live-icon{
  width:32px;height:32px;min-width:32px;
  display:grid;place-items:center;
  border-radius:10px;
  background:var(--blue-soft,#eaf6fc);
  color:var(--blue,#229ed9);
}
.pastele-live-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.pastele-live-copy strong{font-size:12px;line-height:1.3;font-weight:800}
.pastele-live-copy span{font-size:11px;line-height:1.45;color:var(--muted,#71808c);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pastele-live-close{
  position:absolute;top:7px;right:8px;
  width:24px;height:24px;border:0;background:transparent;
  color:var(--muted,#71808c);font-size:18px;line-height:1;cursor:pointer;
}
@media(max-width:650px){
  #pastele-live-notifications{right:10px;bottom:10px;width:min(340px,calc(100vw - 20px))}
  .pastele-live-notification{border-radius:14px}
}

/* ===== SOURCE: css/plans.css ===== */

/* =========================================================
   PasTele PLANS — FINAL CLEAN / FULL ICON SYSTEM
========================================================= */
.plans-section{padding:34px 0 70px}.plans-wrap{max-width:1120px;margin:auto}.plan-hero{max-width:850px;margin:0 auto 24px;text-align:center}.plan-hero .badge{display:inline-flex;align-items:center;gap:7px;padding:7px 12px}.plan-hero h1{margin:13px 0 8px;font-size:clamp(28px,5vw,42px);letter-spacing:-1px}.plan-hero p{margin:0;line-height:1.75}.plan-profile{display:flex;align-items:center;gap:12px;max-width:850px;margin:0 auto 22px;padding:14px 16px;border:1px solid var(--ui-line,#e3e9ee);border-radius:17px;background:var(--ui-surface,#fff);box-shadow:var(--ui-shadow,0 10px 32px rgba(15,23,42,.055))}.plan-profile-avatar{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:13px;background:linear-gradient(135deg,#229ed9,#64c6f3);color:#fff;font-weight:900}.plan-profile-main{min-width:0;flex:1}.plan-profile-main strong{display:flex;align-items:center;gap:5px;font-size:14px}.plan-profile-main small{display:block;color:var(--ui-muted,#718293);margin-top:2px}.verify-badge{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:9px;color:#fff}.verify-badge.green{background:#16a05d}.verify-badge.blue{background:#2f80ed}.plan-status-pill{margin-left:auto;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850}.plan-status-pill.green{background:#e9fbf2;color:#128957}.plan-status-pill.blue{background:#edf4ff;color:#286bd7}.benefit-card{max-width:850px;margin:0 auto 24px;padding:20px;border:1px solid var(--ui-line,#e3e9ee);border-radius:19px;background:var(--ui-surface,#fff);box-shadow:var(--ui-shadow,0 10px 32px rgba(15,23,42,.055));display:flex;gap:15px}.benefit-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:14px;background:rgba(34,158,217,.10);color:#229ed9;font-size:19px}.benefit-card h2{margin:1px 0 6px;font-size:17px}.benefit-card p{margin:0;color:var(--ui-muted,#718293);line-height:1.7}.benefit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}.benefit-item{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border-radius:11px;background:var(--ui-surface-2,#f8fafc);font-size:11px}.benefit-item i{margin-top:2px;color:#16a05d}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-width:1000px;margin:auto}.plan-card{position:relative;padding:22px;border:1px solid var(--ui-line,#e3e9ee);border-radius:19px;background:var(--ui-surface,#fff);box-shadow:var(--ui-shadow,0 10px 32px rgba(15,23,42,.055));text-align:left}.plan-card.featured{border-color:rgba(34,158,217,.45);box-shadow:0 16px 42px rgba(34,158,217,.12)}.plan-card .plan-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(34,158,217,.10);color:#229ed9}.plan-card .plan-duration{display:block;margin-top:13px;font-size:11px;font-weight:900;letter-spacing:.08em;color:var(--ui-muted,#718293)}.plan-card strong{display:block;margin:6px 0;font-size:26px}.plan-card p{min-height:42px;margin:0;color:var(--ui-muted,#718293);font-size:11px;line-height:1.6}.plan-card ul{list-style:none;padding:0;margin:14px 0 2px;display:grid;gap:7px}.plan-card li{display:flex;gap:7px;font-size:10px}.plan-card li i{color:#16a05d}.plan-card .btn{width:100%;margin-top:14px}.popular-ribbon{position:absolute;right:13px;top:13px;padding:5px 8px;border-radius:999px;background:#e9f6fc;color:#157fba;font-size:8px;font-weight:900}.premium-benefit .benefit-icon{background:rgba(47,128,237,.11);color:#2f80ed}.premium-price{max-width:760px;margin:24px auto;padding:25px;border-radius:20px;text-align:center;border:1px solid rgba(47,128,237,.25);background:linear-gradient(135deg,rgba(47,128,237,.08),rgba(34,158,217,.04));box-shadow:var(--ui-shadow,0 10px 32px rgba(15,23,42,.055))}.premium-price .premium-icon{width:52px;height:52px;margin:0 auto 9px;display:grid;place-items:center;border-radius:15px;background:rgba(47,128,237,.11);color:#2f80ed;font-size:20px}.premium-price span{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:var(--ui-muted,#718293)}.premium-price strong{display:block;font-size:34px;margin:7px}.premium-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:760px;margin:0 auto 20px}.premium-benefit-item{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid var(--ui-line,#e3e9ee);border-radius:13px;background:var(--ui-surface,#fff)}.premium-benefit-item i{color:#2f80ed;margin-top:2px}.premium-benefit-item strong{display:block;font-size:11px}.premium-benefit-item span{display:block;color:var(--ui-muted,#718293);font-size:9px;margin-top:2px}.active-plan{display:flex;gap:12px;align-items:center;padding:15px 18px;border-radius:16px;border:1px solid rgba(22,160,93,.28);background:rgba(22,160,93,.07)}.active-plan>i{color:#16a05d}.premium-active{border-color:rgba(47,128,237,.28);background:rgba(47,128,237,.07)}.premium-active>i{color:#2f80ed}.bayargg-plan-box{color:var(--ui-text,#15212b)}
html[data-theme="dark"] .plan-profile,html[data-theme="dark"] .benefit-card,html[data-theme="dark"] .plan-card,html[data-theme="dark"] .premium-benefit-item,html[data-theme="dark"] .premium-price{background:var(--ui-surface,#111c27);border-color:var(--ui-line,#273947)}
html[data-theme="dark"] .benefit-item{background:var(--ui-surface-2,#172532)}html[data-theme="dark"] .plan-status-pill.green{background:#0d2b21;color:#63d6a5}html[data-theme="dark"] .plan-status-pill.blue{background:#102744;color:#7eb4ff}
@media(max-width:800px){.plan-grid{grid-template-columns:1fr}.benefit-list,.premium-benefits{grid-template-columns:1fr}.plan-card{padding:19px}.plan-profile{align-items:flex-start}.plan-status-pill{display:none}}


/* =========================================================
   PASTELE — UNIFIED SAAS PREMIUM UI
   One page = one CSS bundle.
   No final-fixes/theme-universal/dashboard-theme dependency.
   ========================================================= */
:root{
  --pt-bg:#f5f7fb;
  --pt-surface:#ffffff;
  --pt-surface-2:#f8fafc;
  --pt-text:#0f172a;
  --pt-muted:#64748b;
  --pt-border:rgba(15,23,42,.09);
  --pt-border-strong:rgba(15,23,42,.14);
  --pt-shadow:0 18px 50px rgba(15,23,42,.08);
  --pt-shadow-sm:0 8px 24px rgba(15,23,42,.07);
  --pt-primary:#635bff;
  --pt-primary-2:#8b5cf6;
  --pt-cyan:#06b6d4;
  --pt-green:#10b981;
  --pt-orange:#f59e0b;
  --pt-red:#ef4444;
  --pt-ring:rgba(99,91,255,.18);
  --pt-radius:20px;
  --pt-radius-sm:14px;
  --pt-max:1180px;
}
html[data-theme="dark"],body.theme-dark{
  --pt-bg:#090d16;
  --pt-surface:#101722;
  --pt-surface-2:#151e2c;
  --pt-text:#f8fafc;
  --pt-muted:#94a3b8;
  --pt-border:rgba(255,255,255,.09);
  --pt-border-strong:rgba(255,255,255,.15);
  --pt-shadow:0 20px 60px rgba(0,0,0,.28);
  --pt-shadow-sm:0 10px 30px rgba(0,0,0,.22);
  --pt-ring:rgba(139,92,246,.25);
}
html,body{background:var(--pt-bg);color:var(--pt-text)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*,*:before,*:after{box-sizing:border-box}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
button,a{ -webkit-tap-highlight-color:transparent }
a{color:inherit}
::selection{background:rgba(99,91,255,.18)}
:focus-visible{outline:3px solid var(--pt-ring);outline-offset:2px}

/* Global surfaces */
.card,.panel,.box,.dashboard-card,.stat-card,.content-card,.form-card,.create-card,.market-card,.product-card,.settings-card{
  border-color:var(--pt-border)!important;
  background:var(--pt-surface)!important;
  box-shadow:var(--pt-shadow-sm);
  border-radius:var(--pt-radius);
}
.container,.page-container,.main-container,.content-container{
  width:min(var(--pt-max),calc(100% - 32px));
  margin-inline:auto;
}

/* Premium buttons */
.btn,.button,button.primary,button.secondary{
  min-height:44px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:750;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.btn.primary,.btn-primary,.button-primary,button.primary{
  background:linear-gradient(135deg,var(--pt-primary),var(--pt-primary-2))!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(99,91,255,.22);
}
.btn.primary:hover,.btn-primary:hover,.button-primary:hover,button.primary:hover{
  transform:translateY(-1px);box-shadow:0 14px 28px rgba(99,91,255,.28);
}
.btn.secondary,.btn-secondary,.button-secondary,button.secondary{
  background:var(--pt-surface)!important;
  color:var(--pt-text)!important;
  border-color:var(--pt-border-strong)!important;
}
.btn.secondary:hover,.btn-secondary:hover,.button-secondary:hover,button.secondary:hover{
  background:var(--pt-surface-2)!important;transform:translateY(-1px);
}

/* Inputs */
input:not([type="radio"]):not([type="checkbox"]),textarea,select{
  width:100%;
  color:var(--pt-text);
  background:var(--pt-surface)!important;
  border:1px solid var(--pt-border-strong)!important;
  border-radius:12px;
  min-height:46px;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
textarea{min-height:120px;resize:vertical}
input:not([type="radio"]):not([type="checkbox"]):focus,textarea:focus,select:focus{
  border-color:var(--pt-primary)!important;
  box-shadow:0 0 0 4px var(--pt-ring)!important;
  outline:none;
}
label{color:var(--pt-text)}
small,.muted,.hint,.help-text{color:var(--pt-muted)}

/* Create/detail pages */
.create-detail{
  width:min(900px,calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 72px;
}
.create-detail-head{margin-bottom:20px}
.back-create{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--pt-muted);font-weight:700;text-decoration:none;margin-bottom:20px;
}
.back-create:hover{color:var(--pt-primary)}
.detail-title{display:flex;align-items:center;gap:16px}
.detail-icon{
  width:54px;height:54px;border-radius:16px;display:grid;place-items:center;
  color:#fff;font-size:21px;
  background:linear-gradient(135deg,#635bff,#06b6d4 65%,#10b981);
  box-shadow:0 12px 28px rgba(99,91,255,.22);
}
.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:850;color:var(--pt-primary)}
.detail-title h1{margin:3px 0 4px;font-size:clamp(26px,4vw,38px);letter-spacing:-.035em}
.detail-title p{margin:0;color:var(--pt-muted);line-height:1.55}
.create-card{padding:28px}
.create-card .field{margin-bottom:22px}
.create-card .field>label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:800;margin-bottom:9px}
.create-card .field em{font-style:normal;color:var(--pt-red)}
.create-card .field>small{display:block;margin-top:7px;font-size:12px;line-height:1.5}
.create-card textarea#content{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  line-height:1.6;tab-size:2;
}
.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.access-option{position:relative;display:block;cursor:pointer}
.access-option input{position:absolute;opacity:0;pointer-events:none}
.access-option>span{
  min-height:78px;padding:15px;border:1px solid var(--pt-border-strong);
  border-radius:15px;background:var(--pt-surface-2);display:flex;flex-direction:column;justify-content:center;
  transition:.18s ease;
}
.access-option>span b{display:flex;align-items:center;gap:8px}
.access-option>span small{margin-top:4px}
.access-option input:checked+span{
  border-color:var(--pt-primary);
  box-shadow:0 0 0 4px var(--pt-ring);
  background:linear-gradient(135deg,rgba(99,91,255,.09),rgba(6,182,212,.06));
}
.price-box{padding:16px;border-radius:16px;background:linear-gradient(135deg,rgba(99,91,255,.06),rgba(16,185,129,.05));border:1px solid var(--pt-border)}
.money-input{display:flex;align-items:center;border:1px solid var(--pt-border-strong);background:var(--pt-surface);border-radius:12px;overflow:hidden}
.money-input span{padding:0 13px;color:var(--pt-muted);font-weight:800}
.money-input input{border:0!important;box-shadow:none!important;border-radius:0!important}
.selected-bot{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--pt-surface-2);font-size:12px;color:var(--pt-muted)}
.selected-bot b{color:var(--pt-text)}
.inline-status{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(245,158,11,.1);color:#b45309;display:flex;gap:8px;align-items:center}
.create-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}
.create-result{margin-top:16px;padding:18px;border-radius:16px;background:var(--pt-surface);border:1px solid var(--pt-border);box-shadow:var(--pt-shadow-sm)}
#toast{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(380px,calc(100% - 36px))}

/* Tables / lists */
table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--pt-border);border-radius:14px;background:var(--pt-surface)}
th,td{padding:13px 14px;border-bottom:1px solid var(--pt-border);text-align:left}
th{font-size:12px;color:var(--pt-muted);font-weight:800;background:var(--pt-surface-2)}
tr:last-child td{border-bottom:0}

/* Navigation */
.navbar,.site-navbar,.topbar{
  border-bottom:1px solid var(--pt-border)!important;
  background:color-mix(in srgb,var(--pt-surface) 88%,transparent)!important;
  backdrop-filter:blur(18px);
}

/* Responsive */
@media(max-width:720px){
  .container,.page-container,.main-container,.content-container{width:min(100% - 20px,var(--pt-max))}
  .create-detail{width:min(100% - 20px,900px);padding-top:18px}
  .create-card{padding:18px 15px;border-radius:17px}
  .detail-title{align-items:flex-start}
  .detail-icon{width:46px;height:46px;border-radius:14px;flex:0 0 46px}
  .detail-title h1{font-size:28px}
  .detail-title p{font-size:13px}
  .access-grid{grid-template-columns:1fr}
  .create-actions{flex-direction:column-reverse}
  .create-actions .btn{width:100%;justify-content:center}
  table{display:block;overflow-x:auto;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* =========================================================
   PasTele — UNIVERSAL SAAS PREMIUM UI 2026
   Responsive Android + Desktop / Unified Light + Dark
   ========================================================= */
:root{
  --saas-primary:#635bff;
  --saas-secondary:#06b6d4;
  --saas-accent:#ec4899;
  --saas-success:#10b981;
  --saas-warning:#f59e0b;
  --saas-danger:#ef4444;
  --saas-radius:16px;
  --saas-radius-sm:12px;
  --saas-focus:rgba(99,91,255,.18);
}
html{color-scheme:light dark;-webkit-text-size-adjust:100%;}
body{min-width:320px;overflow-x:hidden;}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent;}
button,.btn,.nav-link,.admin-nav a{touch-action:manipulation;}
/* colorful premium icon treatment */
.fa-solid,.fa-regular,.fa-brands,.fa-light,.fa-thin,.fa-duotone{
  line-height:1;
}
.iconbox i,.detail-icon i,.kpi i,.badge i,.chip i,.btn i,.nav-link i,.admin-nav i,.nav-group-title i{
  transition:transform .2s ease,filter .2s ease;
}
.iconbox i,.detail-icon i{
  background:linear-gradient(135deg,var(--saas-primary),var(--saas-secondary) 55%,var(--saas-accent));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.btn:hover i,.nav-link:hover i,.admin-nav a:hover i{transform:translateY(-1px) scale(1.05);}
.btn.primary i,.btn.danger i{color:inherit;-webkit-text-fill-color:currentColor;background:none;}
.card,.panel,.create-card,.table-wrap,.market-toolbar,.market-header{
  border-radius:var(--saas-radius);
}
.card,.panel,.create-card{
  box-shadow:0 12px 38px rgba(15,23,42,.055);
}
.btn{min-height:42px;border-radius:var(--saas-radius-sm);}
input,select,textarea,.input,.select,.textarea{min-height:44px;border-radius:var(--saas-radius-sm);}
input:focus,select:focus,textarea:focus,.input:focus,.select:focus,.textarea:focus{
  outline:none!important;box-shadow:0 0 0 4px var(--saas-focus)!important;
}
/* desktop */
@media(min-width:1024px){
  .container{width:min(1180px,calc(100% - 48px));}
  .section{padding-block:40px;}
}
/* tablet */
@media(max-width:1023px){
  .container{width:min(100% - 28px,1180px);}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Android / narrow screens */
@media(max-width:640px){
  body{font-size:14px;}
  .container,.page-container,.main-container,.content-container{width:calc(100% - 20px)!important;}
  .section{padding:22px 0;}
  h1{font-size:clamp(25px,8vw,34px);}
  h2{font-size:clamp(20px,6vw,26px);}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .row{flex-wrap:wrap;}
  .btn{min-height:44px;}
  .card,.panel{padding:16px;}
  .create-actions{flex-direction:column-reverse;}
  .create-actions .btn,.actions .btn{width:100%;}
  table{font-size:13px;}
  th,td{padding:11px 10px;}
  .toast,#toast{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));max-width:none;}
}
@media(max-width:380px){
  .container,.page-container,.main-container,.content-container{width:calc(100% - 16px)!important;}
  .card,.panel{padding:13px;}
}
/* safe-area support for modern Android/iOS */
body{padding-bottom:env(safe-area-inset-bottom);}
/* unified dark theme: every component follows the same tokens */
html[data-theme="dark"]{
  --premium-bg:#0b1020;
  --premium-surface:#111827;
  --premium-line:#263247;
  --premium-shadow:0 18px 50px rgba(0,0,0,.28);
  --saas-focus:rgba(129,140,248,.24);
}
html[data-theme="dark"] body{background:var(--app-bg,var(--premium-bg));}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .create-card,html[data-theme="dark"] .table-wrap{
  box-shadow:0 16px 46px rgba(0,0,0,.20);
}
html[data-theme="dark"] .btn:not(.primary):not(.danger){background:var(--surface,#111827);color:var(--text,#eef4f8);}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea{
  color:var(--text,#eef4f8);background:var(--surface,#111827);
}
/* reduce motion for accessibility */
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}
