/* ============ Aethel — rockstar-like dark theme ============ */
:root{
  --bg:#08080b;
  --bg-alt:#0c0c0f;
  --panel:rgba(255,255,255,.04);
  --panel-border:#71717b40;
  --panel-border-hover:rgba(56,56,167,.55);
  --text:#e7e7fd;
  --muted:#71717b;
  --primary:#3838a7;
  --primary-hover:#252580;
  --violet:#3838a7;
  --cyan:#9090d2;
  --grad:linear-gradient(135deg,#3838a7 33%,#9090d2 100%);
  --ok:#37e08a;
  --err:#ff5c7a;
  --radius:16px;
  --shadow:0 20px 60px -20px rgba(0,0,0,.6);
  --page-padding:18px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  min-height:100vh;
  background-color:var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(53,214,255,.12), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 48px);
  color:var(--text);
  font-family:"SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-top:100px;
}
/* subtle noise overlay */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.container{max-width:1160px;margin:0 auto;padding:0 24px;position:relative;z-index:1;}
h1,h2,h3{font-weight:700;letter-spacing:-.02em;margin:0 0 .5em;}
h1{font-size:clamp(28px,5vw,44px);}
h2{font-size:clamp(22px,3.4vw,32px);}
p{color:var(--muted);}
code{background:rgba(255,255,255,.06);padding:2px 6px;border-radius:6px;font-size:.9em;}

::selection{background:rgba(124,92,255,.4);color:#fff;}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:linear-gradient(var(--violet),var(--cyan));border-radius:8px;}

/* ============ Webmail ============ */
.mail-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;}
.mail-active{font-size:15px;padding:6px 0;}
.mail-topright{display:flex;gap:10px;align-items:flex-start;}
.mail-accounts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.burger{position:relative;}
.burger summary{list-style:none;cursor:pointer;}
.burger summary::-webkit-details-marker{display:none;}
.burger-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:100;min-width:220px;background:#0d0f14;
  border:1px solid var(--panel-border);border-radius:12px;padding:8px;box-shadow:var(--shadow);}
.burger-menu a,.burger-link{display:block;width:100%;text-align:left;padding:9px 12px;border-radius:8px;
  color:var(--text);font-size:14px;background:none;border:none;cursor:pointer;}
.burger-menu a:hover,.burger-link:hover{background:rgba(124,92,255,.1);}
.mail-row{display:flex;gap:14px;align-items:baseline;padding:12px 4px;border-top:1px solid var(--panel-border);color:var(--text);}
.mail-row:hover{background:rgba(124,92,255,.05);}
.mail-unseen{font-weight:700;}
.mail-from{min-width:220px;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mail-subj{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);}
.mail-unseen .mail-subj{color:var(--text);}
.mail-date{font-size:13px;white-space:nowrap;}
.mail-body{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:14.5px;color:var(--text);
  background:rgba(255,255,255,.02);padding:16px;border-radius:12px;max-height:60vh;overflow:auto;}
@media (max-width:720px){
  .mail-from{min-width:0;max-width:40vw;}
  .mail-date{display:none;}
}

/* ============ Mailboxes ============ */
.mailbox-row{display:flex;flex-direction:column;gap:10px;padding:14px 0;border-top:1px solid var(--panel-border);}
.mailbox-row:first-of-type{border-top:none;padding-top:0;}
.mailbox-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}

/* ============ Dashboard / cabinet ============ */
.dash{padding:24px 0 70px;}
.dash h1{margin-bottom:24px;}

/* ============ Header ============ */
.site-header,.admin-header{
  position:sticky; top:0; z-index:50;
  background:rgba(8,9,12,.72);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--panel-border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;gap:20px;}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;transition:opacity .2s;}
.brand:hover{opacity:.85;}
.brand-logo{height:32px;width:32px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(124,92,255,.5));}
.brand-logo.small{height:24px;width:24px;}
.brand-name{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
.nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.nav a{color:var(--muted);font-weight:500;font-size:14.5px;transition:color .2s;position:relative;}
.nav a:hover{color:var(--text);}
.nav a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--grad);transition:width .25s ease;}
.nav a:hover::after{width:100%;}
.nav-cta{
  background:var(--grad);color:#0a0a10 !important;font-weight:700;
  padding:9px 18px;border-radius:999px;transition:transform .2s, box-shadow .2s;
}
.nav-cta::after{display:none;}
.nav-cta:hover{transform:translateY(-2px);box-shadow:0 8px 24px -6px rgba(124,92,255,.6);}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 16px;border-radius:18px;font-weight:500;font-size:16px;
  border:1px solid transparent;cursor:pointer;transition:background .15s ease-in-out, color .15s, border-color .15s, transform .15s;
  white-space:nowrap;
}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-hover);}
.btn-primary:active{transform:translateY(0);}
.btn-ghost{background:var(--bg-alt);color:var(--text);border-color:var(--panel-border);}
.btn-ghost:hover{border-color:var(--panel-border-hover);background:rgba(255,255,255,.06);color:var(--text);}
.btn-danger{background:rgba(255,92,122,.12);color:var(--err);border-color:rgba(255,92,122,.35);}
.btn-danger:hover{background:rgba(255,92,122,.22);}
.btn-block{width:100%;}
.btn-sm{padding:7px 14px;font-size:13px;border-radius:9px;}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none !important;}

/* ============ Hero ============ */
.hero{position:relative;overflow:hidden;padding:110px 0 90px;text-align:center;}
.hero-inner{display:flex;flex-direction:column;align-items:center;}
.hero-logo{height:88px;width:88px;object-fit:contain;margin-bottom:24px;filter:drop-shadow(0 0 40px rgba(124,92,255,.55));animation:float 6s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);}}
.hero h1{margin-bottom:18px;}
.hero h1 span{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
.hero-sub{max-width:620px;margin:0 auto 32px;font-size:17px;}
.hero-cta{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.hero-glow{
  position:absolute;left:50%;top:-220px;width:900px;height:600px;transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(124,92,255,.35), rgba(53,214,255,.12) 55%, transparent 75%);
  filter:blur(10px);z-index:0;pointer-events:none;
}

/* ============ Sections ============ */
section{padding:70px 0;position:relative;z-index:1;}
.section-title{text-align:center;margin-bottom:10px;}
.section-sub{text-align:center;max-width:640px;margin:0 auto 40px;}

.grid{display:grid;gap:22px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}

.card{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--radius);
  padding:26px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover{transform:translateY(-4px);border-color:var(--panel-border-hover);box-shadow:0 24px 60px -18px rgba(124,92,255,.35);}
.card h3{margin-bottom:10px;}
.card-icon{font-size:30px;margin-bottom:14px;filter:drop-shadow(0 0 8px rgba(124,92,255,.5));}

.fade-in{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease;}
.fade-in.in-view{opacity:1;transform:translateY(0);}

/* pricing */
.plan{text-align:center;position:relative;}
.plan-price{font-size:22px;font-weight:700;margin:10px 0 16px;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
.plan-list{list-style:none;padding:0;margin:0;color:var(--muted);text-align:left;display:inline-block;}
.plan-list li{padding:6px 0;padding-left:22px;position:relative;}
.plan-list li::before{content:"+";position:absolute;left:0;color:var(--cyan);font-weight:700;}
.plan-featured{border-color:var(--panel-border-hover);box-shadow:0 0 0 1px rgba(124,92,255,.3), var(--shadow);}
.plan-badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--grad);color:#0a0a10;font-size:12px;font-weight:700;padding:5px 14px;border-radius:999px;}

.cta-band{text-align:center;background:linear-gradient(180deg, transparent, rgba(124,92,255,.06));}

/* ============ Forms ============ */
.form{display:flex;flex-direction:column;gap:16px;}
.form-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;color:var(--muted);font-weight:500;}
input,select,textarea,button{font-family:inherit;}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=file],select,textarea{
  background:rgba(255,255,255,.04);
  border:1px solid var(--panel-border);
  color:var(--text);
  padding:11px 14px;border-radius:10px;font-size:15px;
  outline:none;transition:border-color .2s, box-shadow .2s, background .2s;
}
input:focus,select:focus,textarea:focus{border-color:var(--violet);box-shadow:0 0 0 3px rgba(124,92,255,.2);background:rgba(255,255,255,.06);}
input::placeholder{color:#5b6479;}

.auth-section{min-height:70vh;display:flex;align-items:center;padding:60px 0;}
.auth-box{display:flex;justify-content:center;width:100%;}
.auth-card{width:100%;max-width:420px;}
.auth-card h1{text-align:center;margin-bottom:22px;font-size:26px;}
.auth-alt{text-align:center;margin-top:16px;font-size:14px;}
.auth-alt a{color:var(--cyan);font-weight:600;}
.auth-alt a:hover{text-decoration:underline;}

/* ============ Alerts / toasts / badges ============ */
.alert{padding:12px 16px;border-radius:10px;margin-bottom:18px;font-size:14px;border:1px solid;}
.alert-error{background:rgba(255,92,122,.1);border-color:rgba(255,92,122,.35);color:#ffb3c1;}
.alert-ok{background:rgba(55,224,138,.1);border-color:rgba(55,224,138,.35);color:#a4f5cc;}

.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid transparent;}
.badge-ok{background:rgba(55,224,138,.12);color:var(--ok);border-color:rgba(55,224,138,.3);}
.badge-off{background:rgba(255,255,255,.06);color:var(--muted);border-color:var(--panel-border);}
.badge-err{background:rgba(255,92,122,.12);color:var(--err);border-color:rgba(255,92,122,.35);}
.badge-role{background:rgba(124,92,255,.14);color:#b7a8ff;border-color:rgba(124,92,255,.35);text-transform:uppercase;letter-spacing:.03em;}

.toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;}
.toast{
  min-width:240px;max-width:340px;background:rgba(14,16,22,.95);border:1px solid var(--panel-border);
  border-left:3px solid var(--violet);border-radius:10px;padding:12px 16px;color:var(--text);
  box-shadow:var(--shadow);font-size:14px;
  animation:toast-in .25s ease;
}
.toast.toast-ok{border-left-color:var(--ok);}
.toast.toast-err{border-left-color:var(--err);}
.toast.toast-out{animation:toast-out .25s ease forwards;}
@keyframes toast-in{from{opacity:0;transform:translateX(24px);}to{opacity:1;transform:translateX(0);}}
@keyframes toast-out{to{opacity:0;transform:translateX(24px);}}

/* ============ Tables ============ */
.table-wrap{overflow-x:auto;}
.data-table{width:100%;border-collapse:collapse;font-size:14px;min-width:560px;}
.data-table th,.data-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--panel-border);white-space:nowrap;}
.data-table th{color:var(--muted);font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;}
.data-table tbody tr{transition:background .15s;}
.data-table tbody tr:hover{background:rgba(124,92,255,.06);}
.data-table tr.filtered-out{display:none;}

