/* ============================================================
   SHADOW REALM — Fantasy MMORPG Theme
   Void Dark · Ancient Gold · Blood Crimson
   Medieval fantasy aesthetic — Cinzel headings, gold accents
============================================================ */

:root {
  --gold:       #c9a84c;
  --gold-dim:   #9e7d2f;
  --gold-glow:  rgba(201,168,76,0.25);
  --red:        #c42035;
  --red-glow:   rgba(196,32,53,0.2);
  --green:      #5dbf8a;

  --bg:         #08050f;
  --bg2:        #0f0a1a;
  --bg3:        #160e28;
  --card:       rgba(15,10,28,0.92);
  --card2:      rgba(9,6,20,0.96);

  --text:       #c8b99a;
  --text-muted: #7a6a58;
  --text-light: #e8dcc8;

  --border:     rgba(201,168,76,0.14);
  --border2:    rgba(201,168,76,0.28);

  --font:       'Exo 2', 'Segoe UI', sans-serif;
  --font-head:  'Cinzel', serif;
  --radius:     4px;
  --radius-lg:  8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ── Cinzel fantasy font for headings & nav ── */
.site-logo-name,
.main-menu > li > a,
.panel-heading, .panel-heading h4, .panel-heading h5,
.sidebar-card-head, .sidebar-card-head span,
.hero-text h1, .hero-eyebrow,
.footer-col h5,
h1, h2, h3, h4 {
  font-family: var(--font-head);
}
/* Keep body text readable with Exo 2 */
body, p, li, td, th, input, select, textarea, .btn, a { font-family: var(--font); }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(196,32,53,0.06) 0%, transparent 45%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #e8c076; }

img { max-width: 100%; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

code {
  font-family: 'Consolas', monospace;
  font-size: 12.5px;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============================================================
   SITE HEADER  (wraps nav + login panel)
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
}

/* ============================================================
   TOP NAV
============================================================ */
.top-nav {
  position: relative; /* anchor for mobile .main-menu absolute positioning */
  background: rgb(6,4,14);
  border-bottom: 1px solid var(--border);
  /* No backdrop-filter: the header is sticky, and blurring the content scrolling
     behind it re-composites the whole page every frame → severe scroll jank.
     The background is fully opaque, so a blur would be invisible anyway. */
  box-shadow: 0 2px 24px rgba(0,0,0,0.7);
  height: 64px;
}

.top-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 28px;
}
.site-logo img {
  height: 40px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.25);
}
.site-logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}
.site-logo:hover .site-logo-name { color: var(--gold); }

/* ── Main menu ── */
.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1;
}
.main-menu > li {
  display: flex;
  align-items: stretch;
}
.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: rgba(226,233,255,0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: color .2s;
  position: relative;
}
.main-menu > li > a i { font-size: 12px; opacity: 0.75; }
.main-menu > li > a:hover,
.main-menu > li.active > a { color: var(--gold); }

/* Blue underline on active/hover */
.main-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px 2px 0 0;
}
.main-menu > li > a:hover::after,
.main-menu > li.active > a::after { transform: scaleX(1); }

/* ── Dropdown ── */
.has-dropdown { position: relative; }

/* Invisible bridge: fills the gap between nav item and dropdown panel
   so the mouse can travel diagonally without losing hover.
   Height must be >= dropdown's margin-top value (currently 8px). */
.main-menu > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;      /* wider than the link to catch diagonal movement */
  right: -10px;
  height: 18px;     /* 8px gap + 10px diagonal tolerance */
  z-index: 101;     /* above dropdown so pointer events are captured */
  pointer-events: all;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;        /* always relative to li height, works at any nav size */
  margin-top: 8px;  /* breathing room between nav bar and dropdown panel */
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(9,6,18,0.99);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  z-index: 100;
  padding: 6px 0;
  list-style: none;
}
.dropdown-right { left: auto; right: 0; transform: none; }
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown { display: block; }


.dropdown li a,
.dropdown li.divider {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown li a i { font-size: 12px; color: var(--gold); width: 14px; text-align: center; }
.dropdown li a:hover { background: rgba(201,168,76,0.1); color: var(--gold) !important; }
.dropdown li.divider { height: 1px; background: var(--border); padding: 0; margin: 4px 0; }

/* ── Nav right ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Persistent Discord button (header, every page) */
.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: #5865F2;
  color: #fff !important;
  border: 1px solid #5865F2;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all .22s;
}
.nav-discord-btn:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-discord-btn svg { width: 14px; height: 14px; fill: currentColor; vertical-align: middle; flex: none; }
/* Match the Login/Register Font Awesome icons to the Discord svg size (desktop + icon-only mobile) */
.login-toggle-btn i, .register-nav-btn i { font-size: 14px; }

/* Login toggle button — secondary CTA: gold OUTLINE (clearly visible),
   while Register is the solid-filled primary. */
.login-toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(201,168,76,0.07);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .22s;
}
.login-toggle-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* Register button (nav) — PRIMARY CTA (solid gold, glows) so new visitors see it */
.register-nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: none;
  color: #08050f;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all .22s;
  text-decoration: none !important;
  box-shadow: 0 0 16px rgba(201,168,76,0.35);
}
.register-nav-btn:hover {
  background: linear-gradient(135deg, #d4a040, var(--gold));
  color: #08050f;
  box-shadow: 0 0 24px rgba(201,168,76,0.6);
  transform: translateY(-1px);
}

/* Username chip (logged-in state, no dropdown) */
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-user-chip i { font-size: 15px; }

/* Logout button in nav */
.nav-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(196,32,53,0.1);
  border: 1px solid rgba(196,32,53,0.3);
  border-radius: var(--radius);
  color: #ff9baa !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all .22s;
}
.nav-logout-btn:hover {
  background: rgba(196,32,53,0.22);
  border-color: var(--red);
  color: #fff !important;
}

.logout-link { color: #ff9baa !important; }
.logout-link:hover { background: rgba(196,32,53,0.12) !important; color: var(--red) !important; }

/* nav-badge */
.nav-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  letter-spacing: 0;
  margin-left: 2px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LOGIN DROP-PANEL
============================================================ */
.login-panel {
  background: rgba(7,4,16,0.98);
  border-bottom: 1px solid var(--border2);
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(14px);
}
.login-panel.open {
  max-height: 500px;
}
/* Error-state opening: panel must be open instantly with no animation
   dependency (set server-side when a login error is being displayed). */
.login-panel.login-static {
  max-height: none !important;
  transition: none !important;
}

.login-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  justify-content: center;
}

.login-panel-card {
  width: 100%;
  max-width: 700px;
}
.login-panel-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.login-panel-card h3 i { margin-right: 8px; }

/* Alert inside login panel — override animation so it's visible when panel opens */
.login-panel-card .alert,
.lp-inner-alert {
  animation: none !important;
  opacity: 1 !important;
  margin-bottom: 14px;
  font-size: 13px;
  border-radius: var(--radius);
}

.login-form-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Flex-row login field — icon is a normal flow sibling, no padding tricks needed */
.lp-field {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  background: rgba(12,9,24,0.95);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.lp-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.lp-field i {
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.lp-field input {
  flex: 1;
  min-width: 0 !important;
  height: 100%;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text-light) !important;
  font-family: var(--font) !important;
  font-size: 13.5px !important;
  padding: 0 12px 0 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.lp-field input::placeholder { color: var(--text-muted) !important; }

/* Login-panel captcha — dedicated full-width row inside .login-form-grid so it
   never competes with (and squishes) the username/password fields. Mirrors the
   register .af-captcha look, tuned to the login panel chrome. */
.lp-captcha {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}
.lp-captcha .captcha-img {
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  background: #222;
  height: 44px;
  width: 140px;
  display: block;
  flex-shrink: 0;
}
.lp-captcha .captcha-refresh {
  height: 44px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}
.lp-field.lp-captcha-input {
  flex: 1 1 100%;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(201,168,76,0.35);
  transition: all .22s;
  flex-shrink: 0;
}
.lp-btn:hover { box-shadow: 0 0 24px rgba(201,168,76,0.6); transform: translateY(-1px); }

.lp-remember {
  display: flex;
  align-items: center;
  margin: 2px 0 4px;
}
.lp-remember label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.lp-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
}

.lp-links {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.lp-links a {
  color: var(--text-muted);
  font-size: 12px;
  transition: color .2s;
  text-decoration: none !important;
}
.lp-links a i { margin-right: 4px; }
.lp-links a:hover { color: var(--gold); }

/* ============================================================
   HERO SLIDER
============================================================ */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,7,22,0.85) 0%, rgba(10,7,22,0.4) 55%, rgba(10,7,22,0.65) 100%),
    linear-gradient(to top,   rgba(10,7,22,0.75) 0%, transparent 55%);
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero-text {
  max-width: 520px;
  animation: heroIn .8s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 14px;
}

.hero-text p {
  font-size: 15px;
  color: rgba(200,214,240,0.85);
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none !important;
  box-shadow: 0 0 24px rgba(201,168,76,0.4);
  transition: all .22s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(201,168,76,0.65);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-light) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(226,233,255,0.3);
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: all .22s;
}
.btn-hero-secondary:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201,168,76,0.08);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 8%;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all .25s;
}
.hero-dot.active,
.hero-dot:hover { background: var(--gold); box-shadow: 0 0 8px rgba(201,168,76,0.7); width: 22px; border-radius: 4px; }

@media (max-width: 768px) {
  .hero-slider { height: 320px; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p  { font-size: 13px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 9px 16px; font-size: 11px; }
  .hero-slide-content { padding: 0 5%; }
}

/* ============================================================
   SERVER STATS BAR
============================================================ */
.stats-bar {
  background: rgba(10,7,20,0.98);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid rgba(201,168,76,0.08);
}

.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stats-bar-inner::-webkit-scrollbar { display: none; }

.stat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-item i { font-size: 13px; color: var(--gold); opacity: 0.8; }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-light);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-online  { color: var(--green) !important; }
.text-offline { color: var(--red)   !important; }

.stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-online  { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-dot 2s infinite; }
.dot-offline { background: var(--red); }
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.stat-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-vote { margin-left: auto; }
.stat-vote a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--gold) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all .22s;
}
.stat-vote a:hover {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
}

/* Discord stat button */
.stat-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: var(--radius);
  color: #7289da !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all .22s;
}
.stat-discord-btn:hover {
  background: rgba(88,101,242,0.22);
  box-shadow: 0 0 12px rgba(88,101,242,0.35);
  color: #9baaf0 !important;
  text-decoration: none !important;
}
.discord-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Spin Wheel stat button */
.stat-spin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius);
  color: var(--gold) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all .22s;
}
.stat-spin-btn:hover {
  background: rgba(201,168,76,0.18);
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
  text-decoration: none !important;
}

/* ============================================================
   PAGE WRAP & CONTENT GRID
============================================================ */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

/* 2-column grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

/* Full-width */
.content-full { width: 100%; }

@media (max-width: 992px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
  .page-wrap { padding: 16px 12px 28px; }
  .content-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDEBAR CARDS
============================================================ */
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(9,6,20,0.98) 0%, rgba(15,10,28,0.95) 100%);
  border-bottom: 1px solid var(--border2);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 0 10px rgba(201,168,76,0.3);
}
.sidebar-card-head i { font-size: 13px; }

.sidebar-card-body { padding: 18px; }
.sidebar-card-body.p-0 { padding: 0; }

/* ── Dashboard card ── */
.dashboard-card { border-color: rgba(201,168,76,0.3); box-shadow: 0 0 20px rgba(201,168,76,0.12); }

.user-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.user-avatar-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.user-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.3px;
}
.user-since {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Quick action buttons grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  background: rgba(12,9,24,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted) !important;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none !important;
  transition: all .22s;
}
.qa-btn i { font-size: 16px; color: var(--gold); }
.qa-btn:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); color: var(--gold) !important; }
.qa-btn.qa-highlight { border-color: rgba(196,32,53,0.4); }
.qa-btn.qa-highlight i { color: var(--red); }
.qa-btn.qa-highlight:hover { border-color: var(--red); background: rgba(196,32,53,0.1); color: var(--red) !important; }

.logout-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px;
  background: rgba(196,32,53,0.1);
  border: 1px solid rgba(196,32,53,0.3);
  border-radius: var(--radius);
  color: #ff9baa !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all .22s;
}
.logout-sidebar-btn:hover { background: rgba(196,32,53,0.2); border-color: var(--red); color: #fff !important; }

/* ── Vote card ── */
.sidebar-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: center;
}
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  text-decoration: none !important;
  margin-bottom: 8px;
  transition: all .22s;
  box-shadow: 0 0 14px rgba(201,168,76,0.3);
}
.sidebar-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(201,168,76,0.55); }
.sidebar-cta-alt {
  background: rgba(14,9,26,0.95);
  border: 1px solid var(--border2);
  color: var(--text-muted) !important;
  box-shadow: none;
}
.sidebar-cta-alt:hover { border-color: var(--gold); color: var(--gold) !important; box-shadow: none; }

/* ============================================================
   PANELS  (used by included pages)
============================================================ */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  pointer-events: none;
}

.panel-heading {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(9,6,20,0.98) 0%, rgba(15,10,28,0.95) 100%);
  border-bottom: 1px solid var(--border2);
  color: var(--gold) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius) var(--radius) 0 0;
  text-shadow: 0 0 12px rgba(201,168,76,0.4);
}
.panel-heading h4 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.panel-heading.d-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.panel-body {
  padding: 18px;
  font-size: 14px;
  overflow: visible !important;
}
.panel-body.p-0 { padding: 0; }

.panel-footer {
  padding: 10px 18px;
  background: var(--card2);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* panel-dark alias */
.panel-dark {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}
.panel-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  pointer-events: none;
}
.panel-dark .panel-heading {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(9,6,20,0.98) 0%, rgba(15,10,28,0.95) 100%);
  border-bottom: 1px solid var(--border2);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(201,168,76,0.4);
}
.panel-dark .panel-heading h4 { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.panel-dark .panel-body { padding: 18px; overflow: visible !important; }
.panel-dark .list-group-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-dark .list-group-item:last-child { border-bottom: 0; }

/* ============================================================
   SITE STAT CARDS  (reusable summary cards used across pages)
============================================================ */
.site-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 20px 16px;
}
.site-stat-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,168,76,.06), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px 15px;
  text-align: center;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.site-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .55;
  pointer-events: none;
  transition: opacity .2s;
}
.site-stat-card:hover::before { opacity: 1; }
.site-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 2px auto 12px;
  border-radius: 13px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.22);
  color: var(--gold);
  font-size: 18px;
  transition: background .18s, color .18s, transform .18s;
}
.site-stat-card:hover .site-stat-icon {
  background: rgba(201,168,76,.2);
  color: #f2dc97;
  transform: scale(1.06);
}
.site-stat-val {
  font-size: 23px;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-head);
  line-height: 1.2;
  word-break: break-word;
  margin-bottom: 5px;
}
.site-stat-val a { color: inherit; text-decoration: none; }
.site-stat-val a:hover { color: #e0bf70; }
.site-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-stat-sub {
  font-size: 11px;
  color: rgba(201,168,76,.5);
  margin-top: 6px;
}
@media (max-width: 576px) {
  .site-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
}

/* ============================================================
   FORMS
============================================================ */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select, textarea {
  background: rgba(10,7,20,0.95) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius) !important;
  font-size: 13.5px !important;
  font-family: var(--font) !important;
  padding: 8px 12px !important;
  transition: border-color .2s, box-shadow .2s !important;
  outline: none !important;
}
.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus, textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
  color: #fff !important;
}
::placeholder { color: var(--text-muted) !important; }

.input-group-addon {
  background: rgba(10,7,20,0.98) !important;
  border: 1px solid var(--border2) !important;
  border-right: none !important;
  color: var(--gold) !important;
  min-width: 38px;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
}

