/* ============================================================
   EL 7ARA TEAM — design tokens
   Dark gaming + subtle Minecraft touches, modern execution
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  --bg:            #0a0e13;
  --bg-soft:       #0e141b;
  --surface:       #141b23;
  --surface-2:     #1b2530;
  --border:        #232f3b;
  --border-soft:   #1a232c;

  --laban:         #6fd3e8;
  --laban-soft:    #a8e6f2;
  --laban-dim:     rgba(111,211,232,.14);

  --red:           #e6423a;
  --red-soft:      #ff6a5e;
  --red-dim:       rgba(230,66,58,.16);

  --text:          #eaf2f5;
  --muted:         #8393a2;
  --muted-2:       #566472;

  --font-display:  'Silkscreen', 'Cairo', sans-serif;
  --font-body:     'Cairo', 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius:        14px;
  --radius-sm:     8px;
  --ease:          cubic-bezier(.22,.9,.3,1);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  min-height:100vh;
  overflow-x:hidden;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(111,211,232,.06), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(230,66,58,.05), transparent 40%);
}

html[dir="rtl"] body{ font-feature-settings:"kern"; }

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
img{ max-width:100%; display:block; }
::selection{ background:var(--laban); color:#04222b; }

/* subtle pixel-grid ambient texture behind everything */
.pixel-veil{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(111,211,232,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,211,232,.035) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(circle at 50% 0%, rgba(0,0,0,.9), transparent 70%);
  opacity:.5;
}

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---------- Nav ---------- */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  background:linear-gradient(to bottom, rgba(10,14,19,.92), rgba(10,14,19,0));
  backdrop-filter:blur(6px);
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:15px; letter-spacing:.5px; }
.brand .blip{ width:10px; height:10px; background:var(--red); box-shadow:0 0 10px var(--red); border-radius:2px; }
.nav-links{ display:flex; align-items:center; gap:26px; font-size:14.5px; font-weight:600; }
.nav-links a{ color:var(--muted); transition:color .2s var(--ease); position:relative; }
.nav-links a:hover, .nav-links a.active{ color:var(--laban-soft); }
.nav-actions{ display:flex; align-items:center; gap:12px; }

.lang-switch{
  border:1px solid var(--border); background:var(--surface); color:var(--text);
  padding:8px 14px; border-radius:999px; font-size:13px; font-weight:700;
  display:flex; align-items:center; gap:6px; transition:all .2s var(--ease);
}
.lang-switch:hover{ border-color:var(--laban); color:var(--laban-soft); }

