/* ============================================================
   ULTRA RP — main.css
   Thamanyah (Display + Text) · bold · modern · RTL Arabic + Latin
   ============================================================ */

/* ---- Thamanyah font faces (woff2 only, multiple weights) ---- */
@font-face { font-family: 'Thamanyah Display'; src: url('/fonts/thmanyahserifdisplay-Light.woff2')   format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Thamanyah Display'; src: url('/fonts/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thamanyah Display'; src: url('/fonts/thmanyahserifdisplay-Medium.woff2')  format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thamanyah Display'; src: url('/fonts/thmanyahserifdisplay-Bold.woff2')    format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thamanyah Display'; src: url('/fonts/thmanyahserifdisplay-Black.woff2')   format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Thamanyah Text'; src: url('/fonts/thmanyahseriftext-Light.woff2')   format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Thamanyah Text'; src: url('/fonts/thmanyahseriftext-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thamanyah Text'; src: url('/fonts/thmanyahseriftext-Medium.woff2')  format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thamanyah Text'; src: url('/fonts/thmanyahseriftext-Bold.woff2')    format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thamanyah Text'; src: url('/fonts/thmanyahseriftext-Black.woff2')   format('woff2'); font-weight: 900; font-display: swap; }

.expand-ar { word-spacing: .08em; letter-spacing: .005em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  background-image:
    linear-gradient(180deg,
      rgba(245,200,66,.04) 0%,
      transparent 30%,
      transparent 70%,
      rgba(31,184,255,.04) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--text);
  font-family: 'Thamanyah Text', 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "kern", "liga";
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}
body::before { display: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-l); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin: 0; }

/* numbers — Thamanyah Text, LTR isolated */
.num, [data-stat], .stat__val, .stat__max, .stat__sep,
.lb-row__rank, .lb-row__id, .lb-row__hours-val,
.status-card__count, .error-page__code {
  font-family: 'Thamanyah Text', system-ui, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

#bgfx { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35; }

#ultra-loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; gap: 16px;
  transition: opacity .6s ease;
}
#ultra-loader.hide { opacity: 0; pointer-events: none; }
#ultra-loader p { color: var(--muted); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700; font-size: 15px;
  font-family: inherit;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer; text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.1px;
  line-height: 1.2;
}
.btn > svg {
  display: block;
  flex-shrink: 0;
  width: 1.15em; height: 1.15em;
}
.btn > span { display: inline-block; }
.btn--lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn--primary {
  background: var(--grad-brand);
  color: #06070d;
  box-shadow: 0 4px 14px rgba(245,200,66,.25), 0 4px 14px rgba(31,184,255,.18);
  font-weight: 800;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,200,66,.4), 0 10px 28px rgba(31,184,255,.3);
  color: #06070d;
}
.btn--ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(245,200,66,.4);
  transform: translateY(-2px);
  color: var(--gold);
}
.btn--accent {
  background: rgba(31,184,255,.15);
  border: 1px solid rgba(31,184,255,.4);
  color: var(--blue);
}
.btn--accent:hover { background: rgba(31,184,255,.25); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0;
  background: rgba(6,7,13,.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 100;
}
.nav__wrap {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 19px;
  color: var(--text);
  letter-spacing: -.3px;
}
.nav__brand:hover { color: var(--gold); }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.nav__links {
  display: flex; gap: 4px; align-items: center;
  flex: 1; justify-content: center;
}
.nav__links a {
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.nav__links a:hover { color: var(--gold); background: rgba(255,255,255,.04); }
.nav__links a.active {
  color: var(--gold);
  background: rgba(245,200,66,.1);
  font-weight: 700;
}
.nav__store { display: inline-flex; align-items: center; gap: 4px; }
.nav__store svg { opacity: .7; }
.nav__user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
}
.nav__user:hover {
  background: rgba(245,200,66,.1);
  border-color: rgba(245,200,66,.3);
  color: var(--gold);
}
.nav__user img { border-radius: 50%; }
.nav__burger {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.1);
  color: var(--text); padding: 8px;
  border-radius: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0;
  overflow: hidden;
}
/* glow orbs / grid removed — they created a visible boundary at hero edge.
   Background now flows from <body> uninterrupted across all sections. */
.hero__glow, .hero__grid { display: none; }
.hero__inner { text-align: center; position: relative; z-index: 2; }