select.form-control, select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 34px !important;
  height: 38px;
}
select option { background: #0d0818; color: var(--text-light); }
select::-ms-expand { display: none; }

/* Date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(60%) sepia(60%) saturate(500%) hue-rotate(185deg);
  cursor: pointer; opacity: .75;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ============================================================
   BUTTONS
============================================================ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  letter-spacing: 0.4px;
  box-shadow: 0 0 14px rgba(201,168,76,0.3);
  transition: all .22s;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d4a040, var(--gold));
  box-shadow: 0 0 22px rgba(201,168,76,0.55);
  color: #fff !important;
}
.btn-gold:active { transform: scale(0.97); box-shadow: none !important; outline: none; }

.btn-gray {
  background: rgba(14,9,26,0.92);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-family: var(--font);
  transition: all .2s;
}
.btn-gray:hover { background: rgba(18,12,30,0.98); color: var(--gold); border-color: rgba(201,168,76,0.4); }

/* ============================================================
   STATUS
============================================================ */
.status-online  { color: var(--green); font-weight: 700; }
.status-offline { color: var(--red);   font-weight: 700; }

/* ============================================================
   TABLES
============================================================ */
.table {
  width: 100%;
  background: rgba(9,6,18,0.92);
  border-radius: var(--radius);
  margin-bottom: 0;
}
.table th {
  background: linear-gradient(180deg, rgba(201,168,76,0.13) 0%, rgba(15,10,28,0.98) 100%);
  color: var(--gold);
  border: none;
  border-bottom: 1px solid var(--border2) !important;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 10px 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.table td {
  color: var(--text);
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.05) !important;
  text-align: center;
  padding: 8px 6px;
  font-size: 13px;
}
.table tbody tr:hover { background: rgba(201,168,76,0.07); }
.table tbody tr:first-child { background: rgba(201,168,76,0.1); font-weight: 700; color: #e8c076; }
.table thead th { text-transform: uppercase; }

.table.site-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10,7,20,0.95);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}
.table.site-table thead th {
  background: linear-gradient(180deg, rgba(201,168,76,0.13) 0%, rgba(15,10,28,0.98) 100%);
  color: var(--gold);
  font-weight: 800;
  font-size: 11.5px;
  padding: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border2);
  text-align: center !important;
  vertical-align: middle !important;
}
.table.site-table tbody td, .table.site-table tbody th { padding: 9px 12px; border-bottom: 1px solid rgba(201,168,76,0.05); }
.table.site-table tbody tr:nth-child(even) { background: rgba(12,9,24,0.9); }
.table.site-table tbody tr:hover { background: rgba(201,168,76,0.07); }
.table.site-table th.bg-light { background: rgba(18,12,30,0.95) !important; color: var(--gold) !important; font-weight: 700; }
.table.site-table > tbody > tr > td,
.table.site-table > tbody > tr > th,
.table.site-table > thead > tr > td,
.table.site-table > thead > tr > th { border-top: none !important; }
.table.site-table tbody tr:first-child { background: transparent; font-weight: normal; color: inherit; }

.table-striped tbody tr:nth-of-type(odd),
.table.site-table tbody tr:nth-of-type(odd) { background: rgba(11,8,22,0.9) !important; }
.table-striped tbody tr:nth-of-type(even),
.table.site-table tbody tr:nth-of-type(even) { background: rgba(14,9,26,0.95) !important; }
.table-striped tbody tr:hover,
.table.site-table tbody tr:hover { background: rgba(201,168,76,0.08) !important; }

/* Bootstrap sets width:100% on .table-responsive — with m-3 margins (16px each side) that adds
   32px overflow past the panel border. width:auto = fill parent MINUS margins = stays inside. */
.table-responsive {
  width: auto !important;
  max-width: 100% !important;
  border: none !important;
  background: transparent !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-shadow: none !important;
  /* Firefox scrollbar */
  scrollbar-color: rgba(201,168,76,0.45) rgba(9,6,18,0.6);
  scrollbar-width: thin;
}
/* Admin panel tables (orders, spinlogs, votelogs, etc.) carry the dl-table-wrap class.
   They need max-content width so wide columns force a horizontal scroll inside the container.
   Ranking tables do NOT have dl-table-wrap — they must stay within the panel naturally. */
.dl-table-wrap .dataTable {
  width: -webkit-max-content !important;
  width: max-content !important;
  min-width: 100% !important;
  white-space: nowrap !important;
}
/* Ranking / general tables: stretch to fill, allow normal wrapping */
.table-responsive:not(.dl-table-wrap) .dataTable {
  width: 100% !important;
  min-width: 100% !important;
}
/* Webkit scrollbar — themed gold on dark, clearly visible */
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.45);
  border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.7);
}
.table-responsive::-webkit-scrollbar-track { background: rgba(9,6,18,0.6); }

@media (max-width: 767px) {
  .table th, .table td { font-size: 12px; padding: 7px 4px; white-space: nowrap; }
}

/* ============================================================
   HOME RANKING TABLE
============================================================ */
.home-ranking-table th, .home-ranking-table td { font-size: 12.5px; padding: 6px 5px; }

/* ============================================================
   TOP CLASS CARDS (LEVEL RANKING)
============================================================ */
/* ── Top-class cards (no images) ─────────────────────────────────────────── */
.top-class-inline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 16px 20px;
  background: rgba(8,5,18,.96);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.tcb {
  flex: 1 1 140px;
  min-width: 130px;
  max-width: 200px;
  background: rgba(18,12,34,.9);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 16px rgba(0,0,0,.4);
}
.tcb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.tcb-vacant { opacity: .45; }

