/* ============================================================
   DOFUS PRIVATE TOP SERVERS — Fantasy MMORPG Premium Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES — Fantasy Design System
   ============================================================ */
:root {
  /* Primary — Gold (main accent, CTA, highlights) */
  --color-primary: #D4A017;
  --color-primary-light: #F4C542;
  --color-primary-dark: #B8860B;
  --color-primary-rgb: 212, 160, 23;

  /* Secondary — Emerald (secondary actions, links) */
  --color-secondary: #2E8B57;
  --color-secondary-light: #3CB371;
  --color-secondary-dark: #1E6B3A;
  --color-secondary-rgb: 46, 139, 87;

  /* Accent — Warm Amber */
  --color-accent: #E09F3E;
  --color-accent-light: #FFB703;
  --color-accent-dark: #C88A2E;
  --color-accent-rgb: 224, 159, 62;

  /* Backgrounds — Deep blue fantasy */
  --bg-body: #0F172A;
  --bg-body-secondary: #111827;
  --bg-surface: #172033;
  --bg-surface-hover: #1E293B;
  --bg-surface-light: #243044;
  --bg-surface-lighter: #2D3D52;

  /* Text — Parchment-inspired */
  --text-primary: #F8F1DE;
  --text-secondary: rgba(248, 241, 222, 0.78);
  --text-muted: rgba(234, 223, 200, 0.52);
  --text-heading: #FFFBF0;

  /* Semantic */
  --color-success: #3CB371;
  --color-success-dark: #2E8B57;
  --color-error: #E74C3C;
  --color-error-dark: #C0392B;
  --color-warning: #F4C542;
  --color-warning-dark: #D4A017;
  --color-info: #5DADE2;

  /* Borders — Gold-tinted */
  --border-color: rgba(244, 197, 66, 0.16);
  --border-color-light: rgba(244, 197, 66, 0.10);
  --border-color-strong: rgba(244, 197, 66, 0.24);

  /* Shadows — Deep fantasy */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.34);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.42);
  --shadow-glow-primary: 0 0 24px rgba(244, 197, 66, 0.22);
  --shadow-glow-gold: 0 0 28px rgba(212, 160, 23, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(224, 159, 62, 0.20);
  --shadow-gold-outline: 0 0 0 1px rgba(244, 197, 66, 0.18);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;

  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* Radius — Rounded fantasy */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions — Smooth */
  --transition-fast: 180ms ease;
  --transition-base: 240ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 1000;
  --z-modal-overlay: 1500;
  --z-modal: 1600;
  --z-tooltip: 2000;

  /* Navbar */
  --navbar-height: 72px;

  /* Admin accent */
  --color-admin: #E09F3E;
  --color-admin-dark: #C88A2E;
}

/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 50%, rgba(15, 30, 60, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(15, 30, 60, 0.4) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(23, 32, 51, 0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.4);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface-light) var(--bg-body);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-4xl); letter-spacing: 0.03em; }
h2 { font-size: var(--fs-3xl); letter-spacing: 0.025em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(212, 160, 23, 0.35);
  color: var(--text-heading);
}

/* ============================================================
   3. LAYOUT — Container & Grid
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space-3) * -0.5);
  margin-right: calc(var(--space-3) * -0.5);
}

.col {
  flex: 1 1 0%;
  padding-left: calc(var(--space-3) * 0.5);
  padding-right: calc(var(--space-3) * 0.5);
}

.col-1  { flex: 0 0 8.333%;  max-width: 8.333%;  padding: 0 calc(var(--space-3) * 0.5); }
.col-2  { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 calc(var(--space-3) * 0.5); }
.col-3  { flex: 0 0 25%;     max-width: 25%;     padding: 0 calc(var(--space-3) * 0.5); }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 calc(var(--space-3) * 0.5); }
.col-5  { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 calc(var(--space-3) * 0.5); }
.col-6  { flex: 0 0 50%;     max-width: 50%;     padding: 0 calc(var(--space-3) * 0.5); }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 calc(var(--space-3) * 0.5); }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 calc(var(--space-3) * 0.5); }
.col-9  { flex: 0 0 75%;     max-width: 75%;     padding: 0 calc(var(--space-3) * 0.5); }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; padding: 0 calc(var(--space-3) * 0.5); }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; padding: 0 calc(var(--space-3) * 0.5); }
.col-12 { flex: 0 0 100%;    max-width: 100%;    padding: 0 calc(var(--space-3) * 0.5); }

.section {
  padding: var(--space-8) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  text-align: left;
  margin-bottom: var(--space-2);
  color: var(--text-heading);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-title i {
  color: var(--color-primary);
  font-size: 0.8em;
  filter: drop-shadow(0 0 6px rgba(212, 160, 23, 0.4));
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-md);
  margin-bottom: var(--space-7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   4. HEADER / NAVIGATION — Premium Fantasy Portal
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: var(--z-navbar);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-color-light);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.3), transparent);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border-color);
}

.navbar-container,
.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  gap: var(--space-4);
}

.navbar-brand,
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: 0.04em;
}

.brand-text-sm {
  font-size: var(--fs-lg);
}

.brand-accent {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.navbar-logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: 0.04em;
}

.navbar-logo-text span {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(212, 160, 23, 0.08);
}

.nav-link.active {
  color: var(--color-primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
}

.navbar-actions,
.navbar-auth {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.navbar-toggler,
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 10);
  transition: border-color var(--transition-fast);
}

.navbar-toggler:hover {
  border-color: var(--border-color);
}

.navbar-toggler span,
.toggler-icon,
.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar-toggler.active span:nth-child(1),
.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active span:nth-child(2),
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3),
.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdowns */
.lang-dropdown,
.dropdown {
  position: relative;
}