.kv{width:100%;border-collapse:collapse;}
.kv td{padding:9px 6px;border-bottom:1px solid var(--panel-border);}
.kv td:first-child{color:var(--muted);width:40%;}

.mono{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;}
.small-token{word-break:break-all;font-size:12.5px;color:var(--muted);}
.muted{color:var(--muted);font-size:13.5px;}

.copyable{cursor:pointer;position:relative;transition:color .2s;}
.copyable:hover{color:var(--cyan);}
.copy-btn{background:rgba(255,255,255,.06);border:1px solid var(--panel-border);color:var(--text);border-radius:8px;padding:4px 10px;font-size:12px;cursor:pointer;transition:.2s;margin-left:8px;}
.copy-btn:hover{border-color:var(--panel-border-hover);color:var(--cyan);}

/* pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin:24px 0;flex-wrap:wrap;}
.page-link{padding:7px 13px;border-radius:8px;border:1px solid var(--panel-border);color:var(--muted);font-size:14px;transition:.2s;}
.page-link:hover{border-color:var(--panel-border-hover);color:var(--text);}
.page-link.active{background:var(--grad);color:#0a0a10;font-weight:700;border-color:transparent;}

/* stat cards (admin) */
.stat{text-align:center;}
.stat-num{font-size:32px;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;}
.stat-label{color:var(--muted);font-size:13px;margin-top:6px;}

.admin-body{background:var(--bg);}
.admin-main{padding:36px 24px;}
.admin-main h1{margin-bottom:24px;}

/* ============ Footer ============ */
.site-footer{border-top:1px solid var(--panel-border);padding:36px 0;margin-top:40px;background:rgba(255,255,255,.015);}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;}
.footer-brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--muted);}
.footer-links{display:flex;gap:18px;flex-wrap:wrap;}
.footer-links a{color:var(--muted);font-size:14px;transition:color .2s;}
.footer-links a:hover{color:var(--text);}
.footer-copy{color:#565e73;font-size:13px;width:100%;text-align:center;order:99;margin-top:12px;}

/* ============ Responsive ============ */
@media (max-width:900px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:720px){
  .grid-2{grid-template-columns:1fr;}
  .header-inner{flex-wrap:wrap;}
  .nav{gap:14px;justify-content:center;width:100%;}
  .hero{padding:80px 0 60px;}
}
@media (max-width:560px){
  .grid-3{grid-template-columns:1fr;}
  .container{padding:0 16px;}
  .hero-cta{flex-direction:column;width:100%;}
  .hero-cta .btn{width:100%;}
  .footer-inner{flex-direction:column;text-align:center;}
}
@media (max-width:380px){
  h1{font-size:24px;}
  .card{padding:18px;}
  .nav{gap:10px;font-size:13px;}
  .btn{padding:10px 16px;font-size:14px;}
}

/* inline svg icons inside feature cards */
.card-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,rgba(124,92,255,.18),rgba(53,214,255,.18));
  border:1px solid rgba(124,92,255,.28);color:var(--cyan);margin-bottom:14px;
  transition:transform .35s cubic-bezier(.2,.9,.2,1),box-shadow .35s ease;}
.card-icon svg{width:22px;height:22px;}
.card:hover .card-icon{transform:translateY(-2px) scale(1.06);box-shadow:0 8px 24px rgba(53,214,255,.18);}

/* ============ Buy modal ============ */
.hero-solo{padding:150px 0 160px;min-height:calc(100vh - 70px);display:flex;align-items:center;justify-content:center;}
.hero-solo .hero-logo{height:120px;width:120px;}
.modal-backdrop{position:fixed;inset:0;z-index:200;background:rgba(5,6,9,.72);backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeIn .22s ease;}
.modal-backdrop[hidden]{display:none;}
.modal{position:relative;width:100%;max-width:900px;background:#0d0f14;border:1px solid var(--panel-border);
  border-radius:var(--radius);padding:32px;box-shadow:var(--shadow);animation:popIn .26s cubic-bezier(.2,.9,.2,1);}
.modal-title{text-align:center;margin-bottom:24px;}
.modal-close{position:absolute;top:14px;right:16px;background:none;border:none;color:var(--muted);
  font-size:28px;line-height:1;cursor:pointer;transition:color .2s;}
.modal-close:hover{color:var(--text);}
.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;}
.price-card{position:relative;background:var(--panel);border:1px solid var(--panel-border);border-radius:14px;
  padding:22px 18px;text-align:center;transition:transform .3s ease,border-color .3s ease;}
.price-card:hover{transform:translateY(-4px);border-color:var(--panel-border-hover);}
.price-featured{border-color:var(--panel-border-hover);box-shadow:0 0 0 1px rgba(124,92,255,.25);}
.price-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--grad);color:#0a0a10;
  font-size:11px;font-weight:700;padding:4px 12px;border-radius:999px;}