.btn{
  border:none; border-radius:10px; padding:10px 18px; font-weight:700; font-size:14px;
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--laban); color:#04222b; box-shadow:0 6px 22px rgba(111,211,232,.25); }
.btn-primary:hover{ box-shadow:0 8px 26px rgba(111,211,232,.4); transform:translateY(-1px); }
.btn-ghost{ background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-ghost:hover{ border-color:var(--red); color:var(--red-soft); }
.btn-danger{ background:var(--red-dim); color:var(--red-soft); border:1px solid rgba(230,66,58,.35); }
.btn-danger:hover{ background:var(--red); color:#fff; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

/* ---------- Loading screen ---------- */
#loader{
  position:fixed; inset:0; z-index:100; background:var(--bg);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:26px;
  transition:opacity .6s var(--ease), visibility .6s;
}
#loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{ font-family:var(--font-display); font-size:26px; letter-spacing:2px; display:flex; gap:2px; }
.loader-mark span{ color:var(--laban-soft); }
.loader-mark span.hara{ color:var(--red-soft); }
.loader-track{
  width:260px; height:14px; border-radius:4px; background:var(--surface-2);
  border:1px solid var(--border); overflow:hidden; position:relative;
  display:flex;
}
.loader-block{
  width:14px; height:100%; background:linear-gradient(180deg, var(--laban-soft), var(--laban));
  margin-right:2px; opacity:0; transform:translateY(3px);
  animation:blockIn .45s var(--ease) forwards;
}
.loader-block:nth-child(odd){ background:linear-gradient(180deg, var(--red-soft), var(--red)); }
@keyframes blockIn{ to{ opacity:1; transform:translateY(0); } }
.loader-hint{ font-size:12.5px; color:var(--muted-2); font-family:var(--font-mono); letter-spacing:.5px; }

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:170px 24px 90px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:18px;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 15%, rgba(111,211,232,.12), transparent 70%),
    linear-gradient(180deg, transparent, var(--bg) 90%);
}
.hero-badge{
  font-family:var(--font-mono); font-size:12px; letter-spacing:1.5px; color:var(--laban-soft);
  border:1px solid rgba(111,211,232,.3); background:var(--laban-dim);
  padding:6px 14px; border-radius:999px; text-transform:uppercase;
  opacity:0; animation:riseIn .6s var(--ease) forwards; animation-delay:.05s;
}
.hero h1{
  font-family:var(--font-display); font-size:clamp(34px, 7vw, 68px); margin:0; line-height:1.1;
  color:var(--text); text-shadow:0 0 30px rgba(111,211,232,.25);
  opacity:0; animation:riseIn .7s var(--ease) forwards; animation-delay:.15s;
}
.hero h1 .accent{ color:var(--red-soft); }
.hero p.sub{
  font-size:clamp(15px,2.4vw,19px); color:var(--muted); max-width:560px; margin:0;
  opacity:0; animation:riseIn .7s var(--ease) forwards; animation-delay:.28s;
}
.hero-cta{ display:flex; gap:14px; margin-top:8px; opacity:0; animation:riseIn .7s var(--ease) forwards; animation-delay:.4s; }
@keyframes riseIn{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.stat-strip{ display:flex; gap:34px; margin-top:26px; flex-wrap:wrap; justify-content:center; }
.stat-strip .stat{ text-align:center; }
.stat-strip .stat b{ display:block; font-family:var(--font-mono); font-size:22px; color:var(--laban-soft); }
.stat-strip .stat span{ font-size:12.5px; color:var(--muted-2); }

/* ---------- Section shell ---------- */
section.block{ padding:70px 0; position:relative; z-index:1; }
.section-head{ text-align:center; margin-bottom:40px; }
.section-head .eyebrow{ font-family:var(--font-mono); font-size:12px; color:var(--red-soft); letter-spacing:2px; text-transform:uppercase; }
.section-head h2{ font-family:var(--font-display); font-size:clamp(24px,4vw,34px); margin:10px 0 8px; }
.section-head p{ color:var(--muted); font-size:15px; max-width:520px; margin:0 auto; }

/* ---------- Channel cards ---------- */
.grid-cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:20px; }

.channel-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 18px; position:relative; overflow:hidden; text-align:center;
  transition:transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.channel-card::after{
  content:""; position:absolute; top:0; left:0; width:10px; height:10px;
  background:var(--red); opacity:.85; border-bottom-right-radius:4px;
}
html[dir="rtl"] .channel-card::after{ left:auto; right:0; border-bottom-right-radius:0; border-bottom-left-radius:4px; }
.channel-card:hover{
  transform:translateY(-6px); border-color:var(--laban);
  box-shadow:0 16px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(111,211,232,.15);
}
.channel-avatar{
  width:78px; height:78px; border-radius:50%; margin:0 auto 14px; object-fit:cover;
  border:2px solid var(--border); box-shadow:0 0 0 4px rgba(111,211,232,.06);
  transition:box-shadow .25s var(--ease);
}
.channel-card:hover .channel-avatar{ box-shadow:0 0 0 4px rgba(111,211,232,.18); }
.channel-name{ font-weight:700; font-size:15.5px; margin-bottom:4px; }
.channel-subs{ font-family:var(--font-mono); font-size:13px; color:var(--laban-soft); }
.channel-overlay{
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,14,19,.2), rgba(10,14,19,.94) 60%);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:18px;
  opacity:0; transition:opacity .25s var(--ease); gap:6px;
}
.channel-card:hover .channel-overlay{ opacity:1; }
.channel-overlay .go{ font-size:12.5px; color:var(--laban-soft); font-weight:700; letter-spacing:.5px; }
.channel-overlay .desc{ font-size:12px; color:var(--muted); line-height:1.5; }