.lang-toggle,
.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px var(--space-2);
  background: rgba(212, 160, 23, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover,
.lang-selector-btn:hover {
  border-color: var(--border-color-strong);
  color: var(--color-primary-light);
  background: rgba(212, 160, 23, 0.10);
}

.lang-menu,
.lang-selector .lang-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  z-index: var(--z-dropdown);
}

.lang-menu.show {
  display: block;
}

.lang-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-menu .dropdown-item:hover {
  background: rgba(212, 160, 23, 0.08);
  color: var(--text-primary);
}

.lang-menu .dropdown-item.active {
  color: var(--color-primary-light);
}

/* Auth buttons in navbar */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(212, 160, 23, 0.08);
}

/* Mobile navigation overlay */
.navbar-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  z-index: var(--z-navbar);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile .nav-link {
  font-size: var(--fs-xl);
  padding: var(--space-3) var(--space-5);
}

/* ============================================================
   5. HERO SECTION — Cinematic Fantasy Portal
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: calc(var(--navbar-height) + var(--space-8)) var(--space-4) var(--space-8);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 160, 23, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(15, 30, 60, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(15, 30, 60, 0.5) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-body) 0%, rgba(10, 17, 30, 0.6) 50%, transparent 100%);
  z-index: 1;
}

.hero.hero-compact {
  min-height: 360px;
  padding: calc(var(--navbar-height) + var(--space-6)) var(--space-4) var(--space-5);
}

.hero.hero-compact .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-3);
}

.hero.hero-compact .hero-subtitle {
  font-size: var(--fs-base);
  margin-bottom: var(--space-4);
}

.section-featured {
  padding: var(--space-5) 0 var(--space-3);
  position: relative;
}

.section-servers {
  padding: var(--space-4) 0 var(--space-7);
  position: relative;
}

.section-servers::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.04), transparent 70%);
  pointer-events: none;
}

.section-servers::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.12) 30%, rgba(212, 160, 23, 0.12) 70%, transparent);
  pointer-events: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: none;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.3), var(--border-color-light) 40%, transparent 100%);
}

.section-count {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    var(--bg-body) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--text-heading);
  line-height: 1.08;
  margin-bottom: var(--space-4);
  letter-spacing: 0.025em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 160, 23, 0.15);
  position: relative;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #F7D96C, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(212, 160, 23, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: var(--lh-relaxed);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: #1a1200;
  background: linear-gradient(180deg, #F4C542 0%, #D4A017 50%, #C8961A 100%);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.35), 0 0 40px rgba(212, 160, 23, 0.1);
  letter-spacing: 0.03em;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 32px rgba(212, 160, 23, 0.5), 0 0 50px rgba(212, 160, 23, 0.15);
  color: #1a1200;
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  position: relative;
  padding: var(--space-3) var(--space-5);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  min-width: 160px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.hero-stat:hover {
  border-color: rgba(212, 160, 23, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(212, 160, 23, 0.06);
}

.hero-stat::after {
  display: none;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-light);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.25);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: var(--space-2);
}

/* Decorative particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(212, 160, 23, 0.5);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 12s;
  background: rgba(244, 197, 66, 0.4);
}

.hero-particle:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 10s;
  background: rgba(224, 159, 62, 0.3);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%      { opacity: 1; }
  90%      { opacity: 1; }
  50%      { transform: translateY(-200px) translateX(40px) scale(1.5); }
}

/* ============================================================
   6. SERVER RANKED LIST — Premium Cards
   ============================================================ */
.server-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.server-row {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(14, 20, 33, 0.97) 100%);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(255, 255, 255, 0.03) inset;
}

.server-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse at top center, rgba(212, 160, 23, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.server-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 50px rgba(212, 160, 23, 0.08);
  border-color: var(--border-color-strong);
}

.server-row:hover::before {
  opacity: 1;
}

.server-row--featured {
  border-color: rgba(212, 160, 23, 0.30);
  box-shadow: var(--shadow-gold-outline), 0 4px 24px rgba(212, 160, 23, 0.10);
}

.server-row--featured::before {
  opacity: 1;
  background: radial-gradient(ellipse at top center, rgba(212, 160, 23, 0.08), transparent 55%);
}

.server-row--featured:hover {
  box-shadow: var(--shadow-lg), 0 8px 40px rgba(212, 160, 23, 0.18), 0 0 60px rgba(212, 160, 23, 0.06);
  border-color: rgba(212, 160, 23, 0.50);
}

/* Banner */
.server-row__banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-surface-hover);
  z-index: 1;
}

.server-row__banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.server-row__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.server-row:hover .server-row__banner img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.server-row__banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--bg-surface) 8%, rgba(23, 32, 51, 0.6) 40%, rgba(23, 32, 51, 0.15) 65%, transparent);
  pointer-events: none;
}

/* Rank badge */
.server-row__rank {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 var(--space-2);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 197, 66, 0.18);
  border-radius: var(--radius-md);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.server-row__rank.rank-gold {
  min-width: 58px;
  height: 58px;
  border-radius: 14px;
}

.rank-number {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  line-height: 1;
}