/* coloured header band */
.tcb-head {
  padding: 18px 12px 14px;
  background: linear-gradient(160deg, rgba(var(--cls-rgb,201,168,76),.18) 0%, rgba(0,0,0,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-top: 3px solid var(--cls-color, var(--gold));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tcb-crown-ico {
  font-size: 20px;
  color: var(--cls-color, var(--gold));
  opacity: .9;
  filter: drop-shadow(0 0 6px var(--cls-color, var(--gold)));
}
.tcb-cls-name {
  font-family: var(--font-head, inherit);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cls-color, var(--gold));
  line-height: 1;
}

/* player info */
.tcb-info {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tcb-player {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcb-vacant-lbl { color: var(--text-muted); font-style: italic; font-weight: 400; font-size: 12px; }
.tcb-lvl {
  font-size: 11px;
  color: var(--text-muted);
}
.tcb-lvl i {
  color: var(--cls-color, var(--gold));
  font-size: 9px;
  margin-right: 2px;
}

@media (max-width: 480px) {
  .top-class-inline { gap: 8px; padding: 16px 8px; }
  .tcb { min-width: 110px; }
}


/* ============================================================
   EQUIPMENT MODAL
============================================================ */
.equip-modal-dialog { max-width: 600px; }
.equip-modal-body {
  display: block;
  padding: 12px 16px;
  min-height: 200px;
  background: rgba(8,5,15,.35);
}
.equip-modal-body .ci-inv-layout {
  width: 100%;
}

/* ============================================================
   NEWS ITEMS
============================================================ */
.news-item {
  background: rgba(11,8,22,0.9);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: transform .22s, box-shadow .22s;
  opacity: 0;
  animation: fadeUp .4s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; } }
.news-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(201,168,76,0.12); }
.news-title { font-size: 14px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-content { font-size: 13.5px; line-height: 1.65; color: var(--text); white-space: pre-line; margin-bottom: 10px; }
.news-footer { font-size: 12px; color: var(--text-muted); text-align: right; border-top: 1px solid var(--border); padding-top: 6px; }
.toggle-news { display: inline-block; color: var(--gold); font-size: 12px; }
.toggle-news:hover { color: #e8c076; text-decoration: underline; }
.news-short, .news-full { white-space: pre-line; font-size: 13px; line-height: 1.4; color: var(--text); }

/* ============================================================
   COUNTDOWN
============================================================ */
.countdown-box { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 5px; }
.time-segment {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-width: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.time-segment::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.time-segment span { display: block; font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.time-segment small { display: block; font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }

/* ============================================================
   VIDEO WRAPPERS
============================================================ */
.video-wrapper, .latest-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  box-shadow: 0 0 20px rgba(201,168,76,0.14);
}
.video-wrapper { padding-top: 25px; }
.video-wrapper iframe, .latest-video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.latest-video-wrap { margin: 0 auto; max-width: 900px; }

/* Trailer carousel */
.trailer-carousel { position: relative; width: 100%; max-width: 800px; margin: 0 auto; border: 1px solid var(--border2); border-radius: var(--radius); background: var(--card2); overflow: hidden; }
.trailer-carousel::before { content: ""; display: block; padding-top: 56.25%; }
.trailer-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; opacity: 0; transition: opacity .8s; }
.trailer-slide.active { display: block; opacity: 1; }
.trailer-slide iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.trailer-prev, .trailer-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(6,4,14,.88); border: 1px solid var(--border2); color: var(--gold); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; z-index: 10; transition: all .22s; }
.trailer-prev:hover, .trailer-next:hover { background: var(--gold); color: var(--bg); }
.trailer-prev { left: 10px; } .trailer-next { right: 10px; }
.trailer-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.trailer-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(201,168,76,.35); background: rgba(6,4,14,.9); cursor: pointer; transition: all .22s; }
.trailer-dots button.active { background: var(--gold); }

/* ============================================================
   PROGRESS BARS
============================================================ */
.progress-wrapper { display: flex; justify-content: center; align-items: center; height: 25px; position: relative; overflow: visible !important; z-index: 5; }
.progress-bar-segments { display: inline-flex; align-items: center; gap: 2px; position: relative; cursor: pointer; }
.progress-bar-segments span { width: 10px; height: 10px; border-radius: 2px; transition: transform .2s; }
/* Bootstrap .bg-warning/.bg-light use !important — we must too, or they override our theme colours */
/* Filled segment — subtle glossy "gold bead" depth (light top → gold → dim bottom) */
.progress-bar-segments .bg-warning { background: linear-gradient(180deg, #e6c878, var(--gold) 55%, var(--gold-dim)) !important; border: 1px solid rgba(201,168,76,.55); box-shadow: 0 0 5px rgba(201,168,76,.5), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 1px rgba(0,0,0,.22); }
/* Empty segment — slightly recessed for depth */
.progress-bar-segments .bg-light { background: rgba(14,9,26,.96) !important; border: 1px solid var(--border); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.progress-bar-segments span:hover { transform: scale(1.3); }
/* Partial (current-progress) segment — faint leading-edge glow */
.progress-bar-segments .partial { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 2px; overflow: hidden; background: rgba(14,9,26,.96) !important; border: 1px solid rgba(201,168,76,.45); box-shadow: 0 0 5px rgba(201,168,76,.35); }
.progress-bar-segments .partial .fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(180deg, #e6c878, var(--gold) 55%, var(--gold-dim)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
/* Hover the whole bar → filled beads brighten */
.progress-bar-segments:hover .bg-warning { box-shadow: 0 0 8px rgba(201,168,76,.8), inset 0 1px 0 rgba(255,255,255,.55); }
.progress-bar-segments::after { content: attr(data-tooltip); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--card2); color: var(--gold); border: 1px solid var(--border2); border-radius: var(--radius); padding: 4px 8px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .22s, top .22s; z-index: 99; pointer-events: none; }
.progress-bar-segments:hover::after { opacity: 1; top: -34px; }

/* Animal icons */
.animal-icon { display: inline-block; position: relative; }
.animal-icon img { border: 1px solid var(--border); border-radius: var(--radius); transition: transform .15s, box-shadow .15s; vertical-align: middle; }
.animal-icon img:hover { transform: scale(1.12); box-shadow: 0 0 10px rgba(201,168,76,.3); }

/* ============================================================
   DOWNLOAD PAGE
============================================================ */
.download-section { display: flex; flex-direction: column; gap: 10px; }
.download-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); padding: 14px 16px; border-radius: var(--radius); flex-wrap: wrap; transition: all .2s; gap: 10px; }
.download-row:hover { border-color: var(--border2); box-shadow: 0 0 16px rgba(201,168,76,.1); transform: translateY(-1px); }
.download-info { flex: 1 1 auto; min-width: 200px; }
.download-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.divider-light { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.btn-mega { background-color: #d92d2d; border: none; color: #fff; font-weight: 600; }
.btn-mega:hover { box-shadow: 0 0 12px rgba(217,45,45,.6); color: #fff; }
.btn-mediafire { background-color: #1a8cff; border: none; color: #fff; font-weight: 600; }
.btn-mediafire:hover { box-shadow: 0 0 12px rgba(26,140,255,.6); color: #fff; }
.btn-drive { background-color: #34a853; border: none; color: #fff; font-weight: 600; }
.btn-drive:hover { box-shadow: 0 0 12px rgba(52,168,83,.6); color: #fff; }
.btn-microsoft { background-color: #0078d7; border: none; color: #fff; font-weight: 600; }
.btn-microsoft:hover { box-shadow: 0 0 12px rgba(0,120,215,.6); color: #fff; }

/* ============================================================
   RULES ACCORDION
============================================================ */
.panel-group .panel-heading { background: var(--card2); color: var(--gold); font-weight: 700; cursor: pointer; transition: all .2s; }
.panel-group .panel-heading:hover { background: var(--bg3); }
.panel-group .panel-title a { display: block; text-decoration: none; color: var(--gold); font-size: 14px; outline: none; }
.panel-group .panel-title a:focus, .panel-group .panel-heading:focus { outline: none !important; }
.panel-group .panel-collapse .panel-body { background: var(--card2) !important; border-top: 1px solid var(--border) !important; color: var(--text) !important; padding: 14px 18px !important; }
.panel-group .panel-body ul { margin: 6px 0 4px 20px; list-style: disc; }
.panel-group .panel-body li { margin-bottom: 7px; line-height: 1.65; color: var(--text); }
.panel-group .panel-body li strong { color: var(--gold); }
.panel-group .panel-body p { color: var(--text); line-height: 1.65; }

/* ============================================================
   DASHBOARD BUTTONS (panel pages)
============================================================ */
.dashboard-info { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.dashboard-info .info-item { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding-left: 28px; }
.dashboard-info .info-item i { position: absolute; left: 0; top: 4px; color: var(--gold); font-size: 14px; width: 18px; text-align: center; }
.dashboard-info .info-label { color: var(--gold); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; }
.dashboard-info .info-value { color: var(--text-light); font-size: 13.5px; font-weight: 500; margin-top: 2px; padding-left: 5px; border-left: 2px solid rgba(201,168,76,.3); }

.dashboard-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn-dashboard { background: rgba(11,8,22,.95); border: 1px solid var(--border2); color: var(--gold); padding: 8px 12px; border-radius: var(--radius); font-size: 11.5px; font-weight: 700; text-decoration: none; transition: all .22s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 175px; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font); }
.btn-dashboard:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #fff !important; border-color: var(--gold); text-decoration: none; box-shadow: 0 0 14px rgba(201,168,76,.35); }
.btn-dashboard.logout { background: rgba(120,15,25,.8); border-color: rgba(196,32,53,.35); color: #ff9baa; }
.btn-dashboard.logout:hover { background: linear-gradient(135deg, var(--red), #c02035); color: #fff; }
@media (max-width: 767px) { .btn-dashboard { width: 145px; font-size: 11px; padding: 7px 8px; } }

/* ============================================================
   ADMIN TOOLBAR
============================================================ */
.admin-toolbar { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.admin-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--card); border: 1px solid var(--border2); border-radius: 50%; color: var(--gold); text-decoration: none; transition: all .22s; position: relative; box-shadow: 0 0 12px rgba(0,0,0,.6); }
.admin-btn:hover, .admin-btn:focus { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #fff; box-shadow: 0 0 18px rgba(201,168,76,.45); transform: translateY(-2px); text-decoration: none; outline: none; }
.admin-btn[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; right: 110%; top: 50%; transform: translateY(-50%); background: var(--card2); color: var(--gold); padding: 5px 9px; border-radius: var(--radius); font-size: 12px; white-space: nowrap; border: 1px solid var(--border2); opacity: 0; animation: fadeInTooltip .3s forwards; pointer-events: none; }
@keyframes fadeInTooltip { to { opacity: 1; } }
.admin-btn.logout { background: rgba(120,15,25,.85); border-color: rgba(196,32,53,.35); color: #ffb3b8; }
.admin-btn.logout:hover { background: linear-gradient(135deg, var(--red), #c02035); color: #fff; }

/* Admin FAB */
#admin-fab-btn { position: fixed; bottom: 28px; left: 28px; z-index: 9999; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--bg); border: none; font-size: 20px; cursor: pointer; box-shadow: 0 4px 18px rgba(201,168,76,.55); display: flex; align-items: center; justify-content: center; transition: background .2s; }
#admin-fab-btn:hover { background: #d4a040; }
#admin-fab-menu { position: fixed; bottom: 90px; left: 28px; z-index: 9998; background: rgba(12,9,24,.98); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 10px; min-width: 200px; max-width: 220px; display: none; box-shadow: 0 8px 32px rgba(0,0,0,.6); max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.45) rgba(9,6,18,0.6); }
#admin-fab-menu.open { display: block; }
#admin-fab-menu::-webkit-scrollbar { width: 6px; }
#admin-fab-menu::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.45); border-radius: 6px; }
#admin-fab-menu::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.7); }
#admin-fab-menu::-webkit-scrollbar-track { background: rgba(9,6,18,0.6); border-radius: 6px; }
.admin-fab-group { margin-bottom: 8px; }
.admin-fab-group-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px 4px; }
.admin-fab-item { display: block; padding: 6px 10px; color: var(--text); border-radius: var(--radius); font-size: 13px; white-space: nowrap; text-decoration: none; }
.admin-fab-item:hover { background: rgba(201,168,76,.12); color: var(--gold); text-decoration: none; }
.admin-fab-item i { width: 16px; text-align: center; margin-right: 6px; }

/* ============================================================
   FOOTER  (simplified: logo + name + copyright only)
============================================================ */
.site-footer {
  background: rgba(6,4,12,.98);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
}
.footer-bottom { font-size: 12px; color: var(--text-muted); }
.footer-bottom strong { color: var(--text-light); }

/* ============================================================
   ALERTS
============================================================ */
.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; font-weight: 500; background: var(--card); border: 1px solid var(--border2); color: var(--text); margin-bottom: 14px; opacity: 0; animation: fadeInAlert .35s ease forwards; }
@keyframes fadeInAlert { to { opacity: 1; } }
.alert-success { background: rgba(5,20,14,.92); border-color: rgba(57,230,126,.25); color: #5dbf8a; }
.alert-warning { background: rgba(10,12,28,.96); border-color: var(--border2); color: var(--gold); }
.alert-danger  { background: rgba(22,5,12,.92); border-color: rgba(196,32,53,.3); color: #ff9baa; }
.alert-info    { background: rgba(10,7,22,.96); border-color: var(--border2); color: #ddb060; }
.alert a { color: var(--gold); font-weight: 600; text-decoration: underline; }

/* ============================================================
   BADGES
============================================================ */
.badge { display: inline-block; padding: .3em .6em; font-size: .7em; font-weight: 800; line-height: 1; border-radius: 3px; text-transform: uppercase; letter-spacing: .4px; border: 1px solid var(--border); background: var(--card); color: var(--text); vertical-align: middle; font-family: var(--font); transition: all .2s; }
.badge-gold, .badge-warning, .badge-primary { background: rgba(201,168,76,.12); color: var(--gold) !important; border-color: var(--border2); }
.badge-success  { background: rgba(5,20,14,.95); color: #5dbf8a !important; border-color: rgba(57,230,126,.25); }
.badge-danger   { background: rgba(28,6,10,.92); color: #ff9baa !important; border-color: rgba(196,32,53,.25); }
.badge-secondary{ background: rgba(14,9,26,.9); color: var(--text-muted) !important; border-color: var(--border); }
.badge-info     { background: rgba(10,7,22,.96); color: #ddb060 !important; border-color: var(--border2); }
.badge-light    { background: rgba(201,168,76,.1); color: var(--gold) !important; border-color: var(--border2); }
.badge-sm { font-size: .62em; padding: .22em .5em; }
.badge-lg { font-size: .82em; padding: .42em .78em; }
.badge:hover { filter: brightness(1.1); }

/* ============================================================
   SCROLL TO TOP
============================================================ */
#scroll-top { position: fixed; bottom: 28px; right: 24px; width: 40px; height: 40px; background: var(--card); border: 1px solid var(--border2); color: var(--gold); border-radius: 50%; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all .28s; display: flex; align-items: center; justify-content: center; z-index: 500; box-shadow: 0 0 16px rgba(201,168,76,.2); }
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--gold); color: var(--bg); box-shadow: 0 0 22px rgba(201,168,76,.6); }

/* ============================================================
   PAGE LOADER
============================================================ */
#page-loader { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; background: transparent; transition: opacity .5s; }
#page-loader-bar { height: 100%; width: 0; background: linear-gradient(to right, var(--gold), var(--red)); transition: width .3s; }

/* ============================================================
   INVENTORY TABS
============================================================ */
.inv-tabs { display: flex; justify-content: center; align-items: center; background: var(--card2); border-bottom: 1px solid var(--border); padding: 6px 0; }
.inv-tab { background: var(--card); border: 1px solid var(--border); border-bottom: none; color: var(--text-muted); font-weight: 700; padding: 10px 22px; margin: 0 5px; border-radius: var(--radius) var(--radius) 0 0; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; cursor: pointer; transition: all .22s; position: relative; }
.inv-tab:hover { color: var(--gold); }
.inv-tab.active { background: rgba(201,168,76,.1); color: var(--gold); border-color: var(--border2); }
.inv-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.inv-tabcontent { display: none; padding: 20px; background: var(--card2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); animation: fadeIn .3s ease; }
.inv-tabcontent.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   MODALS
============================================================ */
#equipModal .modal-content, .site-modal { background: rgba(11,8,22,.98); border: 1px solid var(--border2); border-radius: var(--radius-lg); color: var(--text-light); }
#equipModal .modal-header, .site-modal .modal-header { background: var(--card2); color: var(--gold); border-bottom: 1px solid var(--border); padding: 12px 20px; }
#equipModal .modal-title, .site-modal .modal-title { font-weight: 700; font-size: 16px; color: var(--gold); }
#equipModal .close, .site-modal .close { color: var(--gold); opacity: .85; font-size: 22px; transition: .2s; position: absolute; right: 14px; top: 10px; }
#equipModal .close:hover, .site-modal .close:hover { color: #e8c076; opacity: 1; }
#equipModal .modal-body, .site-modal .modal-body { background: rgba(10,7,20,.96); border-top: 1px solid var(--border); padding: 18px 20px; text-align: center; }
/* Themed scrollbar for modal bodies that have overflow-y (e.g. How it Works) */
#equipModal .modal-body,
.site-modal .modal-body {
  scrollbar-color: rgba(201,168,76,0.4) rgba(9,6,18,0.6);
  scrollbar-width: thin;
}
#equipModal .modal-body::-webkit-scrollbar,
.site-modal .modal-body::-webkit-scrollbar { width: 6px; }
#equipModal .modal-body::-webkit-scrollbar-thumb,
.site-modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.4);
  border-radius: 3px;
}
#equipModal .modal-body::-webkit-scrollbar-thumb:hover,
.site-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.65);
}
#equipModal .modal-body::-webkit-scrollbar-track,
.site-modal .modal-body::-webkit-scrollbar-track { background: rgba(9,6,18,0.6); }
div.tooltip { z-index: 99999 !important; opacity: 1 !important; display: block !important; }

/* View icons */
.view-inv, .view-guild { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); text-decoration: none !important; transition: all .22s; position: relative; margin-right: 4px; }
.view-inv i, .view-guild i { font-size: 14px; }
.view-inv:hover i, .view-guild:hover i { color: #e8c076; transform: scale(1.15); }
.view-inv[data-tooltip]:hover::after, .view-guild[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; background: var(--card2); color: var(--gold); padding: 4px 8px; border-radius: var(--radius); font-size: 12px; top: -28px; left: 50%; transform: translateX(-50%); white-space: nowrap; border: 1px solid var(--border2); pointer-events: none; }

/* ============================================================
   SKILLS TABLE
============================================================ */
.table-skills { width: 100%; border-collapse: collapse; background: var(--card2); color: var(--text); border: 1px solid var(--border); font-size: 13px; }
.table-skills thead th { background: var(--card); color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; border-bottom: 1px solid var(--border2); padding: 10px 8px; text-align: center; }
.table-skills td, .table-skills th { border: none; padding: 9px 6px; vertical-align: middle; text-align: center; }
.table-skills tbody tr:hover { background: rgba(201,168,76,.06); }
.table-skills img { width: 32px; height: 32px; vertical-align: middle; }
.table-skills td.skill-name { color: var(--text-light); font-weight: 600; }
.table-skills td.skill-grade { color: var(--gold); font-weight: 700; }
.table-skills td.skill-index { color: var(--text-muted); width: 60px; }

/* ============================================================
   COVEN FORM / CHAR INFO
============================================================ */
.site-form { background: var(--card); border: 1px solid var(--border2); padding: 20px 24px; border-radius: var(--radius); margin-bottom: 16px; }
.site-form .group-title { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; margin-bottom: 6px; }
.site-form .form-check-label { color: var(--text); margin-right: 14px; cursor: pointer; }

/* ============================================================
   CHARACTER TRADER
============================================================ */
.character-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.character-actions form, .character-actions a { margin: 0; }

/* ============================================================
   SCHEDULE
============================================================ */
.schedule-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.schedule-nav a { color: var(--gold); border: 1px solid var(--border2); padding: 6px 16px; border-radius: var(--radius); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; transition: all .22s; text-decoration: none; }
.schedule-nav a:hover { background: rgba(201,168,76,.1); }
.schedule-wrapper { margin: 0 10px 15px; }
.schedule-card { background: var(--card); border: 1px solid var(--border); margin-bottom: 18px; border-radius: var(--radius); }
.schedule-header { background: rgba(201,168,76,.06); color: var(--gold); font-weight: 700; padding: 10px 0; text-align: center; font-size: 13px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .6px; }
.schedule-card.today .schedule-header { background: rgba(201,168,76,.12); color: #e8c076; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 14px; }
.schedule-item { display: flex; align-items: center; background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: transform .2s, box-shadow .2s; }
.schedule-item:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(201,168,76,.14); }
.schedule-img { flex-shrink: 0; margin-right: 10px; }
.schedule-img img { width: 50px; height: 50px; border-radius: var(--radius); object-fit: contain; opacity: .88; }
.schedule-info { flex: 1; line-height: 1.4; }
.schedule-name { color: var(--gold); font-weight: 700; font-size: 13.5px; }
.schedule-time { color: var(--text); font-size: 12.5px; margin-top: 2px; }
.schedule-timer { color: var(--gold); font-size: 12.5px; font-weight: 600; margin-top: 1px; }
#next-event { display: inline-block; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 700; color: var(--gold); vertical-align: middle; }

/* ============================================================
   DROPLIST PAGE
============================================================ */
/* ============================================================
   DROPLIST v2 — card grid design
============================================================ */

/* ── Toolbar (search + filters) ── */
.dl2-toolbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10,6,20,.7);
}

/* Search row */
.dl2-search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.dl2-search-box {
  position: relative;
  flex: 1;
}
.dl2-search-box input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  background: rgba(6,4,14,.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.dl2-search-box input::placeholder { color: var(--text-muted); }
.dl2-search-box input:focus { border-color: var(--border2); box-shadow: 0 0 10px rgba(201,168,76,.15); }
.dl2-search-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.dl2-count-badge {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 6px 12px;
  min-width: 80px;
  text-align: center;
}

/* Filter rows */
.dl2-filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dl2-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}
.dl2-filter-row:last-child { border-bottom: none; }
.dl2-flabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  white-space: nowrap;
  width: 52px;
  flex-shrink: 0;
}
.dl2-pills-scroll { flex: 1; }
.dl2-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dl2-pill {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}
.dl2-pill:hover { border-color: var(--border2); color: var(--gold); background: rgba(201,168,76,.07); }
.dl2-pill.active {
  background: rgba(201,168,76,.14);
  border-color: var(--border2);
  color: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,.2);
}
.dl2-pill-boss { border-color: rgba(220,53,69,.35); color: #d96070; }
.dl2-pill-boss:hover { background: rgba(220,53,69,.1); border-color: rgba(220,53,69,.6); color: #f07585; }
.dl2-pill-boss.active { background: rgba(220,53,69,.15); border-color: rgba(220,53,69,.7); color: #f07585; box-shadow: 0 0 8px rgba(220,53,69,.2); }

/* ── Card grid ── */
.dl2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
}
.dl2-card {
  background: var(--card2);
  padding: 14px 16px;
  transition: background .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Skip layout/paint of off-screen cards entirely — the droplist is long and
     drop-icon-heavy, so rendering all 327 cards at once froze scrolling. The
     browser now only renders cards near the viewport. */
  content-visibility: auto;
  contain-intrinsic-size: 305px 330px;
}
.dl2-card:hover { background: rgba(255,255,255,.02); }
.dl2-card-boss { border-left: 2px solid rgba(220,53,69,.5); }

/* Card head */
.dl2-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl2-card-img-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl2-card-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Monster placeholder — shown when image missing or fails */
.dl2-monster-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  background: rgba(8,5,15,.85);
}
.dl2-monster-ph-ico {
  font-size: 18px;
  color: rgba(201,168,76,.22);
  line-height: 1;
}
.dl2-monster-ph-ltr {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(201,168,76,.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.dl2-card-meta { min-width: 0; flex: 1; }
.dl2-card-name {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
  margin-bottom: 5px;
}
.dl2-badge-boss {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(220,53,69,.18);
  border: 1px solid rgba(220,53,69,.5);
  color: #f07585;
  text-transform: uppercase;
  letter-spacing: .6px;
  vertical-align: middle;
  margin-left: 5px;
}
.dl2-card-info { display: flex; gap: 6px; flex-wrap: wrap; }
.dl2-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(201,168,76,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
  line-height: 1.4;
}
.dl2-tag i { margin-right: 3px; }

/* Drops */
.dl2-card-drops {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  min-height: 42px;
}
.dl2-drop { display: inline-flex; cursor: pointer; }
.dl2-drop-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dl2-drop:hover .dl2-drop-img {
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(201,168,76,.35);
  border-color: var(--border2);
}
.dl2-drops-label {
  display: flex; align-items: center; gap: 6px;
  padding-top: 10px; margin-top: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: rgba(201,168,76,.65);
  border-top: 1px solid var(--border);
}
.dl2-drops-label i { font-size: 10px; opacity: .8; }
.dl2-drops-label-empty { color: var(--text-muted); font-style: italic; text-transform: none; letter-spacing: 0; }
.dl2-card-drops { border-top: none; padding-top: 8px; }
.dl2-drop-noimg {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 6px;
  display: flex;
  align-items: center;
}

/* Item drop creative placeholder — shown when no icon or image fails */
.dl2-drop-ph {
  width: 38px; height: 38px;
  border-radius: 5px;
  border: 1px solid rgba(201,168,76,.12);
  background: rgba(8,5,15,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dl2-drop:hover .dl2-drop-ph {
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(201,168,76,.35);
  border-color: rgba(201,168,76,.3);
}
.dl2-drop-ph-ico {
  font-size: 13px;
  color: rgba(201,168,76,.25);
  line-height: 1;
}

/* Empty state */
.dl2-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.dl2-empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: .25;
}
.dl2-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.dl2-empty-sub { font-size: 13px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .dl2-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
  .dl2-search-row { flex-wrap: wrap; }
  .dl2-count-badge { width: 100%; text-align: center; }
  .dl2-filter-row { flex-wrap: wrap; }
  .dl2-flabel { width: auto; }
  .dl2-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .dl2-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PURCHASE STEPS
============================================================ */
.purchase-steps { display: flex; gap: 8px; justify-content: center; margin: 12px 0 18px; flex-wrap: wrap; }
.purchase-steps .step { padding: 7px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text-muted); background: var(--card); border: 1px solid var(--border); }
.purchase-steps .step.active { background: rgba(201,168,76,.12); border-color: var(--border2); color: var(--gold); }

/* ============================================================
   DATATABLES
============================================================ */

/* DataTables injects dataTables_wrapper between .table-responsive and <table>.
   Needs overflow-x:auto so it becomes the horizontal scroll container.
   Higher specificity (.table-responsive ancestor) beats DataTables CDN CSS. */
.table-responsive div.dataTables_wrapper {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto !important;
  /* Firefox scrollbar */
  scrollbar-color: rgba(201,168,76,0.45) rgba(9,6,18,0.6);
  scrollbar-width: thin;
}
.table-responsive div.dataTables_wrapper::-webkit-scrollbar { height: 6px; }
.table-responsive div.dataTables_wrapper::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.45);
  border-radius: 3px;
}
.table-responsive div.dataTables_wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.7);
}
.table-responsive div.dataTables_wrapper::-webkit-scrollbar-track { background: rgba(9,6,18,0.6); }

/* Bootstrap .row inside dataTables_wrapper has -15px negative margins — neutralise them
   so the search/pagination rows don't bleed outside the panel. */
.table-responsive div.dataTables_wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Toolbar rows (custom dom: droplist-top / droplist-bottom) ── */
div.dataTables_wrapper .droplist-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
div.dataTables_wrapper .droplist-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}

/* Prevent length / filter from stretching full-width inside flex container */
div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ranking tables use Bootstrap default dom — give its rows the same padding */
div.dataTables_wrapper .row > .col-sm-12.col-md-6,
div.dataTables_wrapper .row > .col-sm-12 {
  padding-left: 4px;
  padding-right: 4px;
}

.dataTables_paginate { margin: 10px 0; text-align: center; }
.dataTables_paginate .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; padding: 0; margin: 0; }
.dataTables_paginate .pagination li a, .dataTables_paginate .pagination li span { background: var(--card); border: 1px solid var(--border2); color: var(--gold); padding: 6px 10px; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: all .2s; display: inline-block; min-width: 30px; text-align: center; }
.dataTables_paginate .pagination li a:hover { background: rgba(201,168,76,.14); color: #e8c076; }
.dataTables_paginate .pagination .active a, .dataTables_paginate .pagination .active span { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #fff; border-color: var(--border2); }
.dataTables_paginate .pagination .disabled a, .dataTables_paginate .pagination .disabled span { opacity: .35; cursor: default; }
.dataTables_wrapper .dataTables_info { color: var(--text-muted); font-size: 12px; line-height: 34px; }
/* Use background-color (not background shorthand) so the global gold-chevron background-image
   for <select> is preserved. Using background: would clear background-image. */
.dataTables_wrapper .dataTables_length select {
  background-color: var(--card2) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  height: 34px;
  padding: 4px 30px 4px 10px !important;
}
.dataTables_wrapper .dataTables_filter input {
  background-color: var(--card2) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  padding: 5px 10px !important;
  height: 34px;
}
/* Keep the same rules for specificity fall-through */
.dataTables_filter input[type="search"] {
  background-color: var(--card2) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
}
.dataTables_length select {
  background-color: var(--card2) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
}

/* ============================================================
   GLOBAL CUSTOM TOOLTIP  (#site-tip)
============================================================ */
#site-tip {
  background: rgba(9,6,18,.97);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0,0,0,.75);
  max-width: 280px;
  line-height: 1.55;
  text-align: center;
}

/* ============================================================
   UTILITY
============================================================ */
.text-gold, .text-gold-warm, .text-primary { color: var(--gold) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-online    { color: var(--green) !important; }
.text-offline   { color: var(--red) !important; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
.d-none-init    { display: none; }
.mb-3           { margin-bottom: 16px; }
.p-0            { padding: 0; }
.pull-right     { float: right; }
.pull-left      { float: left; }
.ml-1           { margin-left: 4px; }
.fw-bold        { font-weight: 700; }
.site-pointer    { cursor: pointer; }
.site-mw-260     { max-width: 260px; }
.site-mw-250-wrap{ max-width: 250px; word-wrap: break-word; }
.site-disc-list  { padding-left: 20px; list-style-type: disc; }
.site-meta-hint  { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.site-meta-sm    { margin-top: 8px; font-size: 13px; }
.site-inline-block{ display: inline-block; }
.site-card-text  { border-radius: var(--radius); font-size: 14px; }
.site-card-text-mt{ border-radius: var(--radius); font-size: 14px; margin-top: 15px; }
.site-mt-8       { margin-top: 8px; }
.site-pointer    { cursor: pointer; }
.site-left-mt6   { text-align: left; margin-top: 6px; }
.site-media-img  { width: 100%; border-radius: var(--radius); max-height: 180px; object-fit: cover; }
.site-flex-gallery{ margin: 18px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.captcha-group  { margin-top: 8px; }
.schedule-icon  { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius); vertical-align: middle; }
.dl-filter-btn  { min-width: 160px; }
.dl-output-header{ text-align: center; margin-bottom: 10px; }
.dl-output-title { font-weight: 700; }
.dl-output-meta  { font-size: 13px; margin-top: 4px; }
.dl-paths-toggle { text-decoration: none; }
.dl-paths-box    { display: none; margin: -2px 0 14px; }
.dl-file-status  { margin-bottom: 16px; }
.dl-paths-link-wrap{ text-align: center; margin-bottom: 14px; }
.dl-action-wrap  { text-align: center; margin-top: 6px; margin-bottom: 6px; }
.dl-action-hint  { margin-top: 8px; }
.dl-results-table{ margin: 0 0 8px; }
.dl-word-break   { word-break: break-all; }
.panel-body      { overflow: visible !important; }

/* input number spinners */
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { opacity: .4; cursor: pointer; }
input[type="number"]:hover::-webkit-inner-spin-button { opacity: 1; }

/* Bootstrap container override */
.container, .container-fluid { padding: 0; }

/* ============================================================
   NAV ACCOUNT DROPDOWN
============================================================ */
.nav-account {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-account > .nav-user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #08050f;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .22s;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(201,168,76,.35);
}
.nav-account > .nav-user-chip:hover { background: linear-gradient(135deg, #d4a040, var(--gold)); box-shadow: 0 0 24px rgba(201,168,76,.6); transform: translateY(-1px); color: #08050f; }
.nav-account > .nav-user-chip .nav-chip-caret { font-size: 11px; color: #08050f; margin-left: 2px; transition: transform .2s; opacity: .7; }
.nav-account.open > .nav-user-chip .nav-chip-caret { transform: rotate(-180deg); }
/* Hover bridge */
.nav-account::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; z-index: 999; }
/* Dropdown panel */
.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 210px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  list-style: none;
  padding: 6px 0;
  z-index: 1000;
}
.nav-account:hover > .account-dropdown,
.nav-account.open > .account-dropdown { display: block; }
.acdd-header {
  padding: 10px 16px 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.acdd-header i { margin-right: 6px; }
.account-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.account-dropdown li a:hover { background: rgba(201,168,76,.08); color: var(--text-light); }
.account-dropdown li a i { width: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
.account-dropdown li a:hover i { color: var(--gold); }
.acdd-highlight { color: var(--gold) !important; font-weight: 600 !important; }
.acdd-highlight i { color: var(--gold) !important; }
.acdd-info {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.acdd-info-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  opacity: .7;
}
.acdd-info-row {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.acdd-info-row i { color: var(--gold); width: 12px; text-align: center; flex-shrink: 0; font-size: 11px; }
.acdd-info-hint {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: .7;
  font-style: italic;
}
/* Purchase link — same row as other items, distinct gold colour */
.acdd-purchase-li { padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.acdd-purchase-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold) !important;
  background: rgba(201,168,76,.06);
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.acdd-purchase-btn:hover { background: rgba(201,168,76,.13); color: #e8c076 !important; text-decoration: none !important; }
.acdd-purchase-btn i { width: 16px; text-align: center; font-size: 12px; color: var(--gold); }
.acdd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.acdd-group-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(201,168,76,.45);
  pointer-events: none;
}
.acdd-group-lbl .fa { font-size: 9px; opacity: .75; }
.acdd-logout { color: var(--red) !important; }
.acdd-logout:hover { background: rgba(196,32,53,.08) !important; }
.acdd-logout i { color: var(--red) !important; }

/* ============================================================
   RANKINGS — unified tab page
============================================================ */
.rk-wrap { width: 100%; }

/* Tab bar */
.rk-tabbar {
  display: flex;
  align-items: stretch;
  background: var(--card2);
  border-bottom: 1px solid rgba(201,168,76,.12);
  overflow-x: auto;
  scrollbar-width: none;
}
.rk-tabbar::-webkit-scrollbar { display: none; }

.rk-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  outline: none;
}
.rk-tab .fa { font-size: 12px; }
.rk-tab:hover:not(.active) { color: rgba(201,168,76,.65); border-bottom-color: rgba(201,168,76,.2); }
.rk-tab.active { color: #c9a84c; border-bottom-color: #c9a84c; }

/* Content area */
.rk-content { min-height: 300px; }

/* Loading spinner (reuses ci-inv-spin keyframes) */
.rk-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.rk-loading-lbl { letter-spacing: .3px; }

/* Responsive: collapse tab labels on small screens */
@media (max-width: 540px) {
  .rk-tab span { display: none; }
  .rk-tab { padding: 13px 16px; }
}

/* ============================================================
   PAGE HERO (shared across content pages)
============================================================ */
.page-hero {
  text-align: center;
  padding: 36px 24px 28px;
  margin-bottom: 16px;
  position: relative;
}
.page-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 18px auto 0;
}
.page-hero-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border2);
  border-radius: 50%;
  font-size: 26px;
  color: var(--gold);
}
.page-hero-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.page-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.page-hero-actions {
  margin-top: 16px;
}
.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text-muted) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost-sm:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201,168,76,.06);
}
.page-hero-rules .page-hero-icon { background: rgba(196,32,53,.08); border-color: rgba(196,32,53,.3); color: #c42035; }

/* ── Spin Wheel ──────────────────────────────────────────────────────────── */
.sw-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 28px 24px 12px;
  flex-wrap: wrap;
}

/* Left column: controls + rewards list */
.sw-controls {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sw-ctrl-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sw-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sw-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.sw-select:focus { outline: none; border-color: var(--border2); }

.sw-requirements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sw-req-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-req-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}

.sw-req-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sw-req-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sw-req-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
}

.sw-spin-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(201,168,76,.06);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: .5;
  transition: all .2s;
}

.sw-spin-btn.sw-spin-ready {
  background: linear-gradient(135deg, #c9a84c, #e8c076);
  border-color: #c9a84c;
  color: #0d0916;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 24px rgba(201,168,76,.35);
}
.sw-spin-btn.sw-spin-ready:hover {
  box-shadow: 0 0 36px rgba(201,168,76,.55);
  transform: translateY(-1px);
}

/* Rewards list */
.sw-rewards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sw-rewards-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sw-rewards-title i { color: var(--gold); }

.sw-reward-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.sw-rarity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border2);
}

.sw-reward-name { flex: 1; color: var(--text-light); font-weight: 500; font-size: 12px; }
.sw-reward-amount { font-weight: 700; font-size: 12px; color: var(--gold); }
.sw-reward-pct { font-size: 11px; color: var(--text-muted); min-width: 36px; text-align: right; }

.sw-rarity-common    { border-left-color: rgba(120,120,120,.5); }
.sw-rarity-common    .sw-rarity-dot { background: #666; }
.sw-rarity-uncommon  { border-left-color: rgba(30,180,120,.5); }
.sw-rarity-uncommon  .sw-rarity-dot { background: #1eb878; }
.sw-rarity-uncommon  .sw-reward-pct { color: #1eb878; }
.sw-rarity-rare      { border-left-color: rgba(70,130,220,.5); }
.sw-rarity-rare      .sw-rarity-dot { background: #5ba4f5; }
.sw-rarity-rare      .sw-reward-pct { color: #5ba4f5; }
.sw-rarity-epic      { border-left-color: rgba(180,60,220,.5); }
.sw-rarity-epic      .sw-rarity-dot { background: #c43ee0; }
.sw-rarity-epic      .sw-reward-pct { color: #c43ee0; }

/* Right column: wheel */
.sw-wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sw-wheel-outer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sw-arrow {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 26px solid #c9a84c;
  z-index: 10;
  filter: drop-shadow(0 3px 8px rgba(201,168,76,.7));
}

#wheel {
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 40px rgba(0,0,0,.7), 0 0 80px rgba(201,168,76,.08);
}

/* Result box */
.sw-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  max-width: 380px;
  text-align: left;
}

.sw-result-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.sw-result-text { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.sw-result-text strong { color: var(--gold); }

/* Inline notices */
.sw-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}
.sw-notice i { font-size: 15px; }
.sw-notice-success { background: rgba(30,180,120,.07); border-color: rgba(30,180,120,.2); color: #1eb878; }
.sw-notice-warning { background: rgba(240,180,40,.07); border-color: rgba(240,180,40,.2); color: #f0b428; }
.sw-notice-danger  { background: rgba(196,32,53,.07);  border-color: rgba(196,32,53,.2);  color: #e05068; }

/* Mobile */
@media (max-width: 720px) {
  .sw-layout { flex-direction: column; align-items: center; padding: 20px 16px 12px; }
  .sw-controls { flex: 1 1 100%; width: 100%; }
  #wheel { width: 300px !important; height: 300px !important; }
}

/* ── Home Page ───────────────────────────────────────────────────────────── */

/* Countdown banner */
.home-countdown-wrap {
  padding: 36px 32px 28px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(201,168,76,.06), transparent);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
/* ── Countdown Banner ── */
.hcd-banner {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 26px;
  background: linear-gradient(110deg, rgba(14,9,24,.98) 0%, rgba(8,5,15,.95) 100%);
  border-bottom: 1px solid rgba(201,168,76,.1);
  position: relative; overflow: hidden;
}
.hcd-banner::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, #c9a84c 35%, #c9a84c 65%, transparent);
}
.hcd-banner::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,.35) 35%, rgba(201,168,76,.1) 70%, transparent);
}
.hcd-banner-left {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
}
.hcd-banner-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(201,168,76,.07); border: 1px solid rgba(201,168,76,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #c9a84c;
  animation: hcdIcoPulse 2.8s ease-in-out infinite;
}
@keyframes hcdIcoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,.18); }
  50%      { box-shadow: 0 0 0 9px rgba(201,168,76,0); }
}
.hcd-banner-eyebrow {
  font-size: 8.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(201,168,76,.38); margin-bottom: 3px;
}
.hcd-banner-title {
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
  color: #d4b86a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Digit units */
.hcd-units { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hcd-unit  { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.hcd-num {
  font-family: 'Cinzel', serif; font-size: 42px; font-weight: 700;
  color: #c9a84c; line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(201,168,76,.25);
}
.hcd-lbl {
  font-size: 8px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(201,168,76,.28); margin-top: 4px;
}
.hcd-colon {
  font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700;
  color: rgba(201,168,76,.2); line-height: 1; margin-bottom: 14px;
}
/* Live/Ended state */
.hcd-banner-live { background: linear-gradient(110deg, rgba(4,16,10,.98), rgba(8,5,15,.95)); border-bottom-color: rgba(93,222,136,.1); }
.hcd-banner-live::before { background: linear-gradient(to bottom, transparent, #5dde88 35%, #5dde88 65%, transparent); }
.hcd-banner-live .hcd-banner-ico { background: rgba(93,222,136,.07); border-color: rgba(93,222,136,.2); color: #5dde88; animation: none; }
.hcd-banner-live .hcd-banner-eyebrow { color: rgba(93,222,136,.5); }
.hcd-banner-live .hcd-banner-title   { color: rgba(93,222,136,.85); }
.hcd-ended-msg { font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700; color: rgba(93,222,136,.75); letter-spacing: .5px; }
@media (max-width: 640px) {
  .hcd-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 18px; }
  .hcd-num { font-size: 30px; } .hcd-colon { font-size: 22px; } .hcd-unit { min-width: 44px; }
}

/* Body grid */
.home-body-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  padding: 28px 24px;
}
.home-body-grid.home-no-video {
  grid-template-columns: 1fr;
}

/* Section header */
.home-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.home-section-head-pad { padding: 0 24px; margin-bottom: 14px; }
.home-section-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.home-section-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
}
.home-section-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .15s;
}
.home-section-link:hover { color: var(--gold); text-decoration: none; }
.home-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px 0;
}

/* News items */
.home-news-list { display: flex; flex-direction: column; gap: 8px; }
.home-news-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color .15s;
}
.home-news-item:hover { border-color: var(--border2); }
.home-news-item.hni-hidden { display: none; }

.hni-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.hni-head:hover { background: rgba(255,255,255,.02); }

.hni-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.hni-notice  { background: rgba(240,180,40,.12);  color: #f0b428; border: 1px solid rgba(240,180,40,.25); }
.hni-update  { background: rgba(60,130,220,.12);  color: #5ba4f5; border: 1px solid rgba(60,130,220,.25); }
.hni-event   { background: rgba(30,180,120,.12);  color: #1eb878; border: 1px solid rgba(30,180,120,.25); }

.hni-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hni-date  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.hni-chev  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-left: 4px; }

.hni-body {
  padding: 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  max-height: 2000px;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s ease;
}
.hni-body.hni-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}
.hni-body ul, .hni-body ol {
  padding-left: 20px;
  margin: 6px 0;
}
.hni-body li {
  margin-bottom: 4px;
}

.hni-more-row { text-align: center; padding: 6px 0 2px; }

/* Video */
.home-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.home-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* Rankings */
.home-rankings-wrap { padding: 0 24px 32px; }
.home-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.home-rank-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color .15s;
}
.home-rank-card:hover { border-color: var(--border2); }

.hrc-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,.06);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hrc-list { padding: 6px 0; }
.hrc-empty { text-align: center; font-size: 12px; color: var(--text-muted); padding: 14px; }
.hrc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.025);
}
.hrc-row:last-child { border-bottom: none; }
.hrc-rank {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  background: rgba(201,168,76,.07);
  color: var(--text-muted);
  flex-shrink: 0;
}
.hrc-r1 { background: rgba(201,168,76,.2);  color: var(--gold); }
.hrc-r2 { background: rgba(192,192,192,.12); color: #b0b0b0; }
.hrc-r3 { background: rgba(205,127,50,.12);  color: #cd7f32; }
.hrc-name {
  flex: 1;
  color: var(--text-light);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrc-lvl { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* Responsive */
@media (max-width: 960px) {
  .home-body-grid { grid-template-columns: 1fr; padding: 20px 16px; }
  .home-video-col { order: -1; }
  .home-body-grid.home-no-video { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .home-countdown-wrap { padding: 24px 16px 20px; }
  .hcd-box .time-segment { min-width: 56px; }
  .hcd-box .time-segment span { font-size: 28px; }
  .home-rankings-wrap { padding: 0 16px 24px; }
  .home-section-head-pad { padding: 0 16px; }
}

/* ── Droplist Builder ────────────────────────────────────────────────────── */
.dlb-info-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.dlb-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
}
.dlb-info-item:last-child { border-right: none; }
.dlb-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dlb-info-label i { color: var(--gold); margin-right: 5px; }
.dlb-info-val {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  word-break: break-all;
}

.dlb-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.dlb-section-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dlb-section-head i { color: var(--gold); }

.dlb-file-list { display: flex; flex-direction: column; gap: 6px; }
.dlb-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.dlb-file-name {
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dlb-file-name i { color: var(--text-muted); font-size: 12px; }

.dlb-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dlb-badge-ok  { background: rgba(30,180,120,.12); color: #1eb878; border: 1px solid rgba(30,180,120,.25); }
.dlb-badge-err { background: rgba(196,32,53,.12);  color: #e05068; border: 1px solid rgba(196,32,53,.25); }

.dlb-paths-toggle-row {
  margin-top: 12px;
}
.dlb-paths-box { display: none; margin-top: 12px; }
.dlb-paths-list .dlb-file-row { background: rgba(0,0,0,.2); }
.dlb-path-val {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  text-align: right;
  flex: 1;
}

.dlb-action {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.dlb-build-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(201,168,76,.06);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: .5;
  transition: all .2s;
}
.dlb-build-btn.dlb-build-ready {
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.08));
  border-color: rgba(201,168,76,.4);
  color: var(--gold);
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 20px rgba(201,168,76,.1);
}
.dlb-build-btn.dlb-build-ready:hover {
  background: linear-gradient(135deg, rgba(201,168,76,.25), rgba(201,168,76,.12));
  box-shadow: 0 0 32px rgba(201,168,76,.25);
  border-color: rgba(201,168,76,.6);
}
.dlb-action-hint {
  font-size: 12px;
  color: #e05068;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dlb-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(30,180,120,.07);
  border-bottom: 1px solid rgba(30,180,120,.2);
  color: #1eb878;
  font-size: 14px;
  font-weight: 600;
}
.dlb-success i { font-size: 18px; }

.dlb-results-section { border-bottom: none; }
.dlb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.dlb-stat-card {
  padding: 14px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.dlb-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
  font-family: var(--font-head);
}
.dlb-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: .4px;
}
.dlb-saved-path {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
  padding: 10px 0 0;
}
.dlb-saved-path i { color: var(--gold); margin-right: 5px; }
.dlb-saved-path span { color: var(--text); }

@media (max-width: 600px) {
  .dlb-info-bar { flex-direction: column; }
  .dlb-info-item { border-right: none; border-bottom: 1px solid var(--border); }
  .dlb-section { padding: 16px; }
  .dlb-action { padding: 20px 16px; }
  .dlb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Rules notice bar */
.rules-notice {
  background: rgba(196,32,53,.07);
  border: 1px solid rgba(196,32,53,.25);
  border-left: 3px solid #c42035;
  color: #d98a90;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rules-notice i { color: #c42035; margin-top: 1px; flex-shrink: 0; }

/* ============================================================
   CUSTOM ACCORDION (.site-accordion)
============================================================ */
.site-accordion { display: flex; flex-direction: column; gap: 6px; }
.site-acc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.site-acc-item.site-acc-open { border-color: var(--border2); }
.site-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .18s, color .18s;
}
.site-acc-trigger:hover { background: rgba(201,168,76,.05); }
.site-acc-item.site-acc-open .site-acc-trigger { background: rgba(201,168,76,.07); color: var(--gold); }
/* Numbered badge */
.site-acc-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
}
.site-acc-item.site-acc-open .site-acc-num { background: rgba(201,168,76,.20); }
/* FAQ uses a question-mark icon instead of number */
.faq-q-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--border2);
  border-radius: 50%;
  font-size: 12px;
  color: var(--gold);
}
.site-acc-title { flex: 1; }
.site-acc-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: transform .22s;
}
.site-acc-item.site-acc-open .site-acc-arrow { transform: rotate(-180deg); color: var(--gold); }
.site-acc-body { border-top: 1px solid var(--border); }
.site-acc-inner {
  padding: 16px 18px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}
.site-acc-inner ul { padding-left: 20px; margin: 6px 0; }
.site-acc-inner li { margin-bottom: 6px; }
.site-acc-inner strong { color: var(--text-light); }
.site-acc-inner a { color: var(--gold); text-decoration: none; }
.site-acc-inner a:hover { text-decoration: underline; }

/* FAQ search bar — flex wrapper, no absolute positioning */
.faq-search-wrap {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.faq-search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.faq-search-icon {
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  flex-shrink: 0;
  margin-right: 10px;
  line-height: 1;
}
.faq-search-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 0;
  box-shadow: none;
}
.faq-search-input:focus { outline: none; border: none; box-shadow: none; }

/* ============================================================
   DOWNLOAD PAGE STRUCTURE
============================================================ */
.dl-wrap { max-width: 860px; margin: 0 auto; padding: 20px; }
@media (max-width: 600px) { .dl-wrap { padding: 12px; } }
.dl-section { margin-bottom: 20px; }
.dl-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dl-section-label i { color: var(--gold); }
/* Hero client card */
.dl-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  margin-bottom: 10px;
}
.dl-hero-left { display: flex; align-items: center; gap: 18px; flex: 1 1 260px; }
.dl-hero-icon-wrap {
  flex-shrink: 0;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--border2);
  border-radius: 12px;
  font-size: 24px;
  color: var(--gold);
}
.dl-hero-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.dl-hero-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.dl-hero-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.dl-hero-meta span { font-size: 12px; color: var(--text-muted); }
.dl-hero-meta span i { color: var(--gold); margin-right: 4px; }
.dl-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-dl-hero { padding: 10px 20px !important; font-size: 13.5px !important; font-weight: 700 !important; }
/* Patch — single card */
.dl-patch-single {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex-wrap: wrap;
  transition: border-color .2s;
}
.dl-patch-single:hover { border-color: var(--border2); }
.dl-patch-single-left { display: flex; align-items: center; gap: 14px; flex: 1 1 220px; }
.dl-patch-badge {
  flex-shrink: 0;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  text-transform: uppercase;
}
.dl-patch-single-name { font-weight: 700; color: var(--text-light); font-size: 14px; margin-bottom: 3px; }
.dl-patch-single-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.dl-patch-single-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.dl-patch-single-meta span { font-size: 12px; color: var(--text-muted); }
.dl-patch-single-meta span i { color: var(--gold); margin-right: 4px; }
.dl-patch-single-btns { display: flex; gap: 6px; flex-wrap: wrap; }
/* Client card gets gold left border to distinguish from patch */
.dl-client-single { border-left: 3px solid var(--gold) !important; }
/* Required programs list */
.dl-req-list { display: flex; flex-direction: column; gap: 8px; }
.dl-req-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color .2s;
  flex-wrap: wrap;
}
.dl-req-item:hover { border-color: var(--border2); }
.dl-req-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 14px;
}
.dl-req-info { flex: 1; min-width: 140px; }
.dl-req-name { font-weight: 700; color: var(--text-light); font-size: 13.5px; }
.dl-req-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dl-req-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; }
.dl-req-meta span { font-size: 11.5px; color: var(--text-muted); }
.dl-req-meta span i { color: var(--gold); margin-right: 3px; }
.dl-req-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   CONTENT PAGES — DOWNLOAD
============================================================ */
/* Section heading inside download panel */
.panel-body > h5.text-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold) !important;
  padding: 10px 0 10px;
  position: relative;
}
.panel-body > h5.text-gold::before,
.panel-body > h5.text-gold::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 80px;
  background: linear-gradient(to right, transparent, var(--border2));
}
.panel-body > h5.text-gold::after {
  background: linear-gradient(to left, transparent, var(--border2));
}
/* Main client download row — slightly more prominent */
.download-section:first-of-type .download-row {
  border-left: 3px solid var(--gold);
}
.download-row h5 { font-size: 14.5px; font-weight: 700; margin: 0 0 4px; }
.download-row .small { font-size: 12px; }