/* LOGO — plain transparent PNG, no mask */
.hero__logo { display: flex; justify-content: center; margin-bottom: 8px; }
.hero__logo img {
  width: 160px; height: 160px;
  filter: drop-shadow(0 0 40px rgba(245,200,66,.5)) drop-shadow(0 0 60px rgba(31,184,255,.4));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  margin: 18px 0 12px;
  line-height: 1;
  letter-spacing: -3px;
}
.hero__tag {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 500;
}
.hero__ctas {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Stats — one row for val/sep/max, no broken vertical stacking */
.hero__stats {
  display: flex; gap: 0;
  justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 28px 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  max-width: 920px;
  margin: 0 auto;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 200px;
  padding: 8px 30px;
  position: relative;
}
.stat + .stat { border-right: 1px solid rgba(255,255,255,.08); }
.stat__row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.stat__val {
  font-size: 56px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -2px;
}
.stat__sep {
  font-size: 42px;
  color: var(--muted);
  opacity: .4;
  font-weight: 700;
  -webkit-text-fill-color: var(--muted);
}
.stat__max {
  font-size: 42px; font-weight: 700;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.stat__lbl {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
/* scroll indicator removed — was overlapping with stats card */
.hero__scroll { display: none; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; position: relative; }
.section--alt { background: transparent; }
.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px;
  background: rgba(245,200,66,.1);
  color: var(--gold);
  border: 1px solid rgba(245,200,66,.25);
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #fff, #a8acba);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 500;
}
.section__cta { text-align: center; margin-top: 50px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.feature {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s;
}
.feature:hover {
  border-color: rgba(245,200,66,.25);
  transform: translateY(-6px);
  background: rgba(255,255,255,.04);
}
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(245,200,66,.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all .3s;
}
.feature:nth-child(even) .feature__icon {
  background: rgba(31,184,255,.1);
  color: var(--blue);
}
.feature:hover .feature__icon { transform: scale(1.1) rotate(-5deg); }
.feature h3 {
  font-size: 20px; font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.4px;
}
.feature p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.staff-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 30px 20px 24px;
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.staff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(245,200,66,.08), transparent);
  pointer-events: none;
}
.staff-card:hover {
  border-color: rgba(245,200,66,.3);
  transform: translateY(-6px);
  background: rgba(255,255,255,.04);
}
/* CLEAN solid gold ring around avatar */
.staff-card__avatar-wrap {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  position: relative;
  border-radius: 50%;
  z-index: 1;
}
.staff-card__avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 0;
}
.staff-card__avatar {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.staff-card__name {
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: -.3px;
  position: relative;
}
.staff-card__role {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
}
.staff-cat { margin: 50px 0 24px; text-align: center; }
.staff-cat:first-child { margin-top: 0; }
.staff-cat__title { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.4px; }
.staff-cat__desc { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ---------- Page heading ---------- */
.page-head { padding: 80px 0 40px; text-align: center; position: relative; }
.page-head__title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  margin: 20px 0 14px;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #fff, #a8acba);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head__sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 500;
}

/* ---------- Rules ---------- */
.rules-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.rules-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px;
}
.rules-tab {
  background: transparent;
  border: none;
  text-align: right;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: all .2s;
  cursor: pointer;
  position: relative;
}
.rules-tab:hover { background: rgba(255,255,255,.04); color: var(--gold); }
.rules-tab.active { background: rgba(245,200,66,.1); color: var(--gold); font-weight: 800; }
.rules-tab.active::before {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.rules-main {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 36px 38px;
  min-height: 400px;
}
.rules-panel { display: none; animation: fadeIn .4s ease; }
.rules-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.rules-panel h2 {
  font-size: 28px; font-weight: 900;
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 14px;
  letter-spacing: -.6px;
}
.rule-num {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  flex-shrink: 0;
}
.rules-panel ul { display: flex; flex-direction: column; gap: 14px; }
.rules-panel li {
  position: relative;
  padding-right: 24px;
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;
  font-weight: 500;
}
.rules-panel li::before {
  content: '';
  position: absolute;
  right: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.rules-panel strong { color: var(--gold); font-weight: 800; }
.rules-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; font-weight: 500; }

/* ---------- Apply form ---------- */
.apply-locked {
  text-align: center;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 60px 30px;
  max-width: 480px;
  margin: 0 auto;
}
.apply-locked svg { color: var(--gold); margin: 0 auto 20px; }
.apply-locked h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.apply-locked p { color: var(--muted); margin: 0 0 24px; font-weight: 500; }
.apply-form {
  max-width: 720px; margin: 0 auto;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 36px;
}
.apply-form__head { margin-bottom: 30px; text-align: center; }
.apply-form__head h2 { font-size: 26px; font-weight: 900; margin: 0 0 8px; letter-spacing: -.5px; }
.apply-form__head p { color: var(--muted); margin: 0; font-weight: 500; }
.field {
  margin-bottom: 22px;
  opacity: 0; transform: translateY(10px);
  animation: fieldIn .5s ease forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes fieldIn { to { opacity: 1; transform: translateY(0); } }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700; font-size: 14px;
  color: var(--text);
}
.req { color: var(--gold); }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(245,200,66,.12);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.3); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a0a3b0' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}
.field select option { background: #11131c; color: var(--text); padding: 10px; }
.apply-form__foot {
  margin-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-msg { font-size: 14px; font-weight: 700; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--danger); }

/* ---------- Leaderboard ---------- */
.lb-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 26px;
  max-width: 900px; margin: 0 auto;
}
.lb-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 14px;
  flex-wrap: wrap;
}
.lb-card__title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--gold); }
.lb-table { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px 18px;
  transition: all .25s;
  opacity: 0; transform: translateX(-20px);
  animation: rowIn .4s ease forwards;
}
@keyframes rowIn { to { opacity: 1; transform: translateX(0); } }
.lb-row:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(245,200,66,.2);
  transform: translateX(-4px);
}
.lb-row__rank { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--muted); }
.lb-row--top1 .lb-row__rank { color: #f5c842; }
.lb-row--top2 .lb-row__rank { color: #c0c0c0; }
.lb-row--top3 .lb-row__rank { color: #cd7f32; }
.lb-row--top1 { border-color: rgba(245,200,66,.3); background: rgba(245,200,66,.06); }
.lb-row__player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-row__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  object-fit: cover;
}
.lb-row__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row__id { font-size: 12px; color: var(--muted); }
.lb-row__hours { display: flex; flex-direction: column; align-items: flex-start; }
.lb-row__hours-val {
  font-size: 24px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.lb-row__hours-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.lb-empty { text-align: center; color: var(--muted); padding: 40px; font-weight: 500; }

/* ---------- Status card — fixed layout ---------- */
.status-card {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 22px 26px;
  flex-wrap: wrap;
}
.status-card__brand {
  display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 240px;
}
.status-card__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(138,141,155,.15);
  transition: all .3s;
  flex-shrink: 0;
}
.status-card__dot.online {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74,222,128,.2), 0 0 20px rgba(74,222,128,.5);
}
.status-card__info h3 {
  margin: 0 0 4px;
  font-size: 20px; font-weight: 800;
  letter-spacing: -.3px;
}
.status-card__info p { margin: 0; color: var(--muted); font-weight: 500; }
.status-card__count {
  font-size: 32px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  padding: 0 8px;
}
.status-card__count small {
  font-size: 13px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-right: 6px;
  font-weight: 600;
}

/* ---------- Auth ---------- */
.auth { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth__card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  max-width: 440px; width: 100%;
}
.auth__card img { margin: 0 auto 20px; border-radius: 50%; }
.auth__card h1 { font-size: 32px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.7px; }
.auth__card p { color: var(--muted); margin: 0 0 30px; line-height: 1.7; font-weight: 500; }
.auth__note { display: block; color: var(--muted); margin-top: 20px; font-size: 12px; font-weight: 500; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; gap: 20px; margin-bottom: 20px; }
.dash-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
}
.dash-card__banner { height: 100px; background-size: cover; background-position: center; }
.dash-card__banner--gradient { background: var(--grad-brand); }
.dash-card__inner { padding: 24px; }
.dash-card__avatar {
  border-radius: 50%;
  border: 4px solid var(--panel);
  margin: -60px 0 14px;
  background: var(--bg);
  object-fit: cover;
}
.dash-card__inner h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.dash-card__inner h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.dash-card__roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.role-pill {
  display: inline-block;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-card--wide { grid-column: 1 / -1; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dash-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.dash-table td { font-weight: 500; }
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.status--pending  { background: rgba(251,146,60,.15); color: #fb923c; }
.status--approved { background: rgba(74,222,128,.15); color: var(--success); }
.status--rejected { background: rgba(255,77,109,.15); color: var(--danger); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.admin-side {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 16px;
  height: fit-content;
  position: sticky; top: 90px;
}
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-tab {
  background: transparent; border: none;
  text-align: right; padding: 10px 14px;
  color: var(--text); border-radius: 10px;
  font-weight: 600; font-family: inherit;
  transition: all .2s;
}
.admin-tab:hover { background: rgba(255,255,255,.04); }
.admin-tab.active { background: rgba(245,200,66,.1); color: var(--gold); font-weight: 800; }
.admin-main {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 30px;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h2 { margin: 0 0 20px; font-weight: 800; }
.admin-panel input, .admin-panel textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ---------- Error page ---------- */
.error-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.error-page__code {
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -5px;
}
.error-page h2 { font-size: 26px; margin: 0 0 12px; font-weight: 800; }
.error-page p { color: var(--muted); margin: 0 0 30px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 60px 0 30px;
  margin-top: 60px;
  position: relative; z-index: 1;
}
.footer__wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer__brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer__brand div { display: flex; flex-direction: column; }
.footer__brand strong { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.footer__brand span { color: var(--muted); font-size: 13px; margin-top: 2px; font-weight: 500; }
.footer__col h4 { font-size: 15px; font-weight: 800; margin: 0 0 16px; color: var(--gold); letter-spacing: .3px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer__col ul a:hover { color: var(--text); }
.footer__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  color: var(--muted);
  transition: all .25s;
  flex-shrink: 0;
}
.footer__socials a svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer__socials a:hover {
  background: rgba(245,200,66,.12);
  border-color: rgba(245,200,66,.35);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer__sig {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap;
  direction: ltr;
}
.footer__sig svg { color: #ff5577; animation: heartBeat 1.6s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(1); }
}
.footer__sig-link {
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity .2s;
}
.footer__sig-link:hover { opacity: .8; }

/* ---------- Scroll reveal — multiple variants ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1) translateX(0); filter: blur(0); }

.reveal--left  { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px);  }
.reveal--scale { transform: scale(.85); }
.reveal--blur  { filter: blur(12px); transform: translateY(20px); }
.reveal--fade  { transform: none; }

[data-delay] { --reveal-delay: 0ms; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: fixed;
    top: 64px; right: 0; left: 0;
    background: rgba(6,7,13,.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav__links.open { max-height: 500px; padding: 20px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 10px 14px; }
  .nav__right { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }
  .rules-tab { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
  .rules-tab.active::before { display: none; }
  .footer__wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero__stats { padding: 20px; }
  .stat { min-width: 140px; padding: 8px 16px; }
  .stat + .stat { border-right: 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin-top: 10px; }
  .stat__val { font-size: 42px; }
  .stat__max, .stat__sep { font-size: 30px; }
  .status-card { gap: 16px; padding: 18px; }
  .status-card__brand { min-width: 180px; }
  .status-card__count { font-size: 26px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-direction: column; gap: 0; padding: 18px; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; padding-top: 18px; }
  .footer__wrap { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 50px 1fr auto; padding: 10px 14px; gap: 10px; }
  .lb-row__avatar { width: 36px; height: 36px; }
  .lb-row__hours-val { font-size: 20px; }
  .apply-form { padding: 24px; }
  .rules-main { padding: 24px; }
  .status-card { flex-direction: column; align-items: stretch; text-align: center; }
  .status-card__brand { justify-content: center; }
  .status-card__count { text-align: center; }
  .hero__logo-mask { width: 130px; height: 130px; }
}

/* ---------- Discord CTA + widget ---------- */
.discord-cta {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 40px;
}
.discord-cta__text .eyebrow { margin-bottom: 16px; }
.discord-cta__text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -.8px;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff, #a8acba);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.discord-cta__text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 24px;
  font-weight: 500;
}
.discord-cta__widget {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
}
.discord-cta__widget iframe { display: block; border: 0; width: 100%; height: 500px; }
@media (max-width: 900px) {
  .discord-cta { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .discord-cta__widget iframe { height: 420px; }
}

/* ---------- Global icon alignment ---------- */
.btn svg, .nav__store svg, .footer__socials svg, .lb-card__title svg, .feature__icon svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Server Widget (CFX-style) ---------- */
.server-widget {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 32px;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.server-widget__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 14px;
  flex-wrap: wrap;
}
.server-widget__name {
  display: flex; align-items: center; gap: 14px;
}
.server-widget__name h3 {
  font-size: 22px; font-weight: 800; margin: 0;
  letter-spacing: -.4px;
}
.srv-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(138,141,155,.15);
  flex-shrink: 0;
}
.srv-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74,222,128,.2), 0 0 20px rgba(74,222,128,.5);
  animation: srvPulse 2s ease-in-out infinite;
}
@keyframes srvPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.2), 0 0 20px rgba(74,222,128,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,.15), 0 0 30px rgba(74,222,128,.7); }
}
.server-widget__badge {
  background: rgba(245,200,66,.1);
  color: var(--gold);
  border: 1px solid rgba(245,200,66,.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.server-widget__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.srv-stat {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
}
.srv-stat__val {
  font-size: 26px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.srv-stat__val--text { font-size: 17px; letter-spacing: -.2px; }
.srv-stat__lbl {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.server-widget__players-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.server-widget__players-head h4 {
  font-size: 17px; font-weight: 800; margin: 0;
  letter-spacing: -.3px;
}
.server-widget__players-head span {
  background: rgba(245,200,66,.1);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.players-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-left: 4px;
}
.players-list::-webkit-scrollbar { width: 6px; }
.players-list::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 3px; }
.players-list::-webkit-scrollbar-thumb { background: rgba(245,200,66,.3); border-radius: 3px; }
.player-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all .2s;
}
.player-item:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(245,200,66,.2);
}
.player-id {
  font-family: 'Thamanyah Text', monospace;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  min-width: 32px;
  direction: ltr;
}
.player-name {
  font-weight: 600; font-size: 14px;
  flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-ping {
  font-family: 'Thamanyah Text', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  direction: ltr;
}
.player-ping.good { background: rgba(74,222,128,.15); color: var(--success); }
.player-ping.mid  { background: rgba(251,146,60,.15); color: #fb923c; }
.player-ping.bad  { background: rgba(255,77,109,.15); color: var(--danger); }
.players-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-weight: 500;
  font-size: 14px;
  grid-column: 1 / -1;
}
.server-widget__cta { justify-content: center; align-self: stretch; }

@media (max-width: 700px) {
  .server-widget { padding: 20px; }
  .server-widget__grid { grid-template-columns: repeat(2, 1fr); }
  .srv-stat__val { font-size: 22px; }
  .srv-stat__val--text { font-size: 15px; }
}

/* ---------- Dashboard tiles & meta ---------- */
.dash-stack { display: flex; flex-direction: column; gap: 20px; }
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dash-tile {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .25s;
}
.dash-tile:hover { border-color: rgba(245,200,66,.25); transform: translateY(-3px); background: rgba(255,255,255,.04); }
.dash-tile__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245,200,66,.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.dash-tile:nth-child(even) .dash-tile__icon { background: rgba(31,184,255,.1); color: var(--blue); }
.dash-tile__val {
  font-size: 30px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -1px;
}
.dash-tile__lbl { color: var(--muted); font-size: 13px; font-weight: 600; }

.dash-card__handle { margin: -8px 0 14px; font-size: 13px; }
.dash-meta {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.dash-meta__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.dash-meta__lbl { color: var(--muted); font-weight: 500; }
.dash-meta__val { font-weight: 700; }
.dash-meta__val.on  { color: var(--success); }
.dash-meta__val.off { color: var(--danger); }

@media (max-width: 700px) {
  .dash-tiles { grid-template-columns: 1fr 1fr; }
}

/* ---------- Admin dashboard upgrades ---------- */
.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px;
}
.admin-stat-card__lbl { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.admin-stat-card__val {
  font-size: 28px; font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.admin-stat-card__delta { font-size: 12px; color: var(--success); margin-top: 4px; font-weight: 600; }

/* ---------- Admin app rows / log rows ---------- */
.app-row {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
}
.app-row__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.app-row__answers { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d4d6dd; margin-bottom: 14px; }
.app-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn.active { background: rgba(245,200,66,.12); color: var(--gold); border-color: rgba(245,200,66,.3); }

.user-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.ann-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
}

.log-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
}
.log-row:hover { background: rgba(255,255,255,.04); }
.log-type {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Thamanyah Text', monospace;
  background: rgba(31,184,255,.15);
  color: var(--blue);
}
.log-type--login { background: rgba(74,222,128,.15); color: var(--success); }
.log-type--application { background: rgba(245,200,66,.15); color: var(--gold); }
.log-type--logout { background: rgba(138,141,155,.15); color: var(--muted); }
.log-filter.active { background: rgba(245,200,66,.12); color: var(--gold); border-color: rgba(245,200,66,.3); }

/* ---------- Server widget hero (icon + banner) ---------- */
.server-widget__hero {
  margin: -32px -32px 0;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  position: relative;
}
.server-widget__banner {
  height: 160px;
  background: linear-gradient(135deg, rgba(245,200,66,.18), rgba(31,184,255,.18));
  background-size: cover;
  background-position: center;
}
.server-widget__banner.has-image { background-color: transparent; }
.server-widget__hero-bar {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 0 24px 18px;
  margin-top: -50px;
  position: relative;
  flex-wrap: wrap;
}
.server-widget__icon {
  width: 88px; height: 88px;
  border-radius: 18px;
  border: 4px solid var(--panel);
  background: var(--bg);
  object-fit: cover;
  flex-shrink: 0;
  z-index: 1;
}
.server-widget__hero-text {
  flex: 1; min-width: 0; padding-bottom: 4px;
}
.server-widget__hero-text h3 {
  margin: 0 0 4px; font-size: 24px; font-weight: 900;
  letter-spacing: -.5px;
}
.server-widget__hero-text p {
  margin: 0; font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.server-widget__hero-status {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  color: var(--gold);
  align-self: center;
}

/* ---------- Resources list ---------- */
.server-widget__resources {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 14px;
  overflow: hidden;
}
.server-widget__resources summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font-weight: 700; font-size: 15px;
  transition: background .2s;
}
.server-widget__resources summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.server-widget__resources summary > span:nth-child(2) { margin-inline-start: auto; padding: 4px 12px; background: rgba(245,200,66,.1); border-radius: 8px; font-size: 13px; color: var(--gold); }
.server-widget__resources summary::-webkit-details-marker { display: none; }
.server-widget__resources summary:hover { background: rgba(255,255,255,.03); }
.server-widget__resources summary::after {
  content: '▾';
  color: var(--gold);
  font-size: 16px;
  transition: transform .25s;
  margin-inline-start: auto;
}
.server-widget__resources[open] summary::after { transform: rotate(180deg); }
.resources-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 18px;
  max-height: 280px;
  overflow-y: auto;
}
.resources-list::-webkit-scrollbar { width: 6px; }
.resources-list::-webkit-scrollbar-thumb { background: rgba(245,200,66,.3); border-radius: 3px; }
.resource-chip {
  display: inline-block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Thamanyah Text', monospace;
  direction: ltr;
  transition: all .15s;
}
.resource-chip:hover { color: var(--gold); border-color: rgba(245,200,66,.25); background: rgba(245,200,66,.06); }
.resources-empty { color: var(--muted); padding: 14px; text-align: center; font-size: 13px; }

@media (max-width: 700px) {
  .server-widget__hero { margin: -20px -20px 0; }
  .server-widget__icon { width: 64px; height: 64px; }
  .server-widget__hero-text h3 { font-size: 18px; }
}

/* ---------- Thamanyah Display for headings, Text for EVERYTHING ELSE ---------- */
*, *::before, *::after {
  font-family: 'Thamanyah Text', 'Inter', 'Tajawal', system-ui, -apple-system, sans-serif;
}
button, input, textarea, select, optgroup, code, kbd, samp, pre,
.eyebrow, .btn, .btn > *, .player-id, .player-ping, .resource-chip,
.lb-row__rank, .lb-row__hours-val, .admin-stat-card__val, .dash-tile__val,
.stat-card__val, .lb-row__hours-lbl, .srv-stat__val, .srv-stat__lbl,
.role-pill, .status, .tab-badge, .nav__user, .nav__user *,
.feature__desc, .muted, .stat__val, .stat__max, .stat__sep,
input::placeholder, textarea::placeholder {
  font-family: 'Thamanyah Text', 'Inter', 'Tajawal', system-ui, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.hero__title, .page-head__title, .section__title, .feature__title,
.staff-tier__title, .rules-section__title, .not-found__num,
.rules-card h3, .staff-card__name, .admin-content__title,
.admin-sidebar__brand-text, .profile-hero__name, .srv-stat__val,
.dash-tile__val, .admin-stat-card__val, .lb-row__hours-val {
  font-family: 'Thamanyah Display', 'Inter', 'Tajawal', system-ui, sans-serif;
  font-weight: 800;
}

/* ---------- Admin tabs upgraded ---------- */
.admin-tab {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  text-align: right;
  transition: all .2s;
  font-family: inherit;
  margin-bottom: 4px;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,.03); }
.admin-tab.active {
  background: rgba(245,200,66,.08);
  color: var(--gold);
  border-color: rgba(245,200,66,.25);
}
.admin-tab svg { flex-shrink: 0; }
.admin-tab span { flex: 1; min-width: 0; }
.tab-badge {
  display: none;
  background: var(--danger);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Thamanyah Text', 'Inter', monospace;
  min-width: 22px;
  align-items: center;
  justify-content: center;
}

/* approve/deny/interview button color tweaks for clarity */
.action-approve { background: linear-gradient(135deg, #4ade80, #22c55e); color: #06070d; box-shadow: 0 3px 12px rgba(74,222,128,.25); }
.action-approve:hover { transform: translateY(-2px); }
.action-deny { background: rgba(255,77,109,.15); border-color: rgba(255,77,109,.3); color: var(--danger); }
.action-deny:hover { background: rgba(255,77,109,.2); }
.action-interview { background: rgba(31,184,255,.15); border-color: rgba(31,184,255,.3); color: var(--blue); }
.action-interview:hover { background: rgba(31,184,255,.2); }

/* ---------- Leaderboard tabs ---------- */
.lb-tabs {
  display: flex; gap: 6px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.lb-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1;
  min-width: max-content;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.lb-tab:hover { color: var(--text); }
.lb-tab.active {
  background: var(--grad-brand);
  color: #06070d;
  box-shadow: 0 4px 14px rgba(245,200,66,.2);
}
.lb-tab svg { flex-shrink: 0; }
.lb-panel { display: none; }
.lb-panel.active { display: block; }
.lb-note { margin-bottom: 16px; font-size: 14px; }

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 40px 24px 60px;
  max-width: 580px;
  margin: 0 auto;
}
.not-found__logo {
  width: 120px; height: 120px;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(245,200,66,.18));
}
.not-found__num {
  font-family: 'Thamanyah Display', 'Inter', sans-serif;
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.not-found__title { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.not-found__sub { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 480px; margin: 0 auto; }
.not-found__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.nf-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.nf-link:hover {
  background: rgba(245,200,66,.06);
  border-color: rgba(245,200,66,.25);
  color: var(--gold);
  transform: translateY(-2px);
}
.nf-link svg { color: var(--muted); flex-shrink: 0; }
.nf-link:hover svg { color: var(--gold); }

@media (max-width: 500px) {
  .not-found__num { font-size: 90px; letter-spacing: -4px; }
  .not-found__title { font-size: 22px; }
}

/* ---------- Profile hero (dashboard) ---------- */
.profile-hero {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  overflow: hidden;
}
.profile-hero__banner {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.profile-hero__banner--grad {
  background: linear-gradient(135deg, rgba(245,200,66,.4), rgba(31,184,255,.4), rgba(245,200,66,.2));
}
.profile-hero__body {
  display: flex; align-items: flex-end; gap: 20px;
  padding: 0 28px 24px;
  margin-top: -64px;
  position: relative;
  flex-wrap: wrap;
}
.profile-hero__avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 5px solid var(--panel);
  background: var(--bg);
  object-fit: cover;
  flex-shrink: 0;
  z-index: 1;
}
.profile-hero__info { flex: 1; min-width: 0; padding-bottom: 8px; }
.profile-hero__name { font-size: 28px; font-weight: 800; margin: 0; line-height: 1.2; }
.profile-hero__handle { margin: 4px 0 12px; font-size: 14px; }
.profile-hero__roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--c, #1fb8ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #1fb8ff) 35%, transparent);
  color: var(--c, #1fb8ff);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.role-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c, #1fb8ff);
  box-shadow: 0 0 8px var(--c, #1fb8ff);
}
.profile-hero__guild {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
  align-self: center;
}
.profile-hero__guild-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.profile-hero__guild-status--on {
  background: rgba(74,222,128,.12);
  color: var(--success);
  border: 1px solid rgba(74,222,128,.25);
}
.profile-hero__guild-status--off {
  background: rgba(255,77,109,.12);
  color: var(--danger);
  border: 1px solid rgba(255,77,109,.25);
}
.profile-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 20px 28px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.04);
}
.profile-hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.profile-hero__meta-lbl {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.profile-hero__meta-val { color: var(--text); font-weight: 600; font-size: 14px; }

@media (max-width: 700px) {
  .profile-hero__body { gap: 14px; padding: 0 18px 18px; }
  .profile-hero__avatar { width: 96px; height: 96px; }
  .profile-hero__name { font-size: 22px; }
  .profile-hero__meta { padding: 16px 18px; }
}

/* ---------- Rules page ---------- */
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.rules-side { position: sticky; top: 90px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 14px; }
.rules-side nav { display: flex; flex-direction: column; gap: 4px; }
.rules-side__link {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.rules-side__link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.rules-side__link.active { background: rgba(245,200,66,.1); color: var(--gold); border: 1px solid rgba(245,200,66,.2); }
.rules-content { display: flex; flex-direction: column; gap: 60px; }
.rules-section { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 36px; scroll-margin-top: 90px; }
.rules-section__title { font-family: 'Thamanyah Display'; font-size: 28px; font-weight: 900; margin: 0 0 26px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.5px; }
.rules-subtitle { font-family: 'Thamanyah Display'; font-size: 18px; font-weight: 800; margin: 26px 0 14px; color: var(--gold); padding-bottom: 8px; border-bottom: 1px solid rgba(245,200,66,.15); }
.rules-subtitle:first-of-type { margin-top: 0; }
.rules-list { padding-inline-start: 22px; margin: 0; counter-reset: rule; list-style: none; }
.rules-list > li { position: relative; padding: 12px 36px 12px 0; line-height: 1.8; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.04); counter-increment: rule; }
.rules-list > li:last-child { border-bottom: none; }
.rules-list > li::before { content: counter(rule); position: absolute; right: 0; top: 13px; background: rgba(245,200,66,.1); color: var(--gold); width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: 'Thamanyah Text'; direction: ltr; }
.rules-list--unordered { padding-inline-start: 0; counter-reset: none; }
.rules-list--unordered > li { padding-right: 0; }
.rules-list--unordered > li::before { display: none; }
.rules-warning { margin-top: 26px; padding: 16px 20px; background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.25); border-radius: 12px; color: #ff8aa0; font-weight: 600; font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-side { position: static; }
  .rules-side nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .rules-side__link { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- Staff tiers (hierarchical hero) ---------- */
.staff-tier { margin-bottom: 80px; }
.staff-tier__head { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.staff-tier__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,200,66,.3), transparent); }
.staff-tier__label { text-align: center; }
.staff-tier__title { font-family: 'Thamanyah Display'; font-size: 28px; font-weight: 900; margin: 0; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.5px; }
.staff-tier__desc { color: var(--muted); font-size: 13px; margin: 4px 0 0; font-weight: 500; }
.staff-tier__grid { display: grid; gap: 18px; }

/* Top tier (Server Owners) — PODIUM: #2 right, #1 center elevated, #3 left */
.tier--top .staff-tier__grid {
  grid-template-areas: "second first third";
  grid-template-columns: 1fr 1.1fr 1fr;
  max-width: 760px;
  margin: 0 auto;
  align-items: end;
}
.tier--top .staff-card:nth-child(1) { grid-area: first;  transform: translateY(-12px); }
.tier--top .staff-card:nth-child(2) { grid-area: second; }
.tier--top .staff-card:nth-child(3) { grid-area: third; }
.tier--top .staff-tier__title      { font-size: 28px; }

/* Founders row (4 across) */
.tier--founders .staff-tier__grid  { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 880px; margin: 0 auto; }
.tier--admin .staff-tier__grid     { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 880px; margin: 0 auto; }
.tier--standard .staff-tier__grid  { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-width: 880px; margin: 0 auto; }

.staff-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 20px 16px; text-align: center; transition: all .3s; position: relative; }
.staff-card:hover { transform: translateY(-4px); border-color: rgba(245,200,66,.3); background: rgba(245,200,66,.04); }
.staff-card__avatar-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 12px; }
.staff-card__avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-brand) border-box; }
.staff-card__name { font-family: 'Thamanyah Display'; font-weight: 800; font-size: 14px; margin-bottom: 4px; letter-spacing: -.3px; }
.staff-card__role { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .3px; }