.rank-gold {
  background: linear-gradient(145deg, #B8880F 0%, #E8B829 25%, #F4D35E 50%, #E8B829 75%, #C8961A 100%);
  border: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow:
    0 4px 20px rgba(212, 160, 23, 0.5),
    0 0 30px rgba(244, 197, 66, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.rank-gold .rank-number {
  color: #1a1200;
  font-size: 1.75rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  letter-spacing: -0.02em;
}

.rank-silver {
  background: linear-gradient(145deg, #9A9A9A 0%, #D8D8D8 40%, #C0C0C0 60%, #A8A8A8 100%);
  border: 2px solid rgba(210, 210, 210, 0.55);
  box-shadow: 0 4px 18px rgba(180, 180, 180, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rank-silver .rank-number {
  color: #1a1a2e;
  font-size: var(--fs-2xl);
}

.rank-bronze {
  background: linear-gradient(145deg, #8B5524 0%, #CD7F32 40%, #B87333 60%, #A0622E 100%);
  border: 2px solid rgba(205, 127, 50, 0.55);
  box-shadow: 0 4px 18px rgba(205, 127, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rank-bronze .rank-number {
  color: #1a0e00;
  font-size: var(--fs-2xl);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.server-row__badges {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  gap: var(--space-1);
  z-index: 2;
}

/* Bottom bar */
.server-row__bottom {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4) var(--space-4);
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.server-row__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.server-row__logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface-hover);
  border: 2px solid var(--border-color-strong);
  margin-top: -36px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(15, 23, 42, 0.9);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.server-row:hover .server-row__logo {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(15, 23, 42, 0.9), 0 0 12px rgba(212, 160, 23, 0.15);
}

.server-row__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-row__details {
  flex: 1;
  min-width: 0;
}

.server-row__details h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.server-row__details h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.server-row__details h3 a:hover {
  color: var(--color-primary-light);
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.2), 0 0 40px rgba(212, 160, 23, 0.08);
}

.server-row__description {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2) 0;
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.server-row__tags .badge {
  font-size: 0.7rem;
  padding: 2px 8px;
}

/* Actions */
.server-row__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.server-row__votes {
  text-align: center;
  min-width: 72px;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.1) 0%, rgba(212, 160, 23, 0.04) 100%);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: var(--radius-md);
  position: relative;
}

.server-row__votes .vote-count {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-light);
  line-height: 1.1;
  text-shadow: 0 0 16px rgba(212, 160, 23, 0.2);
}

.server-row__votes .vote-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.btn-vote {
  font-weight: var(--fw-bold);
  padding: 12px 26px;
  white-space: nowrap;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  font-size: var(--fs-sm);
}

.server-row__links {
  display: flex;
  gap: var(--space-2);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  background: rgba(88, 101, 242, 0.12);
  color: #8B9CFF;
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  color: #B0BFFF;
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.15);
  transform: translateY(-1px);
}

.badge-rate {
  background: rgba(93, 173, 226, 0.12);
  color: var(--color-info);
  border: 1px solid rgba(93, 173, 226, 0.2);
}

.badge-region {
  background: rgba(60, 179, 113, 0.12);
  color: var(--color-secondary-light);
  border: 1px solid rgba(60, 179, 113, 0.2);
}

/* ============================================================
   7. FILTER BAR — Premium Refined
   ============================================================ */
.filter-bar {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.97), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(244, 197, 66, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.filter-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse at top center, rgba(212, 160, 23, 0.05), transparent 60%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search i {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.filter-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.filter-search input:focus ~ .filter-search-icon,
.filter-search:focus-within i,
.filter-search:focus-within .filter-search-icon {
  color: var(--color-primary);
}

.filter-search input,
.filter-input {
  width: 100%;
  padding: 14px var(--space-3) 14px 42px;
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.filter-search input::placeholder {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.filter-search input:hover {
  border-color: var(--border-color-strong);
  background: rgba(10, 18, 32, 0.85);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12), 0 0 20px rgba(212, 160, 23, 0.06);
  background: rgba(10, 18, 32, 0.95);
}

.filter-search input:focus::placeholder {
  color: var(--text-secondary);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.filter-select,
.form-select.filter-select {
  appearance: none;
  padding: 14px calc(var(--space-3) + 18px) 14px var(--space-3);
  background: rgba(10, 18, 32, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  cursor: pointer;
  min-width: 145px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.filter-select:hover,
.form-select.filter-select:hover {
  border-color: var(--border-color-strong);
  background-color: rgba(10, 18, 32, 0.88);
}

.filter-select:focus,
.form-select.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12), 0 0 20px rgba(212, 160, 23, 0.06);
  background-color: rgba(10, 18, 32, 0.95);
}

.filter-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.filter-select select {
  appearance: none;
  padding: 14px calc(var(--space-3) + 18px) 14px var(--space-3);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  cursor: pointer;
  min-width: 145px;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.filter-select select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12), 0 0 16px rgba(212, 160, 23, 0.06);
  background: rgba(15, 23, 42, 0.9);
}

.btn-filter {
  padding: 14px var(--space-5);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.filter-pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(212, 160, 23, 0.18);
  color: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* ============================================================
   8. RANKING SECTION
   ============================================================ */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  transition: background var(--transition-fast);
}

.ranking-row:nth-child(even) {
  background: var(--bg-surface-hover);
}

.ranking-row:hover {
  background: var(--bg-surface-light);
}

.ranking-position {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  background: var(--bg-body);
}

.ranking-position.gold {
  background: linear-gradient(135deg, #D4A017, #F4C542);
  color: #1a1200;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}

.ranking-position.silver {
  background: linear-gradient(135deg, #C0C0C0, #E0E0E0);
  color: #1a1a1a;
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
}

.ranking-position.bronze {
  background: linear-gradient(135deg, #A0622E, #CD7F32);
  color: #1a1200;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}

.ranking-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-hover);
}

.ranking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-name {
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-name a {
  color: inherit;
  text-decoration: none;
}

.ranking-name a:hover {
  color: var(--color-primary-light);
}

.ranking-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.ranking-votes {
  flex-shrink: 0;
  text-align: right;
}

.ranking-votes-count {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
}

.ranking-votes-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================================
   9. SERVER DETAIL PAGE
   ============================================================ */
.server-detail-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-top: var(--navbar-height);
}

.server-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-detail-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-body), transparent 60%);
}

.server-detail-header {
  position: relative;
  margin-top: -80px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.server-detail-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.server-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-detail-title-area {
  flex: 1;
}

.server-detail-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}

.server-detail-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.server-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.server-info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-color-light);
}

.server-info-row:last-child {
  border-bottom: none;
}

.server-info-label {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.server-info-value {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}

.server-detail-socials {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.server-social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.server-social-link:hover {
  background: rgba(212, 160, 23, 0.08);
  color: var(--color-primary-light);
  border-color: var(--border-color);
}

.server-description {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
}

.server-description h3 {
  margin-bottom: var(--space-3);
}

.server-description p {
  color: var(--text-secondary);
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.server-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.server-stat-card-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
}

.server-stat-card-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ============================================================
   10. VOTE PAGE
   ============================================================ */
.vote-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-height));
  padding: calc(var(--navbar-height) + var(--space-5)) var(--space-4) var(--space-5);
}

.vote-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.vote-card-server-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-3);
  overflow: hidden;
  background: var(--bg-surface-hover);
  border: 2px solid var(--border-color);
}

.vote-card-server-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vote-card-server-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}

.vote-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #1a1200;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
  letter-spacing: 0.03em;
}