/* ============================================================
   CONTENT PAGES — ACCORDION (FEATURES / RULES / FAQ)
============================================================ */
/* Heading row */
.panel-group > .panel > .panel-heading {
  padding: 0;
  border-radius: var(--radius) !important;
  transition: background .18s;
}
.panel-group > .panel > .panel-heading .panel-title a,
.panel-group > .panel > .panel-heading h5.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light) !important;
  text-decoration: none;
  letter-spacing: .3px;
  gap: 10px;
}
.panel-group > .panel > .panel-heading .panel-title a::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: FontAwesome;
  font-size: 11px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .22s;
}
/* Rotate chevron when the sibling collapse is open */
.panel-group > .panel > .panel-heading .panel-title a[aria-expanded="true"]::after,
.panel-group > .panel > .panel-heading .panel-title a.collapsed::after { transform: none; }
.panel-group > .panel > .panel-collapse.in ~ * { /* unused fallback */ }
/* Bootstrap 3 uses data-toggle="collapse" — track open state via .in sibling */
.panel-group > .panel > .panel-heading:has(+ .panel-collapse.in) .panel-title a::after { transform: rotate(-180deg); }
.panel-group > .panel > .panel-heading:has(+ .panel-collapse.in) { background: rgba(201,168,76,.06); }
.panel-group > .panel > .panel-heading:has(+ .panel-collapse.in) .panel-title a { color: var(--gold) !important; }
/* Nested panel inside panel-group shouldn't get the outer panel decoration */
.panel-group > .panel { margin-bottom: 6px !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden; }
.panel-group > .panel::before { display: none !important; }
/* FAQ special — question has no <a> wrapper in some versions, use data-toggle on heading */
.panel-group > .panel > .panel-heading[data-toggle="collapse"] { cursor: pointer; }
.panel-group > .panel > .panel-heading[data-toggle="collapse"]::after {
  content: '\f078';
  font-family: FontAwesome;
  font-size: 11px;
  color: var(--gold);
  float: right;
  margin-top: 3px;
  transition: transform .22s;
}
.panel-group > .panel > .panel-heading[data-toggle="collapse"]:has(+ .panel-collapse.in)::after { transform: rotate(-180deg); }
.panel-group > .panel > .panel-heading[data-toggle="collapse"]:has(+ .panel-collapse.in) { background: rgba(201,168,76,.06); }