.empty-state{
  text-align:center; padding:60px 20px; color:var(--muted); border:1px dashed var(--border);
  border-radius:var(--radius); font-size:14.5px;
}

/* ---------- Video cards ---------- */
.video-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .25s var(--ease), border-color .25s;
}
.video-card:hover{ transform:translateY(-4px); border-color:var(--red); }
.video-thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; }
.video-thumb img{ width:100%; height:100%; object-fit:cover; }
.video-owner{
  position:absolute; bottom:8px; left:8px; display:flex; align-items:center; gap:6px;
  background:rgba(10,14,19,.75); border-radius:999px; padding:3px 10px 3px 3px; font-size:12px;
}
html[dir="rtl"] .video-owner{ left:auto; right:8px; padding:3px 3px 3px 10px; }
.video-owner img{ width:20px; height:20px; border-radius:50%; }
.video-body{ padding:14px 16px; }
.video-title{ font-weight:700; font-size:14.5px; margin:0 0 8px; line-height:1.4; }
.video-views{ font-family:var(--font-mono); font-size:12.5px; color:var(--laban-soft); }

/* ---------- Community / Discord ---------- */
.discord-card{
  max-width:560px; margin:0 auto; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:30px; display:flex; align-items:center; gap:20px;
  flex-wrap:wrap; justify-content:center; text-align:center;
}
.discord-icon{ width:64px; height:64px; border-radius:16px; object-fit:cover; border:1px solid var(--border); }
.discord-info{ flex:1; min-width:180px; text-align:start; }
.discord-info h3{ margin:0 0 4px; font-size:17px; }
.discord-info span{ color:var(--muted); font-size:13px; font-family:var(--font-mono); }

/* ---------- Footer ---------- */
footer{ padding:34px 0 60px; text-align:center; color:var(--muted-2); font-size:13px; }

/* ---------- Dashboard ---------- */
.login-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
}
.login-card{
  width:100%; max-width:380px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:34px; text-align:center;
}
.login-card h1{ font-family:var(--font-display); font-size:20px; margin-bottom:6px; }
.login-card p{ color:var(--muted); font-size:13.5px; margin-bottom:22px; }
.field{ margin-bottom:14px; text-align:start; }
.field label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px; font-weight:600; }
.field input, .field select{
  width:100%; background:var(--bg-soft); border:1px solid var(--border); color:var(--text);
  padding:10px 12px; border-radius:8px; font-size:14px; font-family:inherit;
  transition:border-color .2s;
}
.field input:focus, .field select:focus{ outline:none; border-color:var(--laban); }
.field small{ color:var(--muted-2); font-size:11.5px; }
.form-error{ color:var(--red-soft); font-size:13px; min-height:18px; margin-top:6px; }