.vote-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.45);
}

.vote-btn-large:active {
  transform: translateY(0);
}

.vote-cooldown {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.vote-cooldown-time {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
}

.vote-cooldown-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.vote-success {
  padding: var(--space-4);
  background: rgba(60, 179, 113, 0.1);
  border: 1px solid rgba(60, 179, 113, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-success);
  margin-top: var(--space-3);
}

.vote-error {
  padding: var(--space-4);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-error);
  margin-top: var(--space-3);
}

/* ============================================================
   11. AUTH FORMS (Login / Register)
   ============================================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--navbar-height) + var(--space-5)) var(--space-4) var(--space-5);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
}

.auth-card-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-1);
}

.auth-card-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color-light);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--color-primary-light);
  font-weight: var(--fw-medium);
}

.auth-footer a:hover {
  color: var(--color-accent-light);
}

/* ============================================================
   12. DASHBOARD LAYOUT
   ============================================================ */
.dashboard {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color-light);
  overflow-y: auto;
  z-index: var(--z-sticky);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
  flex-shrink: 0;
}

.sidebar-brand {
  text-decoration: none;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  cursor: pointer;
  padding: var(--space-1);
  line-height: 1;
}

.sidebar-close:hover {
  color: var(--text-primary);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-avatar i {
  font-size: var(--fs-xl);
  color: var(--color-primary-light);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-username {
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3) 0;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  padding: 0 var(--space-2);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color-light);
  margin: var(--space-2) var(--space-4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: var(--fs-base);
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(212, 160, 23, 0.08);
}

.sidebar-link.active {
  color: var(--color-primary-light);
  background: rgba(212, 160, 23, 0.12);
}

/* Dashboard Topbar */
.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color-light);
  position: sticky;
  top: 0;
  z-index: calc(var(--z-sticky) - 1);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-xl);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  line-height: 1;
}

.sidebar-toggle:hover {
  color: var(--text-primary);
  background: rgba(212, 160, 23, 0.08);
}

.topbar-title {
  flex: 1;
  min-width: 0;
}

.topbar-title h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--text-heading);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-username {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.user-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-color-strong);
  background: rgba(212, 160, 23, 0.05);
}

.user-toggle i {
  font-size: var(--fs-lg);
}

.user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  z-index: var(--z-dropdown);
}

.user-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(212, 160, 23, 0.08);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color-light);
  margin: var(--space-1) 0;
}

/* Dashboard Content */
.dashboard-content {
  padding: var(--space-5);
  overflow-x: hidden;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-sticky) - 1);
}

.sidebar-overlay.active {
  display: block;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  max-width: calc(100vw - 260px);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-page-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-5);
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.stat-card-icon.purple {
  background: rgba(212, 160, 23, 0.12);
  color: var(--color-primary-light);
}

.stat-card-icon.gold {
  background: rgba(224, 159, 62, 0.12);
  color: var(--color-accent);
}

.stat-card-icon.teal {
  background: rgba(93, 173, 226, 0.12);
  color: var(--color-info);
}

.stat-card-icon.green {
  background: rgba(60, 179, 113, 0.12);
  color: var(--color-success);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: 1;
}

.stat-card-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   13. DASHBOARD COMPONENTS
   ============================================================ */

/* Image upload */
.image-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 180px;
  background: var(--bg-body);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  text-align: center;
}

.image-upload:hover {
  border-color: var(--color-primary);
  background: rgba(212, 160, 23, 0.03);
}

.image-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-upload-icon {
  font-size: var(--fs-3xl);
  color: var(--text-muted);
}

.image-upload-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.image-upload-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-upload-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* API Key */
.api-key-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-body);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
}

.api-key-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
}

.api-key-copy {
  flex-shrink: 0;
  padding: var(--space-1) var(--space-2);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-primary-light);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.api-key-copy:hover {
  background: rgba(212, 160, 23, 0.20);
}

/* ============================================================
   14. ADMIN LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid rgba(224, 159, 62, 0.15);
  padding: var(--space-4) 0;
  overflow-y: auto;
  z-index: var(--z-sticky);
}

.admin-sidebar .sidebar-link.active {
  color: var(--color-admin);
  background: rgba(224, 159, 62, 0.1);
}

.admin-sidebar .sidebar-link:hover {
  background: rgba(224, 159, 62, 0.08);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(224, 159, 62, 0.12);
  color: var(--color-admin);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

/* Data tables with sort */
.table-sortable th {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: var(--space-5);
}

