@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ==========================================
   ARCANIUM DESIGN SYSTEM 2026 — ULTIMATE EDITION
   ========================================== */

:root {
  /* Color Palette — Rose Gold & Platinum Diamond (Matched with Logo) */
  --bg-primary: #07080c;
  --bg-dark: #040407;
  --bg-surface: #0c0e16;
  --bg-surface-elevated: #131522;
  
  --panel-bg: rgba(13, 15, 23, 0.8);
  --panel-bg-hover: rgba(19, 22, 33, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-glow: rgba(224, 169, 139, 0.35);

  /* Primary Rose Gold / Champagne Accent Variables */
  --primary: #e0a98b;
  --primary-hover: #cf9272;
  --primary-light: #f5d0c5;
  --primary-glow: rgba(224, 169, 139, 0.28);
  
  --secondary: #f8ede8;
  --secondary-glow: rgba(248, 237, 232, 0.25);

  --accent-cyan: #e8c59f;
  --accent-pink: #f3b7a5;
  
  /* Status Colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.2);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --info: #3b82f6;

  /* Typography */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-dim: #475569;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Animations & Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Elevation Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(224, 169, 139, 0.3);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary) !important;
  color-scheme: dark;
  font-size: 14px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary) !important;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(224, 169, 139, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 40%, rgba(212, 155, 125, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(245, 208, 197, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(196, 136, 104, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Animated Grid Pattern Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* LightPillar Background Component Styles */
.light-pillar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: luminosity;
  opacity: 0.85;
}

.light-pillar-fallback {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.1);
  color: #888;
  font-size: 14px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(224, 169, 139, 0.35);
  border-radius: 99px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(224, 169, 139, 0.65);
}

/* Selection Color */
::selection {
  background: rgba(224, 169, 139, 0.35);
  color: #ffffff;
}

/* Global Container */
.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

main.container {
  padding-top: 140px;
  padding-bottom: 100px;
  flex: 1;
}

/* Modern Select & Input Styling */
select, input, textarea {
  font-family: var(--font-body);
  color: #ffffff;
}

select option, select optgroup {
  background-color: #111422 !important;
  color: #ffffff !important;
  padding: 10px 14px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(10px);
}

.dots-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-glow);
  animation: pulseBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-cyan) 100%); box-shadow: 0 0 15px var(--secondary-glow); }
.dot:nth-child(3) { animation-delay: 0s; background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary) 100%); }

@keyframes pulseBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 12px var(--primary)); }
}

/* ==========================================
   FLOATING GLASS NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  margin: 0 auto;
  max-width: 1240px;
  width: calc(100% - 40px);
  background: rgba(11, 13, 20, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  z-index: 1000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.navbar:hover {
  border-color: rgba(224, 169, 139, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(224, 169, 139, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.navbar-container {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, #f5d0c5 55%, #e0a98b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.nav-brand img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(224, 169, 139, 0.5));
  transition: transform 0.3s ease;
}

.nav-brand:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 0.9rem;
  color: var(--primary-light);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(224, 169, 139, 0.14);
  border-color: rgba(224, 169, 139, 0.3);
  box-shadow: 0 0 15px rgba(224, 169, 139, 0.2);
  transform: translateY(-1px);
}

.nav-link:hover i {
  transform: scale(1.15);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(224, 169, 139, 0.28) 0%, rgba(207, 146, 114, 0.4) 100%);
  border-color: rgba(224, 169, 139, 0.5);
  box-shadow: 0 0 20px rgba(224, 169, 139, 0.35);
}

.nav-btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #404eed 100%);
  color: white;
  border-radius: 99px;
  padding: 6px 14px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.nav-btn-discord::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.nav-btn-discord:hover::before {
  left: 100%;
}

.nav-btn-discord:hover {
  background: linear-gradient(135deg, #6773f3 0%, #4f5df3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.55);
}

/* User Menu & Avatar Dropdown */
.user-menu-container {
  position: relative;
}