/* Top tier card — slightly bigger */
.staff-card--top { padding: 24px 18px; border: 2px solid rgba(245,200,66,.25); background: linear-gradient(180deg, rgba(245,200,66,.06), rgba(31,184,255,.04)); box-shadow: 0 12px 40px rgba(245,200,66,.12); }
.staff-card--top .staff-card__avatar-wrap { width: 92px; height: 92px; margin-bottom: 14px; }
.staff-card--top .staff-card__name { font-size: 16px; }
.staff-card--top .staff-card__role { font-size: 12px; }

/* The CENTER card (rank #1) — biggest */
.tier--top .staff-card:nth-child(1) { padding: 28px 20px; border-width: 2px; box-shadow: 0 16px 48px rgba(245,200,66,.18); }
.tier--top .staff-card:nth-child(1) .staff-card__avatar-wrap { width: 108px; height: 108px; }
.tier--top .staff-card:nth-child(1) .staff-card__name { font-size: 18px; }

/* Founders cards */
.staff-card--founders { padding: 18px 14px; }
.staff-card--founders .staff-card__avatar-wrap { width: 80px; height: 80px; }
.staff-card--founders .staff-card__name { font-size: 14px; }

.staff-card--standard .staff-card__avatar-wrap { width: 60px; height: 60px; }
.staff-card--standard .staff-card__name { font-size: 13px; }
.staff-card--standard .staff-card__role { font-size: 10px; }