.table-sortable th::after {
  content: '\2195';
  position: absolute;
  right: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.table-sortable th.sort-asc::after {
  content: '\2191';
  color: var(--color-primary-light);
}

.table-sortable th.sort-desc::after {
  content: '\2193';
  color: var(--color-primary-light);
}

/* Action buttons */
.action-btns {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.action-btn-edit {
  background: rgba(212, 160, 23, 0.12);
  color: var(--color-primary-light);
}

.action-btn-edit:hover {
  background: rgba(212, 160, 23, 0.22);
}

.action-btn-delete {
  background: rgba(231, 76, 60, 0.12);
  color: var(--color-error);
}

.action-btn-delete:hover {
  background: rgba(231, 76, 60, 0.22);
}

.action-btn-view {
  background: rgba(93, 173, 226, 0.12);
  color: var(--color-info);
}

.action-btn-view:hover {
  background: rgba(93, 173, 226, 0.22);
}

/* ============================================================
   15. FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12), 0 0 16px rgba(212, 160, 23, 0.05);
  background: rgba(15, 23, 42, 0.85);
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control.is-error {
  border-color: var(--color-error);
}

.form-control.is-error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-control-icon {
  position: relative;
}

.form-control-icon .form-control {
  padding-left: calc(var(--space-3) + 22px);
}

.form-control-icon .icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.form-select {
  width: 100%;
  padding: var(--space-2) calc(var(--space-3) + 16px) var(--space-2) var(--space-3);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4A017' d='M6 8.5L1.5 4h9L6 8.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-3);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: var(--lh-normal);
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color-strong);
  border-radius: 4px;
  background: var(--bg-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.form-check input[type="radio"] {
  border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #1a1200;
  width: 100%;
  height: 100%;
}

.form-check input[type="radio"]:checked::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1200;
  margin: 3px;
}

.form-check input:focus {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.form-hint {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================================
   16. BUTTONS — Premium Fantasy
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  background: var(--bg-surface-lighter);
  border-color: var(--border-color-strong);
  color: var(--text-heading);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  color: #1a1200;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(212, 160, 23, 0.28);
  font-weight: var(--fw-bold);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.45);
  color: #1a1200;
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border-color);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.08);
  color: var(--color-primary-light);
  border-color: rgba(212, 160, 23, 0.3);
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.08);
  transform: translateY(-1px);
}

.btn-success {
  color: #fff;
  background: linear-gradient(180deg, var(--color-secondary-light), var(--color-secondary-dark));
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(46, 139, 87, 0.25);
}

.btn-success:hover {
  box-shadow: 0 4px 18px rgba(46, 139, 87, 0.40);
  color: #fff;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, var(--color-error), var(--color-error-dark));
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.25);
}

.btn-danger:hover {
  box-shadow: 0 4px 18px rgba(231, 76, 60, 0.40);
  color: #fff;
}

.btn-warning {
  color: #1a1200;
  background: linear-gradient(180deg, var(--color-warning), var(--color-warning-dark));
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(244, 197, 66, 0.25);
}

.btn-warning:hover {
  box-shadow: 0 4px 18px rgba(244, 197, 66, 0.40);
  color: #1a1200;
}

.btn-gold {
  color: #1a1200;
  background: linear-gradient(180deg, #F4C542 0%, #D4A017 50%, #C8961A 100%);
  border-color: transparent;
  box-shadow: 0 3px 16px rgba(212, 160, 23, 0.35);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.5), 0 0 12px rgba(244, 197, 66, 0.2);
  color: #1a1200;
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm {
  padding: 6px 14px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--fs-md);
  border-radius: var(--radius-lg);
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   17. BADGES — Premium Fantasy Chips
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.4;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.badge-version {
  background: rgba(212, 160, 23, 0.14);
  color: var(--color-primary-light);
  border-color: rgba(212, 160, 23, 0.22);
}

.badge-language {
  background: rgba(93, 173, 226, 0.14);
  color: var(--color-info);
  border-color: rgba(93, 173, 226, 0.22);
}

.badge-featured {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.18), rgba(244, 197, 66, 0.22));
  color: var(--color-primary-light);
  border-color: rgba(212, 160, 23, 0.35);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.15);
}

.badge-new {
  background: rgba(60, 179, 113, 0.14);
  color: var(--color-success);
  border-color: rgba(60, 179, 113, 0.25);
}

.badge-coming-soon {
  background: rgba(244, 197, 66, 0.14);
  color: var(--color-warning);
  border-color: rgba(244, 197, 66, 0.25);
}

.badge-online {
  background: rgba(60, 179, 113, 0.14);
  color: var(--color-success);
  border-color: rgba(60, 179, 113, 0.25);
}

.badge-online i {
  font-size: 6px;
  animation: onlinePulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(60, 179, 113, 0.5));
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.badge-offline {
  background: rgba(231, 76, 60, 0.12);
  color: var(--color-error);
  border-color: rgba(231, 76, 60, 0.25);
}

.badge-status {
  padding: 4px 12px;
}

.badge-status-active {
  background: rgba(60, 179, 113, 0.12);
  color: var(--color-success);
  border-color: rgba(60, 179, 113, 0.25);
}

.badge-status-inactive {
  background: rgba(231, 76, 60, 0.12);
  color: var(--color-error);
  border-color: rgba(231, 76, 60, 0.25);
}

.badge-status-pending {
  background: rgba(244, 197, 66, 0.12);
  color: var(--color-warning);
  border-color: rgba(244, 197, 66, 0.25);
}

/* ============================================================
   18. ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
  border: 1px solid transparent;
  animation: alertSlideIn 0.3s ease-out;
}

.alert-icon { flex-shrink: 0; font-size: var(--fs-lg); line-height: 1; }
.alert-content { flex: 1; }
.alert-title { font-weight: var(--fw-semibold); margin-bottom: 2px; }

.alert-dismiss,
.alert-close {
  flex-shrink: 0;
  padding: 2px;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: var(--fs-lg);
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.alert-dismiss:hover,
.alert-close:hover { opacity: 1; }

.alert-success {
  background: rgba(60, 179, 113, 0.1);
  border-color: rgba(60, 179, 113, 0.25);
  color: var(--color-success);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.25);
  color: var(--color-error);
}

.alert-warning {
  background: rgba(244, 197, 66, 0.1);
  border-color: rgba(244, 197, 66, 0.25);
  color: var(--color-warning);
}

.alert-info {
  background: rgba(93, 173, 226, 0.1);
  border-color: rgba(93, 173, 226, 0.25);
  color: var(--color-info);
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   19. TABLES
   ============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-surface-hover);
  border-bottom: 1px solid var(--border-color-light);
  white-space: nowrap;
}

.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table-striped tbody tr:nth-child(even) {
  background: rgba(212, 160, 23, 0.02);
}

.table tbody tr:hover {
  background: rgba(212, 160, 23, 0.04);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   20. PAGINATION (supports .page-link AND .pagination-link)
   ============================================================ */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.pagination-link,
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-link:hover,
.page-link:hover {
  background: var(--bg-surface-hover);
  color: var(--color-primary-light);
  border-color: var(--border-color-strong);
  transform: translateY(-1px);
}

.pagination-link.active,
.page-link.active {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  border-color: var(--color-primary);
  color: #1a1200;
  font-weight: var(--fw-bold);
  box-shadow: 0 2px 12px rgba(212, 160, 23, 0.35);
}

.pagination-link.disabled,
.page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis,
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  list-style: none;
}

/* ============================================================
   21. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color-light);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--color-error);
}

.modal-body {
  padding: var(--space-5);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-color-light);
}

/* ============================================================
   22. FOOTER — Premium Elegant Closure
   ============================================================ */
.footer,
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(11, 15, 25, 0.98) 100%);
  border-top: none;
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}

