:root{--bg:#070a12;--card:rgba(18,24,38,.72);--card2:rgba(255,255,255,.06);--text:#eef2ff;--muted:#94a3b8;--red:#ff4757;--violet:#8e44ff;--line:rgba(255,255,255,.1)}*{box-sizing:border-box}body{margin:0;background:#070a12;color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;min-height:100vh}.bg{position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 10% 10%,rgba(255,71,87,.28),transparent 30%),radial-gradient(circle at 90% 0,rgba(142,68,255,.22),transparent 30%),linear-gradient(135deg,#070a12,#101827 50%,#090b13)}a{color:inherit;text-decoration:none}.header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:18px 6vw;background:rgba(7,10,18,.65);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.logo{font-weight:900;font-size:24px;letter-spacing:.5px}.logo span{color:var(--red)}nav{display:flex;gap:16px;align-items:center}nav a{color:#cbd5e1}.container{width:min(1180px,92vw);margin:34px auto}.hero{display:grid;grid-template-columns:1.5fr .8fr;gap:26px;align-items:center;min-height:430px}.badge,.game{display:inline-flex;padding:7px 12px;border:1px solid rgba(255,71,87,.35);border-radius:999px;color:#ffd3d7;background:rgba(255,71,87,.1);font-size:13px}.hero h1{font-size:clamp(38px,6vw,72px);line-height:.95;margin:20px 0;background:linear-gradient(90deg,#fff,#ff9aa3,#b58cff);-webkit-background-clip:text;color:transparent}.hero p{font-size:18px;color:var(--muted);max-width:680px}.hero-actions,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.btn{border:0;border-radius:16px;padding:13px 20px;background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;font-weight:800;cursor:pointer;box-shadow:0 14px 35px rgba(255,71,87,.22);display:inline-flex;align-items:center;justify-content:center}.btn.ghost{background:rgba(255,255,255,.08);box-shadow:none;border:1px solid var(--line)}.btn.sm{padding:9px 13px;border-radius:12px;font-size:14px}.hero-card,.panel,.auth-card,.tariff{border:1px solid var(--line);background:var(--card);backdrop-filter:blur(18px);border-radius:28px;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.hero-card b{display:block;font-size:56px}.hero-card span{color:#fff;font-size:20px}.hero-card small{display:block;color:var(--muted);margin-top:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}.stats div{padding:22px;background:var(--card2);border:1px solid var(--line);border-radius:22px}.stats b{display:block;font-size:28px}.stats span,.muted{color:var(--muted)}h1,h2,h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:18px 0 40px}.server-card{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:rgba(15,23,42,.72);transition:.25s;position:relative}.server-card:hover{transform:translateY(-4px);border-color:rgba(255,71,87,.45)}.server-card.vip:before{content:'VIP';position:absolute;top:12px;right:12px;background:linear-gradient(135deg,var(--red),var(--violet));padding:6px 10px;border-radius:999px;font-weight:900;z-index:2}.banner{height:120px;background:#111827 center/cover no-repeat}.server-body{padding:18px}.row,.page-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.status{font-size:12px;font-weight:900}.status.on{color:#22c55e}.status.off{color:#ef4444}.server-body p{color:var(--muted);min-height:42px}.meta{color:#cbd5e1;margin:12px 0}.ip{display:flex;gap:8px;align-items:center;background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:14px;padding:8px}.ip code{flex:1;color:#fff;overflow:hidden;text-overflow:ellipsis}.ip button{border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;padding:8px 10px;cursor:pointer}.filters,.form{display:grid;gap:14px}.filters{grid-template-columns:1fr 220px 180px auto;margin:20px 0}.form input,.form select,.form textarea,.filters input,.filters select,.tariff select{width:100%;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;padding:13px;outline:none}.form textarea{min-height:120px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-card{max-width:460px;margin:50px auto}.auth-card.wide{max-width:760px}.alert{padding:14px 18px;border-radius:16px;background:rgba(255,71,87,.16);border:1px solid rgba(255,71,87,.35);margin-bottom:18px}.server-hero{display:grid;grid-template-columns:.9fr 1.1fr;gap:26px;align-items:center}.big-banner{min-height:310px;border-radius:28px;background:#111827 center/cover no-repeat;border:1px solid var(--line)}.ip.big{max-width:430px;margin:20px 0}.tariffs{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.tariff b{font-size:34px}.footer{text-align:center;color:var(--muted);padding:40px}.admin-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.side{background:#0b1020;border-right:1px solid var(--line);padding:22px;display:flex;flex-direction:column;gap:14px}.admin-main{padding:32px}.table-wrap{overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:20px}table{width:100%;border-collapse:collapse}td,th{padding:14px;border-bottom:1px solid var(--line);text-align:left}canvas{width:100%;max-height:320px}@media(max-width:900px){.hero,.server-hero{grid-template-columns:1fr}.grid,.tariffs,.stats{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.header{align-items:flex-start;gap:14px;flex-direction:column}nav{flex-wrap:wrap}.admin-shell{grid-template-columns:1fr}.side{position:static}.two{grid-template-columns:1fr}}

.ad-slot{margin:0 0 24px;padding:18px;border:1px dashed rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.045);color:#94a3b8;text-align:center;overflow:hidden}.ad-slot img{max-width:100%;height:auto;border-radius:16px}.ad-top{min-height:86px;display:flex;align-items:center;justify-content:center}.ad-sidebar{min-height:250px}.content-with-ad{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.ok{color:#22c55e}.bad{color:#ff6b78}.alert.soft{background:rgba(142,68,255,.12);border-color:rgba(142,68,255,.3)}.server-card.need-verify{border-color:rgba(255,71,87,.5)}.server-card.verified{border-color:rgba(34,197,94,.35)}.verify-info p{color:var(--muted);line-height:1.6}@media(max-width:900px){.content-with-ad{grid-template-columns:1fr}.ad-sidebar{min-height:90px}}


/* Beauty fix pack */
select, option{background:#1f2634!important;color:#fff!important}select:focus,input:focus,textarea:focus{border-color:rgba(255,71,87,.65);box-shadow:0 0 0 4px rgba(255,71,87,.10)}
.form label{font-weight:800;color:#dbe4f5;display:grid;gap:8px}.form label small{font-weight:500}.file-input{padding:10px;background:rgba(255,255,255,.08);border-radius:14px;color:#e5e7eb}.upload-box{padding:14px;border:1px dashed rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.04)}
.banner{height:120px;background-size:cover;background-position:center}.server-card .banner{height:120px}.big-banner{background-size:cover;background-position:center}.server-card{display:flex;flex-direction:column}.server-body{display:flex;flex-direction:column;gap:10px}.server-body h3{margin:0;font-size:20px}.server-body p{margin:0}.meta{margin:4px 0}.catalog-layout{display:grid;grid-template-columns:1fr 300px;gap:24px;align-items:start}.catalog-grid{grid-template-columns:repeat(2,minmax(280px,1fr))}.ad-sidebar{position:sticky;top:96px}.filters select{min-width:0}.filters button{height:45px}.filters{align-items:center}.tariff{display:flex;flex-direction:column;gap:14px}.tariff select{height:46px}.tariff button{width:max-content}.admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inline-status{display:flex;align-items:center;gap:8px}.inline-status select{width:150px;height:40px;padding:8px 12px;border-radius:12px}.admin-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08);font-weight:800}.clean-actions form{margin:0}.icon-danger{border:0;background:transparent;color:#ff8390;font-weight:800;cursor:pointer;padding:8px 4px}.small-line{font-size:13px;color:var(--muted)}
.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.profile-mini{display:flex;align-items:center;gap:18px}.profile-mini h1{margin:0}.profile-mini p{margin:6px 0 0;color:var(--muted)}.avatar{width:74px;height:74px;border-radius:24px;background:#111827 center/cover no-repeat;border:1px solid rgba(255,255,255,.13);box-shadow:0 16px 35px rgba(0,0,0,.25)}.avatar.big{width:160px;height:160px;border-radius:42px;margin:auto}.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.stat-card{padding:20px}.stat-card span{color:var(--muted)}.stat-card b{font-size:36px;display:block;margin-top:8px}.dashboard-servers{margin-top:18px}.empty-state{text-align:center;color:var(--muted)}.profile-layout{display:grid;grid-template-columns:320px 1fr;gap:22px;align-items:start}.profile-card{text-align:center}.profile-card h2{margin:16px 0 6px}.profile-card p{color:var(--muted)}.profile-form input,.profile-form textarea{margin-top:8px}.profile-form .btn{width:max-content}.page-head p{color:var(--muted)}
@media(max-width:1050px){.catalog-layout{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}.ad-sidebar{position:static}.dashboard-head{align-items:flex-start;flex-direction:column}.profile-layout,.dash-grid{grid-template-columns:1fr}}
@media(max-width:700px){.server-card .banner{height:105px}.actions{gap:8px}.btn{padding:12px 16px}.container{width:min(100% - 28px,1180px)}.filters{gap:10px}.profile-mini{align-items:flex-start}.avatar{width:60px;height:60px;border-radius:20px}}


/* Owner / UX fixes */
.alert.success{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.35)}
.owner-note{margin-top:14px;font-size:14px}.big-empty{padding:42px;text-align:center}.big-empty h2{font-size:30px;margin-bottom:10px}.big-empty p{color:var(--muted);margin-bottom:18px}.server-hero .actions form{margin:0}.server-hero .actions{align-items:center}.server-card .actions .btn{white-space:nowrap}.catalog-grid:empty{display:none}

/* RU labels / profile / ads update */
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#cbd5e1 50%),linear-gradient(135deg,#cbd5e1 50%,transparent 50%)!important;background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%!important;background-size:6px 6px,6px 6px!important;background-repeat:no-repeat!important;padding-right:42px!important}option{padding:10px;background:#151c2b!important;color:#eef2ff!important}.role-text{margin-top:14px;color:#aeb9cd}.role-text b{color:#fff;text-transform:none}.clean-profile .badge{display:none}.file-card{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;border:1px dashed rgba(255,255,255,.18);border-radius:18px;padding:12px 14px;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,71,87,.045));color:#94a3b8}.file-card .file-input{background:transparent!important;border:0!important;padding:0!important;color:#e5e7eb}.file-card input[type=file]::file-selector-button{border:0;border-radius:12px;padding:10px 14px;margin-right:12px;background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;font-weight:900;cursor:pointer}.file-card span{font-size:13px;color:#94a3b8;text-align:right}.status-approved{background:rgba(34,197,94,.14);color:#86efac}.status-pending{background:rgba(250,204,21,.12);color:#fde68a}.status-blocked,.status-rejected{background:rgba(239,68,68,.14);color:#fca5a5}.status-deleted,.status-expired{background:rgba(148,163,184,.12);color:#cbd5e1}.ad-demo{margin-bottom:22px}.demo-browser{border:1px solid var(--line);border-radius:24px;padding:16px;background:rgba(0,0,0,.20);display:grid;gap:14px}.demo-top,.demo-footer,.demo-side{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(255,71,87,.38);border-radius:18px;background:linear-gradient(135deg,rgba(255,71,87,.12),rgba(142,68,255,.12));font-weight:900;color:#ffdce1}.demo-top{height:78px}.demo-footer{height:64px}.demo-body{display:grid;grid-template-columns:1fr 260px;gap:14px}.demo-content{min-height:230px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.035);display:flex;align-items:center;justify-content:center;color:#94a3b8}.demo-side{min-height:230px}.ad-packages{margin-bottom:24px}.service-order{margin-top:20px}.ad-active{border-style:solid;border-color:rgba(255,71,87,.35);background:rgba(255,255,255,.06)}.ad-active a{display:block}.ad-slot b{font-size:20px}.admin-actions .btn.sm,.inline-status .btn.sm{height:40px}.inline-status select{min-width:160px}.side a{padding:10px 12px;border-radius:12px}.side a:hover{background:rgba(255,255,255,.06)}
@media(max-width:900px){.demo-body{grid-template-columns:1fr}.demo-side{min-height:120px}.file-card{align-items:flex-start;flex-direction:column}.file-card span{text-align:left}}

/* Wallet / balance system */
.wallet-head{align-items:flex-start}.wallet-grid{display:grid;grid-template-columns:1fr 420px;gap:22px;margin-bottom:24px}.wallet-card{min-height:220px}.big-wallet{background:radial-gradient(circle at 15% 20%,rgba(255,71,87,.24),transparent 42%),radial-gradient(circle at 100% 0,rgba(142,68,255,.22),transparent 38%),var(--card)}.big-wallet span{color:#cbd5e1;font-weight:800}.big-wallet b{display:block;font-size:clamp(38px,6vw,64px);margin:14px 0;background:linear-gradient(90deg,#fff,#ff9aa3,#b58cff);-webkit-background-clip:text;color:transparent}.big-wallet p{color:var(--muted);max-width:560px}.topup-form{display:grid;gap:14px}.topup-form label{display:grid;gap:8px;font-weight:800}.topup-form input,.topup-form select,.balance-admin-form input{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;padding:12px;outline:none}.balance-stat{position:relative;overflow:hidden}.balance-stat:after{content:'';position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg,rgba(255,71,87,.22),rgba(142,68,255,.22))}.balance-stat a{color:#ffb4bd;font-weight:900;margin-top:8px;display:inline-block}.inline-form.balance-admin-form{display:grid;grid-template-columns:120px minmax(180px,1fr) auto;gap:8px;align-items:center}.empty-state.small{padding:18px}.table-wrap .ok{font-weight:900}.table-wrap .bad{font-weight:900}@media(max-width:900px){.wallet-grid{grid-template-columns:1fr}.inline-form.balance-admin-form{grid-template-columns:1fr}.wallet-card{min-height:auto}}


/* Production polish: legal pages, checkboxes, footer */
.check-row{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:12px;padding:14px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.045);font-weight:600!important;color:#cbd5e1!important;line-height:1.45}.check-row.compact{padding:10px 12px;margin-top:4px}.check-row input[type=checkbox]{appearance:none;width:22px;min-width:22px;height:22px;margin:0;border-radius:8px;border:1px solid rgba(255,255,255,.22);background:#111827;display:grid;place-items:center;cursor:pointer}.check-row input[type=checkbox]:checked{border-color:transparent;background:linear-gradient(135deg,var(--red),var(--violet));box-shadow:0 10px 24px rgba(255,71,87,.2)}.check-row input[type=checkbox]:checked:after{content:'✓';font-size:15px;font-weight:900;color:#fff;line-height:1}.check-row a{color:#ffb4bd;font-weight:900}.file-card-modern{position:relative;overflow:hidden}.file-card-modern input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.file-card-modern span{text-align:left!important;display:grid;gap:3px}.file-card-modern span b{color:#fff;font-size:15px}.file-card-modern span small{color:#94a3b8;font-size:13px}.file-card-modern:before{content:'Выбрать файл';display:inline-flex;align-items:center;justify-content:center;min-width:142px;border-radius:14px;padding:11px 15px;background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;font-weight:900;box-shadow:0 14px 30px rgba(255,71,87,.16)}.legal{max-width:920px;margin:0 auto}.legal h1{font-size:clamp(34px,5vw,56px);margin-bottom:12px}.legal h2{margin-top:28px;margin-bottom:10px}.legal p{color:#cbd5e1;line-height:1.75}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.contact-grid div{padding:18px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.045);display:grid;gap:8px}.contact-grid span{color:#cbd5e1}.footer{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}.footer-links{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}.footer-links a{color:#cbd5e1}.footer-links a:hover{color:#fff}.service-order .muted b{color:#fff}@media(max-width:700px){.check-row{font-size:14px}.contact-grid{grid-template-columns:1fr}.footer{align-items:center;flex-direction:column}}


/* Spacing polish */
.page-head + .panel,
.page-head + .wallet-grid,
.page-head + .catalog-layout,
.page-head + .table-wrap,
.page-head + .tariffs,
.page-head + .auth-card,
.panel + .panel,
.panel + .table-wrap,
.table-wrap + .panel,
.wallet-grid + .panel,
.tariffs + .panel,
.ad-demo + .tariffs,
.ad-packages + .panel,
.panel + .ad-slot,
.table-wrap + .ad-slot,
.auth-card + .ad-slot,
.wallet-grid + .ad-slot,
.tariffs + .ad-slot,
.legal + .ad-slot,
section + .ad-slot,
div + .ad-slot{margin-top:22px}

.ad-slot{margin:24px 0 28px}
.legal{margin-bottom:0}
.check-row{margin-top:6px}
.check-row input[type=checkbox]{margin-top:2px}
.panel p:last-child,.legal p:last-child{margin-bottom:0}
.table-wrap table tr:last-child td{border-bottom:0}
@media(max-width:700px){
  .page-head + .panel,
  .page-head + .wallet-grid,
  .page-head + .catalog-layout,
  .panel + .table-wrap,
  .table-wrap + .panel,
  .panel + .ad-slot,
  .table-wrap + .ad-slot,
  .wallet-grid + .panel,
  section + .ad-slot,
  div + .ad-slot{margin-top:18px}
  .ad-slot{margin:18px 0 24px}
}


/* Final UI polish */
:root{--space-1:10px;--space-2:14px;--space-3:18px;--space-4:22px;--space-5:28px;--space-6:36px}
.page-shell > * + *{margin-top:var(--space-4)}
.page-head,.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.page-head p,.section-head p{color:var(--muted);margin:6px 0 0}.section-block{display:grid;gap:18px}.section-head h2,.page-head h1{margin-bottom:0}.page-head .actions{justify-content:flex-end}
.header{gap:18px}.header-row{display:flex;align-items:center;justify-content:space-between;width:100%}.site-nav{display:flex;gap:16px;align-items:center}
.nav-toggle{display:none;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.06);cursor:pointer}.nav-toggle span{display:block;width:18px;height:2px;background:#fff;border-radius:99px;margin:2px 0}
.admin-mobile-bar{display:none;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.table-wrap{background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(10,15,28,.88));border:1px solid rgba(255,255,255,.10);border-radius:24px;box-shadow:0 20px 50px rgba(0,0,0,.18)}
.table-wrap table{min-width:760px}.table-wrap th{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#cbd5e1;background:rgba(255,255,255,.03)}.table-wrap td,.table-wrap th{padding:16px 18px}.table-wrap tr:hover td{background:rgba(255,255,255,.025)}.table-wrap tr:last-child td{border-bottom:0}
.panel,.table-wrap,.auth-card,.hero-card,.tariff,.stats div,.server-card{scroll-margin-top:92px}
.empty-state{padding:40px 28px;text-align:center;display:grid;place-items:center;gap:10px;min-height:220px}.empty-state:before{content:'✦';display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,rgba(255,71,87,.16),rgba(142,68,255,.16));border:1px solid rgba(255,255,255,.10);color:#fff;font-size:28px;box-shadow:0 18px 36px rgba(255,71,87,.14)}.empty-state h2,.empty-state h3{margin:0}.empty-state p{max-width:540px;margin:0;color:var(--muted)}.empty-state.compact{min-height:180px;padding:30px 24px}
.toast-stack{position:fixed;top:18px;right:18px;z-index:1000;display:grid;gap:12px;max-width:min(420px,calc(100vw - 24px))}.toast{display:grid;grid-template-columns:40px 1fr 24px;gap:12px;align-items:start;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(10,15,28,.94);backdrop-filter:blur(20px);box-shadow:0 18px 48px rgba(0,0,0,.34);opacity:0;transform:translateY(-10px) scale(.98);transition:.22s}.toast.show{opacity:1;transform:translateY(0) scale(1)}.toast-icon{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-weight:900;color:#fff;background:linear-gradient(135deg,var(--red),var(--violet))}.toast.success .toast-icon{background:linear-gradient(135deg,#16a34a,#22c55e)}.toast.error .toast-icon{background:linear-gradient(135deg,#ef4444,#ff6b78)}.toast-body{display:grid;gap:4px}.toast-body strong{font-size:14px}.toast-body span{color:#cbd5e1;line-height:1.45}.toast-close{border:0;background:transparent;color:#94a3b8;font-size:22px;line-height:1;cursor:pointer;padding:0}
.modal-root{position:fixed;inset:0;z-index:1100;display:none}.modal-root.is-open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(3,7,18,.72);backdrop-filter:blur(6px)}.modal-card{position:relative;z-index:1;width:min(560px,calc(100vw - 28px));margin:10vh auto 0;padding:28px;border-radius:28px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(16,24,39,.96),rgba(10,15,28,.98));box-shadow:0 32px 90px rgba(0,0,0,.38);display:grid;gap:16px}.modal-badge{display:inline-flex;width:max-content;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;background:rgba(255,255,255,.06);border:1px solid var(--line)}.modal-card h3{margin:0;font-size:30px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.modal-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:#fff;font-size:24px;cursor:pointer}
body.modal-open{overflow:hidden}
.filters,.wallet-grid,.profile-layout,.catalog-layout,.content-with-ad,.section-block,.dash-grid{align-items:start}
.ip code{font-size:15px}.btn,.btn.sm{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}.btn:hover{transform:translateY(-1px)}
.inline-status,.admin-actions{align-items:center}.inline-status .btn.sm{min-width:54px}.balance-admin-form .btn.sm{min-width:64px}
.stats div,.panel,.hero-card,.tariff,.auth-card{position:relative;overflow:hidden}.stats div:before,.panel:before,.hero-card:before,.tariff:before,.auth-card:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.03),transparent 20%);pointer-events:none}
@media(max-width:900px){.page-shell > * + *{margin-top:18px}.site-nav{display:none;width:100%;flex-direction:column;align-items:stretch;gap:10px}.site-nav a,.site-nav .btn.sm{width:100%;justify-content:center}.site-nav.is-open{display:flex}.nav-toggle{display:inline-flex}.header{padding:16px 4vw}.content-with-ad,.catalog-layout,.profile-layout,.wallet-grid{grid-template-columns:1fr}.admin-mobile-bar{display:flex}.side{position:fixed;left:12px;right:12px;top:76px;z-index:60;display:none;border:1px solid var(--line);border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.side.is-open{display:flex}.admin-shell{grid-template-columns:1fr}.admin-main{padding:18px}.table-wrap th,.table-wrap td{padding:14px 14px}}
@media(max-width:700px){.container{width:min(100% - 22px,1180px);margin:22px auto}.page-head,.section-head,.dashboard-head{gap:14px}.page-head .actions,.dashboard-head .actions{width:100%}.page-head .actions .btn,.dashboard-head .actions .btn,.page-head > .btn{width:100%;justify-content:center}.filters{grid-template-columns:1fr}.grid,.catalog-grid,.tariffs,.stats,.dash-grid{grid-template-columns:1fr}.hero{min-height:auto}.hero h1{line-height:1.02}.server-hero{gap:18px}.big-banner{min-height:220px}.table-wrap{border-radius:20px}.table-wrap table{min-width:640px}.toast-stack{left:12px;right:12px;top:12px;max-width:none}.toast{grid-template-columns:34px 1fr 20px;padding:12px 13px}.toast-icon{width:34px;height:34px;border-radius:12px}.modal-card{margin:8vh auto 0;padding:22px;border-radius:24px}.modal-card h3{font-size:24px}.modal-actions .btn{width:100%}.empty-state{padding:30px 18px;min-height:190px}.empty-state:before{width:58px;height:58px;border-radius:18px}}


/* Final SaaS pack */
.loader{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,rgba(255,71,87,.22),transparent 32%),radial-gradient(circle at 80% 0,rgba(142,68,255,.20),transparent 34%),#070a12;transition:.35s ease}
.loader.hide{opacity:0;visibility:hidden}
.loader-card{width:min(340px,calc(100vw - 36px));padding:28px;border:1px solid rgba(255,255,255,.10);border-radius:28px;background:rgba(15,23,42,.72);box-shadow:0 30px 80px rgba(0,0,0,.35);backdrop-filter:blur(18px)}
.loader-logo{font-size:30px;font-weight:1000;letter-spacing:.04em}.loader-logo span{color:var(--red)}
.loader-line{height:5px;margin-top:18px;border-radius:99px;background:linear-gradient(90deg,var(--red),var(--violet),var(--red));background-size:200% 100%;animation:loadline 1.1s linear infinite}
@keyframes loadline{to{background-position:200% 0}}

.error-page{max-width:760px;margin:8vh auto;text-align:center;display:grid;gap:16px;place-items:center}
.error-page h1{font-size:clamp(80px,16vw,160px);line-height:.8;margin:10px 0;background:linear-gradient(90deg,#fff,#ff9aa3,#b58cff);-webkit-background-clip:text;color:transparent}
.error-page p{color:var(--muted);font-size:18px;max-width:560px}

.table-tools{display:flex;justify-content:flex-end;margin:0 0 12px}
.table-search{width:min(360px,100%);border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;padding:12px 14px;outline:none}
.table-search:focus{border-color:rgba(255,71,87,.65);box-shadow:0 0 0 4px rgba(255,71,87,.10)}
.table-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;color:var(--muted);font-size:14px;flex-wrap:wrap}
.table-pager button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.table-wrap.is-empty-filter{position:relative;min-height:160px}
.table-wrap.is-empty-filter:after{content:'Поиск ничего не нашёл';display:grid;place-items:center;min-height:120px;color:#94a3b8;font-weight:900}
.table-wrap.is-empty-filter table{display:none}

.admin-shell{background:radial-gradient(circle at 100% 0,rgba(142,68,255,.12),transparent 28%),#070a12}
.admin-main{max-width:1500px;width:100%;margin:0 auto}
.side{background:linear-gradient(180deg,rgba(11,16,32,.98),rgba(9,13,24,.96));box-shadow:18px 0 60px rgba(0,0,0,.22)}
.side a:not(.logo){font-weight:800;color:#cbd5e1;border:1px solid transparent}
.side a:not(.logo):hover{color:#fff;border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.06)}

.form.panel,.profile-form,.topup-form{gap:18px}
.form input,.form select,.form textarea,.filters input,.filters select,.topup-form input,.topup-form select{transition:.18s}
.form input:hover,.form select:hover,.form textarea:hover,.filters input:hover,.filters select:hover{border-color:rgba(255,255,255,.18)}
.server-card,.panel,.table-wrap,.tariff,.auth-card{transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease}
.panel:hover,.tariff:hover,.auth-card:hover{border-color:rgba(255,255,255,.16)}
.server-card:hover{box-shadow:0 22px 60px rgba(0,0,0,.24)}

@media(max-width:700px){
  .table-tools{justify-content:stretch}
  .table-search{width:100%}
  .table-pager{justify-content:center;text-align:center}
  .table-pager span{width:100%;order:-1}
  .loader-card{padding:22px;border-radius:24px}
}


/* Minor polish fix pack */
.empty-state{justify-items:center;text-align:center;padding:34px 24px;min-height:190px}.empty-state:before{display:none !important;content:none !important}.empty-state h2,.empty-state h3,.empty-state p,.empty-state a{position:relative;z-index:1}.section-block .empty-state,.panel.empty-state{margin-top:4px}
.check-row{align-items:center !important;gap:14px;padding:16px 18px}.check-row input[type=checkbox]{flex:0 0 22px;margin:0 !important;position:relative;top:0}.check-row span{display:block;flex:1;min-width:0}.check-row.compact{padding:12px 14px}
.table-tools{margin-top:16px;margin-bottom:14px}.panel + .table-tools,.page-head + .table-tools{margin-top:18px}.table-search{height:42px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.settings-form section + section{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}.settings-help{position:sticky;top:22px;height:max-content}.settings-help h2{margin-bottom:10px}.settings-list{display:grid;gap:12px;padding-left:18px;color:#cbd5e1;line-height:1.55}.section-mini-head{display:grid;gap:6px;margin-bottom:14px}.section-mini-head p{color:var(--muted);margin:0}.field-label{display:block;margin-bottom:8px;color:#e5e7eb;font-weight:800}.settings-actions{display:flex;justify-content:flex-start;padding-top:8px}.settings-section textarea{min-height:120px}
@media(max-width:980px){.settings-grid{grid-template-columns:1fr}.settings-help{position:static}}
@media(max-width:700px){.empty-state{padding:26px 16px;min-height:170px}.table-tools{margin-top:14px}.check-row{padding:14px 14px;align-items:flex-start !important}.settings-actions .btn{width:100%}}


/* Final settings polish */
.settings-grid{align-items:start}
.settings-form{padding:0;overflow:visible}
.settings-form section{padding:26px 28px}
.settings-form section:first-of-type{padding-top:28px}
.settings-form section + section{margin-top:0}
.settings-form .two{gap:14px}
.settings-form input,.settings-form textarea{
  min-height:44px;
}
.section-mini-head h2{margin:0}
.section-mini-head p{font-size:15px}
.settings-actions{
  position:sticky;
  bottom:16px;
  z-index:12;
  margin:0;
  padding:18px 28px;
  border-top:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg,rgba(15,23,42,.86),rgba(10,15,28,.96));
  backdrop-filter:blur(16px);
  border-radius:0 0 28px 28px;
}
.settings-actions .btn{min-width:220px}
.settings-help{top:96px}
.settings-help ul{margin-bottom:0}
.settings-help li::marker{color:#ff8a95}
.field-label{font-size:14px;letter-spacing:.01em}
@media(max-width:980px){
  .settings-actions{bottom:10px}
}
@media(max-width:700px){
  .settings-form section{padding:20px 16px}
  .settings-actions{padding:14px 16px;border-radius:0 0 22px 22px}
  .settings-actions .btn{width:100%;min-width:0}
}


/* Checkbox alignment hotfix */
.check-row{display:grid !important;grid-template-columns:24px minmax(0,1fr) !important;align-items:start !important;column-gap:14px;row-gap:0;padding:16px 18px}
.check-row input[type=checkbox]{width:24px !important;height:24px !important;min-width:24px !important;align-self:start !important;justify-self:start !important;margin:2px 0 0 0 !important;position:static !important;top:auto !important;display:inline-grid !important}
.check-row span{display:block !important;min-width:0;line-height:1.5;padding-top:0}
.check-row.compact{grid-template-columns:22px minmax(0,1fr) !important;padding:12px 14px}
.check-row.compact input[type=checkbox]{width:22px !important;height:22px !important;min-width:22px !important;margin-top:1px !important}
@media(max-width:700px){.check-row{grid-template-columns:24px minmax(0,1fr) !important;align-items:start !important;padding:14px 14px}.check-row input[type=checkbox]{margin-top:1px !important}}


/* Real checkbox + settings fix */
.auth-card .check-row,
.auth-card.wide .check-row,
.service-order .check-row,
form .check-row{
  display:grid !important;
  grid-template-columns:26px minmax(0,1fr) !important;
  align-items:start !important;
  gap:14px !important;
  padding:16px 18px !important;
}
.auth-card .check-row input[type=checkbox],
.auth-card.wide .check-row input[type=checkbox],
.service-order .check-row input[type=checkbox],
form .check-row input[type=checkbox]{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:#111827 !important;
  margin:1px 0 0 0 !important;
  position:static !important;
  display:block !important;
  box-shadow:none !important;
  outline:none !important;
  cursor:pointer !important;
}
.auth-card .check-row input[type=checkbox]::after,
.auth-card.wide .check-row input[type=checkbox]::after,
.service-order .check-row input[type=checkbox]::after,
form .check-row input[type=checkbox]::after{content:none !important;}
.auth-card .check-row input[type=checkbox]:checked,
.auth-card.wide .check-row input[type=checkbox]:checked,
.service-order .check-row input[type=checkbox]:checked,
form .check-row input[type=checkbox]:checked{
  border-color:transparent !important;
  background-color:#8e44ff !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.2 3.5 8.3l-1 1 3.9 3.9 7-7-1-1z' fill='white'/%3E%3C/svg%3E"), linear-gradient(135deg,#ff4757,#8e44ff) !important;
  background-repeat:no-repeat,no-repeat !important;
  background-position:center,center !important;
  background-size:14px 14px,100% 100% !important;
}
.auth-card .check-row span,
.auth-card.wide .check-row span,
.service-order .check-row span,
form .check-row span{display:block !important;line-height:1.48 !important;min-width:0 !important}
.check-row.compact{grid-template-columns:22px minmax(0,1fr) !important;padding:12px 14px !important}
.check-row.compact input[type=checkbox]{width:22px !important;height:22px !important;min-width:22px !important;margin-top:0 !important;background-size:13px 13px,100% 100% !important}

.settings-head{margin-bottom:10px}
.settings-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.settings-overview .mini-card{min-height:116px;display:grid;gap:8px;align-content:start}.settings-overview .mini-card span{color:#94a3b8;font-weight:800}.settings-overview .mini-card b{font-size:18px}.settings-overview .mini-card small{color:#cbd5e1;line-height:1.45}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.settings-form{padding:0 !important;overflow:hidden !important}
.settings-form section{padding:26px 28px}
.settings-form section + section{border-top:1px solid rgba(255,255,255,.08);margin-top:0 !important;padding-top:26px !important}
.settings-form .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.settings-form input,.settings-form textarea{min-height:44px}
.settings-form textarea{min-height:118px}
.settings-help{position:sticky;top:96px;height:max-content}
.settings-list{display:grid;gap:12px;padding-left:18px;margin:0;color:#cbd5e1;line-height:1.55}
.settings-list li::marker{color:#ff8a95}
.settings-actions{position:sticky;bottom:16px;z-index:15;display:flex;justify-content:flex-start;padding:18px 28px;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(10,15,28,.97));backdrop-filter:blur(18px)}
.settings-actions .btn{min-width:220px}
@media(max-width:980px){.settings-overview{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-help{position:static}.settings-actions{bottom:10px}}
@media(max-width:700px){.settings-form section{padding:20px 16px}.settings-form .two{grid-template-columns:1fr}.settings-actions{padding:14px 16px}.settings-actions .btn{width:100%;min-width:0}.auth-card .check-row,.auth-card.wide .check-row,.service-order .check-row,form .check-row{grid-template-columns:24px minmax(0,1fr) !important;padding:14px 14px !important}}


/* Settings spacing final pass */
.admin-main > * + *{margin-top:22px}
.settings-head{margin-bottom:0 !important}
.settings-head + .settings-overview{margin-top:14px}
.settings-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:2px}
.settings-overview .mini-card{padding:22px 24px !important;min-height:132px}
.settings-grid{margin-top:0;gap:24px}
.settings-form{border-radius:28px !important}
.settings-form section{padding:30px 28px !important}
.settings-form section:first-of-type{padding-top:30px !important}
.settings-form section + section{padding-top:30px !important}
.settings-help{padding:26px 24px !important;border-radius:26px !important}
.settings-help h2{margin-bottom:14px}
.settings-help .settings-list{gap:14px}
.settings-actions{margin-top:0 !important;padding:18px 28px 20px !important}
.settings-actions .btn{min-height:48px}
@media(max-width:980px){.admin-main > * + *{margin-top:20px}.settings-overview{gap:16px}.settings-grid{gap:20px}}
@media(max-width:700px){.admin-main > * + *{margin-top:18px}.settings-head + .settings-overview{margin-top:10px}.settings-overview{gap:14px}.settings-overview .mini-card{padding:18px 16px !important;min-height:auto}.settings-form section{padding:22px 16px !important}.settings-help{padding:20px 16px !important}.settings-actions{padding:14px 16px 16px !important}}


/* HARD ADMIN SETTINGS SPACING FIX */
.admin-main{
  padding:32px 38px !important;
}

.settings-page{
  display:block !important;
  width:100% !important;
  max-width:1480px !important;
  margin:0 auto !important;
}

.settings-top{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:24px !important;
  margin:0 0 28px 0 !important;
}

.settings-top h1{
  margin:0 0 10px 0 !important;
  font-size:34px !important;
  line-height:1.1 !important;
}

.settings-top p{
  margin:0 !important;
  color:#94a3b8 !important;
  line-height:1.5 !important;
}

.settings-summary{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:22px !important;
  margin:0 0 32px 0 !important;
}

.settings-summary-card{
  min-height:138px !important;
  padding:26px 28px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:10px !important;
  border-radius:28px !important;
}

.settings-summary-card span{
  display:block !important;
  color:#94a3b8 !important;
  font-weight:900 !important;
}

.settings-summary-card b{
  display:block !important;
  font-size:20px !important;
  line-height:1.25 !important;
}

.settings-summary-card small{
  display:block !important;
  color:#cbd5e1 !important;
  line-height:1.45 !important;
}

.settings-content{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 340px !important;
  gap:28px !important;
  align-items:start !important;
  margin:0 !important;
}

.settings-card{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:30px !important;
  background:rgba(18,24,38,.72) !important;
  overflow:hidden !important;
  box-shadow:0 25px 80px rgba(0,0,0,.22) !important;
}

.settings-group{
  display:block !important;
  padding:34px 32px !important;
  margin:0 !important;
}

.settings-group + .settings-group{
  border-top:1px solid rgba(255,255,255,.085) !important;
}

.settings-group-head{
  display:block !important;
  margin:0 0 22px 0 !important;
}

.settings-group-head h2{
  margin:0 0 10px 0 !important;
  font-size:26px !important;
  line-height:1.18 !important;
}

.settings-group-head p{
  margin:0 !important;
  color:#94a3b8 !important;
  line-height:1.55 !important;
}

.settings-fields{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:20px !important;
  margin:0 !important;
}

.settings-fields.two{
  grid-template-columns:1fr 1fr !important;
  gap:20px !important;
}

.settings-fields label{
  display:block !important;
  margin:0 !important;
  color:#e5e7eb !important;
  font-weight:900 !important;
}

.settings-fields label span{
  display:block !important;
  margin:0 0 10px 0 !important;
  font-size:14px !important;
  color:#e5e7eb !important;
}

.settings-fields input,
.settings-fields textarea{
  display:block !important;
  width:100% !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  padding:14px 15px !important;
  outline:none !important;
}

.settings-fields input{
  min-height:48px !important;
}

.settings-fields textarea{
  min-height:132px !important;
  resize:vertical !important;
}

.settings-savebar{
  display:flex !important;
  justify-content:flex-start !important;
  margin:0 !important;
  padding:22px 32px !important;
  border-top:1px solid rgba(255,255,255,.085) !important;
  background:linear-gradient(180deg,rgba(15,23,42,.86),rgba(10,15,28,.97)) !important;
  position:sticky !important;
  bottom:0 !important;
  z-index:20 !important;
}

.settings-savebar .btn{
  min-width:230px !important;
  min-height:50px !important;
}

.settings-tips{
  position:sticky !important;
  top:96px !important;
  margin:0 !important;
  padding:30px 28px !important;
  border-radius:28px !important;
}

.settings-tips h2{
  margin:0 0 18px 0 !important;
  font-size:28px !important;
}

.settings-tips ul{
  margin:0 !important;
  padding-left:20px !important;
  display:grid !important;
  gap:16px !important;
  color:#cbd5e1 !important;
  line-height:1.55 !important;
}

.settings-tips li::marker{
  color:#ff7b88 !important;
}

@media(max-width:1100px){
  .settings-content{
    grid-template-columns:1fr !important;
  }
  .settings-tips{
    position:static !important;
  }
}

@media(max-width:900px){
  .admin-main{
    padding:22px 18px !important;
  }
  .settings-summary{
    grid-template-columns:1fr !important;
    gap:16px !important;
    margin-bottom:22px !important;
  }
  .settings-top{
    flex-direction:column !important;
    gap:16px !important;
    margin-bottom:22px !important;
  }
  .settings-top .btn{
    width:100% !important;
  }
  .settings-fields.two{
    grid-template-columns:1fr !important;
  }
  .settings-group{
    padding:24px 18px !important;
  }
  .settings-savebar{
    padding:16px 18px !important;
  }
  .settings-savebar .btn{
    width:100% !important;
  }
}


/* Balance page + toast hotfix */
.toast-stack{
  top:88px !important;
  right:22px !important;
  z-index:900 !important;
}
.toast{
  max-width:420px !important;
}

.balance-page{
  display:grid !important;
  gap:24px !important;
}

.balance-page .page-head{
  margin:0 !important;
}

.balance-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 420px !important;
  gap:24px !important;
  align-items:stretch !important;
  margin:0 !important;
}

.balance-card{
  margin:0 !important;
  min-height:0 !important;
}

.balance-main-card{
  padding:32px !important;
  background:radial-gradient(circle at 15% 20%,rgba(255,71,87,.24),transparent 42%),radial-gradient(circle at 100% 0,rgba(142,68,255,.22),transparent 38%),rgba(18,24,38,.72) !important;
}

.balance-main-card span{
  display:block !important;
  color:#cbd5e1 !important;
  font-weight:900 !important;
  margin-bottom:12px !important;
}

.balance-main-card b{
  display:block !important;
  font-size:clamp(40px,6vw,66px) !important;
  line-height:1 !important;
  margin:0 0 18px 0 !important;
  background:linear-gradient(90deg,#fff,#ff9aa3,#b58cff);
  -webkit-background-clip:text;
  color:transparent;
}

.balance-main-card p{
  margin:0 !important;
  color:#94a3b8 !important;
  max-width:620px !important;
  line-height:1.6 !important;
}

.balance-topup-form{
  display:grid !important;
  gap:18px !important;
  padding:28px !important;
}

.balance-topup-form h2{
  margin:0 0 8px 0 !important;
}

.balance-topup-form label:not(.check-row){
  display:grid !important;
  gap:10px !important;
  font-weight:900 !important;
}

.balance-topup-form label span{
  color:#e5e7eb !important;
}

.balance-topup-form input,
.balance-topup-form select{
  width:100% !important;
  min-height:48px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  padding:13px 14px !important;
}

.balance-topup-form .btn{
  width:100% !important;
  min-height:48px !important;
}

.balance-history-panel{
  margin:0 !important;
}

@media(max-width:980px){
  .balance-grid{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:700px){
  .toast-stack{
    top:78px !important;
    left:12px !important;
    right:12px !important;
  }
  .balance-page{
    gap:18px !important;
  }
  .balance-grid{
    gap:18px !important;
  }
  .balance-main-card,
  .balance-topup-form{
    padding:22px 18px !important;
  }
}


/* Payment form checkbox explicit fix */
.balance-topup-form .payment-check-row{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr) !important;
  align-items:start !important;
  gap:12px !important;
  padding:12px 14px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.045) !important;
}

.balance-topup-form .payment-check-row input[type=checkbox]{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  border-radius:7px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:#111827 !important;
  margin:0 !important;
  position:static !important;
  cursor:pointer !important;
}

.balance-topup-form .payment-check-row input[type=checkbox]:checked{
  border-color:transparent !important;
  background-color:#8e44ff !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.2 3.5 8.3l-1 1 3.9 3.9 7-7-1-1z' fill='white'/%3E%3C/svg%3E"), linear-gradient(135deg,#ff4757,#8e44ff) !important;
  background-repeat:no-repeat,no-repeat !important;
  background-position:center,center !important;
  background-size:13px 13px,100% 100% !important;
}

.balance-topup-form .payment-check-row span{
  display:block !important;
  line-height:1.45 !important;
  color:#cbd5e1 !important;
}


/* Payment checkbox match other forms */
.balance-topup-form .check-row.compact{
  display:grid !important;
  grid-template-columns:22px minmax(0,1fr) !important;
  align-items:start !important;
  gap:12px !important;
  padding:12px 14px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.045) !important;
}
.balance-topup-form .check-row.compact input[type=checkbox]{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:#111827 !important;
  margin:0 !important;
  position:static !important;
  display:block !important;
  cursor:pointer !important;
}
.balance-topup-form .check-row.compact input[type=checkbox]:checked{
  border-color:transparent !important;
  background:linear-gradient(135deg,var(--red),var(--violet)) !important;
  box-shadow:0 10px 24px rgba(255,71,87,.2) !important;
}
.balance-topup-form .check-row.compact input[type=checkbox]:checked:after{
  content:'✓' !important;
  font-size:15px !important;
  font-weight:900 !important;
  color:#fff !important;
  line-height:1 !important;
  display:grid !important;
  place-items:center !important;
}
.balance-topup-form .check-row.compact span{
  display:block !important;
  line-height:1.48 !important;
  min-width:0 !important;
}


/* REAL payment checkbox size fix */
.balance-topup-form .check-row.compact{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  align-items:start !important;
  gap:12px !important;
  padding:14px 16px !important;
}

.balance-topup-form .check-row.compact input[type="checkbox"],
.balance-topup-form input[type="checkbox"][name="agree_balance_terms"]{
  -webkit-appearance:none !important;
  appearance:none !important;
  box-sizing:border-box !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  max-width:24px !important;
  min-height:24px !important;
  max-height:24px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:8px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:#111827 !important;
  background-image:none !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 24px !important;
  position:static !important;
  top:auto !important;
  cursor:pointer !important;
}

.balance-topup-form .check-row.compact input[type="checkbox"]:checked,
.balance-topup-form input[type="checkbox"][name="agree_balance_terms"]:checked{
  border-color:transparent !important;
  background:linear-gradient(135deg,var(--red),var(--violet)) !important;
  box-shadow:0 10px 24px rgba(255,71,87,.2) !important;
}

.balance-topup-form .check-row.compact input[type="checkbox"]:checked::after,
.balance-topup-form input[type="checkbox"][name="agree_balance_terms"]:checked::after{
  content:"✓" !important;
  display:block !important;
  color:#fff !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:22px !important;
  width:22px !important;
  height:22px !important;
  text-align:center !important;
}

.balance-topup-form .check-row.compact span{
  padding-top:1px !important;
}


/* Support chat widget */
.chat-widget{position:fixed;right:24px;bottom:24px;z-index:850}
.chat-widget-btn{width:64px;height:64px;border:0;border-radius:22px;background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;font-size:28px;font-weight:1000;cursor:pointer;box-shadow:0 18px 45px rgba(255,71,87,.32);position:relative}
.chat-widget-btn .chat-dot{position:absolute;right:10px;top:9px;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #111827}
.chat-window{position:absolute;right:0;bottom:78px;width:380px;max-width:calc(100vw - 28px);height:540px;max-height:calc(100vh - 120px);display:none;grid-template-rows:auto 1fr auto;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:linear-gradient(180deg,rgba(16,24,39,.98),rgba(10,15,28,.98));box-shadow:0 28px 80px rgba(0,0,0,.42);overflow:hidden}
.chat-widget.is-open .chat-window{display:grid}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.chat-head b{display:block;font-size:18px}.chat-head span{display:block;color:#94a3b8;font-size:13px;margin-top:3px}.chat-head button{width:36px;height:36px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:#fff;font-size:22px;cursor:pointer}
.chat-messages{padding:16px;overflow:auto;display:flex;flex-direction:column;gap:12px}
.chat-placeholder{margin:auto;text-align:center;color:#94a3b8;line-height:1.55;padding:18px}
.chat-msg{max-width:82%;display:grid;gap:5px}.chat-msg small{color:#94a3b8;font-size:12px}.chat-msg div{padding:12px 14px;border-radius:16px;line-height:1.45}
.chat-msg.user{align-self:flex-end}.chat-msg.user div{background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;border-bottom-right-radius:6px}
.chat-msg.admin{align-self:flex-start}.chat-msg.admin div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-bottom-left-radius:6px}
.chat-form{padding:14px;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:10px}
.chat-form input,.chat-form textarea{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;padding:11px 12px;outline:none}
.chat-form textarea{min-height:82px;resize:none}.chat-form .btn{width:100%;min-height:44px}
.admin-chat-panel{display:grid;gap:18px}.admin-chat-messages{display:flex;flex-direction:column;gap:14px;max-height:560px;overflow:auto;padding:4px}.admin-chat-bubble{max-width:760px;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.08);line-height:1.55}.admin-chat-bubble.user{background:rgba(255,255,255,.055)}.admin-chat-bubble.admin{background:linear-gradient(135deg,rgba(255,71,87,.16),rgba(142,68,255,.14));margin-left:auto}.admin-chat-meta{color:#94a3b8;font-size:12px;margin-bottom:8px}.admin-chat-reply{display:grid;gap:12px}.admin-chat-reply textarea{width:100%;min-height:120px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.06);color:#fff;padding:14px;outline:none}.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,var(--red),var(--violet));color:#fff;font-size:12px;margin-left:5px}
.status-open{background:rgba(255,71,87,.14);color:#fecdd3}.status-answered{background:rgba(34,197,94,.14);color:#86efac}.status-closed{background:rgba(148,163,184,.12);color:#cbd5e1}
@media(max-width:700px){.chat-widget{right:14px;bottom:14px}.chat-widget-btn{width:58px;height:58px;border-radius:20px}.chat-window{right:-2px;bottom:70px;width:calc(100vw - 24px);height:min(540px,calc(100vh - 110px))}}


/* API widgets on server page */
.api-widgets{display:grid;gap:18px}
.api-widget-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.api-widget-card{padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:rgba(255,255,255,.045);display:grid;gap:12px;align-content:start}
.api-widget-card h3{margin:0}
.api-widget-card p{margin:0;color:#94a3b8;line-height:1.45}
.api-widget-card textarea{width:100%;min-height:118px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(0,0,0,.20);color:#e5e7eb;padding:12px;resize:vertical;outline:none}
.api-widget-card .btn{width:max-content}
.chat-placeholder{font-size:15px;color:#cbd5e1}
@media(max-width:980px){.api-widget-grid{grid-template-columns:1fr}}