/* ============================================================
   CONTENT PAGES — SCHEDULE
============================================================ */
.schedule-next-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(201,168,76,.06);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 18px;
  margin: 14px 14px 18px;
  font-size: 13px;
}
.schedule-next-label { color: var(--text-muted); font-weight: 600; }
.schedule-next-value { color: var(--gold); font-weight: 700; font-size: 14px; }
/* Improve schedule nav tabs */
.schedule-nav { padding: 0 14px; }
.schedule-nav a {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
}
.schedule-nav a:hover,
.schedule-nav a.active-day { background: rgba(201,168,76,.16); border-color: var(--gold); color: var(--gold); }
/* Schedule wrapper spacing */
.schedule-wrapper { padding: 0 14px 14px; }
/* Today card extra glow */
.schedule-card.today { border-color: var(--border2); box-shadow: 0 0 18px rgba(201,168,76,.10); }
.schedule-card.today .schedule-header { font-size: 14px; letter-spacing: 1px; }
/* Schedule item inner layout */
.schedule-item { gap: 10px; border-color: transparent; }
.schedule-item:hover { border-color: var(--border); }
/* Countdown timer chip look */
.schedule-timer {
  display: inline-block;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11.5px;
  margin-top: 4px;
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 991px) {
  /* Panel now positions relative to .top-nav (which has position:relative),
     so top:100% always sticks to the nav's actual height — works at 64px and 54px (scrolled). */
  .main-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,4,14,.99); flex-direction: column; padding: 10px 0 18px; border-bottom: 1px solid var(--border); z-index: 800; }
  .main-menu.mobile-open { display: flex; }
  .main-menu > li > a { height: auto; padding: 13px 22px; width: 100%; font-size: 13px; border-bottom: 1px solid var(--border); }
  .main-menu > li > a::after { display: none; }
  /* Bridge pseudo-element is only needed for desktop hover — disable on mobile */
  .main-menu > li.has-dropdown::after { display: none; }
  /* Sub-menu: static, no border-overlap trick, no box-shadow */
  .has-dropdown > .dropdown { display: none !important; position: static !important; margin-top: 0 !important; background: rgba(7,4,16,.98) !important; border: none !important; box-shadow: none !important; border-top: none !important; }
  .has-dropdown.open > .dropdown { display: block !important; }
  /* Rotate chevron when Game sub-menu is open */
  .main-menu > li > a i.fa-angle-down { transition: transform .2s; }
  .has-dropdown.open > a > i.fa-angle-down { transform: rotate(180deg); }
  .dropdown li a { padding: 11px 32px !important; font-size: 12px !important; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  /* Collapse all nav-right buttons to icon-only on mobile for a consistent, uncrowded header */
  .register-nav-btn span { display: none; }
  .login-toggle-btn span { display: none; }
  .nav-discord-btn span   { display: none; }
  /* Uniform, comfortable tap targets (~44px) for the icon-only buttons */
  .register-nav-btn,
  .login-toggle-btn,
  .nav-discord-btn { padding: 0; min-width: 42px; min-height: 40px; justify-content: center; }
  .nav-right { gap: 7px; }
  /* Logged-in chip: match the 40px height of the icon-only buttons (Discord/Login/
     Register) so the header row lines up; truncate long usernames below. */
  .nav-account > .nav-user-chip { padding: 0 12px; min-height: 40px; box-sizing: border-box; }
  .nav-user-chip span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-dropdown { max-width: calc(100vw - 20px); }
  .site-logo-name { display: none; }
  body.login-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .stats-bar-inner { gap: 0; }
  .stat-item { padding: 0 12px; }
  .stat-vote { display: none; }
  .stat-spin { display: none; }
  .stat-discord { display: none; }
  .login-panel.open { max-height: 500px; }
  /* Stack as equal, full-width fields (stretch, not content-sized) so username
     and password are identical on mobile. */
  .login-form-grid { flex-direction: column; align-items: stretch; }
  .lp-field { flex: 0 0 auto; width: 100%; }
  .lp-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   CHAR INFO / INVENTORY VIEWER  (ci-*)
============================================================ */

/* ── Search Form ── */
.ci-search-wrap {
  padding: 24px;
  margin-bottom: 6px;
  /* No border/background here: this sits directly inside the .panel card,
     which already provides the border + surface. A second identical border
     right against it read as a doubled border. */
}
.ci-search-type-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ci-type-opt {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(201,168,76,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s, color .18s, background .18s;
  user-select: none;
}
.ci-type-opt i { color: var(--gold); opacity: .55; font-size: 14px; transition: opacity .18s; }
.ci-type-opt:hover { border-color: var(--border2); color: var(--text-light); }
.ci-type-opt:hover i { opacity: .8; }
.ci-type-opt.active {
  border-color: var(--gold);
  background: rgba(201,168,76,.13);
  color: var(--gold);
}
.ci-type-opt.active i { opacity: 1; }
.ci-type-opt input[type="radio"] { display: none; }

.ci-search-sub {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ci-sub-opt {
  padding: 5px 12px;
  background: rgba(201,168,76,.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .18s, color .18s, background .18s;
  user-select: none;
}
.ci-sub-opt:hover { border-color: var(--border2); color: var(--text-light); }
.ci-sub-opt.active {
  border-color: var(--gold);
  background: rgba(201,168,76,.13);
  color: var(--gold);
}
.ci-sub-opt input[type="radio"] { display: none; }

.ci-search-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ci-search-field {
  flex: 1;
  position: relative;
}
.ci-search-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}
.ci-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8,5,15,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 13px;
  outline: none;
  transition: border-color .18s;
}
.ci-input:focus { border-color: var(--gold); }
.ci-input::placeholder { color: var(--text-muted); }
/* Character-name autocomplete dropdown (By Name search) */
.ci-ac {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 60;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
}
.ci-ac.open { display: block; }
.ci-ac div {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}
.ci-ac div:hover, .ci-ac div.sel { background: rgba(201,168,76,.2); color: var(--gold); }

/* ── Shared item-index widget (item-widget.js): live preview + name search ──
   Used by the Send Item and Item Search admin tools. */
.ac-wrap { position: relative; }
.item-preview { display: flex; align-items: center; gap: 9px; margin-top: 7px; padding: 7px 11px; border-radius: 8px; font-size: 13px; line-height: 1.3; border: 1px solid transparent; }
.item-preview img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; background: rgba(0,0,0,.25); border-radius: 5px; flex: 0 0 auto; }
.item-preview .ip-name { font-weight: 600; color: #e8d5a0; }
.item-preview .ip-idx { color: rgba(255,255,255,.4); font-size: 12px; margin-left: 2px; }
.item-preview.ip-loading { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.item-preview.ip-ok { background: rgba(76,175,114,.1); border-color: rgba(76,175,114,.32); }
.item-preview.ip-bad { background: rgba(196,64,53,.12); border-color: rgba(196,64,53,.35); color: #e9a7a1; }
/* dropdown shell (shares the .char-ac look) */
.char-ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--card); border: 1px solid var(--gold); border-top: none; border-radius: 0 0 8px 8px; max-height: 240px; overflow-y: auto; display: none; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.char-ac.open { display: block; }
.char-ac div { padding: 7px 11px; font-size: 13px; color: var(--text-light); cursor: pointer; text-align: left; }
.char-ac div:hover, .char-ac div.sel { background: rgba(201,168,76,.2); color: #fff; }
.item-find div { display: flex; align-items: center; gap: 9px; }
.item-find img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; background: rgba(0,0,0,.25); border-radius: 4px; flex: 0 0 auto; }
.item-find .if-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-find .if-idx { color: rgba(255,255,255,.4); font-size: 12px; flex: 0 0 auto; }

.ci-search-btn {
  padding: 10px 22px;
  background: var(--gold);
  color: #0d0916;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .18s, box-shadow .18s;
}
.ci-search-btn:hover { opacity: .88; box-shadow: 0 0 14px rgba(201,168,76,.35); }

/* ── Security Gate ── */
.ci-security-gate {
  text-align: center;
  padding: 48px 24px;
  max-width: 440px;
  margin: 0 auto;
}
.ci-security-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: .8;
}
.ci-security-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.ci-security-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.ci-security-form { display: flex; gap: 8px; max-width: 320px; margin: 0 auto; }
.ci-security-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(8,5,15,.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 13px;
  outline: none;
  transition: border-color .18s;
}
.ci-security-input:focus { border-color: var(--gold); }
.ci-unlock-btn {
  padding: 10px 18px;
  background: var(--gold);
  color: #0d0916;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .18s;
}
.ci-unlock-btn:hover { opacity: .88; }

/* ── Result Sections ── */
.ci-section {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.ci-section:first-child { border-top: none; }
.ci-section-head {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ci-section-head i { opacity: .8; }

/* ── Account Info Cards ── */
.ci-ic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 2px 0;
}
.ci-ic-wide { grid-column: 1 / -1; }
.ci-ic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(8,5,15,.45);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.ci-ic-copy { cursor: pointer; }
.ci-ic-copy:hover {
  background: rgba(201,168,76,.07);
  border-color: rgba(201,168,76,.3);
}
.ci-ic-icon {
  font-size: 15px;
  color: rgba(201,168,76,.38);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.ci-ic-body { flex: 1; min-width: 0; }
.ci-ic-lbl {
  font-family: var(--font);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.ci-ic-val {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-light);
  word-break: break-all;
  line-height: 1.3;
}
.ci-ic-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  line-height: 1.5;
}
.ci-ic-copy-ico {
  font-size: 11px;
  color: rgba(201,168,76,.18);
  flex-shrink: 0;
  transition: color .12s;
}
.ci-ic-copy:hover .ci-ic-copy-ico { color: rgba(201,168,76,.6); }
.ci-mono { font-family: 'Courier New', monospace; font-size: 12px; }

/* ── Character Stat Grid ── */
.ci-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.ci-stat {
  background: rgba(8,5,15,.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .18s;
}
.ci-stat:hover { border-color: var(--border2); }
.ci-stat-wide {
  grid-column: span 2;
}
.ci-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.ci-stat-val {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 700;
  word-break: break-word;
}

/* ── Badges ── */
.ci-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
}
.ci-badge-online  { background: rgba(93,191,138,.15); color: #5dbf8a; border: 1px solid rgba(93,191,138,.3); }
.ci-badge-offline { background: rgba(122,106,88,.12); color: var(--text-muted); border: 1px solid var(--border); }
.ci-badge-success { background: rgba(93,191,138,.15); color: #5dbf8a; border: 1px solid rgba(93,191,138,.3); }
.ci-badge-danger  { background: rgba(196,32,53,.15);  color: #e05065; border: 1px solid rgba(196,32,53,.3); }
.ci-badge-info    { background: rgba(201,168,76,.12); color: var(--gold); border: 1px solid var(--border2); }
.ci-badge-warn    { background: rgba(255,160,0,.12);  color: #ffa000; border: 1px solid rgba(255,160,0,.3); }

/* ── Character Links ── */
/* ── Other Characters cards ── */
.ci-other-chars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 4px;
}
.ci-other-char {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  background: rgba(201,168,76,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.ci-other-char:hover {
  border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.09);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  text-decoration: none;
}
.ci-oc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ci-oc-active  .ci-oc-dot { background: #5dbf8a; box-shadow: 0 0 5px rgba(93,191,138,.5); }
.ci-oc-deleted .ci-oc-dot { background: #e05065; box-shadow: 0 0 5px rgba(224,80,101,.5); }
.ci-oc-sale    .ci-oc-dot { background: #7ab0ff; box-shadow: 0 0 5px rgba(122,176,255,.5); }
.ci-oc-name {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  color: var(--text-light);
}
.ci-oc-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.ci-oc-active  .ci-oc-badge { color: #5dbf8a; background: rgba(93,191,138,.12);  border: 1px solid rgba(93,191,138,.2); }
.ci-oc-deleted .ci-oc-badge { color: #e05065; background: rgba(224,80,101,.1);   border: 1px solid rgba(224,80,101,.2); }
.ci-oc-sale    .ci-oc-badge { color: #7ab0ff; background: rgba(122,176,255,.1);  border: 1px solid rgba(122,176,255,.2); }
.ci-oc-lvl { font-size: 11px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.ci-link-del { border-color: rgba(196,32,53,.2); color: #e05065; }
.ci-link-del:hover { border-color: var(--red); background: rgba(196,32,53,.12); color: #e05065; }
.ci-link-del i { color: #e05065; }

/* ── Section count badge ── */
.ci-section-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

/* ── Skills Card Grid ── */
.ci-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.ci-skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8,5,15,.45);
  transition: border-color .18s, background .18s;
}
.ci-skill-card:hover { border-color: var(--border2); background: rgba(201,168,76,.05); }
.csk-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(201,168,76,.08);
  border: 1px solid var(--border);
  overflow: hidden;
}
.csk-icon img { width: 32px; height: 32px; object-fit: contain; }
.csk-icon i { font-size: 15px; color: var(--gold); opacity: .6; }
.csk-info { flex: 1; min-width: 0; }
.csk-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.csk-lv-bar { display: flex; align-items: center; gap: 4px; }
.csk-lv-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  font-weight: 700;
}
.csk-lv-val {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-head);
}
/* Rarity tiers */
.csk-common  { border-color: var(--border); }
.csk-common  .csk-lv-val { color: var(--text-muted); }
.csk-uncommon { border-color: rgba(93,191,138,.3); }
.csk-uncommon .csk-icon { background: rgba(93,191,138,.08); border-color: rgba(93,191,138,.2); }
.csk-uncommon .csk-lv-val { color: #5dbf8a; }
.csk-rare  { border-color: rgba(100,150,255,.3); }
.csk-rare  .csk-icon { background: rgba(100,150,255,.08); border-color: rgba(100,150,255,.2); }
.csk-rare  .csk-lv-val { color: #7ab0ff; }
.csk-epic  { border-color: rgba(180,90,255,.35); }
.csk-epic  .csk-icon { background: rgba(180,90,255,.1); border-color: rgba(180,90,255,.25); }
.csk-epic  .csk-lv-val { color: #c87dff; }

/* ── Character Items ── */
.ci-items-section { padding-bottom: 24px; }
.ci-items-section + .ci-section { border-top: 2px solid var(--border2); }
.ci-inv-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ci-inv-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(8,5,15,.5);
}
.ci-inv-tab {
  padding: 11px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .6px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ci-inv-tab:hover { color: var(--text-light); }
.ci-inv-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.ci-inv-tab i { font-size: 11px; }
.ci-inv-body { background: rgba(8,5,15,.25); }
.ci-inv-pane { display: none; padding: 16px; }
.ci-inv-pane.active { display: block; }
/* Storage uses a pixel-perfect background image layout — no padding */
.ci-storage-pane { padding: 12px 16px; }
.ci-inv-tab-count {
  display: inline-block;
  margin-left: 5px;
  padding: 0 6px;
  background: rgba(201,168,76,.15);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font);
  letter-spacing: 0;
}

/* ── Guild Position ── */
.ci-pos-badge {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ci-pos-badge i { font-size: 12px; }
.ci-pos-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 8px;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: middle;
}

/* ── Errors / Warnings ── */
.ci-errors-wrap {
  margin: 12px 16px;
  padding: 10px 14px;
  background: rgba(196,32,53,.08);
  border: 1px solid rgba(196,32,53,.25);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ci-error-item {
  color: #e05065;
  font-size: 12.5px;
  font-weight: 500;
}
.ci-error-item .fa {
  margin-right: 6px;
  opacity: .85;
}

/* ── Generic link inside sections ── */
.ci-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201,168,76,.35);
  transition: opacity .15s;
}
.ci-link:hover { opacity: .75; text-decoration: none; }

/* ── Char group label (class row header) ── */
.ci-char-group-label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .ci-search-type-row { flex-direction: column; }
  .ci-type-opt { flex: 1 1 auto; }
  .ci-search-input-row { flex-direction: column; }
  .ci-search-btn { width: 100%; }
  .ci-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ci-stat-wide { grid-column: span 2; }
  .ci-ic-grid { grid-template-columns: 1fr; }
  .ci-security-form { flex-direction: column; }
  .ci-unlock-btn { width: 100%; }
}

/* ============================================================
   GEAR HALL OF FAME
============================================================ */
.gr { font-family: 'Exo 2', sans-serif; font-size: 13px; }

/* ── Grade selector ── */
.gr-grade-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(6,3,12,.5);
  border-bottom: 1px solid rgba(201,168,76,.1);
  padding: 0 24px;
}
.gr-grade-btn {
  padding: 13px 28px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(201,168,76,.38);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.gr-grade-btn.active { color: #c9a84c; border-bottom-color: #c9a84c; }
.gr-grade-btn:hover:not(.active) { color: rgba(201,168,76,.65); border-bottom-color: rgba(201,168,76,.25); }
.gr-grade-stat {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 20px;
  padding: 1px 7px;
  vertical-align: middle;
}
.gr-grade-btn.active .gr-grade-stat { color: rgba(201,168,76,.7); background: rgba(201,168,76,.12); }

/* ── Grade panel ── */
.gr-panel { display: none; }
.gr-panel.active { display: block; }

/* ── Stats strip ── */
.gr-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(8,5,15,.3);
  border-bottom: 1px solid rgba(201,168,76,.07);
}
.gr-stat {
  text-align: center;
  padding: 14px 40px;
  border-right: 1px solid rgba(201,168,76,.06);
}
.gr-stat:last-child { border-right: none; }
.gr-stat-nums { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; color: #c9a84c; line-height: 1; }
.gr-stat-nums em { font-style: normal; font-size: 13px; color: rgba(201,168,76,.45); margin: 0 2px; }
.gr-stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(201,168,76,.35); margin-top: 4px; font-weight: 700; }

/* ── Section block (Armor / Weapons) ── */
.gr-section { padding: 28px 24px 24px; }
.gr-section + .gr-section {
  border-top: 1px solid rgba(201,168,76,.08);
  padding-top: 28px;
}

/* ── Section heading ── */
.gr-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.gr-sec-head i { font-size: 16px; color: rgba(201,168,76,.45); }
.gr-sec-title { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #c9a84c; }
.gr-sec-sub { font-size: 10.5px; color: rgba(201,168,76,.35); font-weight: 700; margin-left: 4px; }
.gr-sec-line { flex: 1; height: 1px; background: linear-gradient(to right, rgba(201,168,76,.18), transparent); }

/* ── Class card grid ── */
.gr-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* ── Class card ── */
.gr-card {
  background: rgba(8,5,15,.55);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.gr-card:hover {
  border-color: rgba(201,168,76,.3);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}

/* Card header */
.gr-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 11px;
  background: rgba(201,168,76,.04);
  border-bottom: 1px solid rgba(201,168,76,.09);
}
.gr-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.gr-card-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  flex: 1;
}
.gr-card-pct {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  color: rgba(201,168,76,.5);
}
.gr-card-pct.full { color: #f7c873; }

/* Progress bar */
.gr-bar { height: 2px; background: rgba(201,168,76,.08); }
.gr-bar-fill { height: 100%; background: linear-gradient(to right, #c9a84c, #f7c873); transition: width .4s; }
.gr-bar-fill.full { background: linear-gradient(to right, #f7c873, #ffe49a); }

/* Card body */
.gr-card-body { padding: 14px 16px 16px; }

/* Slot rows */
.gr-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(201,168,76,.05);
}
.gr-slot:last-of-type { border-bottom: none; }

.gr-slot-check {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,168,76,.2);
  background: rgba(201,168,76,.05);
  font-size: 9px;
}
.gr-slot-check.got {
  background: rgba(201,168,76,.18);
  border-color: rgba(201,168,76,.55);
  color: #f7c873;
}
.gr-slot-check.not { color: transparent; }

.gr-slot-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(201,168,76,.45);
  flex: 1;
  min-width: 0;
}
.gr-slot-player {
  font-size: 11.5px;
  font-weight: 700;
  color: #e8dcc8;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.gr-slot-none {
  font-size: 10.5px;
  color: rgba(255,255,255,.15);
}

/* Full set badge */
.gr-fullset {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px 13px;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 6px;
}
.gr-fullset i { font-size: 15px; color: #f7c873; flex-shrink: 0; }
.gr-fullset-inner { min-width: 0; }
.gr-fullset-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(201,168,76,.5); line-height: 1;
}
.gr-fullset-winner {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: #f7c873; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gr-fullset-none {
  font-size: 11px; color: rgba(255,255,255,.2); margin-top: 3px;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .gr-class-grid { grid-template-columns: 1fr; }
  .gr-section { padding: 20px 14px; }
  .gr-stats { flex-wrap: wrap; }
  .gr-stat { padding: 10px 20px; }
  .gr-grade-btn { padding: 12px 16px; font-size: 11px; }
}

/* ============================================================
   SHARED MODAL UTILITIES
============================================================ */
.site-modal-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(247,200,115,0.25);
  box-shadow: 0 0 15px rgba(247,200,115,0.25);
}

/* ============================================================
   ACCOUNT FORMS  (.af-*)
   register, recoverpw, recoversn, changemail,
   changepw, unstuck, rage, guildtime
============================================================ */
.af-card {
  max-width: 460px;
  margin: 8px auto 0;
  padding: 28px 32px 26px;
  background: rgba(8,5,15,.55);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: 10px;
}

/* Field group */
.af-field { margin-bottom: 16px; }
.af-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(201,168,76,.5);
  margin-bottom: 6px;
  font-family: 'Exo 2', sans-serif;
}
.af-label i { font-size: 11px; }

/* Input & select */
.af-input,
.af-select {
  width: 100%;
  height: 42px;
  background: rgba(6,3,12,.7);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 6px;
  color: #e8dcc8;
  font-family: 'Exo 2', sans-serif;
  font-size: 13.5px;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.af-input:focus,
.af-select:focus {
  outline: none;
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}
.af-input::placeholder { color: rgba(255,255,255,.18); }
.af-input:disabled { opacity: .45; cursor: not-allowed; background: rgba(201,168,76,.04); }

/* Select with gold arrow */
.af-select-wrap { position: relative; }
.af-select-wrap::after {
  content: '\f107';
  font-family: FontAwesome;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201,168,76,.45);
  pointer-events: none;
  font-size: 14px;
}
.af-select { padding-right: 34px; }
.af-select option { background: #0d0a1a; color: #e8dcc8; }

/* Read-only current-value display */
.af-display {
  width: 100%;
  height: 42px;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: 6px;
  color: rgba(201,168,76,.55);
  font-family: 'Exo 2', sans-serif;
  font-size: 13.5px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Divider */
.af-divider { height: 1px; background: rgba(201,168,76,.07); margin: 20px 0; }

/* Actions */
.af-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hint */
.af-hint {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  text-align: center;
  margin-top: 14px;
  font-family: 'Exo 2', sans-serif;
  line-height: 1.55;
}

/* Notice bar (offline warning, cooldown info) */
.af-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: 'Exo 2', sans-serif;
  margin-bottom: 18px;
  line-height: 1.5;
}
.af-notice i { margin-top: 1px; flex-shrink: 0; }
.af-notice-warning { background: rgba(201,168,76,.07); border: 1px solid rgba(201,168,76,.18); color: rgba(201,168,76,.8); }
.af-notice-info    { background: rgba(100,160,255,.06); border: 1px solid rgba(100,160,255,.14); color: rgba(160,200,255,.7); }
.af-notice-success { background: rgba(93,191,138,.06); border: 1px solid rgba(93,191,138,.18); color: #5dbf8a; }

/* Success state */
.af-success {
  text-align: center;
  padding: 24px 16px 10px;
}
.af-success-icon { font-size: 46px; color: rgba(93,191,138,.65); display: block; margin-bottom: 14px; }
.af-success-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; color: #5dbf8a; margin: 0 0 8px; }
.af-success-msg { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; margin: 0 0 4px; }

/* Secret number display box */
.af-sn-box {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #f7c873;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 6px;
  padding: 10px 24px;
  letter-spacing: 5px;
  margin: 12px 0 6px;
}
.af-sn-save {
  font-size: 11px;
  color: rgba(201,168,76,.45);
  font-family: 'Exo 2', sans-serif;
}

/* ============================================================
   PASSWORD VISIBILITY TOGGLE
============================================================ */
/* Login panel toggle */
.lp-field .pw-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.lp-field .pw-toggle:hover { color: var(--gold); }

/* af-input form toggle */
.af-pw-wrap { position: relative; }
.af-pw-wrap .af-input { padding-right: 42px; }
.af-pw-wrap .pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  width: 40px;
  background: none;
  border: none;
  color: rgba(201,168,76,.35);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.af-pw-wrap .pw-toggle:hover { color: var(--gold); }

/* CAPTCHA field */
.af-captcha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.af-captcha .captcha-img {
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 4px;
  background: #222;
  height: 44px;
  width: 140px;
  display: block;
}
.af-captcha .captcha-refresh {
  height: 44px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HEADER SCROLL-SHRINK
============================================================ */
.top-nav { transition: height .25s ease, box-shadow .25s ease; }
.site-header.scrolled .top-nav {
  height: 54px;
  box-shadow: 0 4px 32px rgba(0,0,0,.9), 0 0 0 1px rgba(201,168,76,.1);
}
.site-header.scrolled .top-nav .main-menu { /* height driven by .top-nav height: 54px */ }
.site-header.scrolled .site-logo img { height: 34px; transition: height .25s ease; }

@media (max-width: 520px) {
  .af-card { padding: 20px 16px 18px; }
  .af-sn-box { font-size: 15px; letter-spacing: 3px; padding: 8px 14px; }
}

/* ============================================================
   TOOLTIP CONTENT CLASSES  (used inside data-ctip HTML)
============================================================ */
.ctip-name   { color: var(--gold); font-weight: 700; }
.ctip-detail { color: var(--text-light); }
.ctip-green  { color: var(--green); }

/* ============================================================
   TEXT UTILITIES
============================================================ */
.text-em { color: var(--text-light); }

/* ============================================================
   ADMIN LINK COLOURS  (functions.php SSM links)
============================================================ */
.admin-link-char { color: var(--red); }
.admin-link-acc  { color: var(--gold); }

/* ============================================================
   MODAL UTILITIES  (media, sitemanager)
============================================================ */
.modal-overflow   { overflow: hidden; }
.modal-close-btn  {
  position: absolute; top: 10px; right: 14px; z-index: 10;
  color: var(--gold); font-size: 22px; opacity: .85;
  background: none; border: none; cursor: pointer; line-height: 1;
}
.modal-img-full   { width: 100%; max-height: 80vh; object-fit: contain; display: block; background: var(--bg); }
.modal-vid-ratio  { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: var(--bg); }
.modal-vid-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.modal-meta-bar   { padding: 10px 18px 14px; background: var(--card2); }
.modal-meta-name  { font-size: 12px; color: var(--gold); font-weight: 700; font-family: var(--font); }
.modal-meta-date  { font-size: 11px; color: var(--text-muted); margin-left: 14px; font-family: var(--font); }

/* ============================================================
   SITEMANAGER BADGES
============================================================ */
.sm-badge-danger { background: var(--red); color: var(--text-light); border-radius: 10px; padding: 2px 10px; font-size: 11px; }
.sm-badge-gold   { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border2); border-radius: 10px; padding: 2px 10px; font-size: 11px; }

/* ============================================================
   GAMELOGS
============================================================ */
/* Filter bar shared by admin log pages */
.gl-filter-bar {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
}
.gl-filter-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gl-filter-title .fa { color: var(--gold); opacity: .7; }

/* Legacy alias kept for backward compat */
.gl-form { background: var(--card); border: 1px solid var(--border2); }

/* ============================================================
   CHARTRADE — themed alerts & actions bar
============================================================ */
.ct-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; margin: 10px 16px;
  border-radius: 6px; font-size: 13.5px; line-height: 1.5;
  border-left: 3px solid;
}
.ct-alert .fa { font-size: 15px; flex-shrink: 0; }
.ct-alert-success { background: rgba(93,191,138,.10); border-color: #5dbf8a; color: #7dd4a8; }
.ct-alert-danger  { background: rgba(220,53,69,.10);  border-color: #dc3545; color: #e07878; }
.ct-alert-warning { background: rgba(201,168,76,.10); border-color: var(--gold); color: var(--gold); }
.ct-alert-info    { background: rgba(100,149,237,.10); border-color: #6495ed; color: #90b0f0; }
.ct-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; padding: 14px 16px;
  background: var(--card2); border-top: 1px solid var(--border2);
}
.ct-actions-deny {
  padding: 10px 16px; background: rgba(220,53,69,.07);
  border-top: 1px solid var(--border2);
  color: #e07878; font-size: 13px;
}
.ct-actions-deny .fa { margin-right: 6px; }

/* CHARTRADE — character marketplace cards */
.ct-char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; padding: 16px; }
.ct-char-card { background: var(--card2); border: 1px solid var(--border2); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .15s; }
.ct-char-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.ct-char-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px 9px; border-bottom: 1px solid var(--border2); }
.ct-char-name { font-weight: 700; color: var(--text-light); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-char-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.ct-badge-sale  { background: rgba(93,191,138,.13);  color: #5dbf8a; border: 1px solid rgba(93,191,138,.4); }
.ct-badge-offer { background: rgba(100,149,237,.13); color: #7aacf0; border: 1px solid rgba(100,149,237,.4); }
.ct-badge-mine  { background: rgba(201,168,76,.13);  color: var(--gold); border: 1px solid rgba(201,168,76,.4); }
.ct-char-card-body { padding: 10px 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex: 1; }
.ct-char-stat { display: flex; flex-direction: column; gap: 1px; }
.ct-char-stat > span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.ct-char-stat > b { font-size: 12.5px; color: var(--text-light); font-weight: 600; }
.ct-char-stat-wide { grid-column: span 2; }
.ct-char-card-foot { padding: 9px 13px; border-top: 1px solid var(--border2); }
/* CHARTRADE — trade offer cards */
.ct-offers-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.ct-offer-card { background: var(--card2); border: 1px solid var(--border2); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; gap: 14px; flex-wrap: wrap; }
.ct-offer-chars { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.ct-offer-char { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-offer-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.ct-offer-cname { font-weight: 700; color: var(--gold); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.ct-offer-cname:hover { text-decoration: underline; }
.ct-offer-sep { color: var(--border2); font-size: 18px; flex-shrink: 0; }
.ct-offer-btns { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; }
.btn-ct-reject { background: rgba(220,53,69,.13); color: #e07878; border: 1px solid rgba(220,53,69,.3); border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.btn-ct-reject:hover { background: rgba(220,53,69,.22); color: #e07878; }

/* ── Add Character form ─────────────────────────────────────── */
.ct-add-card { background: var(--card2); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; }
.ct-add-steps { padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; }
.ct-add-step { display: flex; gap: 14px; align-items: flex-start; }
.ct-add-step-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(201,168,76,.12); color: var(--gold); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; border: 1px solid rgba(201,168,76,.3); }
.ct-add-step-body { flex: 1; min-width: 0; }
.ct-add-step-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.ct-add-step-label i { margin-right: 4px; opacity: .8; }
.ct-add-foot { padding: 14px 22px; border-top: 1px solid var(--border2); background: rgba(0,0,0,.12); }
.ct-add-info { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px 22px 0; }
.ct-add-info-item { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.ct-add-info-item i { color: var(--gold); opacity: .7; }
/* Equalise price input and currency select height */
.ct-add-steps .form-control { height: 34px; }
.ct-add-steps select.form-control { height: 34px; padding-top: 5px; padding-bottom: 5px; line-height: 1.4; }

/* ── View page price + action banner ────────────────────────── */
.ct-price-banner { background: var(--card2); border: 1px solid var(--border2); border-top: 3px solid var(--gold); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ct-price-left { display: flex; flex-direction: column; gap: 3px; }
.ct-price-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }
.ct-price-val { font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.15; }
.ct-price-cur { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.ct-price-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

/* ── Inventory AJAX lazy-load skeleton ───────────────────────── */
.ci-inv-ajax-shell { min-height: 120px; display: flex; align-items: center; justify-content: center; }
.ci-inv-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 20px; color: var(--text-muted); font-size: 13px;
}
.ci-inv-loading-lbl { letter-spacing: .3px; }
.ci-inv-spin {
  width: 32px; height: 32px;
  border: 3px solid rgba(201,168,76,.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ci-spin .75s linear infinite;
}
@keyframes ci-spin { to { transform: rotate(360deg); } }

/* ============================================================
   CHARTRADE v2 — Full redesign
   Marketplace tabs, character cards, listing type selector,
   offer cards, payout cards, view-page hero & action banner
============================================================ */

/* ── Tab Navigation ── */
.ct-tabs {
  display: flex;
  background: rgba(6,3,12,.65);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.ct-tabs::-webkit-scrollbar { display: none; }

.ct-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ct-tab-btn i { font-size: 12px; opacity: .75; }
.ct-tab-btn:hover { color: var(--text-light); }
.ct-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Tab Panes ── */
.ct-tab-pane { display: none; }
.ct-tab-pane.active { display: block; animation: fadeIn .3s ease; }

/* ── Section blocks inside panes ── */
.ct-section {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
}
.ct-section:first-child { border-top: none; }

.ct-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.ct-section-head i { opacity: .75; }

.ct-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Character Marketplace Cards ── */
.ctc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.ctc-card {
  background: rgba(10,7,20,.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.ctc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,.38);
  box-shadow: 0 6px 28px rgba(0,0,0,.55), 0 0 0 1px rgba(201,168,76,.06);
}

/* Colored top accent band */
.ctc-band {
  height: 3px;
  background: var(--ctc-color, var(--gold));
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--ctc-color, var(--gold));
  opacity: .85;
}

.ctc-inner {
  padding: 13px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ctc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.ctc-level {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(201,168,76,.45);
  letter-spacing: 1px;
}

.ctc-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.ctc-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .3px;
  white-space: nowrap;
  font-family: var(--font);
}
.ctc-b-sale    { background: rgba(93,191,138,.12);   color: #5dbf8a; border: 1px solid rgba(93,191,138,.35); }
.ctc-b-trade   { background: rgba(100,149,237,.12);  color: #7aacf0; border: 1px solid rgba(100,149,237,.35); }
.ctc-b-offer   { background: rgba(255,160,0,.12);    color: #ffa000; border: 1px solid rgba(255,160,0,.3); }
.ctc-b-mine    { background: rgba(201,168,76,.12);   color: var(--gold); border: 1px solid rgba(201,168,76,.35); }
.ctc-b-pending { background: rgba(180,130,0,.1);     color: #d4a017; border: 1px solid rgba(180,130,0,.3); }

.ctc-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  letter-spacing: .2px;
}

.ctc-cls {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  opacity: .88;
}

.ctc-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 700;
}
.ctc-price i { opacity: .55; font-size: 11px; }
.ctc-price-trade { color: #7aacf0 !important; }

.ctc-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ctc-date i { font-size: 10px; }

.ctc-btn {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 6px;
  color: var(--gold) !important;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  letter-spacing: .4px;
  transition: background .18s, border-color .18s;
}
.ctc-btn:hover {
  background: rgba(201,168,76,.16);
  border-color: rgba(201,168,76,.45);
}

/* ── Payout cards (sold, pending claim) ── */
.ct-payout-list { display: flex; flex-direction: column; gap: 10px; }

.ct-payout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(8,5,15,.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
  transition: border-color .18s;
}
.ct-payout-card:hover { border-color: var(--border2); }
.ct-payout-info { display: flex; flex-direction: column; gap: 5px; }
.ct-payout-charname { font-size: 15px; font-weight: 700; color: var(--text-light); }
.ct-payout-price { font-size: 13px; color: var(--gold); }
.ct-payout-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #ffa000;
  font-weight: 600;
}

/* ── Offer cards (incoming / outgoing) ── */
.cto-list { display: flex; flex-direction: column; gap: 10px; }

.cto-card {
  background: rgba(8,5,15,.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: border-color .18s;
}
.cto-card:hover { border-color: var(--border2); }

.cto-chars {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cto-char { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cto-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  font-weight: 700;
}
.cto-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cto-name a { color: var(--gold) !important; text-decoration: none !important; }
.cto-name a:hover { text-decoration: underline !important; }
.cto-arrow { color: rgba(201,168,76,.25); font-size: 16px; flex-shrink: 0; }

.cto-actions { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }

.cto-accept-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: rgba(93,191,138,.1);
  border: 1px solid rgba(93,191,138,.3);
  border-radius: 5px;
  color: #5dbf8a !important;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  font-family: var(--font);
}
.cto-accept-btn:hover { background: rgba(93,191,138,.2); }

.cto-reject-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: rgba(220,53,69,.09);
  border: 1px solid rgba(220,53,69,.28);
  border-radius: 5px;
  color: #e07878 !important;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  font-family: var(--font);
}
.cto-reject-btn:hover { background: rgba(220,53,69,.18); }

.cto-cancel-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 5px;
  color: var(--gold) !important;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  font-family: var(--font);
}
.cto-cancel-btn:hover { background: rgba(201,168,76,.16); }

/* ── Add form v2 ── */
.ct-add-v2 {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ct-add-v2-head {
  padding: 13px 20px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-add-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 20px;
  background: rgba(0,0,0,.1);
  border-bottom: 1px solid var(--border);
}
.ct-add-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.ct-add-info-item i { color: var(--gold); opacity: .6; }
.ct-add-v2-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ct-add-v2-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.12);
}
.ct-form-row { display: flex; flex-direction: column; gap: 6px; }
.ct-form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ct-form-label i { color: var(--gold); opacity: .7; }
.ct-form-opt { font-weight: 400; font-size: 10px; opacity: .55; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.ct-price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── Listing type selector ── */
.ct-list-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ct-list-type-opt {
  display: block;
  cursor: pointer;
  position: relative;
}
.ct-list-type-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ct-lto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 14px;
  background: rgba(10,7,20,.8);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.ct-lto-inner i {
  font-size: 22px;
  color: var(--text-muted);
  transition: color .2s;
}
.ct-lto-inner span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  letter-spacing: .5px;
  transition: color .2s;
}
.ct-lto-inner small {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .6;
  line-height: 1.4;
}
.ct-list-type-opt input:checked + .ct-lto-inner {
  border-color: var(--gold);
  background: rgba(201,168,76,.07);
  box-shadow: 0 0 0 1px rgba(201,168,76,.12);
}
.ct-list-type-opt input:checked + .ct-lto-inner i,
.ct-list-type-opt input:checked + .ct-lto-inner span { color: var(--gold); }
.ct-list-type-opt:hover .ct-lto-inner:not(.active) { border-color: rgba(201,168,76,.3); }

/* ── View page hero ── */
.ct-view-hero {
  padding: 22px 24px 0;
}
.ct-view-hero-band {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 16px;
  opacity: .7;
  box-shadow: 0 0 10px currentColor;
}
.ct-view-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ct-view-charname {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.ct-view-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding-top: 4px; }
.ct-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
}
.ct-view-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.ct-view-meta-item i { font-size: 11px; color: var(--gold); opacity: .55; }
.ct-view-meta-val { color: var(--text-light); font-weight: 600; }

/* ── View page action banner ── */
.ct-action-banner {
  margin: 0 24px 22px;
  padding: 18px 22px;
  background: rgba(10,7,22,.85);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ct-action-price-block { display: flex; flex-direction: column; gap: 4px; }
.ct-action-price-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ct-action-price-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  font-family: 'Cinzel', serif;
}
.ct-action-price-cur { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 5px; font-family: var(--font); }
.ct-action-price-trade { font-size: 16px; color: #7aacf0; font-weight: 700; }
.ct-action-btns { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .ctc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-list-types { grid-template-columns: 1fr; }
  .ct-price-pair { grid-template-columns: 1fr; }
  .ct-view-hero-top { flex-direction: column; gap: 8px; }
  .ct-action-banner { flex-direction: column; align-items: flex-start; }
  .ct-tab-btn { padding: 12px 16px; font-size: 10.5px; }
  .ct-section { padding: 16px 14px; }
  .ct-add-v2-body { padding: 16px 14px; }
  .ct-add-v2-foot { padding: 12px 14px; }
}
@media (max-width: 380px) {
  .ctc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS — MMORPG polish pack
   1. Hero gold embers   2. Scroll reveal   3. Button shine
   4. Dropdown open      5. Card lift + glow
============================================================ */

/* ── 1. Floating gold embers (spans injected by JS into .hero-slider) ── */
.hero-ember {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,140,.95) 0%, rgba(201,168,76,.55) 45%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: emberRise linear infinite;
  will-change: transform, opacity;
}
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0) scale(1);        opacity: 0; }
  8%   { opacity: .85; }
  55%  { opacity: .55; }
  100% { transform: translateY(-105vh) translateX(var(--ember-drift, 30px)) scale(.4); opacity: 0; }
}

/* ── 2. Scroll reveal (classes toggled by IntersectionObserver) ── */
.sr-hidden {
  opacity: 0;
  transform: translateY(22px);
}
.sr-show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.35,1);
  transition-delay: var(--sr-delay, 0s);
}

/* ── 3. Gold shine sweep on primary buttons ── */
.btn-hero-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before,
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.38) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.btn-hero-primary:hover::before,
.btn-gold:hover::before {
  animation: btnShine .65s ease;
}
@keyframes btnShine {
  from { left: -75%; }
  to   { left: 125%; }
}

/* ── 4. Dropdown open animation (desktop nav + account menu) ── */
@keyframes ddIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-7px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes ddInPlain {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 992px) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown.open > .dropdown { animation: ddIn .18s ease both; }
  /* right-aligned dropdowns have transform:none — use the plain variant */
  .has-dropdown:hover > .dropdown.dropdown-right,
  .has-dropdown.open > .dropdown.dropdown-right,
  .nav-account:hover > .account-dropdown,
  .nav-account.open > .account-dropdown { animation: ddInPlain .18s ease both; }
}

/* ── 5. Card lift + gold glow on hover ── */
.home-news,
.site-stat-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-news:hover,
.site-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 18px rgba(201,168,76,.12);
}


/* ============================================================
   HERO CINEMATIC PACK
   Ken Burns zoom · title shimmer · mist layer · logo glow
============================================================ */

/* ── Ken Burns: slow zoom-drift on the slide artwork ──
   ::before clones the slide's background (inherit) and animates transform,
   so the text/content layer stays perfectly still while art drifts. */
.hero-slide { overflow: hidden; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1)    translateX(0); }
  to   { transform: scale(1.09) translateX(-1.5%); }
}

/* ── Gold shimmer sweeping through the hero title ──
   drop-shadow() replaces text-shadow because it follows the glyph alpha,
   so the shadow survives the background-clip:text treatment. */
.hero-text h1 {
  background: linear-gradient(110deg, #fff 32%, #e8c97a 45%, #fff8e1 50%, #e8c97a 55%, #fff 68%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.78));
  animation: titleShimmer 6s linear infinite;
}
@keyframes titleShimmer {
  from { background-position: 220% 0; }
  to   { background-position: -30% 0; }
}

/* ── Eyebrow line draws in with the slide ── */
.hero-eyebrow::before {
  animation: lineGrow .9s cubic-bezier(.22,.8,.35,1) both .2s;
}
@keyframes lineGrow {
  from { width: 0;    opacity: 0; }
  to   { width: 30px; opacity: 1; }
}

/* ── Mist drifting along the hero bottom ── */
.hero-slider::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  bottom: -40px;
  height: 160px;
  background:
    radial-gradient(ellipse 40% 70% at 20% 80%, rgba(201,168,76,.10), transparent 60%),
    radial-gradient(ellipse 50% 80% at 70% 90%, rgba(120,110,180,.13), transparent 60%),
    radial-gradient(ellipse 45% 75% at 45% 70%, rgba(201,168,76,.07), transparent 60%);
  filter: blur(18px);
  transform: translateZ(0);
  animation: mistDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}
@keyframes mistDrift {
  from { transform: translateX(-4%); }
  to   { transform: translateX(4%); }
}

/* ── Navbar logo: soft gold glow pulse ── */
.site-logo img {
  animation: logoGlow 4.5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201,168,76,.25)); }
  50%      { filter: drop-shadow(0 0 12px rgba(201,168,76,.6)); }
}

/* ============================================================
   ADMIN FAB — polish (animation, active state, scroll safety)
============================================================ */
#admin-fab-menu.open {
  animation: fabMenuIn .18s cubic-bezier(.22,.8,.35,1) both;
  max-height: calc(100vh - 130px);   /* never taller than the screen */
  overflow-y: auto;
}
@keyframes fabMenuIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.admin-fab-item { transition: background .15s, color .15s, padding-left .15s; }
.admin-fab-item:hover { padding-left: 14px; }
.admin-fab-item.active {
  background: rgba(201,168,76,.16);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}
/* subtle attention ring on the shield button */
#admin-fab-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.45);
  animation: fabRing 3s ease-out infinite;
  pointer-events: none;
}
@keyframes fabRing {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ── Tight-desktop squeeze (992–1120px): 8 flat menu items need less air ── */
@media (min-width: 992px) and (max-width: 1120px) {
  .main-menu { gap: 0; }
  .main-menu > li > a { padding: 0 8px; font-size: 11px; letter-spacing: 0.3px; gap: 4px; }
  .main-menu > li > a i { display: none; }   /* icons drop, labels stay readable */
  .site-logo-name { display: none; }         /* crest alone is enough here */
}

/* ── Desktop nav redesign: text-only links, more air ──
   Icons made 8 flat items feel crowded; clean uppercase text with wider
   tracking reads more premium. Icons remain in the mobile menu. */
@media (min-width: 992px) {
  .main-menu { gap: 6px; }
  .main-menu > li > a i { display: none; }
  .main-menu > li > a {
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.1px;
  }
}
/* tight band keeps the smaller spacing (must come after the redesign block) */
@media (min-width: 992px) and (max-width: 1120px) {
  .main-menu { gap: 0; }
  .main-menu > li > a { padding: 0 9px; letter-spacing: 0.5px; font-size: 11.5px; }
}

/* ============================================================
   POLISH PACK 2 — class auras · blade-slash slides
============================================================ */

/* ── 11. Class rank cards: lift + aura glow in the class color ── */
.home-rank-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-rank-card:hover {
  transform: translateY(-4px);
  /* second shadow uses the per-class color set inline via --cls-aura */
  box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 22px -4px var(--cls-aura, var(--gold));
}

/* ── 12. Blade-slash transition between hero slides ──
   Incoming slide reveals with a skewed diagonal wipe (like a sword cut)
   instead of plain crossfade. Outgoing slide still fades underneath. */
.hero-slide.active {
  animation: bladeSlash .85s cubic-bezier(.55,.06,.25,1) both;
}
@keyframes bladeSlash {
  from { clip-path: polygon(-25% 0, -5% 0, -25% 100%, -45% 100%); }
  to   { clip-path: polygon(-25% 0, 125% 0, 105% 100%, -45% 100%); }
}

/* ============================================================
   RANKINGS — top-3 medals + own-character highlight
============================================================ */
/* Circular medal badge replaces the plain rank number for ranks 1-3 */
.rk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #1a1206;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.rk-badge-1 {
  background: radial-gradient(circle at 32% 28%, #ffe9a8, #e3b53a 60%, #a87c18);
  box-shadow: 0 0 10px rgba(243,193,75,.65), inset 0 -1px 2px rgba(0,0,0,.25);
}
.rk-badge-2 {
  background: radial-gradient(circle at 32% 28%, #ffffff, #c3ccd9 60%, #8792a5);
  box-shadow: 0 0 8px rgba(207,214,228,.5), inset 0 -1px 2px rgba(0,0,0,.25);
}
.rk-badge-3 {
  background: radial-gradient(circle at 32% 28%, #f3cba4, #c98a52 60%, #8e5a2e);
  box-shadow: 0 0 8px rgba(211,154,106,.5), inset 0 -1px 2px rgba(0,0,0,.25);
}

/* "Your character" row */
tr.rk-me > td {
  background: rgba(201,168,76,.08) !important;
}
/* single gold accent at the start of the row — via a pseudo bar so it can't be
   overridden by DataTables' own box-shadow on the sorted column */
tr.rk-me > td:first-child { position: relative; }
tr.rk-me > td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
tr.rk-me > td:nth-child(2)::after {
  content: 'YOU';
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0d0916;
  background: var(--gold);
  border-radius: 3px;
  vertical-align: 1px;
}