.footer::before,
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand .navbar-logo-text {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.footer-brand-description {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 300px;
}

.footer-title,
.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-3);
}

.footer-text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-socials,
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-social-link,
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(23, 32, 51, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
}

.footer-social-link:hover,
.social-link:hover {
  background: rgba(212, 160, 23, 0.15);
  color: var(--color-primary-light);
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 197, 66, 0.08);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--color-primary-light);
}

/* ============================================================
   23. UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary   { color: var(--color-primary-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-success   { color: var(--color-success); }
.text-danger    { color: var(--color-error); }
.text-warning   { color: var(--color-warning); }
.text-gold      { color: var(--color-primary-light); }
.text-white     { color: #fff; }

.font-heading { font-family: var(--font-heading); }
.fw-normal    { font-weight: var(--fw-normal); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.d-flex    { display: flex; }
.d-grid    { display: grid; }
.d-block   { display: block; }
.d-inline  { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }
.d-none    { display: none; }

.flex-column  { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }

.align-start   { align-items: flex-start; }
.align-center  { align-items: center; }
.align-end     { align-items: flex-end; }
.align-stretch { align-items: stretch; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.w-auto { width: auto; }

.rounded    { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow    { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   24. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 160, 23, 0.2); }
  50%      { box-shadow: 0 0 25px rgba(212, 160, 23, 0.4); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

.animate-fadeIn    { animation: fadeIn 0.5s ease-out both; }
.animate-fadeInUp  { animation: fadeInUp 0.5s ease-out both; }
.animate-slideUp   { animation: slideUp 0.5s ease-out both; }
.animate-slideDown { animation: slideDown 0.5s ease-out both; }
.animate-scaleIn   { animation: scaleIn 0.3s ease-out both; }
.animate-pulse     { animation: pulse 2s ease-in-out infinite; }
.animate-glow      { animation: glow 2s ease-in-out infinite; }
.animate-float     { animation: float 3s ease-in-out infinite; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-hover) 25%, var(--bg-surface-light) 50%, var(--bg-surface-hover) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: var(--space-2); }
.skeleton-title { height: 22px; width: 60%; margin-bottom: var(--space-3); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius-md); }
.skeleton-banner { width: 100%; padding-top: 45%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ============================================================
   25. VIDEO EMBED & COMMENTS
   ============================================================ */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.comments-section {
  border-top: 1px solid var(--border-color-light);
  padding-top: var(--space-5);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.comments-count {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: var(--fw-normal);
  font-family: var(--font-body);
}

.comment-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.comment-form-card h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
}

.comment-form .form-group { margin-bottom: var(--space-3); }
.comment-form textarea { resize: vertical; min-height: 100px; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.comment-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
}

.comment-avatar {
  flex-shrink: 0;
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
}

.comment-body { flex: 1; min-width: 0; }

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  flex-wrap: wrap;
}

.comment-author {
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  font-size: var(--fs-sm);
}

.comment-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.comment-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0;
  word-break: break-word;
}

.comments-empty {
  text-align: center;
  padding: var(--space-5);
  color: var(--text-muted);
}

.comments-empty i {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
  display: block;
}

.comments-empty p { margin: 0; }

/* ============================================================
   GALLERY — Grid + Lightbox + Dashboard Management
   ============================================================ */

/* Public gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.gallery-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-thumb:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-top: var(--space-3);
  text-align: center;
  max-width: 600px;
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-family: var(--font-heading);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--color-primary);
}

.lightbox-close {
  top: var(--space-4);
  right: var(--space-4);
}

.lightbox-prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

/* Dashboard gallery management */
.gallery-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.gallery-upload-zone:hover,
.gallery-upload-zone.dragover {
  border-color: var(--color-primary);
  background: rgba(212, 160, 23, 0.04);
}

.gallery-upload-zone-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.gallery-upload-zone-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.gallery-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.gallery-preview-item {
  text-align: center;
}

.gallery-preview-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
}