.avatar-btn {
  background: none;
  border: 2px solid rgba(224, 169, 139, 0.3);
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

.avatar-btn:hover {
  border-color: var(--primary-light);
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(224, 169, 139, 0.5);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: rgba(11, 13, 22, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 265px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(224, 169, 139, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 14px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-container:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 6px 6px 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dropdown-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.dropdown-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(224, 169, 139, 0.3);
  object-fit: cover;
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background-color: var(--success);
  border: 2.5px solid #0b0d16;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-glow);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.dropdown-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-balance-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(224, 169, 139, 0.06) 100%);
  border: 1px solid rgba(224, 169, 139, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.dropdown-balance-card:hover {
  border-color: rgba(224, 169, 139, 0.4);
  box-shadow: 0 4px 20px rgba(224, 169, 139, 0.15);
}

.balance-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.balance-label i {
  color: var(--warning);
}

.balance-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--warning);
}

.currency-symbol {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

.balance-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(224, 169, 139, 0.15);
  border: 1px solid rgba(224, 169, 139, 0.3);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.25s ease;
}

.balance-action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.dropdown-items-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
}

.dropdown-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: var(--primary-light);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.dropdown-item.admin-link {
  color: var(--primary-light);
  background: rgba(224, 169, 139, 0.1);
  border: 1px solid rgba(224, 169, 139, 0.2);
}

.dropdown-item.admin-link:hover {
  background: rgba(224, 169, 139, 0.2);
  color: #fff;
}

.dropdown-item.logout-link {
  color: var(--danger);
  margin-top: 4px;
}

.dropdown-item.logout-link:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fff;
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(224, 169, 139, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 169, 139, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 8px 25px var(--success-glow);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 8px 25px var(--danger-glow);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.45);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0 40px 0;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(224, 169, 139, 0.12) 0%, rgba(245, 208, 197, 0.12) 100%);
  border: 1px solid rgba(224, 169, 139, 0.3);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(224, 169, 139, 0.15);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-badge-text {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Glass Content Panel */
.content-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.content-panel:hover {
  border-color: rgba(224, 169, 139, 0.3);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(224, 169, 139, 0.12);
}

/* Timeline / Changelog Component */
.timeline-wrapper {
  position: relative;
  padding-left: 28px;
}

.timeline-line {
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(224, 169, 139, 0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot-container {
  position: absolute;
  left: -28px;
  top: 18px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b0d16;
  border: 3px solid var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
  transition: var(--transition);
}

.timeline-dot.active {
  background: var(--primary);
  border-color: #ffffff;
  box-shadow: 0 0 20px var(--primary);
}

.timeline-content-card {
  background: rgba(15, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.timeline-content-card:hover {
  border-color: rgba(224, 169, 139, 0.35);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-version-badge {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-light);
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-card-body {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cards & Tables Grid */
.glass-card {
  background: rgba(13, 16, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(224, 169, 139, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(224, 169, 139, 0.15);
}

/* Modern Data Table */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(20px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(224, 169, 139, 0.06);
  color: #ffffff;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-primary {
  background: rgba(224, 169, 139, 0.15);
  color: #f5d0c5;
  border: 1px solid rgba(224, 169, 139, 0.3);
}

/* Toast Notification Styles */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-card {
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-bounce);
}

.toast-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-card.success { border-color: rgba(16, 185, 129, 0.4); }
.toast-card.success .toast-icon { color: var(--success); }

.toast-card.error { border-color: rgba(239, 68, 68, 0.4); }
.toast-card.error .toast-icon { color: var(--danger); }

.toast-card.warning { border-color: rgba(245, 158, 11, 0.4); }
.toast-card.warning .toast-icon { color: var(--warning); }

.toast-icon {
  font-size: 20px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.toast-msg {
  font-size: 12px;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.toast-close:hover {
  color: #fff;
}

/* Footer Styling */
footer {
  background: rgba(7, 8, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 30px 0;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #e0a98b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.footer-link-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.kai-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* ==========================================
   RESTORED GLOBAL UTILITY CLASSES
   ========================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-discord-large {
  background: #5865F2;
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
}
.btn-discord-large:hover {
  background: #4752C4;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

/* Tab Buttons */
.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Panels */
.content-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

/* Layouts & Grid */
.main-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

/* Stat Cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
}

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-main);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--primary-glow);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px 0;
}
.panel-title i {
  color: var(--primary-light);
}

/* Rule Badges Mapping */
.badge-rules {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-rules.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rules.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-rules.badge-perma { background: rgba(153, 27, 27, 0.25); color: #fca5a5; border: 1px solid rgba(153, 27, 27, 0.5); font-weight: 900; }
.badge-rules.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rules.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--primary-light); border: 1px solid rgba(168, 85, 247, 0.3); }

/* Table Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge.online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}
.status-badge.offline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(8, 10, 18, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
  }

  .nav-menu-wrapper.open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

/* ==========================================
   FAQ ACCORDION COMPONENT
   ========================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-item:hover {
  border-color: rgba(224, 169, 139, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.faq-item.active {
  background: rgba(17, 21, 35, 0.95);
  border-color: rgba(224, 169, 139, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 169, 139, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon-arrow {
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Switch Toggle Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3f3f46;
  border: 1px solid #52525b;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #a1a1aa;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #10b981;
  border: 1px solid #059669;
}
input:checked + .slider:before {
  background-color: #ffffff;
  transform: translateX(20px);
}