@media (max-width: 700px) {
  .staff-tier__title { font-size: 22px !important; }
  .tier--top .staff-tier__grid { grid-template-areas: "first" "second" "third"; grid-template-columns: 1fr; }
  .tier--top .staff-card:nth-child(1) { transform: none; }
}

/* ---------- Rules index cards ---------- */
.rules-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.rules-card {
  display: block;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.rules-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.rules-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,200,66,.3);
  box-shadow: 0 12px 32px rgba(245,200,66,.1);
}
.rules-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(245,200,66,.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all .25s;
}
.rules-card__icon svg { width: 26px; height: 26px; }
.rules-card:hover .rules-card__icon { background: rgba(245,200,66,.2); transform: scale(1.08); }
.rules-card h3 {
  font-family: 'Thamanyah Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rules-card p { margin: 0; font-size: 13px; line-height: 1.6; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color .2s;
  /* Force right alignment regardless of parent text-align */
  align-self: flex-start;
  margin-inline-end: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 14px;
  border-radius: 999px;
}
.back-link:hover { color: var(--gold); border-color: rgba(245,200,66,.3); }

/* ---------- Staff socials ---------- */
.staff-card__socials { display: flex; justify-content: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.05); }
.staff-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  color: var(--muted);
  transition: all .2s;
}
.staff-social svg { width: 13px; height: 13px; }
.staff-social:hover { background: rgba(245,200,66,.1); border-color: rgba(245,200,66,.3); color: var(--gold); transform: translateY(-2px); }