.gallery-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-preview-name {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.gallery-manage-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.gallery-manage-item:hover {
  border-color: var(--border-color-strong);
}

.gallery-manage-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gallery-manage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-manage-caption {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-manage-actions {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

.btn-danger {
  background: rgba(220, 53, 69, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
}

/* Quill Editor Dark Theme Override */
.quill-editor-container {
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-height: 200px;
  color: var(--text-primary);
  font-size: var(--fs-base);
}

.quill-editor-container .ql-editor {
  min-height: 200px;
  line-height: var(--lh-relaxed);
}

.quill-editor-container .ql-editor.ql-blank::before {
  color: var(--text-muted);
  font-style: normal;
}

.ql-toolbar.ql-snow {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  border-bottom: none !important;
}

.ql-toolbar .ql-stroke {
  stroke: var(--text-secondary) !important;
}

.ql-toolbar .ql-fill {
  fill: var(--text-secondary) !important;
}

.ql-toolbar .ql-picker-label {
  color: var(--text-secondary) !important;
}

.ql-toolbar .ql-picker-options {
  background: var(--bg-surface) !important;
  border-color: var(--border-color) !important;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--color-primary-light) !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
  fill: var(--color-primary-light) !important;
}

.ql-snow .ql-tooltip {
  background: var(--bg-surface) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-lg) !important;
}

.ql-snow .ql-tooltip input[type="text"] {
  background: rgba(10, 18, 32, 0.75) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

.ql-content {
  line-height: var(--lh-relaxed);
}

.ql-content h2, .ql-content h3 {
  color: var(--text-heading);
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-heading);
}

.ql-content p { margin-bottom: var(--space-2); }
.ql-content ul, .ql-content ol { padding-left: var(--space-5); margin-bottom: var(--space-3); }
.ql-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
  margin: var(--space-3) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.ql-content a { color: var(--color-primary-light); }
.ql-content img { max-width: 100%; border-radius: var(--radius-md); }

/* Report Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--text-heading);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: var(--space-5);
}

/* Verified Badge */
.badge-verified {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================================
   26. RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .filter-row { flex-wrap: wrap; }

  .filter-selects {
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
  }

  .filter-select,
  .form-select.filter-select {
    min-width: 120px;
    flex: 1;
  }

  .server-row__banner { height: 140px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .hero-title { font-size: clamp(1.75rem, 4vw, 3rem); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }

  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================================
   27. RESPONSIVE — Tablet Small (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --navbar-height: 60px; }

  .navbar-nav,
  .navbar-actions,
  .navbar-auth,
  .lang-selector { display: none; }

  .navbar-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color-light);
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
  }

  .navbar-actions.mobile-open {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    top: calc(var(--navbar-height) + 150px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color-light);
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    justify-content: center;
  }

  .navbar-toggler,
  .navbar-toggle { display: flex; }

  .server-row__banner { height: 110px; }

  .server-row__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .server-row__actions {
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--border-color-light);
    padding-top: var(--space-3);
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search { min-width: 100%; }

  .filter-selects {
    flex-direction: column;
    gap: var(--space-2);
  }

  .filter-select,
  .form-select.filter-select {
    width: 100%;
    min-width: unset;
  }

  .filter-select select { width: 100%; }
  .btn-filter { width: 100%; }

  .sidebar,
  .admin-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open,
  .admin-sidebar.open { transform: translateX(0); }

  .sidebar-toggle { display: flex; }
  .sidebar-close { display: block; }

  .dashboard-main {
    margin-left: 0;
    max-width: 100vw;
  }

  .dashboard-content { padding: var(--space-3); }
  .table-responsive { border-radius: var(--radius-md); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero { min-height: 420px; }
  .hero-stats { gap: var(--space-3); }
  .hero-stat { min-width: 140px; }
  .hero-stat-value { font-size: var(--fs-2xl); }
  .section { padding: var(--space-6) 0; }
  .section-title { font-size: var(--fs-xl); }

  .server-detail-header {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -60px;
  }

  .server-detail-banner { height: 200px; }

  .ranking-row {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gallery-manage-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gallery-preview-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
}

/* ============================================================
   28. RESPONSIVE — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .container,
  .container-fluid {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .server-row__banner { height: 100px; }

  .server-row__info {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-row__logo { margin-top: -24px; }

  .server-row__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-vote { width: 100%; }
  .server-row__links { justify-content: center; }

  .hero {
    min-height: 380px;
    padding-top: calc(var(--navbar-height) + var(--space-5));
  }

  .hero-title { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  .hero-subtitle { font-size: var(--fs-sm); }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }

  .hero-stat { min-width: 200px; }

  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }

  .auth-card,
  .vote-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .modal {
    max-width: 100%;
    margin: var(--space-3);
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .pagination-link,
  .page-link {
    min-width: 34px;
    height: 34px;
    font-size: var(--fs-xs);
  }

  .btn { padding: 8px 16px; }

  .btn-lg {
    padding: 12px 22px;
    font-size: var(--fs-base);
  }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: var(--space-3); }

  .server-detail-logo { width: 72px; height: 72px; }
  .server-detail-title { font-size: var(--fs-xl); }
  .server-info-card { padding: var(--space-3); }

  .dashboard-main { padding: var(--space-3); }
  .dashboard-page-title { font-size: var(--fs-xl); }

  .ranking-avatar { display: none; }
  .ranking-votes-count { font-size: var(--fs-base); }
}

/* ============================================================
   29. PRINT STYLES
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }

  .navbar,
  .sidebar,
  .admin-sidebar,
  .footer,
  .site-footer,
  .btn,
  .filter-bar,
  .modal-overlay { display: none !important; }

  .dashboard-main { margin-left: 0; }

  .server-row {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ============================================================
   30. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   31. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--space-3));
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-tooltip);
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out;
  min-width: 300px;
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid var(--color-error); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-info    { border-left: 3px solid var(--color-info); }

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: var(--fs-base);
  margin-left: auto;
  flex-shrink: 0;
}

.toast-close:hover { color: var(--text-primary); }

/* ============================================================
   32. DROPDOWN MENU
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.dropdown-menu.open,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

/* ============================================================
   33. TOOLTIP
   ============================================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--bg-surface-lighter);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   34. PROGRESS BAR
   ============================================================ */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-body);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width var(--transition-slow);
}

.progress-bar-gold {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
}

.progress-bar-success {
  background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-secondary));
}

