*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#050A08;--bg-gradient:radial-gradient(circle at 0% 0%,#123528 0%,#0A1814 34%,#050A08 62%,#030606 100%);--sidebar:#0C2018;--card:rgba(26,31,29,.92);--border:rgba(90,220,210,.22);--text:#e2e8f0;--muted:#94a3b8;--primary:#0ea5e9;--primary-d:#0284c7;--success:#22c55e;--danger:#ef4444;--warning:#f59e0b;--sidebar-w:240px}
html,body{direction:ltr}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg-gradient);background-color:var(--bg);color:var(--text);min-height:100vh;font-size:14px}
.app-layout{direction:ltr}
a{color:var(--primary);text-decoration:none}
.hidden{display:none!important}
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;transition:.15s}
.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-d)}
.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--danger);color:#fff}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text)}.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-sm{padding:5px 10px;font-size:12px}
.btn-xs{padding:3px 8px;font-size:11px}
input,select,textarea{background:#0f172a;border:1px solid var(--border);border-radius:8px;color:var(--text);padding:8px 12px;font-size:13px;width:100%}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary)}
textarea{min-height:100px;font-family:monospace;resize:vertical}
label{display:block;margin-bottom:4px;font-size:12px;color:var(--muted)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.form-group{margin-bottom:12px}
.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px;background:var(--bg-gradient);background-color:var(--bg)}
.login-box{background:var(--card);border-radius:16px;padding:40px;width:100%;max-width:400px;border:1px solid var(--border)}
.login-box h1{text-align:center;margin-bottom:8px;font-size:22px;color:var(--primary)}
.login-box p{text-align:center;color:var(--muted);margin-bottom:24px;font-size:13px}
.app-layout{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-w);background:var(--sidebar);border-right:1px solid var(--border);position:fixed;top:0;left:0;bottom:0;overflow-y:auto;z-index:100}
.sidebar-logo{padding:20px 16px;border-bottom:1px solid var(--border);font-size:16px;font-weight:700;color:var(--primary)}
.sidebar-logo small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}
.nav-group{padding:8px 0}
.nav-group-title{padding:8px 16px 4px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.nav-item{display:flex;align-items:center;gap:8px;padding:9px 16px;color:var(--muted);cursor:pointer;font-size:13px;border-left:3px solid transparent;transition:.15s}
.nav-item:hover{background:rgba(255,255,255,.04);color:var(--text)}
.nav-item.active{background:rgba(14,165,233,.1);color:var(--primary);border-left-color:var(--primary)}
.nav-collapse{margin:2px 8px;border:1px solid rgba(255,255,255,.06);border-radius:10px;overflow:hidden;background:rgba(0,0,0,.12)}
.nav-collapse-btn{width:100%;display:flex;align-items:center;gap:8px;padding:10px 12px;border:none;background:transparent;color:var(--text);cursor:pointer;font-size:13px;font-weight:600;text-align:left;transition:.15s}
.nav-collapse-btn:hover{background:rgba(255,255,255,.04)}
.nav-collapse--open .nav-collapse-btn{color:var(--primary)}
.nav-collapse-arrow{font-size:10px;color:var(--muted);transition:transform .2s;flex-shrink:0;width:12px}
.nav-collapse--open .nav-collapse-arrow{transform:rotate(90deg);color:var(--primary)}
.nav-collapse-label{flex:1;line-height:1.35}
.nav-collapse-body{display:none;padding:2px 0 6px}
.nav-collapse--open .nav-collapse-body{display:block}
.nav-collapse-body .nav-item{margin:0 6px;border-left:none;border-radius:8px;padding:8px 12px 8px 24px;font-size:12px}
.nav-collapse-body .nav-item.active{border-left:none;background:rgba(14,165,233,.14)}
.nav-item--sub{margin:0 6px 2px;border-left:none;border-radius:8px;padding:7px 12px 7px 32px;font-size:12px;color:var(--muted)}
.nav-item--sub:hover{color:var(--text)}
.nav-item--sub.active{background:rgba(14,165,233,.1);color:var(--primary)}
.nav-item .badge{margin-left:auto;background:var(--primary);color:#fff;font-size:10px;padding:1px 6px;border-radius:10px}
.main{margin-left:var(--sidebar-w);flex:1;display:flex;flex-direction:column}
.topbar{padding:16px 24px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;background:var(--sidebar)}
.topbar h2{font-size:18px;font-weight:600}
.topbar-actions{display:flex;gap:8px;align-items:center}
.content{padding:24px;flex:1}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:20px}
.card-title{font-size:15px;font-weight:600;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px}
.stat-card{background:#0f172a;border-radius:10px;padding:16px;text-align:center;border:1px solid var(--border)}
.stat-card .num{font-size:28px;font-weight:700;color:var(--primary)}
.stat-card .label{font-size:12px;color:var(--muted);margin-top:4px}
.dash-page{display:flex;flex-direction:column;gap:20px}
.dash-hero{position:relative;border-radius:16px;overflow:hidden;border:1px solid rgba(74,240,230,.22);background:linear-gradient(135deg,#050a08 0%,#0c2018 45%,#0a1628 100%);padding:28px 32px}
.dash-hero-glow{position:absolute;top:-40%;right:-10%;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(74,240,230,.18) 0%,transparent 70%);pointer-events:none}
.dash-hero-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.dash-hero-title{font-size:22px;font-weight:700;color:#fff;margin-bottom:6px;letter-spacing:.2px}
.dash-hero-sub{font-size:13px;color:rgba(255,255,255,.62);line-height:1.5}
.dash-hero-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:120px;padding:16px 24px;border-radius:14px;background:rgba(74,240,230,.1);border:1px solid rgba(74,240,230,.35);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.dash-hero-num{font-size:36px;font-weight:800;color:#4AF0E6;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.dash-hero-label{font-size:11px;color:rgba(255,255,255,.55);margin-top:6px;text-align:center;line-height:1.4}
.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dash-stat{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:14px;background:linear-gradient(145deg,rgba(15,23,42,.95),rgba(30,41,59,.85));border:1px solid var(--border);transition:border-color .2s,transform .2s}
.dash-stat:hover{transform:translateY(-2px);border-color:rgba(74,240,230,.35)}
.dash-stat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;background:rgba(255,255,255,.06)}
.dash-stat-num{font-size:26px;font-weight:700;line-height:1.1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.dash-stat-label{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.35}
.dash-stat--cyan .dash-stat-icon{background:rgba(74,240,230,.15);border:1px solid rgba(74,240,230,.3)}
.dash-stat--cyan .dash-stat-num{color:#4AF0E6}
.dash-stat--green .dash-stat-icon{background:rgba(52,199,89,.15);border:1px solid rgba(52,199,89,.3)}
.dash-stat--green .dash-stat-num{color:#34C759}
.dash-stat--amber .dash-stat-icon{background:rgba(255,159,10,.15);border:1px solid rgba(255,159,10,.3)}
.dash-stat--amber .dash-stat-num{color:#FF9F0A}
.dash-stat--teal .dash-stat-icon{background:rgba(132,245,238,.12);border:1px solid rgba(132,245,238,.28)}
.dash-stat--teal .dash-stat-num{color:#84F5EE}
.dash-stat--violet .dash-stat-icon{background:rgba(167,139,250,.15);border:1px solid rgba(167,139,250,.3)}
.dash-stat--violet .dash-stat-num{color:#A78BFA}
.dash-stat--pink .dash-stat-icon{background:rgba(244,114,182,.15);border:1px solid rgba(244,114,182,.3)}
.dash-stat--pink .dash-stat-num{color:#F472B6}
.dash-stat--blue .dash-stat-icon{background:rgba(96,165,250,.15);border:1px solid rgba(96,165,250,.3)}
.dash-stat--blue .dash-stat-num{color:#60A5FA}
.dash-stat--orange .dash-stat-icon{background:rgba(251,146,60,.15);border:1px solid rgba(251,146,60,.3)}
.dash-stat--orange .dash-stat-num{color:#FB923C}
.dash-stat--gold .dash-stat-icon{background:rgba(234,179,8,.15);border:1px solid rgba(234,179,8,.3)}
.dash-stat--gold .dash-stat-num{color:#EAB308}
.dash-stat--indigo .dash-stat-icon{background:rgba(99,102,241,.15);border:1px solid rgba(99,102,241,.3)}
.dash-stat--indigo .dash-stat-num{color:#818CF8}
.dash-banks-card{background:linear-gradient(180deg,rgba(30,41,59,.95),rgba(15,23,42,.92));border-color:rgba(74,240,230,.15)}
.dash-banks-head{align-items:baseline}
.dash-bank-total{font-size:12px;font-weight:500;color:#4AF0E6;background:rgba(74,240,230,.1);padding:4px 10px;border-radius:999px;border:1px solid rgba(74,240,230,.25)}
.dash-bank-list{display:flex;flex-direction:column;gap:12px}
.dash-bank-item{padding:14px 16px;border-radius:12px;background:rgba(5,10,8,.55);border:1px solid rgba(255,255,255,.06);animation:dashFadeIn .35s ease both;animation-delay:calc(var(--i,0)*40ms)}
@keyframes dashFadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.dash-bank-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.dash-bank-name{font-size:14px;font-weight:600;color:#fff;flex:1;min-width:0}
.dash-bank-count{font-size:15px;font-weight:700;color:#4AF0E6;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;flex-shrink:0}
.dash-bank-bar{height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.dash-bank-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2EC4BA,#4AF0E6);box-shadow:0 0 12px rgba(74,240,230,.45);transition:width .6s ease}
.dash-empty{padding:32px;text-align:center}
@media(max-width:768px){.dash-hero{padding:20px}.dash-hero-inner{flex-direction:column;align-items:flex-start}.dash-stats{grid-template-columns:repeat(2,1fr)}}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border)}
th{color:var(--muted);font-weight:500;font-size:12px;background:#0f172a}
tr:hover td{background:rgba(255,255,255,.02)}
.table-wrap{overflow:auto;max-height:calc(100vh - 280px);border-radius:8px;border:1px solid var(--border)}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.toolbar .spacer{flex:1}
.search-input{max-width:260px}
.msg{padding:10px 14px;border-radius:8px;margin-bottom:12px;font-size:13px}
.msg-ok{background:#14532d;color:#86efac}.msg-err{background:#450a0a;color:#fca5a5}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.modal{background:var(--card);border-radius:16px;padding:24px;width:100%;max-width:640px;max-height:90vh;overflow-y:auto;border:1px solid var(--border)}
.modal h3{margin-bottom:16px;font-size:16px}
.modal-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.modal-footer-split{justify-content:space-between;align-items:center;flex-wrap:wrap}
.modal-footer-left,.modal-footer-right{display:flex;gap:8px;align-items:center}
.modal-vip-grant{max-width:520px}
.modal-question-edit{max-width:760px}
.q-content-input{min-height:120px;line-height:1.6}
.q-options-card{margin:12px 0 16px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:rgba(15,23,42,.35)}
.q-options-title{font-size:13px;font-weight:600;color:var(--primary);margin-bottom:10px}
.q-option-row{margin-bottom:10px}
.q-option-row input{font-size:13px;line-height:1.5}
.q-image-preview img{display:block;max-width:100%;max-height:220px;border-radius:10px;border:1px solid var(--border);background:#0f172a;object-fit:contain}
.vip-grant-user{color:var(--muted);margin-bottom:14px}
.vip-status-card{background:#0f172a;border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-bottom:16px}
.vip-status-title{font-size:12px;color:var(--muted);margin-bottom:10px}
.vip-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px}
.vip-status-muted{color:var(--muted)}
.vip-grant-section{padding-top:4px}
.vip-section-label{font-size:13px;font-weight:600;color:var(--primary);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;background:#0f172a;border:1px solid var(--border)}
.tag-green{color:var(--success);border-color:var(--success)}
.tag-red{color:var(--danger);border-color:var(--danger)}
.empty{text-align:center;padding:40px;color:var(--muted)}
.tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--border);padding-bottom:0}
.tab{padding:8px 16px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;font-size:13px}
.tab.active{color:var(--primary);border-bottom-color:var(--primary)}
.cms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.cms-card{background:#0f172a;border:1px solid var(--border);border-radius:10px;padding:16px;cursor:pointer;transition:.15s}
.cms-card:hover{border-color:var(--primary)}
.cms-card h4{font-size:14px;margin-bottom:4px}
.cms-card p{font-size:12px;color:var(--muted)}
.user-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:1px solid var(--border);display:block}
.user-avatar-wrap{position:relative;width:40px;height:40px;flex-shrink:0}
.user-avatar-fallback{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#0f172a;color:var(--primary);font-weight:700;font-size:16px;border:1px solid var(--border)}
.benefit-edit{background:#0f172a}
.school-editor{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:start}
@media(max-width:960px){.school-editor{grid-template-columns:1fr}}
.school-section{margin-bottom:20px}
.school-section-title{font-size:14px;font-weight:600;color:var(--primary);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.school-preview-wrap{position:sticky;top:16px}
.school-preview{background:#0a1628;border-radius:16px;border:1px solid var(--border);overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.35)}
.school-preview-label{padding:10px 14px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--border);background:#0f172a}
.school-preview-hero{height:160px;position:relative;background:#1e293b}
.school-preview-hero-slide{width:100%;height:100%;background-size:cover;background-position:center}
.school-preview-hero-name{position:absolute;left:12px;right:12px;bottom:12px;background:rgba(0,0,0,.55);border-radius:8px;padding:8px 12px;font-size:13px;color:#fff;line-height:1.4}
.school-preview-contact{display:flex;gap:8px;padding:12px;align-items:stretch}
.school-preview-call{width:44px;height:44px;border-radius:10px;background:#006666;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}
.school-preview-addr{flex:1;background:#1e293b;border-radius:10px;padding:8px 10px;font-size:11px;color:var(--text);line-height:1.45;border:1px solid var(--border)}
.school-preview-intro{padding:0 12px 12px}
.school-preview-intro h4{font-size:13px;margin-bottom:6px;color:var(--text)}
.school-preview-intro p{font-size:11px;color:var(--muted);line-height:1.55}
.school-preview-gallery{display:flex;gap:6px;padding:0 12px 12px;flex-wrap:wrap}
.school-preview-gallery-item{width:72px;height:48px;border-radius:8px;background-size:cover;background-position:center;border:1px solid var(--border)}
.sch-gal-exterior{background:linear-gradient(180deg,#87CEEB 0%,#6B8E6B 45%,#8B7355 100%)}
.sch-gal-office{background:linear-gradient(160deg,#F5E6D3 0%,#C4A882 35%,#8B6914 100%)}
.sch-gal-study{background:linear-gradient(160deg,#E8F4F8 0%,#B8D4E3 50%,#6B9BB5 100%)}
.sch-thumb-1{background:linear-gradient(135deg,#8B7355 0%,#6B5344 40%,#4A6741 100%)}
.sch-thumb-2{background:linear-gradient(160deg,#87CEEB 0%,#5B9BD5 50%,#2E6DA4 100%)}
.sch-thumb-3{background:linear-gradient(160deg,#D4A574 0%,#B8860B 50%,#8B6914 100%)}
.sch-thumb-4{background:linear-gradient(160deg,#A8D8EA 0%,#6BB5D4 50%,#3A8FB7 100%)}
.sch-thumb-5{background:linear-gradient(160deg,#C4B5A0 0%,#9B8B7A 50%,#6B5B4A 100%)}
.school-address-input{min-height:96px;line-height:1.55;resize:vertical}
body.lang-ug .school-address-input{font-family:'ALKATIP Tor Tom',-apple-system,sans-serif;direction:rtl;text-align:right}
.school-gallery-presets .btn-xs{padding:4px 8px}
.school-field-hint{font-size:11px;color:var(--muted);margin:6px 0 0;line-height:1.5}
.school-section-gallery{border-color:rgba(0,102,102,.45);box-shadow:0 0 0 1px rgba(0,102,102,.15)}
.school-gallery-slots{display:flex;flex-direction:column;gap:14px}
.school-gallery-slot{padding:12px;border:1px solid var(--border);border-radius:10px;background:rgba(15,23,42,.35)}
.school-gallery-slot-label{display:block;font-size:12px;font-weight:600;color:var(--text);margin-bottom:8px}
.school-gallery-slot-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.school-gallery-slot-row input{flex:1;min-width:180px}
.sch-gal-upload{cursor:pointer;margin:0}
.school-gallery-slot-preview{margin-top:10px;width:100%;height:72px;border-radius:8px;border:1px solid var(--border);background:#1e293b;overflow:hidden;display:flex;align-items:center;justify-content:center}
.school-gallery-slot-preview img,.school-preview-hero-slide img,.school-preview-gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.sch-gal-empty{background:repeating-linear-gradient(45deg,#1e293b,#1e293b 8px,#243044 8px,#243044 16px)}
.school-thumb-field .school-gallery-slot-row input{flex:1}
body.lang-ug .school-preview-hero-name,body.lang-ug .school-preview-addr,body.lang-ug .school-preview-intro{text-align:right;direction:rtl;unicode-bidi:plaintext}
.cs-editor{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}
@media(max-width:900px){.cs-editor{grid-template-columns:1fr}}
.cs-form-card .form-group{margin-bottom:16px}
.cs-preview-wrap{position:sticky;top:16px}
.cs-preview-panel{background:#0a1628;border-radius:16px;border:1px solid var(--border);overflow:hidden}
.cs-preview-label{padding:10px 14px;font-size:11px;color:var(--muted);background:#0f172a;border-bottom:1px solid var(--border)}
.cs-preview-card{display:flex;align-items:center;gap:14px;padding:16px;background:rgba(255,255,255,.06);border-bottom:1px solid var(--border)}
.cs-preview-avatar{width:48px;height:48px;border-radius:50%;background:rgba(78,205,196,.25);border:1px solid rgba(78,205,196,.4);flex-shrink:0}
.cs-preview-info{flex:1;min-width:0}
.cs-preview-title{font-size:15px;font-weight:700;color:#fff;margin-bottom:4px}
.cs-preview-desc{font-size:12px;color:rgba(255,255,255,.55);line-height:1.45}
.cs-preview-btn{width:40px;height:40px;border-radius:10px;background:rgba(78,205,196,.2);border:1px solid rgba(78,205,196,.35);display:flex;align-items:center;justify-content:center;color:#4ecdc4;font-size:18px;flex-shrink:0}
.cs-preview-meta{padding:12px 16px 16px}
.cs-preview-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--muted)}
.cs-preview-row:last-child{border-bottom:none}
.cs-preview-row strong{color:var(--text);font-weight:600;text-align:right;word-break:break-all}
body.lang-ug .cs-preview-info,body.lang-ug .cs-preview-row strong{text-align:right;direction:rtl;unicode-bidi:plaintext}
.rad-editor,.cfg-editor{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}
@media(max-width:900px){.rad-editor,.cfg-editor{grid-template-columns:1fr}}
.rad-tip,.cfg-tip{color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:16px}
.rad-form-card .form-group,.cfg-form-card .form-group{margin-bottom:16px}
.rad-switch-row,.cfg-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 16px;border-bottom:1px solid var(--border);margin-bottom:16px}
.cfg-switch-row-last{margin-bottom:0;padding-bottom:0;border-bottom:none}
.rad-switch-label,.cfg-switch-label{font-size:13px;font-weight:600;color:var(--text)}
.toggle-switch{position:relative;display:inline-block;width:46px;height:26px;flex-shrink:0}
.toggle-switch input{opacity:0;width:0;height:0;position:absolute}
.toggle-slider{position:absolute;cursor:pointer;inset:0;background:#334155;border-radius:999px;transition:.2s}
.toggle-slider::before{content:'';position:absolute;height:20px;width:20px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.2s}
.toggle-switch input:checked+.toggle-slider{background:var(--primary)}
.toggle-switch input:checked+.toggle-slider::before{transform:translateX(20px)}
.rad-preview-wrap,.cfg-preview-wrap{position:sticky;top:16px}
.rad-preview-panel,.cfg-preview-panel{background:#0a1628;border-radius:16px;border:1px solid var(--border);overflow:hidden}
.rad-preview-label,.cfg-preview-label{padding:10px 14px;font-size:11px;color:var(--muted);background:#0f172a;border-bottom:1px solid var(--border)}
.rad-preview-card,.cfg-preview-card{display:flex;align-items:center;gap:14px;padding:16px;background:rgba(255,255,255,.06);border-bottom:1px solid var(--border)}
.rad-preview-icon,.cfg-preview-icon{width:48px;height:48px;border-radius:12px;background:rgba(14,165,233,.2);border:1px solid rgba(14,165,233,.35);display:flex;align-items:center;justify-content:center;color:var(--primary);font-size:20px;flex-shrink:0}
.rad-preview-info,.cfg-preview-info{flex:1;min-width:0}
.rad-preview-title,.cfg-preview-title{font-size:15px;font-weight:700;color:#fff;margin-bottom:4px}
.rad-preview-desc,.cfg-preview-desc{font-size:12px;color:rgba(255,255,255,.55);line-height:1.45}
.rad-preview-meta,.cfg-preview-meta{padding:12px 16px 16px}
.rad-preview-row,.cfg-preview-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--muted)}
.rad-preview-row:last-child,.cfg-preview-row:last-child{border-bottom:none}
.rad-preview-row strong,.cfg-preview-row strong{color:var(--text);font-weight:600;text-align:right;word-break:break-all}
body.lang-ug .rad-preview-info,body.lang-ug .rad-preview-row strong,body.lang-ug .rad-switch-label,
body.lang-ug .cfg-preview-info,body.lang-ug .cfg-preview-row strong,body.lang-ug .cfg-switch-label{text-align:right;direction:rtl;unicode-bidi:plaintext}
.cfg-preview-row--stack{flex-direction:column;align-items:flex-start;gap:6px}
.cfg-preview-row--stack strong{text-align:left;word-break:break-word;white-space:pre-wrap;line-height:1.5}
body.lang-ug .cfg-preview-row--stack strong{text-align:right;direction:rtl}
.vip-promo-preview .cfg-preview-icon{background:rgba(245,158,11,.2);border-color:rgba(245,158,11,.35);color:#fbbf24;font-size:24px}
body.lang-ug .rad-switch-row,body.lang-ug .cfg-switch-row{flex-direction:row-reverse}
.poster-template-list{display:flex;flex-direction:column;gap:16px}
.poster-template-card{padding:16px;border:1px solid var(--border);border-radius:12px;background:rgba(15,23,42,.35)}
.poster-template-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.poster-template-switch{margin:0;padding:0;border:none;flex:1;justify-content:flex-end;min-width:220px}
.poster-template-preview{width:100%;height:120px;border-radius:10px;border:1px solid var(--border);overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:14px;background:#0f172a;color:var(--muted);font-size:12px}
.poster-template-preview img{width:100%;height:100%;object-fit:cover;display:block}
.poster-template-actions{display:flex;justify-content:flex-end;margin-top:4px}
body.lang-ug .poster-template-head{flex-direction:row-reverse}
body.lang-ug .poster-template-switch{justify-content:flex-start}
.admin-lang-toggle{display:inline-flex;align-items:center;padding:3px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--border);gap:2px}
.admin-lang-btn{border:none;background:transparent;color:var(--muted);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;cursor:pointer;transition:.15s;line-height:1.3}
.admin-lang-btn--on{background:var(--primary);color:#fff}
.admin-lang-btn:hover{color:var(--text)}
.login-lang-bar{display:flex;justify-content:center;margin-bottom:16px}
body.lang-ug{direction:ltr;font-family:'ALKATIP Tor Tom',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
body.lang-ug .sidebar{left:0;right:auto}
body.lang-ug .main{margin-left:var(--sidebar-w);margin-right:0}
body.lang-ug .nav-item{border-left:3px solid transparent;border-right:none}
body.lang-ug .nav-item.active{border-left-color:var(--primary);border-right-color:transparent}
body.lang-ug .nav-item .badge{margin-left:auto;margin-right:0}
body.lang-ug .sidebar-logo,
body.lang-ug .nav-group-title,
body.lang-ug .nav-item,
body.lang-ug .topbar h2,
body.lang-ug .card-title,
body.lang-ug .dash-stat-num,
body.lang-ug .dash-bank-count,
body.lang-ug .dash-hero-num{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;direction:ltr}
body.lang-ug .dash-hero-title,
body.lang-ug .dash-hero-sub,
body.lang-ug .dash-hero-label,
body.lang-ug .dash-stat-label,
body.lang-ug .dash-bank-name,
body.lang-ug .dash-bank-total,
body.lang-ug .stat-card .label,
body.lang-ug .form-group label,
body.lang-ug .btn,
body.lang-ug th,
body.lang-ug td,
body.lang-ug .tab,
body.lang-ug .cms-card h4,
body.lang-ug .cms-card p,
body.lang-ug .msg,
body.lang-ug .empty,
body.lang-ug .login-box h1,
body.lang-ug .login-box p{font-family:'ALKATIP Tor Tom',-apple-system,sans-serif;direction:rtl;unicode-bidi:plaintext;text-align:right}
body.lang-ug input,body.lang-ug select,body.lang-ug textarea{font-family:'ALKATIP Tor Tom',-apple-system,sans-serif}
body.lang-ug textarea{font-family:monospace;direction:ltr;text-align:left}
body.lang-ug .admin-lang-toggle,
body.lang-ug .admin-lang-btn[data-lang="zh"]{direction:ltr;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif}
body.lang-ug .admin-lang-btn[data-lang="ug"]{font-family:'ALKATIP Tor Tom',-apple-system,sans-serif;direction:rtl}
body.lang-ug .stat-card .num{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;direction:ltr;text-align:center}
body.lang-ug .vip-grant-user,
body.lang-ug .vip-status-title,
body.lang-ug .vip-section-label,
body.lang-ug .vip-status-row{text-align:right;direction:rtl;unicode-bidi:plaintext;font-family:'ALKATIP Tor Tom',-apple-system,sans-serif}
body.lang-ug .vip-status-row{flex-direction:row-reverse}
body.lang-ug .modal-footer-split{flex-direction:row-reverse}
body.lang-ug .nav-collapse-btn{flex-direction:row-reverse}
body.lang-ug .nav-collapse-btn,
body.lang-ug .nav-collapse-label{direction:rtl;text-align:right;font-family:'ALKATIP Tor Tom',-apple-system,sans-serif}
body.lang-ug .nav-collapse-body .nav-item{padding:8px 24px 8px 12px}
body.lang-ug .nav-item--sub{padding:7px 32px 7px 12px}
body.lang-ug .nav-group-title{letter-spacing:0;text-transform:none}