.dash-wrap{ padding-top:90px; min-height:100vh; }
.dash-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:14px; }
.dash-tabs{ display:flex; gap:8px; margin-bottom:26px; flex-wrap:wrap; }
.dash-tab{
  padding:9px 16px; border-radius:8px; font-size:13.5px; font-weight:700; color:var(--muted);
  border:1px solid var(--border); background:var(--surface);
}
.dash-tab.active{ color:var(--laban-soft); border-color:var(--laban); background:var(--laban-dim); }
.dash-panel{ display:none; }
.dash-panel.active{ display:block; }
.card-box{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; margin-bottom:20px; }
.card-box h3{ margin-top:0; font-size:16px; }
.add-form{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.add-form .field{ flex:1; min-width:220px; margin-bottom:0; }

.table-row{
  display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--border-soft);
  border-radius:10px; margin-bottom:10px; background:var(--bg-soft); flex-wrap:wrap;
}
.table-row img{ width:42px; height:42px; border-radius:50%; }
.table-row .grow{ flex:1; min-width:120px; }
.table-row .name{ font-weight:700; font-size:14px; }
.table-row .meta{ font-size:12px; color:var(--muted); font-family:var(--font-mono); }
.row-actions{ display:flex; gap:8px; }
.toggle{
  width:42px; height:24px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border);
  position:relative; transition:background .2s;
}
.toggle::after{
  content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%;
  background:var(--muted); transition:transform .2s var(--ease), background .2s;
}
.toggle.on{ background:var(--laban-dim); border-color:var(--laban); }
.toggle.on::after{ transform:translateX(18px); background:var(--laban); }
html[dir="rtl"] .toggle.on::after{ transform:translateX(-18px); }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--surface-2); border:1px solid var(--laban); color:var(--text);
  padding:12px 20px; border-radius:10px; font-size:13.5px; opacity:0; transition:all .3s var(--ease);
  z-index:200; pointer-events:none;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.spinner{
  width:16px; height:16px; border-radius:50%; border:2px solid var(--border); border-top-color:var(--laban);
  animation:spin 1s linear infinite; display:inline-block; vertical-align:middle;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

[data-i18n]{ }
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (max-width:720px){
  .nav-links{ display:none; }
  .hero{ padding-top:140px; }
  .discord-card{ flex-direction:column; text-align:center; }
  .discord-info{ text-align:center; }
}

/* ============================================================
   THEMES — swappable palettes, admin-controlled, global
   ============================================================ */
[data-theme="emerald"]{
  --laban:#5fd68f; --laban-soft:#94e6b6; --laban-dim:rgba(95,214,143,.14);
  --red:#f2b84b; --red-soft:#ffce7a; --red-dim:rgba(242,184,75,.16);
}
[data-theme="ender"]{
  --laban:#9b8cff; --laban-soft:#c2b8ff; --laban-dim:rgba(155,140,255,.14);
  --red:#ff3860; --red-soft:#ff7392; --red-dim:rgba(255,56,96,.16);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap{ max-width:420px; margin:0 auto 30px; position:relative; }
.search-wrap input{
  width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text);
  padding:12px 16px 12px 42px; border-radius:999px; font-size:14px; font-family:inherit;
  transition:border-color .2s, box-shadow .2s;
}
html[dir="rtl"] .search-wrap input{ padding:12px 42px 12px 16px; }
.search-wrap input:focus{ outline:none; border-color:var(--laban); box-shadow:0 0 0 3px var(--laban-dim); }
.search-wrap .icon{
  position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--muted-2); font-size:15px; pointer-events:none;
}
html[dir="rtl"] .search-wrap .icon{ left:auto; right:16px; }
.search-empty{ text-align:center; color:var(--muted); font-size:14px; padding:30px 0; display:none; }

/* ============================================================
   FEATURED CREATOR
   ============================================================ */
.channel-card.is-featured{ border-color:var(--red); box-shadow:0 0 0 1px rgba(230,66,58,.2), 0 14px 30px rgba(0,0,0,.35); }
.featured-badge{
  position:absolute; top:10px; right:10px; z-index:2; font-size:15px; line-height:1;
  filter:drop-shadow(0 0 6px rgba(230,66,58,.6));
}
html[dir="rtl"] .featured-badge{ right:auto; left:10px; }

