/* ==========================================================================
   رعشة — design system (dark luxury, Arabic RTL first, no build step)
   ========================================================================== */

:root {
  --bg: #0b0b0f;
  --bg-2: #101016;
  --surface: #15151c;
  --surface-2: #1b1b24;
  --surface-3: #23232e;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --gold: #d4a64a;
  --gold-2: #f1cf86;
  --gold-3: #a87c2a;
  --gold-soft: rgba(212, 166, 74, .12);
  --rose: #e0456b;
  --rose-soft: rgba(224, 69, 107, .14);
  --green: #3fb97c;
  --green-soft: rgba(63, 185, 124, .13);
  --amber: #e7a53c;
  --text: #f1efe9;
  --text-2: #d6d3cb;
  --muted: #9a978f;
  --muted-2: #6f6c66;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --glow-gold: 0 8px 26px rgba(212, 166, 74, .28);
  --grad-gold: linear-gradient(135deg, #f4d58f 0%, #d4a64a 45%, #b0832f 100%);
  --grad-rose: linear-gradient(135deg, #ff6a8c 0%, #e0456b 55%, #b8294d 100%);
  --header-h: 68px;
  --font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-2: "Tajawal", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(212, 166, 74, .07), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(224, 69, 107, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
h3 { font-size: 1.08rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 10px; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2b2b36 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b2b36; border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 16px; }
.container-narrow { max-width: 860px; }
.container-tight { max-width: 520px; }
main { padding-block: 22px 40px; min-height: calc(100vh - var(--header-h) - 200px); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.gold { color: var(--gold); }
.rose { color: var(--rose); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.two-col { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 74, .45), transparent);
  opacity: .55;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; display: block; filter: drop-shadow(0 6px 16px rgba(212, 166, 74, .22)); }

.logo-text {
  font-size: 1.55rem; font-weight: 800; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo:hover .logo-text { filter: brightness(1.1); }
.nav-main { display: flex; align-items: center; gap: 2px; }
.nav-main a {
  padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav-main a:hover, .nav-main a.active { background: var(--surface-2); color: var(--text); }
.nav-main a.active { color: var(--gold-2); }

.search { position: relative; flex: 1; max-width: 460px; margin-inline: auto; }
.search input {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); padding-inline: 18px 48px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: rgba(212, 166, 74, .6); box-shadow: 0 0 0 4px rgba(212, 166, 74, .12); background: var(--surface-2); }
.search button {
  position: absolute; inset-inline-end: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; cursor: pointer;
}
.search button:hover { background: var(--gold); color: #1a1205; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2); position: relative;
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.icon-btn .dot {
  position: absolute; top: 6px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: .62rem; font-weight: 800; line-height: 16px; text-align: center;
}
.only-mobile { display: none !important; }
@media (max-width: 1080px) { .nav-main { display: none; } }
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  .header-inner { gap: 8px; }
  .search { display: none; position: absolute; inset-inline: 0; top: var(--header-h); max-width: none; padding: 10px 16px; background: rgba(11, 11, 15, .97); border-bottom: 1px solid var(--line); }
  .search.open { display: block; }
  .search button { top: 14px; inset-inline-end: 20px; }
  .logo-text { font-size: 1.35rem; }
  .logo-mark { width: 34px; height: 34px; }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- user menu / dropdown ---------- */
.dropdown { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-grid; place-items: center; font-weight: 800; color: #1a1205;
  background: var(--grad-gold); border: 2px solid rgba(255, 255, 255, .08);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: .8rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; border-width: 3px; }
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 240px; z-index: 80;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
  transform-origin: top left; animation: pop .16s var(--ease);
}
.dropdown.open .menu { display: block; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong { display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; text-align: start;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu svg { width: 18px; height: 18px; opacity: .8; }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- drawer (mobile nav) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); z-index: 95;
  background: var(--bg-2); border-inline-end: 1px solid var(--line-2); padding: 18px 14px 30px;
  transform: translateX(105%); transition: transform .28s var(--ease); overflow-y: auto;
}
[dir="ltr"] .drawer { transform: translateX(-105%); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer h4 { color: var(--muted); font-size: .78rem; font-weight: 700; margin: 18px 10px 8px; }
.drawer nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--text-2); }
.drawer nav a:hover { background: var(--surface); color: var(--text); }
.drawer .chips { padding-inline: 8px; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(13, 13, 18, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: .72rem; font-weight: 700; color: var(--muted);
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--gold-2); }
  .bottom-nav a.upload span.plus {
    width: 46px; height: 46px; margin-top: -22px; border-radius: 16px; display: grid; place-items: center;
    background: var(--grad-gold); color: #1a1205; box-shadow: var(--glow-gold); border: 3px solid var(--bg);
  }
  .bottom-nav a.upload { color: var(--gold-2); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.btn:hover { background: var(--surface-3); color: var(--text); border-color: rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--grad-gold); color: #1a1205; border-color: transparent; box-shadow: var(--glow-gold); }
.btn-gold:hover { color: #1a1205; filter: brightness(1.07); background: var(--grad-gold); box-shadow: 0 10px 30px rgba(212, 166, 74, .38); }
.btn-rose { background: var(--grad-rose); color: #fff; border-color: transparent; box-shadow: 0 8px 24px rgba(224, 69, 107, .25); }
.btn-rose:hover { color: #fff; filter: brightness(1.07); background: var(--grad-rose); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; border-color: rgba(212, 166, 74, .45); color: var(--gold-2); }
.btn-outline:hover { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold); }
.btn-danger { background: var(--rose-soft); border-color: rgba(224, 69, 107, .35); color: #ff8aa6; }
.btn-danger:hover { background: rgba(224, 69, 107, .25); color: #ffc0cf; }
.btn-success { background: var(--green-soft); border-color: rgba(63, 185, 124, .35); color: #7fe0ad; }
.btn-success:hover { background: rgba(63, 185, 124, .25); color: #b5f3d1; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.link { color: var(--gold); font-weight: 700; }
.link:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- cards & surfaces ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}
.card + .card { margin-top: 18px; }
.card-tight { padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-gold { border-color: rgba(212, 166, 74, .35); background: linear-gradient(160deg, rgba(212, 166, 74, .12), transparent 55%), var(--surface); }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a:hover { color: var(--gold-2); }

/* ---------- sections ---------- */
.section { margin-top: 34px; }
.section:first-child { margin-top: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--grad-gold); }
.section-head .more { color: var(--muted); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--gold-2); }

/* ---------- video grid & card ---------- */
.grid-videos { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
@media (max-width: 560px) { .grid-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } }
.vcard { position: relative; min-width: 0; }
.vcard-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #1b1b24, #121218); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.vcard-thumb img, .vcard-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.vcard-thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); }
.vcard-thumb .noimg svg { width: 40px; height: 40px; }
.vcard-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.vcard:hover .vcard-thumb img { transform: scale(1.05); }
.vcard:hover .vcard-thumb { border-color: rgba(212, 166, 74, .35); }
.vcard-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; background: rgba(11, 11, 15, .55); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; opacity: 0; transform: scale(.85); transition: .25s var(--ease); backdrop-filter: blur(4px);
}
.vcard:hover .play { opacity: 1; transform: none; }
.vbadge {
  position: absolute; z-index: 3; font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; line-height: 1.4;
  background: rgba(0, 0, 0, .72); color: #fff; backdrop-filter: blur(4px); letter-spacing: .2px;
}
.vbadge-duration { bottom: 8px; inset-inline-start: 8px; direction: ltr; }
.vbadge-quality { bottom: 8px; inset-inline-end: 8px; background: rgba(212, 166, 74, .9); color: #1a1205; }
.vbadge-promoted {
  top: 8px; inset-inline-start: 8px; background: var(--grad-gold); color: #1a1205; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 4px 14px rgba(212, 166, 74, .4);
}
.vbadge-promoted svg { width: 12px; height: 12px; }
.vcard-body { padding: 10px 2px 0; display: flex; gap: 10px; }
.vcard-body .avatar { margin-top: 2px; }
.vcard-info { min-width: 0; flex: 1; }
.vcard-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 700; font-size: .97rem; line-height: 1.55; color: var(--text);
}
.vcard-title:hover { color: var(--gold-2); }
.vcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.vcard-meta a:hover { color: var(--gold-2); }
.vcard-meta .verified { color: var(--gold); display: inline-flex; vertical-align: -2px; }
.vcard-meta .verified svg { width: 14px; height: 14px; }
.vcard.is-promoted .vcard-thumb { border-color: rgba(212, 166, 74, .55); box-shadow: 0 0 0 1px rgba(212, 166, 74, .25), 0 10px 28px rgba(212, 166, 74, .14); }

/* promoted row */
.promo-strip {
  position: relative; border-radius: var(--radius-lg); padding: 18px; border: 1px solid rgba(212, 166, 74, .28);
  background: radial-gradient(600px 200px at 90% 0%, rgba(212, 166, 74, .16), transparent 70%), linear-gradient(180deg, #17141095, #121216);
}
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.hscroll > * { scroll-snap-align: start; }
@media (max-width: 560px) { .hscroll { grid-auto-columns: 78%; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 30px; margin-bottom: 26px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(500px 240px at 10% 120%, rgba(224, 69, 107, .25), transparent 70%),
    radial-gradient(700px 300px at 100% -20%, rgba(212, 166, 74, .28), transparent 70%),
    linear-gradient(135deg, #17151a, #0f0f14);
}
.hero h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); margin-bottom: 8px; }
.hero h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); max-width: 620px; margin-bottom: 18px; }
@media (max-width: 560px) { .hero { padding: 24px 18px; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: .88rem;
  transition: .2s;
}
.chip:hover, .chip.active { border-color: rgba(212, 166, 74, .55); color: var(--gold-2); background: var(--gold-soft); }
.chip .count { color: var(--muted); font-size: .75rem; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chips-scroll .chip { flex-shrink: 0; }

/* gold banner (earn) */
.gold-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 28px 30px; border-radius: var(--radius-lg); color: #1a1205;
  background: linear-gradient(120deg, #f6dc9c 0%, #d4a64a 45%, #b0832f 100%);
  box-shadow: 0 18px 50px rgba(212, 166, 74, .25);
}
.gold-banner::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.gold-banner::after {
  content: ""; position: absolute; inset-inline-end: 120px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.gold-banner > * { position: relative; z-index: 1; }
.gold-banner .gb-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(26, 18, 5, .12); flex-shrink: 0; }
.gold-banner .gb-icon svg { width: 34px; height: 34px; }
.gold-banner h2 { margin: 0 0 4px; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
.gold-banner p { margin: 0; opacity: .85; font-weight: 600; }
.gold-banner .gb-text { flex: 1; min-width: 220px; }
.gold-banner .btn { background: #1a1205; color: var(--gold-2); border-color: transparent; box-shadow: none; }
.gold-banner .btn:hover { background: #000; color: #fff; }

/* welcome banner (dismissible) */
.welcome-banner {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; padding-inline-end: 52px;
  border-radius: var(--radius); border: 1px solid rgba(212, 166, 74, .5); margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(212, 166, 74, .22), rgba(212, 166, 74, .06) 60%), var(--surface);
  box-shadow: var(--glow-gold); animation: pop .3s var(--ease);
}
.welcome-banner .wb-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-gold); color: #1a1205; display: grid; place-items: center; flex-shrink: 0; }
.welcome-banner .wb-icon svg { width: 24px; height: 24px; }
.welcome-banner h3 { margin: 0 0 4px; color: var(--gold-2); }
.welcome-banner p { margin: 0 0 10px; color: var(--text-2); }
.welcome-banner .close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 10px;
  border: 0; background: rgba(0, 0, 0, .25); color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.welcome-banner .close:hover { background: rgba(0, 0, 0, .45); color: #fff; }
.welcome-banner.hiding { opacity: 0; transform: translateY(-6px); transition: .25s; }

/* ---------- alerts / flash ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px;
  border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: .94rem;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.alert .alert-close { margin-inline-start: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 2px 4px; }
.alert .alert-close:hover { opacity: 1; }
.alert ul { margin: 4px 0 0; padding-inline-start: 18px; font-weight: 500; }
.alert-success { background: var(--green-soft); border-color: rgba(63, 185, 124, .35); color: #9ff0c4; }
.alert-error { background: var(--rose-soft); border-color: rgba(224, 69, 107, .4); color: #ffb3c4; }
.alert-warning { background: rgba(231, 165, 60, .12); border-color: rgba(231, 165, 60, .4); color: #ffd28c; }
.alert-info { background: var(--gold-soft); border-color: rgba(212, 166, 74, .35); color: var(--gold-2); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; line-height: 1.7;
}
.badge-gold { background: var(--gold-soft); color: var(--gold-2); border-color: rgba(212, 166, 74, .4); }
.badge-rose { background: var(--rose-soft); color: #ff9db4; border-color: rgba(224, 69, 107, .4); }
.badge-green { background: var(--green-soft); color: #86e6b4; border-color: rgba(63, 185, 124, .4); }
.badge-amber { background: rgba(231, 165, 60, .13); color: #ffcf85; border-color: rgba(231, 165, 60, .4); }
.badge-muted { background: transparent; color: var(--muted); }
.badge svg { width: 13px; height: 13px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label, .label { font-weight: 700; font-size: .92rem; color: var(--text-2); }
.field .req { color: var(--rose); }
.input, .select, .textarea, .form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="date"], .form input[type="number"], .form input[type="url"], .form input[type="search"], .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea, .form textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus, .form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: rgba(212, 166, 74, .65); box-shadow: 0 0 0 4px rgba(212, 166, 74, .12); background: #0d0d13;
}
.form input[type="date"] { color-scheme: dark; }
.form select, .select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a978f' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
.input.is-invalid, .form .is-invalid { border-color: rgba(224, 69, 107, .7); }
.help { font-size: .83rem; color: var(--muted); }
.error-text { font-size: .84rem; color: #ff8aa6; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .93rem; color: var(--text-2); line-height: 1.6; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--grad-gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #1a1205; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check-box { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.file-drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px 16px; border-radius: 14px;
  border: 1.5px dashed rgba(212, 166, 74, .4); background: rgba(212, 166, 74, .04); color: var(--muted); cursor: pointer; transition: .2s;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-2); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { width: 30px; height: 30px; color: var(--gold); }
.file-drop .fname { font-weight: 700; color: var(--text); font-size: .9rem; word-break: break-all; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.pw-wrap .pw-toggle:hover { color: var(--gold-2); }
.inline-form { display: inline; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding-block: 24px 40px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card .card { padding: 30px 28px; }
.auth-title { text-align: center; margin-bottom: 22px; }
.auth-title .logo-mark { margin: 0 auto 14px; width: 54px; height: 54px; }
.auth-title h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-title p { color: var(--muted); margin: 0; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .93rem; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .82rem; margin: 6px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 800; background: rgba(255, 255, 255, .02); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; margin-bottom: 18px; width: fit-content; max-width: 100%; }
.tab { padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--gold-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.tab .n { font-size: .72rem; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.tab.active .n { background: var(--gold-soft); }

/* ---------- stats ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stat {
  position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.stat .k { color: var(--muted); font-size: .84rem; font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.stat .v small { font-size: .9rem; color: var(--muted); font-weight: 700; }
.stat.hot { border-color: rgba(224, 69, 107, .45); background: linear-gradient(160deg, rgba(224, 69, 107, .14), transparent 60%), var(--surface); }
.stat.hot .v { color: #ff9db4; }
.stat.gold { border-color: rgba(212, 166, 74, .4); background: linear-gradient(160deg, rgba(212, 166, 74, .14), transparent 60%), var(--surface); }
.stat.gold .v { color: var(--gold-2); }
a.stat:hover { border-color: rgba(212, 166, 74, .5); color: inherit; transform: translateY(-1px); transition: .2s; }

/* ---------- profile ---------- */
.profile-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 26px;
  background: radial-gradient(600px 220px at 100% 0%, rgba(212, 166, 74, .22), transparent 70%), radial-gradient(400px 200px at 0% 100%, rgba(224, 69, 107, .16), transparent 70%), var(--surface);
  padding: 28px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.profile-hero .info { flex: 1; min-width: 220px; }
.profile-hero h1 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-hero .handle { color: var(--muted); direction: ltr; display: inline-block; }
.profile-hero .bio { color: var(--text-2); margin: 10px 0 0; white-space: pre-line; }
.profile-stats { display: flex; gap: 22px; margin-top: 12px; }
.profile-stats div { font-size: .86rem; color: var(--muted); }
.profile-stats strong { display: block; font-size: 1.25rem; color: var(--text); }

/* status steps */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); font-weight: 800; border: 1px solid rgba(212, 166, 74, .35);
}
.step.done::before { content: "✓"; background: var(--green-soft); color: #86e6b4; border-color: rgba(63, 185, 124, .4); }
.step h4 { margin: 3px 0 2px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* notifications list */
.notes { display: grid; gap: 2px; }
.note { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.note:last-child { border-bottom: 0; }
.note .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--muted-2); flex-shrink: 0; }
.note.unread .dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.note time { color: var(--muted); font-size: .78rem; display: block; }

/* forum widget */
.thread-list { display: grid; }
.thread-item { display: flex; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.thread-item:last-child { border-bottom: 0; }
.thread-item .t-title { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .t-meta { color: var(--muted); font-size: .8rem; }
.thread-item .t-info { min-width: 0; flex: 1; }
.thread-item .t-replies { text-align: center; min-width: 54px; color: var(--muted); font-size: .74rem; }
.thread-item .t-replies strong { display: block; color: var(--gold-2); font-size: 1rem; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 46px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .01); }
.empty .e-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.empty .e-icon svg { width: 30px; height: 30px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 14px; max-width: 420px; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; color: var(--text-2); font-size: .92rem;
}
.pagination a:hover { border-color: rgba(212, 166, 74, .5); color: var(--gold-2); }
.pagination .active { background: var(--grad-gold); color: #1a1205; border-color: transparent; box-shadow: var(--glow-gold); }
.pagination .disabled { opacity: .4; }
.pagination .dots { border: 0; background: none; min-width: 20px; }

/* ---------- prose (static pages) ---------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.95; }
.prose h2 { color: var(--text); margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--gold-2); margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose a:not(.btn) { color: var(--gold); font-weight: 700; }
.prose a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.prose strong { color: var(--text); }
.prose .callout { padding: 16px 18px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(212, 166, 74, .3); color: var(--text); margin: 1.2em 0; }
.prose .callout.danger { background: var(--rose-soft); border-color: rgba(224, 69, 107, .35); }
.toc { position: sticky; top: calc(var(--header-h) + 16px); }
.toc a:not(.btn) { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.toc a:not(.btn):hover { color: var(--gold-2); background: var(--surface-2); }

/* feature tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile .t-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 12px; }
.tile .t-icon svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); margin: 0; font-size: .93rem; }
.big-number { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); font-weight: 800; line-height: 1.1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.admin-nav .an-title { font-size: .76rem; font-weight: 800; color: var(--gold); padding: 8px 12px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: .93rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active { background: var(--gold-soft); color: var(--gold-2); }
.admin-nav a svg { width: 18px; height: 18px; opacity: .85; }
.admin-nav .count { margin-inline-start: auto; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--rose); color: #fff; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .admin-nav .an-title { display: none; }
  .admin-nav a { white-space: nowrap; flex-shrink: 0; }
}
.doc-viewer { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.doc-viewer figure { margin: 0; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.doc-viewer figure img { width: 100%; max-height: 520px; object-fit: contain; background: #000; }
.doc-viewer figcaption { padding: 10px 12px; font-size: .86rem; color: var(--muted); background: var(--surface-2); display: flex; justify-content: space-between; gap: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; }
.player-admin { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
details.reject-box summary { cursor: pointer; list-style: none; }
details.reject-box summary::-webkit-details-marker { display: none; }
details.reject-box[open] { flex-basis: 100%; }
details.reject-box form { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); padding: 38px 0 28px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h4 { color: var(--text); font-size: .95rem; margin-bottom: 10px; }
.footer-grid a { display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: .82rem; }
.age-pill { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--rose); color: var(--rose); font-weight: 800; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- guest register bar + card ---------- */
.reg-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 65; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 44px; background: linear-gradient(90deg, rgba(21, 21, 28, .97), rgba(35, 28, 16, .97)); border-top: 1px solid rgba(212, 166, 74, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.reg-bar-link { color: var(--gold-2); font-weight: 800; font-size: .93rem; text-align: center; }
.reg-bar-link:hover { color: #fff; }
.reg-bar-x { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.reg-bar-x:hover { color: var(--text); border-color: var(--gold); }
body.has-reg-bar { padding-bottom: 52px; }
@media (max-width: 760px) {
  .reg-bar { bottom: calc(64px + env(safe-area-inset-bottom)); padding: 8px 42px 8px 12px; }
  .reg-bar-link { font-size: .84rem; }
  body.has-reg-bar { padding-bottom: 120px; }
}
.reg-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(212, 166, 74, .35); background: linear-gradient(160deg, rgba(212, 166, 74, .12), transparent 60%), var(--surface); }
.reg-card-text { display: grid; gap: 4px; flex: 1 1 320px; }
.reg-card-text strong { font-size: 1.05rem; color: var(--text); }
.reg-card-text span { color: var(--text-2); font-size: .92rem; }
.reg-card-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- contrast: dark text on every gold surface (WCAG AA) ---------- */
.btn-gold, .btn-gold:hover, .btn-gold:focus, a.btn-gold, a.btn-gold:hover,
.toc a.btn-gold, .prose a.btn-gold, .fr a.btn-gold, .card a.btn-gold,
a.vw-btn-gold, a.vw-btn-gold:hover, .vw-btn-gold:hover, a.promote-btn, a.promote-btn:hover,
.money a.m-btn:not(.m-btn-ghost), .money a.m-btn:not(.m-btn-ghost):hover,
.pagination .active, .search button:hover, .skip-link { color: #1a1206 !important; }
/* utilities for toasts */
.toast { position: fixed; bottom: 88px; inset-inline: 0; margin: auto; width: fit-content; max-width: 92vw; z-index: 250; padding: 11px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 700; animation: pop .2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* keep off-canvas drawer from creating sideways scroll on phones */
html, body { overflow-x: clip; }