/* ============================================================
   35. AVATAR
   ============================================================ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-hover);
  flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-xs { width: 24px; height: 24px; font-size: var(--fs-xs); }
.avatar-sm { width: 32px; height: 32px; font-size: var(--fs-sm); }
.avatar-md { width: 40px; height: 40px; font-size: var(--fs-base); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-lg); }
.avatar-xl { width: 80px; height: 80px; font-size: var(--fs-2xl); }
.avatar-round { border-radius: 50%; }

/* ============================================================
   36. TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color-light);
  margin-bottom: var(--space-4);
  overflow-x: auto;
}

.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--color-primary-light); border-bottom-color: var(--color-primary); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease-out; }

/* ============================================================
   37. EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: var(--space-4);
}

/* ============================================================
   38. CARD (Generic)
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.card:hover { border-color: var(--border-color); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
}

.card-header-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.card-body { padding: var(--space-4); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-color-light);
}

/* ============================================================
   39. DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-color-light);
  margin: var(--space-4) 0;
  border: none;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color-light);
}

/* ============================================================
   40. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color-primary-light); }
.breadcrumb-separator { color: var(--text-muted); opacity: 0.5; }
.breadcrumb-item.active { color: var(--text-primary); font-weight: var(--fw-medium); }

/* ============================================================
   41. SWITCH / TOGGLE
   ============================================================ */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-surface-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.switch input:checked + .switch-slider { background: var(--color-primary); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:focus + .switch-slider { box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15); }

/* ============================================================
   42. TAG / CHIP
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(212, 160, 23, 0.15);
  color: var(--color-primary-light);
}

.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.tag-remove:hover {
  background: rgba(231, 76, 60, 0.2);
  color: var(--color-error);
}

/* ============================================================
   43. COUNTDOWN TIMER
   ============================================================ */
.countdown {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
  background: var(--bg-body);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  min-width: 56px;
  text-align: center;
}

.countdown-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   44. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #1a1200;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   45. COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4);
  z-index: var(--z-modal);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Error Pages ─────────────────────────────── */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-8) var(--space-4);
}

.error-page-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-page-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: var(--space-4);
    opacity: 0.8;
    animation: errorFloat 3s ease-in-out infinite;
}

.error-icon-danger {
    color: var(--color-danger);
}

.error-icon-warning {
    color: var(--color-warning);
}

@keyframes errorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-page-code {
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #ffd54f));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-2);
    text-shadow: none;
}

.error-page-title {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-bottom: var(--space-3);
}

.error-page-text {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    max-width: 480px;
    margin: 0 auto var(--space-6);
    line-height: var(--lh-relaxed);
}

.error-page-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.error-page-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.error-particle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    animation: errorParticle 8s ease-in-out infinite;
}

.error-particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.error-particle:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    width: 300px;
    height: 300px;
}

.error-particle:nth-child(3) {
    bottom: 10%;
    left: 40%;
    animation-delay: 4s;
    width: 150px;
    height: 150px;
}

@keyframes errorParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

/* ── Star Rating ─────────────────────────────── */
.rating-section {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.rating-stars-display .rating-star-filled {
    color: var(--primary);
    font-size: 1.25rem;
}

.rating-stars-display .rating-star-empty {
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.4;
}

.rating-avg {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-left: var(--space-2);
}

.rating-count {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.rating-form {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
}

.rating-stars-interactive {
    display: flex;
    gap: 4px;
}

.rating-star-btn {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-star-btn:hover,
.rating-star-btn.active {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.15);
}

.rating-star-btn.hovered {
    color: var(--primary);
    opacity: 0.8;
}

.rating-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

.server-row__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: var(--fs-sm);
    color: var(--primary);
    font-weight: 600;
}

.server-row__rating .rating-star-filled {
    font-size: 0.75rem;
}

/* ── Server of the Month ─────────────────────── */
.section-sotm {
    padding: var(--space-6) 0;
}

.sotm-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.15), 0 8px 32px rgba(0,0,0,0.3);
}

.sotm-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary), #ff9800);
    color: #1a0e00;
    font-weight: 700;
    font-size: var(--fs-sm);
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.sotm-badge i {
    font-size: 1rem;
}

.sotm-banner {
    height: 200px;
    overflow: hidden;
}

.sotm-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sotm-info {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5);
}

.sotm-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-top: -50px;
    background: var(--bg-card);
}

.sotm-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sotm-details {
    flex: 1;
    min-width: 0;
}

.sotm-name {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: var(--space-1);
}

.sotm-name a {
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.2s;
}

.sotm-name a:hover {
    color: var(--primary);
}

.sotm-description {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-3);
}

.sotm-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sotm-votes {
    font-size: var(--fs-sm);
    color: var(--primary);
    font-weight: 600;
}

.sotm-votes i {
    color: #ff5722;
}

.sotm-btn {
    flex-shrink: 0;
}

.badge-sotm {
    background: linear-gradient(135deg, var(--primary), #ff9800) !important;
    color: #1a0e00 !important;
    font-weight: 700;
    border: none !important;
}

@media (max-width: 768px) {
    .rating-section {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }
    .rating-form {
        margin-left: 0;
    }
    .sotm-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .sotm-logo {
        margin-top: -30px;
    }
    .sotm-btn {
        width: 100%;
        text-align: center;
    }
    .sotm-banner {
        height: 150px;
    }
}

/* ── reCAPTCHA ───────────────────────────────── */
.g-recaptcha {
    margin: var(--space-3) 0;
}

.g-recaptcha > div {
    margin: 0 auto;
}

/* ── Chart Tabs ──────────────────────────────── */
.chart-period-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 3px;
}

.chart-tab {
    padding: 6px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.chart-tab.active {
    background: var(--primary);
    color: var(--bg-main);
    font-weight: 600;
}