/* stronger hover: scale + glow, still light */
.channel-card:hover{ transform:translateY(-6px) scale(1.015); }
.channel-card{ transition:transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover{ transform:translateY(-5px) scale(1.015); box-shadow:0 14px 30px rgba(0,0,0,.35), 0 0 0 1px var(--red-dim); }

/* ============================================================
   GLITCH — subtle, hover-only, cheap
   ============================================================ */
.glitch-hover{ position:relative; display:inline-block; }
.glitch-hover:hover{ animation:glitchShift .3s steps(3) 1; }
@keyframes glitchShift{
  0%{ text-shadow:none; transform:translate(0); }
  25%{ text-shadow:2px 0 var(--red-soft), -2px 0 var(--laban-soft); transform:translate(-1px,0); }
  50%{ text-shadow:-2px 0 var(--red-soft), 2px 0 var(--laban-soft); transform:translate(1px,0); }
  75%{ text-shadow:1px 0 var(--red-soft), -1px 0 var(--laban-soft); transform:translate(-1px,0); }
  100%{ text-shadow:none; transform:translate(0); }
}

/* ============================================================
   VIDEOS PAGE — latest/top pairing + trending
   ============================================================ */
.creator-videos-group{ margin-bottom:36px; }
.creator-videos-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.creator-videos-head img{ width:32px; height:32px; border-radius:50%; }
.creator-videos-head b{ font-size:14.5px; }
.video-pair{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
.video-tag{
  position:absolute; top:8px; right:8px; font-size:10.5px; font-weight:700; letter-spacing:.5px;
  padding:3px 9px; border-radius:999px; text-transform:uppercase; font-family:var(--font-mono);
  background:rgba(10,14,19,.75); color:var(--laban-soft); border:1px solid rgba(111,211,232,.3);
}
.video-tag.tag-top{ color:var(--red-soft); border-color:rgba(230,66,58,.35); }
html[dir="rtl"] .video-tag{ right:auto; left:8px; }

.trending-section{ margin-bottom:50px; }
.trending-card{
  position:relative; display:grid; grid-template-columns:280px 1fr; gap:0; overflow:hidden;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 0 0 1px var(--laban-dim);
}
.trending-card::before{
  content:""; position:absolute; inset:0; padding:1px; border-radius:var(--radius); z-index:0;
  background:linear-gradient(120deg, var(--laban), transparent 40%, var(--red) 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:.5; pointer-events:none;
}
.trending-thumb{ position:relative; aspect-ratio:16/9; }
.trending-thumb img{ width:100%; height:100%; object-fit:cover; }
.trending-body{ padding:20px 22px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.trending-eyebrow{ font-family:var(--font-mono); font-size:11.5px; color:var(--red-soft); letter-spacing:2px; text-transform:uppercase; }
.trending-title{ font-size:18px; font-weight:800; margin:0; }
.trending-meta{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.trending-meta img{ width:22px; height:22px; border-radius:50%; }
@media (max-width:640px){ .trending-card{ grid-template-columns:1fr; } }

.video-share-row{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.share-btn{
  border:1px solid var(--border); background:var(--bg-soft); color:var(--muted);
  width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-size:14px; transition:all .2s var(--ease); flex-shrink:0;
}
.share-btn:hover{ border-color:var(--laban); color:var(--laban-soft); }

/* ============================================================
   COMMUNITY — announcements + suggestions
   ============================================================ */
.community-cols{ display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:40px; align-items:start; }
@media (max-width:760px){ .community-cols{ grid-template-columns:1fr; } }
.public-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
.public-card h3{ margin:0 0 4px; font-size:16px; }
.public-card .hint{ color:var(--muted); font-size:12.5px; margin-bottom:14px; }
.announcement-item{
  padding:12px 14px; border:1px solid var(--border-soft); border-radius:10px; background:var(--bg-soft);
  margin-bottom:10px; font-size:13.5px; line-height:1.6;
}
.announcement-item .date{ display:block; font-family:var(--font-mono); font-size:11px; color:var(--muted-2); margin-top:4px; }
.suggest-form textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--border); color:var(--text);
  padding:12px; border-radius:10px; font-family:inherit; font-size:14px; resize:vertical; min-height:86px;
}
.suggest-form textarea:focus{ outline:none; border-color:var(--laban); }
.suggest-form{ display:flex; flex-direction:column; gap:10px; }
.suggest-thanks{ color:var(--laban-soft); font-size:13.5px; display:none; }

/* ============================================================
   LOADING SCREEN — Joining World variant
   ============================================================ */
#loader.style-joining .loader-classic{ display:none; }
#loader.style-classic .loader-joining{ display:none; }

.loader-joining{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.loader-logo{
  font-family:var(--font-display); font-size:22px; letter-spacing:2px; color:var(--laban-soft);
}
.loader-logo span{ color:var(--red-soft); }
.loader-status{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted); letter-spacing:.5px; min-height:16px; }
.loader-bar-track{
  width:280px; height:6px; border-radius:4px; background:var(--surface-2); border:1px solid var(--border);
  overflow:hidden;
}
.loader-bar-fill{
  height:100%; width:0%; border-radius:4px;
  background:linear-gradient(90deg, var(--laban), var(--red));
  transition:width .35s var(--ease);
}

/* ============================================================
   DASHBOARD — reorder, featured, theme, loading style
   ============================================================ */
.drag-handle{ cursor:grab; color:var(--muted-2); font-size:16px; padding:0 4px; user-select:none; }
.table-row[draggable="true"]:active{ cursor:grabbing; }
.table-row.dragging{ opacity:.4; }
.table-row.drag-over{ border-color:var(--laban); }
.star-toggle{
  border:1px solid var(--border); background:var(--bg-soft); color:var(--muted);
  width:34px; height:34px; border-radius:8px; font-size:15px; transition:all .2s var(--ease); flex-shrink:0;
}
.star-toggle.on{ color:var(--red-soft); border-color:var(--red); background:var(--red-dim); }
.theme-swatches{ display:flex; gap:12px; flex-wrap:wrap; }
.theme-swatch{
  border:2px solid var(--border); border-radius:12px; padding:10px 14px; display:flex; align-items:center; gap:8px;
  background:var(--bg-soft); font-size:13px; font-weight:700; color:var(--muted);
}
.theme-swatch.active{ border-color:var(--laban); color:var(--text); }
.theme-dots{ display:flex; }
.theme-dots i{ width:14px; height:14px; border-radius:50%; display:block; margin-inline-start:-6px; border:1px solid var(--bg); }
.announce-list .table-row{ align-items:flex-start; }
.mini-note{ color:var(--muted-2); font-size:12px; margin-top:6px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ---------- Ranks page ---------- */
.login-box, .profile-box{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.discord-avatar{
  width:38px; height:38px; border-radius:50%; border:2px solid var(--border);
  box-shadow:0 0 0 3px rgba(111,211,232,.08);
}
.discord-username{ font-weight:700; font-size:15px; }
.btn-sm{ padding:6px 12px; font-size:12.5px; }

.purchase-status{
  display:none; margin:0 auto 30px; max-width:640px; text-align:center;
  padding:12px 18px; border-radius:var(--radius-sm); font-size:14px; font-weight:600;
}
.purchase-status.ok{ background:rgba(90,214,150,.12); color:#7fe6ab; border:1px solid rgba(90,214,150,.3); }
.purchase-status.warn{ background:var(--red-dim); color:var(--red-soft); border:1px solid rgba(230,66,58,.3); }

.pay-info{
  max-width:640px; margin:0 auto 30px; padding:16px 20px; text-align:center;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  color:var(--muted); font-size:14px; line-height:1.6; white-space:pre-line;
}

.rank-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 20px; text-align:center; position:relative; overflow:hidden;
  transition:transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.rank-card::after{
  content:""; position:absolute; top:0; left:0; width:10px; height:10px;
  background:var(--laban); opacity:.85; border-bottom-right-radius:4px;
}
html[dir="rtl"] .rank-card::after{ left:auto; right:0; border-bottom-right-radius:0; border-bottom-left-radius:4px; }
.rank-card:hover{
  transform:translateY(-6px); border-color:var(--laban);
  box-shadow:0 16px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(111,211,232,.15);
}
.rank-name{ font-family:var(--font-display); font-size:20px; margin-bottom:10px; color:var(--laban-soft); }
.rank-price{ font-family:var(--font-mono); font-size:32px; font-weight:700; margin-bottom:4px; }
.rank-tier{ font-size:12.5px; color:var(--muted-2); text-transform:uppercase; letter-spacing:1px; margin-bottom:20px; }
.rank-buy{ width:100%; }

/* ---------- Dashboard: rank requests ---------- */
.request-row{
  display:flex; align-items:center; gap:14px; padding:12px 0;
  border-bottom:1px solid var(--border-soft);
}
.request-row:last-child{ border-bottom:none; }
.request-info{ flex:1; min-width:0; }
.request-actions{ display:flex; gap:8px; flex-shrink:0; }
.req-status{ font-size:12px; font-weight:700; margin-left:6px; }
.req-pending{ color:var(--laban-soft); }
.req-approved{ color:#7fe6ab; }
.req-rejected{ color:var(--red-soft); }