.price-name{font-weight:600;font-size:15px;}
.price-term{color:var(--muted);font-size:13.5px;margin-bottom:10px;}
.price-value{font-size:26px;font-weight:700;margin-bottom:16px;background:var(--grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}

/* ============ Rockstar-like landing chrome ============ */
.rs-header{
  position:fixed; top:16px; left:24px; right:24px; max-width:1037px; margin:0 auto;
  z-index:40; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 24px; border-radius:28px;
  background:#0c0c0fb3; backdrop-filter:blur(30px); -webkit-backdrop-filter:blur(30px);
}
.rs-logo{display:flex; align-items:center; flex-shrink:0;}
.rs-logo img{height:22px; width:auto; display:block;}
.rs-hleft{display:flex; align-items:center; gap:28px; min-width:0;}
.rs-nav{display:flex; align-items:center; gap:26px;}
.rs-navlink{color:var(--muted); font-size:18px; font-weight:500; background:none;
  border:none; cursor:pointer; font-family:inherit; padding:0; transition:color .15s;}
.rs-navlink:hover{color:var(--text);}
.rs-header-actions{display:flex; align-items:center; gap:8px;}
.rs-hbell{display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%; border:none; background:none;
  color:var(--muted); cursor:pointer; transition:color .15s;}
.rs-hbell:hover{color:var(--text);}
.rs-me-pill{display:inline-flex; align-items:center; gap:8px; height:40px;
  padding:5px 14px 5px 5px; border-radius:24px;
  border:.8px solid rgba(113,113,123,.25); color:var(--text);
  font-size:15px; font-weight:500; transition:border-color .15s;}
.rs-me-pill:hover{border-color:rgba(113,113,123,.5);}
.rs-me-pill img:not(.nick-badge){width:28px; height:28px; border-radius:50%; object-fit:contain;
  background:rgba(255,255,255,.05); padding:3px; flex-shrink:0;}
.rs-me-pill .nick{max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.nick-badge{width:18px; height:18px; flex-shrink:0;}
.rs-lang,.rs-signin,.rs-burger{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  color:var(--muted); background:transparent; cursor:pointer; font-family:inherit;
  text-decoration:none; transition:color .15s ease;
}
.rs-lang{height:40px; padding:0 10px; border-radius:12px; border:.8px solid rgba(113,113,123,.25); font-size:14px;}
.rs-langwrap{position:relative;}
.rs-signin{height:40px; padding:7px 12px 7px 8px; border-radius:24px; border:.8px solid rgba(113,113,123,.1); font-size:16px;}
.rs-burger{width:40px; height:40px; border:none; color:var(--muted);}
.rs-lang:hover,.rs-signin:hover,.rs-burger:hover{color:var(--text);}
.rs-menu-overlay{position:fixed; inset:0; z-index:50;}
.rs-langwrap{position:relative;}
.rs-langmenu{position:absolute; top:calc(100% + 8px); right:0; z-index:50; min-width:170px; padding:6px; border-radius:18px;
  background:var(--bg-alt); border:1px solid var(--panel-border);
  box-shadow:0 16px 40px -12px #000000b3;
  display:flex; flex-direction:column; gap:2px;
  animation:rsMenu .16s ease-out;}
.rs-langmenu[hidden]{display:none;}
.rs-langitem{color:var(--muted); padding:10px 12px; border-radius:10px; font-size:14px;}
.rs-langitem:hover{color:var(--text); background:rgba(255,255,255,.03);}
.rs-langitem.is-cur{color:var(--text);}
.rs-menu-overlay[hidden]{display:none;}
.rs-menu{
  position:fixed; top:94px; right:max(24px, calc((100vw - 1037px) / 2));
  min-width:190px; padding:6px; border-radius:18px;
  background:var(--bg-alt); border:1px solid var(--panel-border);
  box-shadow:0 16px 40px -12px #000000b3;
  display:flex; flex-direction:column; gap:2px;
  animation:rsMenu .16s ease-out;
}
@keyframes rsMenu{from{opacity:0; transform:translateY(-6px) scale(.97)} to{opacity:1; transform:none}}
.rs-menu-item{
  color:var(--muted); padding:11px 12px; border-radius:10px; font-size:15px;
}
.rs-menu-item:hover{color:var(--text); background:rgba(255,255,255,.03);}

.rs-home{padding-top:0;}
.rs-home .rs-main{
  display:flex; flex-direction:column; align-items:center; gap:88px;
  padding:140px 24px 80px; max-width:1200px; margin:0 auto;
}
.rs-hero{text-align:center; max-width:720px;}
.rs-hero h1{animation:rsRise .8s cubic-bezier(.2,.7,.2,1) both;}
.rs-gui{animation:rsRise .8s cubic-bezier(.2,.7,.2,1) .12s both;}
.rs-fx .rs-heading{animation:rsRise .8s cubic-bezier(.2,.7,.2,1) .2s both;}
.rs-fx .rs-videos{animation:rsRise .8s cubic-bezier(.2,.7,.2,1) .28s both;}
@keyframes rsRise{
  from{opacity:0; transform:translateY(28px); filter:blur(10px);}
  to{opacity:1; transform:none; filter:blur(0);}
}
@media (prefers-reduced-motion:reduce){
  .rs-hero h1,.rs-gui,.rs-fx .rs-heading,.rs-fx .rs-videos{animation:none;}
}
.rs-hero h1{
  font-size:clamp(28px, 4.6vw, 44px); font-weight:600; line-height:1.2;
  color:var(--text); margin:0;
}
.rs-hl{background:var(--grad); color:transparent; -webkit-background-clip:text; background-clip:text;}
.rs-gui{width:100%; display:flex; justify-content:center;}
.rs-gui-wrap{width:100%; max-width:976px;}
.rs-gui-img{width:100%; height:auto; display:block; border-radius:18px;}
.rs-fx{width:100%; display:flex; flex-direction:column; gap:36px;}
.rs-heading{text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px;}
.rs-heading h2{font-size:clamp(22px, 5.2vw, 44px); font-weight:600; line-height:1.2; margin:0; color:var(--text);}
.rs-heading p{max-width:560px; margin:0; color:var(--muted); font-size:clamp(15px,3.4vw,18px); line-height:1.3;}
.rs-videos{display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}
.rs-video-card{margin:0;}
.rs-video-card video{
  width:100%; height:auto; display:block; border-radius:28px; background:#000;
  aspect-ratio:16/9; object-fit:cover;
}
.rs-video-card figcaption{
  margin-top:14px; text-align:center; font-size:18px; font-weight:600; color:var(--text);
}
.rs-footer{
  border-top:1px solid var(--panel-border); padding:40px 24px 48px;
  display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:40px;
}
.rs-footer-brand{display:flex; align-items:center; gap:10px; font-weight:600; color:var(--text);}
.rs-footer-brand img{display:block;}
.rs-footer-copy{margin:0; color:var(--muted); font-size:14px;}

.site-header,.admin-header{display:none;}
.rs-home .site-header{display:none;}

@media (max-width:720px){
  .rs-videos{grid-template-columns:1fr;}
  .rs-home .rs-main{gap:64px; padding-top:120px;}
  .rs-signin span, .rs-signin{font-size:14px;}
}
@media (max-width:920px){
  .rs-nav{display:none;}
}
@media (max-width:560px){
  .rs-header{left:12px; right:12px; padding:12px 16px;}
  .rs-me-pill .nick{display:none;}
  .rs-me-pill{padding:5px;}
}

/* ============ Auth shell (full-viewport split) ============ */
.rs-authpage{padding-top:0;}
.rs-shell{background:var(--bg); min-height:100vh; display:grid;
  grid-template-columns:62% 38%; position:relative; z-index:1;}
.rs-visual{position:relative; overflow:hidden; min-height:100vh; background:#08080b;}
.rs-silk{position:absolute; inset:0; width:100%; height:100%; display:block;}
.rs-visual-anim{position:absolute; inset:0;
  background:
    radial-gradient(900px 620px at 18% 12%, rgba(56,56,167,.55), transparent 62%),
    radial-gradient(760px 560px at 85% 88%, rgba(144,144,210,.30), transparent 60%),
    radial-gradient(600px 500px at 70% 15%, rgba(37,37,128,.5), transparent 60%),
    #08080b;
  animation:rsDrift 14s ease-in-out infinite alternate;}
@keyframes rsDrift{
  from{transform:scale(1) translate(0,0);}
  to{transform:scale(1.08) translate(-2%,2%);}
}
.rs-visual-overlay{pointer-events:none; position:absolute; inset:0;
  background:linear-gradient(rgba(8,8,11,.18) 0%, transparent 32%, rgba(8,8,11,.62) 100%);}
.rs-visual-content{z-index:1; max-width:600px; padding:0 60px 60px;
  position:absolute; bottom:0; left:0;}
.rs-visual-title{letter-spacing:-.02em; color:#fff; font-size:50px;
  font-weight:500; line-height:1.12; margin:0;}
.rs-formside{background:var(--bg); display:flex; justify-content:center;
  align-items:center; padding:48px; position:relative;}
.rs-form{width:100%; max-width:400px;}
.rs-toprow{display:flex; justify-content:space-between; align-items:center;
  margin-bottom:20px;}
.rs-brand{display:inline-flex; align-items:center; gap:11px; font-weight:600;
  font-size:18px; color:var(--text);}
.rs-brand img{height:24px; width:auto; display:block;}
.rs-back{display:inline-flex; align-items:center; gap:6px; font-size:14px;
  color:var(--muted); transition:color .15s;}
.rs-back:hover{color:var(--text);}
.rs-head{margin-bottom:28px;}
.rs-title{letter-spacing:-.02em; color:var(--text); font-size:32px;
  font-weight:600; line-height:1.15; margin:0;}
.rs-subtitle{color:var(--muted); margin:12px 0 0; font-size:15px; line-height:1.5;}
.rs-body{display:flex; flex-direction:column; gap:18px;}
.rs-fields{display:flex; flex-direction:column; gap:14px;}
.rs-input{display:flex; flex-direction:column; gap:6px; width:100%; min-width:0;
  font-size:16px;}
.rs-labelrow{display:flex; justify-content:space-between; align-items:center; gap:8px;}
.rs-label{color:var(--muted); font-size:16px; font-weight:500;}
.rs-labelbtn{color:var(--primary); background:none; border:none; padding:0;
  font-size:16px; font-weight:500; white-space:nowrap; cursor:pointer;
  font-family:inherit; text-decoration:none;}
.rs-labelbtn:hover{color:#4a4ac2;}
.rs-field{background:rgba(255,255,255,.04); border:1px solid var(--panel-border);
  border-radius:16px; display:flex; align-items:center; gap:8px; min-width:0;
  max-width:100%; padding:0 16px; transition:border-color .2s, box-shadow .2s;}
.rs-field:focus-within{border-color:var(--violet); box-shadow:0 0 0 3px rgba(56,56,167,.22);}
.rs-field svg{color:var(--muted); flex-shrink:0;}
.rs-field input{min-width:0; color:var(--text); background:none; border:none;
  flex:1; padding:13px 4px; font-size:16px; outline:none; font-family:inherit; width:100%;}
.rs-field input::placeholder{color:var(--muted);}
.rs-submit{cursor:pointer; border:1px solid transparent; border-radius:18px;
  display:inline-flex; justify-content:center; align-items:center; gap:8px;
  min-width:120px; width:100%; padding:14px 16px; font-size:16px; font-weight:500;
  background:var(--primary); color:#fff; font-family:inherit;
  transition:background .15s;}
.rs-submit:hover{background:var(--primary-hover);}
.rs-alt{color:var(--muted); font-size:15px; margin:0;}
.rs-alt a{color:var(--primary); font-weight:500;}
.rs-alt a:hover{color:#4a4ac2;}
@media (max-width:1024px){
  .rs-shell{grid-template-rows:220px 1fr; grid-template-columns:minmax(0,1fr); min-height:100vh;}
  .rs-visual{min-height:0;}
  .rs-visual-content{padding:0 26px 24px;}
  .rs-visual-title{font-size:24px;}
  .rs-formside{padding:36px 24px 48px;}
  .rs-title{font-size:28px;}
}
@media (max-width:560px){
  .rs-visual{display:none;}
  .rs-formside{padding:40px 22px;}
  .rs-title{font-size:26px;}
}

/* ============ Tariffs ============ */
.rs-tar{max-width:1200px; margin:0 auto; padding:130px 24px 80px;
  position:relative; z-index:1;}
.rs-tar-head{max-width:640px; margin-bottom:34px;}
.rs-tar-head h1{font-size:clamp(30px,4.6vw,44px); font-weight:700; margin:0 0 10px;}
.rs-tar-head p{margin:0; font-size:16px;}
.rs-tar-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.rs-tcard{background:var(--bg-alt); border-radius:26px; padding:20px;
  display:flex; flex-direction:column; gap:12px;}
.rs-tcard h3{margin:4px 0 0; font-size:20px;}
.rs-tcard .muted{margin:0; font-size:14px; flex:1;}
.rs-tbanner{border-radius:18px; aspect-ratio:16/10; display:flex; align-items:center;
  justify-content:center; overflow:hidden; background:
    radial-gradient(420px 260px at 50% 110%, rgba(56,56,167,.75), transparent 65%),
    radial-gradient(300px 200px at 80% -10%, rgba(144,144,210,.35), transparent 60%),
    #0a0a10;}
.rs-tbanner span{color:#fff; font-weight:800; letter-spacing:-.02em;
  font-size:clamp(40px,4.5vw,62px); white-space:nowrap;}
.rs-tprice{margin:0; font-size:28px; font-weight:800; color:var(--text);}
.rs-tprice span{font-size:14px; font-weight:400; color:var(--muted);}
.rs-tcard.is-top{box-shadow:0 0 0 1px rgba(56,56,167,.55),
  0 24px 70px -20px rgba(56,56,167,.55);}
.rs-tcard.is-top .btn-primary{background:#fff; color:#0a0a10;}
.rs-tcard.is-top .btn-primary:hover{background:#d9d9f2;}
@media (max-width:960px){ .rs-tar-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .rs-tar-grid{grid-template-columns:1fr;} }

.rs-swatches{display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 6px;}
.rs-sw{position:relative;}
.rs-sw input{position:absolute; opacity:0; pointer-events:none;}
.rs-sw span{display:inline-flex; align-items:center; gap:8px; padding:8px 14px 8px 8px;
  border-radius:999px; background:rgba(255,255,255,.04);
  border:1px solid var(--panel-border); font-size:14px; color:var(--muted);
  cursor:pointer; transition:.15s;}
.rs-sw i{width:22px; height:22px; border-radius:50%; display:inline-block;}
.rs-sw input:checked + span{border-color:var(--primary); color:var(--text);}
.rs-sw input:focus-visible + span{box-shadow:0 0 0 3px rgba(56,56,167,.3);}

/* ============ Admin shell ============ */
.admin-body{padding-top:0;}
.rs-admin{display:flex; min-height:100vh; position:relative; z-index:1;}
.rs-aside{width:260px; flex-shrink:0; background:var(--bg-alt);
  border-right:1px solid var(--panel-border); padding:22px 14px;
  display:flex; flex-direction:column; gap:4px;
  position:sticky; top:0; height:100vh;}
.rs-abrand{display:flex; align-items:center; gap:10px; padding:6px 10px 18px;
  font-weight:700; font-size:17px; color:var(--text);}
.rs-abrand img{height:26px; width:auto;}
.rs-anav{display:flex; flex-direction:column; gap:2px;}
.rs-aitem{display:flex; align-items:center; padding:12px 14px; border-radius:14px;
  color:var(--muted); font-size:16px; font-weight:500; transition:.15s;}
.rs-aitem:hover{color:var(--text); background:rgba(255,255,255,.04);}
.rs-aitem.is-active{color:var(--text); background:#ffffff0d;}
.rs-aout{margin-top:auto;}
.rs-amain{flex:1; min-width:0; max-width:1120px; padding:38px 34px 90px;}
.rs-atitle{font-size:26px; font-weight:700; margin:0 0 20px;}
.rs-statgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.rs-stat{text-align:center; padding:28px 20px !important;}
.rs-stat b{display:block; font-size:34px; font-weight:800;}
.rs-stat span{color:var(--muted); font-size:13px;}
.rs-twocol{display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start;}
.rs-card-h{margin:0 0 14px; font-size:17px;}
@media (max-width:960px){
  .rs-statgrid{grid-template-columns:repeat(2,1fr);}
  .rs-twocol{grid-template-columns:1fr;}
}
@media (max-width:860px){
  .rs-admin{flex-direction:column;}
  .rs-aside{width:auto; height:auto; position:static; flex-direction:row;
    align-items:center; padding:12px; gap:8px; border-right:none;
    border-bottom:1px solid var(--panel-border); overflow-x:auto;}
  .rs-abrand{padding:6px 8px;}
  .rs-abrand span{display:none;}
  .rs-anav{flex-direction:row;}
  .rs-aitem{white-space:nowrap; font-size:15px; padding:10px 12px;}
  .rs-aout{margin:0 0 0 auto;}
  .rs-amain{padding:24px 16px 70px;}
  .rs-statgrid{grid-template-columns:1fr 1fr;}
}

/* ============ Generic inner page ============ */
.rs-page{max-width:1160px; margin:0 auto; padding:130px 24px 80px;
  display:flex; flex-direction:column; gap:18px; position:relative; z-index:1;}
.rs-pagehead{display:flex; justify-content:space-between; align-items:center;
  gap:14px; flex-wrap:wrap;}
.rs-pagetitle{font-size:26px; font-weight:700; margin:0;}

/* ============ Market ============ */
.rs-market{max-width:1240px; margin:0 auto; padding:120px 24px 80px;
  display:flex; gap:18px; align-items:flex-start; position:relative; z-index:1;}
.rs-filters{width:300px; flex-shrink:0; background:var(--bg-alt); border-radius:26px;
  padding:24px; display:flex; flex-direction:column; gap:18px;}
.rs-filter-search{display:flex; flex-direction:row; align-items:center; gap:10px; color:var(--muted);
  background:rgba(255,255,255,.04); border:1px solid var(--panel-border);
  border-radius:14px; padding:0 14px;}
.rs-filter-search input{flex:1; min-width:0; background:none; border:none; outline:none;
  color:var(--text); font-size:14px; padding:12px 0; font-family:inherit;}
.rs-filter-search input::placeholder{color:var(--muted);}
.rs-fgroup{display:flex; flex-direction:column; gap:10px;}
.rs-flabel{margin:0; font-size:13px; color:var(--muted);}
.rs-fgroup input[type=text], .rs-fgroup input[type=number], .rs-fgroup select{
  background:rgba(255,255,255,.04); border:1px solid var(--panel-border);
  color:var(--text); border-radius:13px; padding:11px 14px; font-size:14px;
  outline:none; width:100%; font-family:inherit;}
.rs-fgroup input:focus, .rs-fgroup select:focus{border-color:var(--violet);}
.rs-fgroup select option{background:#0c0c0f;}
.rs-seg{display:grid; grid-template-columns:1fr 1fr; gap:6px; background:rgba(255,255,255,.04);
  border-radius:14px; padding:5px;}
.rs-seg button{border:none; background:none; color:var(--muted); font-size:14px;
  font-weight:500; padding:9px; border-radius:10px; cursor:pointer; font-family:inherit;}
.rs-seg button.is-on{background:var(--primary); color:#fff;}
.rs-pricerow{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.rs-checks{display:flex; flex-direction:column; gap:10px; font-size:14px; color:var(--muted);}
.rs-checks label{display:flex; flex-direction:row; align-items:center; gap:10px; cursor:pointer;}
.rs-checks input{accent-color:var(--primary); width:16px; height:16px;}
.rs-chips{display:flex; flex-wrap:wrap; gap:8px;}
.rs-chips button{background:rgba(255,255,255,.04); border:1px solid var(--panel-border);
  color:var(--muted); font-size:13px; padding:7px 13px; border-radius:999px;
  cursor:pointer; font-family:inherit; transition:.15s;}
.rs-chips button.is-on{background:rgba(56,56,167,.25); border-color:var(--primary); color:var(--text);}
.rs-cards-grid{flex:1; min-width:0; display:grid;
  grid-template-columns:repeat(3,1fr); gap:18px; align-content:start;}
.rs-mcard{background:var(--bg-alt); border-radius:24px; padding:14px; margin:0;
  display:flex; flex-direction:column; gap:12px; min-width:0;}
.rs-mcover{position:relative; border-radius:16px; overflow:hidden; aspect-ratio:16/10; background:#000;}
.rs-mcover img{width:100%; height:100%; object-fit:cover; display:block;}
.rs-mbadge{position:absolute; top:10px; left:10px; background:rgba(8,8,11,.65);
  backdrop-filter:blur(8px); color:var(--text); font-size:12px; font-weight:600;
  padding:5px 12px; border-radius:999px;}
.rs-mbody{display:flex; flex-direction:column; gap:10px;}
.rs-mtop{display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
.rs-mtitle{margin:0; font-size:16px; font-weight:600; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;}
.rs-mtags{font-size:13px; color:var(--muted); white-space:nowrap; flex-shrink:0;}
.rs-mbottom{display:flex; justify-content:space-between; align-items:center; gap:10px;}
.rs-mauthor{display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--muted);
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rs-mauthor img{width:26px; height:26px; border-radius:50%; object-fit:contain;
  background:rgba(255,255,255,.05); padding:4px; flex-shrink:0;}
.rs-mprice{font-size:16px; font-weight:700; color:var(--text); white-space:nowrap;}
.rs-mempty{grid-column:1/-1; text-align:center; padding:40px 0;}
@media (max-width:1100px){ .rs-cards-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:860px){
  .rs-market{flex-direction:column;}
  .rs-filters{width:100%;}
  .rs-cards-grid{grid-template-columns:1fr;}
}

/* ============ Cabinet (sidebar + content) ============ */
.rs-cab{margin:0 auto; padding:120px 24px 80px; display:flex; gap:16px;
  justify-content:center; align-items:flex-start; position:relative; z-index:1;}
.rs-cab-side{display:flex; flex-direction:column; gap:16px; width:300px; flex-shrink:0;}
.rs-cab-user{display:flex; align-items:center; gap:10px; padding:16px 20px;
  background:var(--bg-alt); border-radius:26px;}
.rs-cab-ava{width:40px; height:40px; border-radius:50%; object-fit:contain; flex-shrink:0;
  background:rgba(255,255,255,.05); padding:9px;}
.rs-cab-who{min-width:0; flex:1; display:flex; flex-direction:column;}
.rs-cab-name{margin:0; font-size:20px; font-weight:500;
  display:inline-flex; align-items:center; gap:7px; flex-wrap:wrap;}
.grad-cherry,.grad-indigo,.grad-emerald,.grad-amethyst,.grad-ruby,.grad-gold{
  background-size:200% auto; -webkit-background-clip:text; background-clip:text;
  color:transparent; animation:rsNick 3s linear infinite;}
@keyframes rsNick{to{background-position:200% center;}}
.grad-cherry{background-image:linear-gradient(90deg,#E93A57,#D87888,#E93A57); filter:drop-shadow(0 0 12px rgba(233,58,87,.45));}
.grad-indigo{background-image:linear-gradient(90deg,#3838A6,#4C4CDD,#3838A6); filter:drop-shadow(0 0 12px rgba(76,76,221,.45));}
.grad-emerald{background-image:linear-gradient(90deg,#34A853,#76FF9A,#34A853); filter:drop-shadow(0 0 12px rgba(52,168,83,.45));}
.grad-amethyst{background-image:linear-gradient(90deg,#6834A8,#A16AE5,#6834A8); filter:drop-shadow(0 0 12px rgba(161,106,229,.45));}
.grad-ruby{background-image:linear-gradient(90deg,#E93A3D,#E26F71,#E93A3D); filter:drop-shadow(0 0 12px rgba(226,111,113,.45));}
.grad-gold{background-image:linear-gradient(90deg,#C29B23,#F8E08A,#FFF6CC,#F8E08A,#C29B23); filter:drop-shadow(0 0 12px rgba(226,192,74,.45));}
.rs-cab-sub{margin:0; font-size:16px; font-weight:400; color:var(--muted);}
.rs-cab-bell{display:flex; align-items:center; justify-content:center;
  padding:4px; border-radius:8px; border:none; background:none;
  color:var(--muted); cursor:pointer; flex-shrink:0; transition:color .15s;}
.rs-cab-bell:hover{color:var(--text);}
.rs-cab-menu{display:flex; flex-direction:column; padding:14px;
  background:var(--bg-alt); border-radius:26px;}
.rs-cab-item{display:block; width:100%; border-radius:16px;
  transition:background .18s ease-in-out;}
.rs-cab-item > a, .rs-cab-item > button, a.rs-cab-item, button.rs-cab-item{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:12px 14px; font-size:18px; font-weight:400; color:var(--muted);
  background:none; border:none; cursor:pointer; font-family:inherit;
  text-align:left; transition:color .15s;}
.rs-cab-item:hover > a, .rs-cab-item:hover > button,
a.rs-cab-item:hover, button.rs-cab-item:hover{color:var(--text);}
.rs-cab-item.is-active{background:#ffffff0d;}
.rs-cab-item.is-active > a, a.rs-cab-item.is-active{color:var(--text);}
.rs-cab-item svg{flex-shrink:0;}
.rs-cab-sep{height:1px; background:rgba(113,113,123,.1); margin:12px 0;}
.rs-cab-main{display:flex; flex-direction:column; gap:16px; width:100%; max-width:721px; min-width:0;}
.rs-cab-card{background:var(--bg-alt); border-radius:26px; padding:26px 24px; width:100%;}
.rs-cab-title{margin:0 0 8px; font-size:22px; font-weight:500; color:var(--text);
  display:flex; justify-content:space-between; align-items:flex-start; gap:16px;}
.rs-kv{display:flex; flex-direction:column; color:var(--muted); font-size:18px;}
.rs-kv-row{display:flex; align-items:center; padding:12px 0;
  border-bottom:1px solid rgba(113,113,123,.1); font-size:18px;}
.rs-kv-row:last-child{border:none; padding-bottom:0;}
.rs-kv-row span:first-child{color:var(--muted);}
.rs-kv-row span:last-child{margin-left:auto; color:var(--text); text-align:right;}
.rs-kv-row span.rs-role:last-child{color:#d66060; font-weight:500;}
.rs-keybtn{display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:14px 16px; border-radius:18px; background:var(--bg-alt);
  border:1px solid transparent; color:var(--muted); font-size:18px;
  font-weight:500; font-family:inherit; cursor:pointer;
  transition:background .15s ease-in-out, color .15s ease-in-out;}
.rs-keybtn:hover{background:var(--primary); color:#fff;}
.rs-cab-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.rs-cab-grid .muted{font-size:14px; margin:0 0 16px;}
.rs-cab-grid .form{display:flex; flex-direction:column; gap:12px;}
.rs-cab-grid input[type=text]{background:rgba(255,255,255,.04);
  border:1px solid var(--panel-border); color:var(--text); padding:12px 15px;
  border-radius:13px; font-size:15px; outline:none; width:100%;}
.rs-cab-grid input[type=text]:focus{border-color:var(--violet);
  box-shadow:0 0 0 3px rgba(56,56,167,.22);}
@media (max-width:1024px){
  .rs-cab-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:860px){
  .rs-cab{flex-direction:column; align-items:stretch; padding-top:120px;}
  .rs-cab-side{width:100%;}
  .rs-cab-main{max-width:none;}
  .rs-cab-grid{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .rs-kv-row{font-size:16px; gap:10px;}
  .rs-kv-row span:last-child{overflow-wrap:anywhere; font-size:15px;}
  .rs-cab-card{padding:22px 18px;}
}

/* ============================================================
   LIGHT THEME (dark is the default)
   <html> carries data-theme="light"|"dark" (pre-paint script in
   partials/head.ejs). Every light rule below is scoped to
   body:not(.admin-body) so /admin always stays dark — the guard
   block at the very end re-asserts dark vars on body.admin-body
   even if data-theme ever leaks onto an admin page.
   ============================================================ */
:root{color-scheme:dark;}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f3f4f8;
  --bg-alt:#ffffff;
  --panel:#ffffff;
  --panel-border:rgba(20,22,45,.12);
  --panel-border-hover:rgba(56,56,167,.5);
  --text:#15151d;
  --muted:#656572;
  --primary:#3838a7;
  --primary-hover:#2a2a8f;
  --violet:#3838a7;
  --cyan:#2f2f9e;
  --grad:linear-gradient(135deg,#2b2b8f 20%,#6a6ad8 100%);
  --ok:#0f9d58;
  --err:#d92d4d;
  --shadow:0 20px 50px -24px rgba(30,32,70,.22);
}

/* ---- page backdrop ---- */
html[data-theme="light"] body:not(.admin-body){
  background-color:var(--bg);
  background-image:
    radial-gradient(1100px 520px at 15% -10%, rgba(56,56,167,.14), transparent 60%),
    radial-gradient(900px 460px at 90% 0%, rgba(106,106,216,.16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(20,22,45,.05) 0px, rgba(20,22,45,.05) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(20,22,45,.05) 0px, rgba(20,22,45,.05) 1px, transparent 1px, transparent 48px);
}
html[data-theme="light"] body:not(.admin-body)::before{opacity:.05;mix-blend-mode:multiply;}
html[data-theme="light"] body:not(.admin-body) ::selection{background:rgba(56,56,167,.22);color:#15151d;}
html[data-theme="light"] body:not(.admin-body) code{background:rgba(20,22,45,.07);}

/* ---- header / nav ---- */
html[data-theme="light"] body:not(.admin-body) .rs-header{background:rgba(255,255,255,.8);border:1px solid var(--panel-border);box-shadow:var(--shadow);}
html[data-theme="light"] body:not(.admin-body) .rs-me-pill img:not(.nick-badge){background:rgba(20,22,45,.06);}
html[data-theme="light"] body:not(.admin-body) .rs-langmenu,
html[data-theme="light"] body:not(.admin-body) .rs-menu{box-shadow:0 16px 40px -12px rgba(30,32,70,.25);}
html[data-theme="light"] body:not(.admin-body) .rs-langitem:hover,
html[data-theme="light"] body:not(.admin-body) .rs-menu-item:hover{background:rgba(20,22,45,.05);}
html[data-theme="light"] body:not(.admin-body) .burger-menu a:hover,
html[data-theme="light"] body:not(.admin-body) .burger-link:hover{background:rgba(56,56,167,.08);}
/* gradient pills keep dark text in dark theme; white reads better on the light gradient */
html[data-theme="light"] body:not(.admin-body) .nav-cta,
html[data-theme="light"] body:not(.admin-body) .plan-badge,
html[data-theme="light"] body:not(.admin-body) .price-badge,
html[data-theme="light"] body:not(.admin-body) .page-link.active{color:#fff;}

/* ---- theme toggle button (icon-only; markup goes in header.ejs) ---- */
.rs-theme-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;
  border:.8px solid rgba(113,113,123,.25);background:transparent;color:var(--muted);cursor:pointer;padding:0;
  font-family:inherit;transition:color .15s,border-color .15s;}
.rs-theme-btn:hover{color:var(--text);border-color:rgba(113,113,123,.55);}
.rs-theme-btn:focus-visible{outline:2px solid var(--violet);outline-offset:2px;}
.rs-theme-btn svg{width:18px;height:18px;display:block;}
.rs-theme-btn .icon-sun{display:none;}
html[data-theme="light"] .rs-theme-btn .icon-sun{display:block;}
html[data-theme="light"] .rs-theme-btn .icon-moon{display:none;}

/* ---- hero ---- */
html[data-theme="light"] body:not(.admin-body) .hero-glow{background:radial-gradient(closest-side, rgba(56,56,167,.16), rgba(106,106,216,.08) 55%, transparent 75%);}
html[data-theme="light"] body:not(.admin-body) .hero-logo{filter:drop-shadow(0 0 28px rgba(56,56,167,.35));}

/* hero h1 word-by-word entrance (JS adds .is-split + .rs-w/.rs-wi;
   no-JS falls back to the existing rsRise animation on the whole h1) */
.rs-hero h1.is-split{animation:none;}
.rs-hero h1 .rs-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.1em;margin-bottom:-.1em;}
.rs-hero h1 .rs-wi{display:inline-block;opacity:0;transform:translateY(.55em);filter:blur(6px);
  animation:rsWord .7s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:calc(var(--wi,0)*75ms + 80ms);}
@keyframes rsWord{to{opacity:1;transform:none;filter:blur(0);}}
@media (prefers-reduced-motion:reduce){
  .rs-hero h1 .rs-wi{animation:none;opacity:1;transform:none;filter:none;}
}

/* ---- landing menu screenshots: one file per theme, CSS-only swap ----
   Dark shot blends into the dark page with screen, light shot into the
   light page with multiply. Radius + shadow live on the wrapper so the
   blend can't eat them. To disable blending, delete the two
   mix-blend-mode lines below. */
.rs-gui-wrap{max-width:1100px;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px -30px rgba(0,0,0,.65);}
html[data-theme="light"] body:not(.admin-body) .rs-gui-wrap{box-shadow:0 30px 70px -30px rgba(30,32,70,.35);}
.rs-gui-img{border-radius:0;}
.rs-gui-img.rs-gui-light{display:none;}
html[data-theme="light"] .rs-gui-img.rs-gui-dark{display:none;}
html[data-theme="light"] .rs-gui-img.rs-gui-light{display:block;}
.rs-gui-img.rs-gui-dark{mix-blend-mode:screen;}
html[data-theme="light"] .rs-gui-img.rs-gui-light{mix-blend-mode:multiply;}

/* ---- landing video cards: slide-up + fade on scroll ----
   JS (reveal.js) adds .rs-will (hidden pre-state) then .is-in on
   intersection. Stagger between the two cards is pure CSS. */
.rs-video-card{will-change:opacity,transform;}
.rs-video-card.rs-will{opacity:0;transform:translateY(28px);}
.rs-video-card.is-in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);}
.rs-videos .rs-video-card:nth-child(2).is-in{transition-delay:120ms;}
@media (prefers-reduced-motion:reduce){
  .rs-video-card.rs-will{opacity:1;transform:none;}
  .rs-video-card.is-in{transition:none;}
}

/* ---- buttons / inputs / forms ---- */
html[data-theme="light"] body:not(.admin-body) .btn-ghost:hover{background:rgba(20,22,45,.05);}
html[data-theme="light"] body:not(.admin-body) input[type=text],
html[data-theme="light"] body:not(.admin-body) input[type=email],
html[data-theme="light"] body:not(.admin-body) input[type=password],
html[data-theme="light"] body:not(.admin-body) input[type=number],
html[data-theme="light"] body:not(.admin-body) input[type=file],
html[data-theme="light"] body:not(.admin-body) select,
html[data-theme="light"] body:not(.admin-body) textarea{background:#fff;}
html[data-theme="light"] body:not(.admin-body) input:focus,
html[data-theme="light"] body:not(.admin-body) select:focus,
html[data-theme="light"] body:not(.admin-body) textarea:focus{background:#fff;box-shadow:0 0 0 3px rgba(56,56,167,.15);}
html[data-theme="light"] body:not(.admin-body) input::placeholder{color:#9a9aa6;}
html[data-theme="light"] body:not(.admin-body) .rs-field,
html[data-theme="light"] body:not(.admin-body) .rs-filter-search,
html[data-theme="light"] body:not(.admin-body) .rs-fgroup input[type=text],
html[data-theme="light"] body:not(.admin-body) .rs-fgroup input[type=number],
html[data-theme="light"] body:not(.admin-body) .rs-fgroup select,
html[data-theme="light"] body:not(.admin-body) .rs-cab-grid input[type=text]{background:#fff;}
html[data-theme="light"] body:not(.admin-body) .rs-fgroup select option{background:#fff;color:var(--text);}
html[data-theme="light"] body:not(.admin-body) .rs-seg{background:rgba(20,22,45,.06);}
html[data-theme="light"] body:not(.admin-body) .rs-chips button{background:#fff;}
html[data-theme="light"] body:not(.admin-body) .rs-chips button.is-on{background:rgba(56,56,167,.12);}
html[data-theme="light"] body:not(.admin-body) .rs-sw span{background:#fff;}
html[data-theme="light"] body:not(.admin-body) .copy-btn{background:rgba(20,22,45,.05);}

/* ---- alerts / badges / toasts ---- */
html[data-theme="light"] body:not(.admin-body) .alert-error{background:rgba(217,45,77,.08);border-color:rgba(217,45,77,.3);color:#a51f38;}
html[data-theme="light"] body:not(.admin-body) .alert-ok{background:rgba(15,157,88,.08);border-color:rgba(15,157,88,.3);color:#0c6e40;}
html[data-theme="light"] body:not(.admin-body) .badge-off{background:rgba(20,22,45,.05);}
html[data-theme="light"] body:not(.admin-body) .badge-role{background:rgba(56,56,167,.1);color:#2f2f9e;border-color:rgba(56,56,167,.3);}
html[data-theme="light"] body:not(.admin-body) .toast{background:rgba(255,255,255,.97);}

/* ---- modal / misc surfaces ---- */
html[data-theme="light"] body:not(.admin-body) .burger-menu{background:var(--bg-alt);box-shadow:0 16px 40px -12px rgba(30,32,70,.25);}
html[data-theme="light"] body:not(.admin-body) .modal-backdrop{background:rgba(30,32,55,.45);}
html[data-theme="light"] body:not(.admin-body) .modal{background:var(--bg-alt);}
html[data-theme="light"] body:not(.admin-body) .mail-body{background:rgba(20,22,45,.03);}
html[data-theme="light"] body:not(.admin-body) .site-footer{background:rgba(20,22,45,.02);}
html[data-theme="light"] body:not(.admin-body) .card-icon{color:var(--violet);}

/* ---- market ---- */
html[data-theme="light"] body:not(.admin-body) .rs-filters{background:var(--bg-alt);border:1px solid var(--panel-border);}
html[data-theme="light"] body:not(.admin-body) .rs-mcard{background:var(--bg-alt);border:1px solid var(--panel-border);}
html[data-theme="light"] body:not(.admin-body) .rs-mauthor img{background:rgba(20,22,45,.06);}

/* ---- tariffs (banner stays dark art with white type in both themes) ---- */
html[data-theme="light"] body:not(.admin-body) .rs-tcard{background:var(--bg-alt);border:1px solid var(--panel-border);}

/* ---- auth (visual panel stays dark art with white type in both themes) ---- */
html[data-theme="light"] body:not(.admin-body) .rs-visual{background:#08080b;}

/* ---- cabinet ---- */
html[data-theme="light"] body:not(.admin-body) .rs-cab-user{background:var(--bg-alt);border:1px solid var(--panel-border);}
html[data-theme="light"] body:not(.admin-body) .rs-cab-ava{background:rgba(20,22,45,.06);}
html[data-theme="light"] body:not(.admin-body) .rs-cab-menu{background:var(--bg-alt);border:1px solid var(--panel-border);}
html[data-theme="light"] body:not(.admin-body) .rs-cab-item.is-active{background:rgba(20,22,45,.06);}
html[data-theme="light"] body:not(.admin-body) .rs-cab-card{background:var(--bg-alt);border:1px solid var(--panel-border);}
html[data-theme="light"] body:not(.admin-body) .rs-keybtn{background:var(--bg-alt);border-color:var(--panel-border);}

/* ---- role: plain text by default, glowing red for admins ----
   (dashboard.ejs adds .is-admin to the .rs-role span conditionally) */
.rs-kv-row span.rs-role:last-child{color:var(--text);font-weight:400;}
.rs-kv-row span.rs-role.is-admin:last-child{color:#ff4d5e;font-weight:700;
  text-shadow:0 0 12px rgba(255,60,80,.65),0 0 32px rgba(255,60,80,.35);}
html[data-theme="light"] body:not(.admin-body) .rs-kv-row span.rs-role.is-admin:last-child{color:#d92d4d;
  text-shadow:0 0 12px rgba(217,45,77,.4),0 0 28px rgba(217,45,77,.22);}

/* ---- theme-swap wipe: disc of the incoming theme expands from the toggle ---- */
.rs-theme-wipe{position:fixed;left:0;top:0;width:0;height:0;z-index:9999;pointer-events:none;
  --wx:50vw;--wy:44px;--wr:150vmax;}
.rs-theme-wipe::before{content:"";position:absolute;left:var(--wx);top:var(--wy);
  width:calc(var(--wr)*2);height:calc(var(--wr)*2);transform:translate(-50%,-50%) scale(0);
  border-radius:50%;transition:transform .6s cubic-bezier(.3,.7,.25,1),opacity .32s ease .1s;}
.rs-theme-wipe.to-light::before{background:#f3f4f8;}
.rs-theme-wipe.to-dark::before{background:#08080b;}
.rs-theme-wipe.go::before{transform:translate(-50%,-50%) scale(1);}
.rs-theme-wipe.fade::before{opacity:0;}
@media (prefers-reduced-motion:reduce){.rs-theme-wipe{display:none;}}

/* ---- light-theme polish: logos, prices, surfaces ---- */
html[data-theme="light"] body:not(.admin-body) .rs-logo img,
html[data-theme="light"] body:not(.admin-body) .rs-footer-brand img,
html[data-theme="light"] body:not(.admin-body) .rs-mauthor img{filter:invert(1);}
html[data-theme="light"] body:not(.admin-body) .rs-cab-ava{background:transparent;filter:invert(1);}
html[data-theme="light"] body:not(.admin-body) .rs-me-pill img:not(.nick-badge){background:transparent;filter:invert(1);}
html[data-theme="light"] body:not(.admin-body) .rs-tprice{color:#15151d;}
html[data-theme="light"] body:not(.admin-body) .rs-tprice span{color:#656572;}
html[data-theme="light"] body:not(.admin-body) .price-value,
html[data-theme="light"] body:not(.admin-body) .plan-price{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:#2b2b8f;color:#2b2b8f;}
html[data-theme="light"] body:not(.admin-body) .rs-tbanner{box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);}
html[data-theme="light"] body:not(.admin-body) .rs-tcard.is-top{box-shadow:0 0 0 1px rgba(56,56,167,.55),0 24px 70px -20px rgba(56,56,167,.4);}

/* ---- ADMIN GUARD: /admin stays dark even if <html> carries data-theme="light" ---- */
html[data-theme="light"] body.admin-body{
  color-scheme:dark;
  --bg:#08080b;
  --bg-alt:#0c0c0f;
  --panel:rgba(255,255,255,.04);
  --panel-border:#71717b40;
  --panel-border-hover:rgba(56,56,167,.55);
  --text:#e7e7fd;
  --muted:#71717b;
  --primary:#3838a7;
  --primary-hover:#252580;
  --violet:#3838a7;
  --cyan:#9090d2;
  --grad:linear-gradient(135deg,#3838a7 33%,#9090d2 100%);
  --ok:#37e08a;
  --err:#ff5c7a;
  --shadow:0 20px 60px -20px rgba(0,0,0,.6);
  background-color:var(--bg);
}

/* profile customization (badge spot + look window) */
.rs-lookbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:2px;margin-left:7px;cursor:pointer;vertical-align:middle;border-radius:8px;}
.rs-lookbtn .nick-badge{width:20px;height:20px;transition:transform .15s;}
.rs-lookbtn:hover .nick-badge{transform:scale(1.15);}
.rs-lookplus{position:absolute;top:-7px;right:-7px;width:16px;height:16px;border-radius:50%;background:var(--primary);color:#fff;font-size:12px;line-height:16px;text-align:center;opacity:0;transform:scale(.5);transition:opacity .15s,transform .15s;pointer-events:none;}
.rs-lookbtn:hover .rs-lookplus{opacity:1;transform:scale(1);}
.rs-lookempty{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1.5px dashed var(--muted);color:var(--muted);font-size:15px;line-height:1;transition:border-color .15s,color .15s,transform .15s;}
.rs-lookbtn:hover .rs-lookempty{border-color:var(--primary);color:var(--primary);transform:scale(1.12);border-style:solid;}
.rs-lookrow{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 4px;}
.rs-looksw{display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;border-radius:12px;border:1px solid var(--panel-border);background:var(--panel);color:var(--text);cursor:pointer;font:inherit;font-size:13.5px;transition:border-color .15s,transform .15s;}
.rs-looksw:hover{transform:translateY(-1px);}
.rs-looksw.is-on{border-color:var(--primary);}
.rs-looksw i{width:22px;height:22px;border-radius:50%;display:inline-block;}
.rs-looknone{width:22px;height:22px;border-radius:50%;display:inline-block;border:1.5px dashed var(--muted);}
.rs-lookgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 4px;}
@media (max-width:560px){.rs-lookgrid{grid-template-columns:1fr;}}
.rs-lookbadge{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;border:1px solid var(--panel-border);background:var(--panel);color:var(--text);cursor:pointer;font:inherit;text-align:left;transition:border-color .15s,transform .15s;}
.rs-lookbadge:hover{transform:translateY(-1px);}
.rs-lookbadge.is-on{border-color:var(--primary);}
.rs-lookbadge .nick-badge{width:34px;height:34px;}
.rs-lookbtext{display:flex;flex-direction:column;gap:2px;min-width:0;}
.rs-lookbname{font-weight:600;font-size:14px;}
.rs-lookbdesc{font-size:12.5px;color:var(--muted);line-height:1.35;}
/* Hasselblad mark is black ink: invert on dark theme so it stays visible */
html:not([data-theme="light"]) .nick-badge.b-hasselblad{filter:invert(1);}
html[data-theme="light"] .nick-badge.b-sig{filter:invert(1);}
html[data-theme="light"] body:not(.admin-body) .rs-lookbtn:hover .rs-lookempty{border-color:var(--primary);color:var(--primary);}
html[data-theme="light"] body:not(.admin-body) .rs-looksw,
html[data-theme="light"] body:not(.admin-body) .rs-lookbadge{background:#fff;border-color:rgba(20,22,40,.12);}
html[data-theme="light"] body:not(.admin-body) .rs-lookbdesc{color:#5b5e72;}

/* footer columns + legal docs + faq */
.rs-foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px;width:100%;max-width:1080px;text-align:left;}
@media (max-width:720px){.rs-foot-grid{grid-template-columns:1fr 1fr;text-align:left;}}
@media (max-width:460px){.rs-foot-grid{grid-template-columns:1fr;}}
.rs-foot-col{display:flex;flex-direction:column;gap:9px;align-items:flex-start;}
.rs-foot-h{margin:0 0 2px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);}
.rs-foot-col a{color:var(--muted);font-size:14.5px;transition:color .2s;}
.rs-foot-col a:hover{color:var(--text);}
.rs-foot-tg{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:12px;border:1px solid var(--panel-border);background:var(--panel);color:var(--text)!important;font-weight:600;transition:transform .15s,border-color .15s;}
.rs-foot-tg:hover{transform:translateY(-1px);border-color:var(--primary);}
.rs-doc{max-width:820px;margin:0 auto;padding:130px 22px 40px;}
.rs-doc h1{font-size:clamp(30px,4.5vw,44px);margin:0 0 6px;}
.rs-doc-upd{color:var(--muted);margin:0 0 28px;}
.rs-doc-sec{margin:0 0 22px;}
.rs-doc-sec h2{font-size:19px;margin:0 0 8px;}
.rs-doc-sec p{margin:0;line-height:1.65;color:var(--text);}
.rs-doc-cta{margin-top:30px;}
.rs-faq{display:flex;flex-direction:column;gap:10px;}
.rs-faq-item{border:1px solid var(--panel-border);background:var(--panel);border-radius:14px;padding:0 18px;transition:border-color .2s;}
.rs-faq-item[open]{border-color:var(--primary);}
.rs-faq-item summary{cursor:pointer;padding:15px 0;font-weight:600;font-size:15.5px;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.rs-faq-item summary::-webkit-details-marker{display:none;}
.rs-faq-item summary::after{content:"+";color:var(--primary);font-size:20px;font-weight:700;flex-shrink:0;transition:transform .2s;}
.rs-faq-item[open] summary::after{transform:rotate(45deg);}
.rs-faq-item p{margin:0 0 16px;line-height:1.65;color:var(--muted);}
html[data-theme="light"] body:not(.admin-body) .rs-faq-item,
html[data-theme="light"] body:not(.admin-body) .rs-foot-tg{background:#fff;border-color:rgba(20,22,40,.12);}

/* =========================================================
   AETHEL WEBMAIL & MAILBOX STYLES & ANIMATIONS
   ========================================================= */
@keyframes wmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wmSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wmPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.mail-page-animate {
  animation: wmFadeIn .3s cubic-bezier(.16, 1, .3, 1) both;
}

.mail-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mail-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 56, 167, 0.14);
  border: 1px solid rgba(56, 56, 167, 0.35);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}

.mail-message-card {
  padding: 24px 28px !important;
  border-radius: 20px;
}

.mail-view-head {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.mail-view-subject {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--text);
}

.mail-sender-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mail-sender-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.mail-sender-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mail-sender-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mail-sender-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
}

.mail-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all .15s ease;
}

.mail-copy-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: var(--primary);
}

.mail-recipient-line {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mail-view-body {
  min-height: 180px;
  padding: 10px 0;
}

.mail-body-content {
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.mail-view-footer {
  border-top: 1px solid var(--panel-border);
  padding-top: 18px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mailbox Management Cards */
.mailbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailbox-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-border);
  transition: border-color .2s ease, background .2s ease;
}

.mailbox-item-card:hover {
  border-color: rgba(56, 56, 167, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.mailbox-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mailbox-icon-spot {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 56, 167, 0.15);
  border: 1px solid rgba(56, 56, 167, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.mailbox-item-info {
  min-width: 0;
}

.mailbox-addr {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-meta {
  font-size: 12px;
  margin-top: 2px;
}

.mailbox-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mono-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #fff;
}

/* =========================================================
   AETHEL ADMIN PANEL CUSTOM CONTROLS & SLEEK STYLING
   ========================================================= */
.rs-abrand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 18px;
}

.admin-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 92, 122, 0.2);
  border: 1px solid rgba(255, 92, 122, 0.4);
  color: var(--err);
  vertical-align: middle;
  margin-left: 6px;
}

.admin-backsite {
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}

.admin-backsite:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-icon {
  margin-right: 12px;
  color: var(--muted);
  transition: color .15s;
  flex-shrink: 0;
}

.rs-aitem:hover .admin-nav-icon,
.rs-aitem.is-active .admin-nav-icon {
  color: var(--cyan);
}

.rs-afooter {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  font-size: 13.5px;
}

.admin-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(55, 224, 138, 0.6);
}

.admin-user-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}

.admin-logout-btn:hover {
  color: var(--err);
  background: rgba(255, 92, 122, 0.1);
  border-color: rgba(255, 92, 122, 0.25);
}

/* Head row */
.admin-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(55, 224, 138, 0.1);
  border: 1px solid rgba(55, 224, 138, 0.3);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

.admin-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: wmPulse 2s infinite ease-in-out;
}

/* Stat icons */
.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-primary {
  background: rgba(56, 56, 167, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(56, 56, 167, 0.35);
}

.stat-icon-ok {
  background: rgba(55, 224, 138, 0.15);
  color: var(--ok);
  border: 1px solid rgba(55, 224, 138, 0.35);
}

.stat-icon-err {
  background: rgba(255, 92, 122, 0.15);
  color: var(--err);
  border: 1px solid rgba(255, 92, 122, 0.35);
}

.stat-icon-cyan {
  background: rgba(144, 144, 210, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(144, 144, 210, 0.35);
}

.rs-stat-alert {
  border-color: rgba(255, 92, 122, 0.4) !important;
  box-shadow: 0 0 24px -6px rgba(255, 92, 122, 0.3) !important;
}

.admin-action-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Summary Grid */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

.admin-sum-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sum-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.text-warn {
  color: #ffb74d;
}

.text-err {
  color: var(--err);
}

/* Filter bar & Aligned controls */
.admin-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-filter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.admin-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Forms & Inputs */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text);
}

.admin-input,
.admin-select {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-input-sm,
.admin-select-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.admin-input:focus,
.admin-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 56, 167, 0.4);
}

.admin-select {
  cursor: pointer;
}

.admin-select option {
  background: #0d0d12;
  color: var(--text);
}

/* Aligned Form Inline */
.form-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.form-inline .admin-input,
.form-inline .admin-select,
.form-inline .btn {
  margin: 0;
  box-sizing: border-box;
}

/* Action stacks in user details */
.admin-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-action-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Data Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-user-link {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}

.admin-user-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.btn-icon {
  padding: 7px 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status dots and badges */
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.err {
  background: var(--err);
  box-shadow: 0 0 8px rgba(255, 92, 122, 0.6);
}

.badge-crit {
  background: rgba(255, 60, 80, 0.2);
  border: 1px solid rgba(255, 60, 80, 0.5);
  color: #ff5c7a;
  text-shadow: 0 0 10px rgba(255, 60, 80, 0.4);
  font-weight: 700;
}

.badge-warn {
  background: rgba(255, 170, 0, 0.16);
  border: 1px solid rgba(255, 170, 0, 0.4);
  color: #ffb74d;
  font-weight: 600;
}

.badge-kind {
  background: rgba(56, 56, 167, 0.18);
  border: 1px solid rgba(56, 56, 167, 0.4);
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
}

.admin-ident-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.violation-detail-box {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
}

.page-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(56, 56, 167, 0.5);
}