/* ---------- Staff crowns on top of avatar ---------- */
.staff-card__crown {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.staff-card__crown svg { width: 30px; height: 30px; }
.staff-card__crown--gold { color: #f5c842; filter: drop-shadow(0 3px 8px rgba(245,200,66,.5)); }
.staff-card__crown--white { color: #f0f0f0; filter: drop-shadow(0 2px 6px rgba(255,255,255,.25)); }
.staff-card--top .staff-card__crown { top: -28px; width: 38px; height: 38px; }
.staff-card--top .staff-card__crown svg { width: 38px; height: 38px; }
.staff-card--founders .staff-card__crown { top: -24px; width: 32px; height: 32px; }
.staff-card--founders .staff-card__crown svg { width: 32px; height: 32px; }

/* ---------- Leaderboard podium ---------- */
.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 40px;
  max-width: 720px;
  margin-inline: auto;
}
.lb-podium__col {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 26px 16px 20px;
  text-align: center;
  position: relative;
  transition: all .3s;
}
.lb-podium__col--1 {
  background: linear-gradient(180deg, rgba(245,200,66,.12), rgba(245,200,66,.03));
  border: 2px solid rgba(245,200,66,.35);
  padding: 36px 18px 24px;
  box-shadow: 0 14px 40px rgba(245,200,66,.18);
  transform: scale(1.05);
}
.lb-podium__col--2 {
  background: linear-gradient(180deg, rgba(180,190,205,.1), rgba(180,190,205,.02));
  border-color: rgba(180,190,205,.3);
}
.lb-podium__col--3 {
  background: linear-gradient(180deg, rgba(205,127,50,.1), rgba(205,127,50,.02));
  border-color: rgba(205,127,50,.3);
}
.lb-podium__crown {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  filter: drop-shadow(0 4px 10px rgba(245,200,66,.6));
}
.lb-podium__crown svg { width: 38px; height: 38px; }
.lb-podium__rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  margin-bottom: 14px;
}
.lb-podium__rank--1 { background: var(--gold); color: #06070d; }
.lb-podium__rank--2 { background: #b4becd; color: #06070d; }
.lb-podium__rank--3 { background: #cd7f32; color: #06070d; }
.lb-podium__avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  object-fit: cover;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.lb-podium__col--1 .lb-podium__avatar { width: 88px; height: 88px; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,200,66,.18); }
.lb-podium__avatar--placeholder { color: var(--muted); }
.lb-podium__avatar--placeholder svg { width: 32px; height: 32px; }
.lb-podium__name { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.lb-podium__col--1 .lb-podium__name { font-size: 16px; }
.lb-podium__value {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,200,66,.1);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}

.lb-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0 auto; }

@media (max-width: 580px) {
  .lb-podium { gap: 8px; }
  .lb-podium__col { padding: 18px 8px 14px; }
  .lb-podium__col--1 { padding: 24px 10px 18px; transform: none; }
  .lb-podium__avatar { width: 50px; height: 50px; }
  .lb-podium__col--1 .lb-podium__avatar { width: 64px; height: 64px; }
  .lb-podium__name { font-size: 11px; }
  .lb-podium__col--1 .lb-podium__name { font-size: 13px; }
}

/* ---------- Application cards (admin) ---------- */
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.app-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.app-card:hover { border-color: rgba(245,200,66,.25); transform: translateY(-2px); }
.app-card__banner { height: 80px; background-size: cover; background-position: center; }
.app-card__banner--grad { background: linear-gradient(135deg, rgba(245,200,66,.35), rgba(31,184,255,.35)); }
.app-card__top {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 0 18px 14px;
  margin-top: -32px;
  position: relative;
}
.app-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--panel);
  background: var(--bg);
  flex-shrink: 0;
  object-fit: cover;
}
.app-card__id { flex: 1; min-width: 0; padding-bottom: 4px; }
.app-card__name { font-weight: 800; font-size: 16px; }
.app-card__handle { color: var(--muted); font-size: 12px; }
.app-card__date {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px;
  padding: 0 18px 10px;
}
.app-card__answers {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.5;
}
.ans-row { display: flex; gap: 8px; align-items: flex-start; }
.ans-row__lbl { color: var(--muted); font-weight: 600; min-width: 100px; }
.ans-row__val { flex: 1; color: var(--text); word-break: break-word; }
.app-card__reason {
  margin: 0 18px 14px; padding: 10px 12px;
  background: rgba(255,77,109,.08);
  border: 1px solid rgba(255,77,109,.2);
  border-radius: 10px;
  color: #ff8aa0; font-size: 13px;
}
.app-card__reviewer {
  padding: 8px 18px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.04);
}
.app-card__reviewer strong { color: var(--gold); }
.app-card__actions {
  display: flex; gap: 6px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.app-card__actions .btn { flex: 1; justify-content: center; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn .2s;
}
.modal {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  animation: modalIn .25s cubic-bezier(.16,1,.3,1);
}
.modal h3 { font-family: 'Thamanyah Display'; font-weight: 800; margin: 0 0 8px; font-size: 20px; }
.modal textarea {
  width: 100%;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Section eyebrows — match the gold-pill style ---------- */
.eyebrow {
  display: inline-block;
  background: rgba(245,200,66,.1);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 14px;
  border: 1px solid rgba(245,200,66,.2);
}

/* ---------- Footer copyright ---------- */
.footer__sig-sep { color: var(--muted); margin: 0 4px; }

/* ---------- Join FiveM modal variant ---------- */
.modal--join { text-align: center; padding: 36px 28px; }
.modal__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(245,200,66,.3);
}
.modal__icon svg { width: 32px; height: 32px; color: #06070d; }
.modal--join h3 { font-size: 22px; margin-bottom: 8px; text-align: center; }
.modal--join .muted { font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.modal__actions { display: flex; gap: 10px; justify-content: center; }
.modal__actions .btn { flex: 1; max-width: 180px; justify-content: center; }

/* ---------- Applications: user header card ---------- */
.apply-user {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  overflow: hidden;
  max-width: 760px; margin: 0 auto;
}
.apply-user__banner { height: 130px; background-size: cover; background-position: center; }
.apply-user__banner--grad { background: linear-gradient(135deg, rgba(245,200,66,.35), rgba(31,184,255,.35)); }
.apply-user__body {
  display: flex; align-items: flex-end; gap: 18px;
  padding: 0 28px 22px;
  margin-top: -44px;
}
.apply-user__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid var(--panel);
  background: var(--bg);
  flex-shrink: 0;
}
.apply-user__info { padding-bottom: 6px; flex: 1; min-width: 0; }
.apply-user__name { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.apply-user__handle { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Dashboard: my applications cards ---------- */
.my-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.my-app {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all .2s;
}
.my-app--approved { border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.04); }
.my-app--denied   { border-color: rgba(255,77,109,.25); background: rgba(255,77,109,.04); }
.my-app--rejected { border-color: rgba(255,77,109,.25); background: rgba(255,77,109,.04); }
.my-app--interview{ border-color: rgba(31,184,255,.25); background: rgba(31,184,255,.04); }
.my-app__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.my-app__type { font-weight: 800; font-size: 15px; }
.my-app__date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.my-app__reason { margin-top: 12px; padding: 10px 12px; background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.2); border-radius: 8px; color: #ff8aa0; font-size: 13px; line-height: 1.6; }
.my-app__reviewer { margin-top: 8px; font-size: 12px; color: var(--muted); }
.my-app__reviewer strong { color: var(--gold); }

/* ---------- Discord CTA — restructured with centered widget + bottom CTA ---------- */
.discord-cta { display: flex; flex-direction: column; gap: 24px; align-items: center; max-width: 900px; margin: 0 auto; }
.discord-cta__widget { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.discord-cta__widget iframe { display: block; width: 100%; }
.discord-cta__action { display: flex; justify-content: center; }
.discord-cta__text { display: none; }

/* ---------- Discord login button — bigger icon properly aligned + WHITE text/icon ---------- */
.btn--discord {
  color: #fff !important;
}
.btn--discord > svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
  color: #fff !important;
  fill: #fff !important;
}
.btn--discord > span { color: #fff !important; }

/* ---------- Leaderboard refresh button ---------- */
.lb-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  margin-inline-start: auto;
  transition: all .2s;
  font-family: inherit;
}
.lb-refresh:hover { color: var(--gold); border-color: rgba(245,200,66,.3); background: rgba(245,200,66,.06); }
.lb-refresh.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- Scroll-down hint (under hero stats) ---------- */
.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 32px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all .25s;
  cursor: pointer;
}
.scroll-hint:hover { color: var(--gold); transform: translateY(2px); }
.scroll-hint svg { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* Hero stats — also support 4 columns on wider screens */
.hero__stats { flex-wrap: wrap; }

/* ---------- Hero badge (live status pill above title) ---------- */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.25);
  color: var(--success);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,.2);
  animation: srvPulse 2s ease-in-out infinite;
}
.hero__badge-sep { opacity: .4; }
.hero__badge-count { color: var(--text); font-weight: 600; }
.hero__badge-count [data-stat] { color: var(--gold); font-weight: 800; }

/* ---------- Hero background video ---------- */
.hero { position: relative; overflow: hidden; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .45;
  filter: saturate(1.1) contrast(1.05);
}
.hero__video-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6,7,13,0) 0%, rgba(6,7,13,.55) 65%, rgba(6,7,13,.9) 100%),
    linear-gradient(180deg, rgba(6,7,13,.3) 0%, rgba(6,7,13,.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }

/* ---------- Rotating tagline transition ---------- */
.hero__tag-text {
  display: inline-block;
  transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- 3D logo: allow tilt + preserve-3d ---------- */
.hero__logo { perspective: 900px; }
.hero__logo img {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
