/* ============================================================
   HIDE SCROLLBAR SITE-WIDE (SMOOTH SCROLLING PRESERVED)
   ============================================================ */
::-webkit-scrollbar {
  display: none;
  width: 0px;
  height: 0px;
}

/* ============================================================
   PERMANENT UNIFORM ELECTRIC LIME GREEN CURSOR (ALL STATES)
   ============================================================ */
*, *::before, *::after, html, body, a, button, input, select, textarea,
*:hover, *:active, *:focus, *:visited, a:hover, a:active, button:hover, button:active {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 3L10.5 20.5L13.8 13.8L20.5 10.5L3 3Z' fill='%238CE000' stroke='%230B0B0B' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"), auto !important;
}

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700;800;900&family=Exo+2:ital,wght@0,500;0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Original Backgrounds */
  --bg-primary:    #0B0B0B;
  --bg-secondary:  #141414;
  --bg-surface:    #1A1A1A;
  --bg-elevated:   #222222;
  --bg-overlay:    rgba(11,11,11,0.85);

  /* Original Electric Lime Green Accents (Official Logo Color) */
  --accent-forest:  #2D4B00;
  --accent-primary: #5A9900;
  --accent-mid:     #73BD00;
  --accent-bright:  #8CE000;
  --accent-glow:    rgba(140,224,0,0.1);
  --accent-glow-md: rgba(140,224,0,0.2);
  --accent-glow-lg: rgba(140,224,0,0.32);

  /* Text */
  --text-primary:   #F0F0F0;
  --text-secondary: #A8A8A8;
  --text-muted:     #606060;
  --text-inverse:   #0B0B0B;

  /* Vintage Borders & Frames */
  --border:         rgba(255,255,255,0.06);
  --border-subtle:  rgba(255,255,255,0.04);
  --border-accent:  rgba(140,224,0,0.28);
  --border-accent-hover: rgba(140,224,0,0.55);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:  0 16px 64px rgba(0,0,0,0.7);
  --shadow-accent: 0 8px 32px rgba(140,224,0,0.18);

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1:  4px;

  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 96px;
  --space-11: 128px;

  /* Typography — Ultra-Bold Geometric League Spartan Racing & Motorsport Aesthetic */
  --font-family:         'Exo 2', 'Inter', sans-serif;
  --font-family-heading: 'League Spartan', sans-serif;
  --font-family-sub:     'League Spartan', 'Exo 2', sans-serif;
  --font-display: clamp(2.8rem, 5.5vw, 5.5rem);
  --font-h1:      clamp(2rem, 3.5vw, 3.25rem);
  --font-h2:      clamp(1.5rem, 2.5vw, 2.25rem);
  --font-h3:      clamp(1.1rem, 1.8vw, 1.4rem);
  --font-body:    1rem;
  --font-sm:      0.875rem;
  --font-xs:      0.75rem;

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight:   -0.03em;
  --tracking-normal:  -0.01em;
  --tracking-wide:    0.05em;
  --tracking-widest:  0.12em;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  /* Z-index scale */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY — ULTRA-BOLD GEOMETRIC LEAGUE SPARTAN RACING AESTHETIC
   ============================================================ */
.display, .hero-title {
  font-family: 'League Spartan', sans-serif !important;
  font-size: var(--font-display);
  font-weight: 900 !important;
  line-height: var(--leading-tight);
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  color: var(--text-primary);
}

h1, .h1 {
  font-family: 'League Spartan', sans-serif !important;
  font-size: var(--font-h1);
  font-weight: 900 !important;
  line-height: var(--leading-tight);
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  color: var(--text-primary);
}

h2, .h2 {
  font-family: 'League Spartan', sans-serif !important;
  font-size: var(--font-h2);
  font-weight: 800 !important;
  line-height: var(--leading-snug);
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  color: var(--text-primary);
}

h3, .h3 {
  font-family: 'League Spartan', sans-serif !important;
  font-size: var(--font-h3);
  font-weight: 800 !important;
  line-height: var(--leading-snug);
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
  color: var(--text-primary);
}

h4, .h4 {
  font-family: 'League Spartan', sans-serif !important;
  font-size: 1.15rem;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
  color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: var(--leading-relaxed); }

.lead {
  font-size: 1.125rem;
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-weight: 400;
}

.label {
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.label-accent {
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-bright);
}

.text-accent { color: var(--accent-bright); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-sm {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-lg {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-11);
}

.section-sm {
  padding-block: var(--space-9);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ============================================================
   SECTION HEADER COMPONENT
   ============================================================ */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.section-header .label-accent {
  display: block;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 520px;
}

.section-header--center p {
  margin-inline: auto;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent-bright);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.divider--center { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Primary */
.btn-primary {
  background: var(--accent-bright);
  color: #fff;
  border-color: var(--accent-bright);
}
.btn-primary::before { background: rgba(255,255,255,0.08); }
.btn-primary:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  box-shadow: 0 4px 20px rgba(76,175,80,0.3);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

/* Custom Discord Theme Button (Theme-Aligned with Official Discord Icon) */
.btn-discord-theme {
  background: linear-gradient(135deg, rgba(140, 224, 0, 0.18) 0%, rgba(90, 153, 0, 0.28) 100%) !important;
  border: 1px solid var(--accent-bright) !important;
  color: #FFFFFF !important;
  font-family: var(--font-family-heading) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 16px rgba(140, 224, 0, 0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.25s var(--ease) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.btn-discord-theme:hover {
  background: linear-gradient(135deg, #73BD00 0%, #8CE000 100%) !important;
  color: #0B0B0B !important;
  border-color: #8CE000 !important;
  box-shadow: 0 0 26px rgba(140, 224, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-2px) !important;
}

.btn-discord-theme svg {
  fill: currentColor !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.btn-discord-theme:hover svg {
  transform: scale(1.15) rotate(-6deg) !important;
}
.btn-secondary::before { background: var(--bg-elevated); }
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* Outline accent */
.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border-color: var(--border-accent);
}
.btn-outline::before { background: var(--accent-glow); }
.btn-outline:hover {
  border-color: var(--border-accent-hover);
  box-shadow: 0 0 16px rgba(76,175,80,0.1);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: var(--space-3);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-surface); }

/* Sizes */
.btn-sm { padding: 8px 18px; font-size: var(--font-xs); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-xl { padding: 18px 44px; font-size: 1.0625rem; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-md); }

/* Disabled */
.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   BADGE / CHIP
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-default  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-accent   { background: var(--accent-glow); color: var(--accent-bright); border: 1px solid var(--border-accent); }
.badge-success  { background: rgba(76,175,80,0.12); color: #4CAF50; border: 1px solid rgba(76,175,80,0.25); }
.badge-warning  { background: rgba(245,158,11,0.1); color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }
.badge-danger   { background: rgba(239,68,68,0.1);  color: #EF4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-info     { background: rgba(99,179,237,0.1); color: #63B3ED; border: 1px solid rgba(99,179,237,0.2); }

.badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Live pulse badge */
.badge-live {
  background: rgba(239,68,68,0.12);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.25);
}
.badge-live .dot {
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg);
}

.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.card-body { padding: var(--space-6); }
.card-body-sm { padding: var(--space-5); }
.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.card-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-label span { color: var(--accent-bright); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  outline: none;
  line-height: var(--leading-normal);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: var(--leading-relaxed);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Input with icon */
.input-group {
  position: relative;
}
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.input-group .input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--duration-fast);
}
.input-group .input-suffix:hover { color: var(--text-secondary); }

/* Form states */
.form-control.is-valid   { border-color: var(--accent-bright); }
.form-control.is-invalid { border-color: #EF4444; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.form-hint {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.form-error {
  font-size: var(--font-xs);
  color: #EF4444;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--accent-bright);
  cursor: pointer;
}
.form-check-label { font-size: var(--font-sm); color: var(--text-secondary); cursor: pointer; }

/* File upload */
.file-upload {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  transition: border-color var(--duration-base) var(--ease),
              background var(--duration-base) var(--ease);
  cursor: pointer;
}
.file-upload:hover {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}
.file-upload input[type="file"] { display: none; }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.tabs-nav {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px var(--space-5);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--duration-fast), border-color var(--duration-fast);
  cursor: pointer;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn var(--duration-base) var(--ease); }

/* Pills style tabs */
.tabs-pills .tabs-nav { border-bottom: none; gap: var(--space-2); }
.tabs-pills .tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding: 7px 18px;
}
.tabs-pills .tab-btn.active {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-bright);
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 2px; }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast);
  gap: var(--space-4);
}
.accordion-trigger:hover { background: var(--bg-elevated); }

.accordion-icon {
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); color: var(--accent-bright); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease);
}
.accordion-item.open .accordion-body { max-height: 800px; }

.accordion-content {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: var(--z-modal);
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease-spring);
}
.modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color var(--duration-fast), background var(--duration-fast);
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-sm);
}

.table th {
  padding: 12px var(--space-5);
  text-align: left;
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  white-space: nowrap;
}

.table td {
  padding: 13px var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: background var(--duration-fast);
}
.table tbody tr:hover { background: var(--bg-elevated); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all var(--duration-fast);
  cursor: pointer;
}
.page-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.12); }
.page-btn.active {
  background: var(--accent-glow);
  color: var(--accent-bright);
  border-color: var(--border-accent);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumb-item {
  font-size: var(--font-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.breadcrumb-item a:hover { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item .sep { color: var(--text-muted); opacity: 0.4; }

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--font-xs);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: var(--radius-sm); }
.skeleton-text:last-child { width: 70%; }
.skeleton-title { height: 24px; margin-bottom: var(--space-3); }
.skeleton-image { width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   STATUS INDICATOR
   ============================================================ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-xs);
  font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-online  .status-dot { background: #4CAF50; box-shadow: 0 0 0 2px rgba(76,175,80,0.2); }
.status-offline .status-dot { background: var(--text-muted); }
.status-busy    .status-dot { background: #F59E0B; }
.status-away    .status-dot { background: #F59E0B; }
.status-live    .status-dot { background: #EF4444; animation: pulse-live 1.2s ease-in-out infinite; }
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ============================================================
   NOTIFICATION / TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn var(--duration-slow) var(--ease-spring);
}
.toast.hiding { animation: toastOut var(--duration-base) var(--ease-in) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(20px); } }

.toast-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--accent-bright); }
.toast-error   .toast-icon { color: #EF4444; }
.toast-warning .toast-icon { color: #F59E0B; }
.toast-info    .toast-icon { color: #63B3ED; }
.toast-title { font-size: var(--font-sm); font-weight: 600; color: var(--text-primary); }
.toast-msg   { font-size: var(--font-xs); color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent-bright);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}
.progress-bar-animated {
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0%,
    var(--accent-bright) 50%,
    var(--accent-primary) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
}
@keyframes progress-shimmer { to { background-position: -200% 0; } }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm  { width: 32px;  height: 32px;  }
.avatar-md  { width: 44px;  height: 44px;  }
.avatar-lg  { width: 64px;  height: 64px;  }
.avatar-xl  { width: 96px;  height: 96px;  }
.avatar-2xl { width: 128px; height: 128px; }
.avatar-initials {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; display: inline-flex; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-2, 8px);
  z-index: 99999;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg-surface); color: var(--text-primary); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.08); color: #EF4444; }

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) 0;
}

/* ============================================================
   ANIMATIONS — Scroll-triggered
   ============================================================ */
/* Always visible default for animations so text is never hidden */
.fade-up, .fade-down, .fade-in, .fade-right, .stagger > * {
  opacity: 1 !important;
  transform: none !important;
}
.stagger.visible > *:nth-child(1)  { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2)  { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3)  { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4)  { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5)  { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6)  { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7)  { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8)  { transition-delay: 560ms; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .container { padding-inline: var(--space-5); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--space-9); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-8); }
  .section-header { margin-bottom: var(--space-6); }
  .btn-xl { padding: 15px 32px; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .card-body, .card-header, .card-footer { padding: var(--space-4); }
}

/* ============================================================
   ADDITIONAL UTILITIES
   ============================================================ */

/* Page hero */
.page-hero {
  padding: var(--space-9) 0 var(--space-8);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76,175,80,0.05), transparent);
  pointer-events: none;
}
.page-hero-inner { max-width: 640px; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-3); }
.page-hero p  { font-size: 1.0625rem; color: var(--text-muted); line-height: var(--leading-relaxed); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0; margin-bottom: var(--space-4); flex-wrap: wrap; }
.breadcrumb-item { display: flex; align-items: center; gap: 5px; font-size: var(--font-xs); font-weight: 500; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; transition: color var(--duration-fast); }
.breadcrumb-item a:hover { color: var(--accent-bright); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item .sep { margin-inline: 4px; }

/* Label accent */
.label-accent {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* Section header centered */
.section-header--center { text-align: center; margin-bottom: var(--space-9); }
.section-header--center h2 { margin-bottom: var(--space-3); }
.section-header--center p  { max-width: 560px; margin-inline: auto; }

/* Divider */
.divider { height: 1px; background: var(--border); margin-block: var(--space-6); }
.divider--center { max-width: 60px; background: var(--accent-primary); height: 2px; border-radius: 2px; margin-block: var(--space-5); margin-inline: auto; }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }

/* Section sm */
.section-sm { padding-block: var(--space-7); }

/* Flex helpers */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: var(--space-2); }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.page-btn:hover:not(:disabled):not(.active) { border-color: rgba(255,255,255,0.1); color: var(--text-secondary); }
.page-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Progress bar */
.progress { height: 6px; background: var(--bg-elevated); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-bright); border-radius: var(--radius-full); transition: width 1s var(--ease); }

/* Tabs pills */
.tabs-pills .tabs-nav { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.tabs-pills .tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.tabs-pills .tab-btn:hover { color: var(--text-secondary); border-color: rgba(255,255,255,0.1); }
.tabs-pills .tab-btn.active {
  background: var(--accent-glow);
  color: var(--accent-bright);
  border-color: var(--border-accent);
}

/* News meta */
.news-category { font-size: var(--font-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-bright); }
.news-date, .news-read-time { font-size: var(--font-xs); color: var(--text-muted); }

/* Live badge */
.badge-live {
  background: rgba(239,68,68,0.12);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.2);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600; letter-spacing: 0.04em;
}
.badge-live .dot {
  width: 5px; height: 5px; border-radius: 50%; background: #EF4444;
  animation: livePulse 1.5s ease-in-out infinite; flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.badge-info {
  background: rgba(59,130,246,0.1); color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.2);
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600;
}
.badge-danger {
  background: rgba(239,68,68,0.1); color: #EF4444;
  border: 1px solid rgba(239,68,68,0.2);
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600;
}

/* Avatar sizes */
.avatar-sm { width: 28px !important; height: 28px !important; font-size: 10px !important; }
.avatar-md { width: 40px !important; height: 40px !important; font-size: 14px !important; }
.avatar-lg { width: 56px !important; height: 56px !important; font-size: 18px !important; }
.avatar-initials { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; user-select: none; }

/* Search input */
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap .form-control { padding-left: 36px; }
.search-icon { position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; z-index: 1; }

/* h4 helper */
.h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* Toast */
.toast-container {
  position: fixed; bottom: var(--space-5); right: var(--space-5);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--space-3);
  pointer-events: none;
  max-width: 380px; width: calc(100vw - var(--space-8));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: toastIn 0.3s var(--ease) both;
  min-width: 260px;
}
.toast.hiding { animation: toastOut 0.25s var(--ease) both; }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success { border-left: 3px solid var(--accent-bright); }
.toast-success .toast-icon { color: var(--accent-bright); }
.toast-error   { border-left: 3px solid #EF4444; }
.toast-error .toast-icon { color: #EF4444; }
.toast-warning { border-left: 3px solid #F59E0B; }
.toast-warning .toast-icon { color: #F59E0B; }
.toast-info    { border-left: 3px solid #3b82f6; }
.toast-info .toast-icon { color: #3b82f6; }
.toast-title { font-size: var(--font-sm); font-weight: 600; color: var(--text-primary); }
.toast-msg   { font-size: var(--font-xs); color: var(--text-muted); margin-top: 2px; }
@keyframes toastIn  { from { opacity:0; transform:translateY(12px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(8px) scale(0.95); } }

/* ============================================================
/* ============================================================
   CLEAN INNER STITCHED DASHED BORDER THEME (PRIMARY CARDS ONLY)
   ============================================================ */
.card, 
.partner-card, 
.streamer-card, 
.cta-card, 
.rule-category-card, 
.feature-card, 
.birlik-card,
.news-card,
.update-card,
.feed-card,
.accordion-item,
.admin-card {
  position: relative !important;
  border: 1px solid rgba(140, 224, 0, 0.28) !important;
  outline: none !important;
}

.card::after, 
.partner-card::after, 
.streamer-card::after, 
.cta-card::after, 
.rule-category-card::after, 
.feature-card::after, 
.birlik-card::after,
.news-card::after,
.update-card::after,
.feed-card::after,
.accordion-item::after,
.admin-card::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px dashed rgba(140, 224, 0, 0.38);
  border-radius: calc(var(--radius-lg, 12px) - 3px);
  pointer-events: none;
  transition: border-color 0.2s ease;
  z-index: 0;
}

.card:hover::after, 
.partner-card:hover::after, 
.streamer-card:hover::after, 
.cta-card:hover::after, 
.rule-category-card:hover::after, 
.feature-card:hover::after, 
.birlik-card:hover::after,
.news-card:hover::after,
.update-card:hover::after,
.feed-card:hover::after,
.accordion-item:hover::after,
.admin-card:hover::after {
  border-color: rgba(140, 224, 0, 0.85);
}

.card:hover, 
.partner-card:hover, 
.streamer-card:hover, 
.cta-card:hover, 
.rule-category-card:hover, 
.feature-card:hover, 
.birlik-card:hover,
.news-card:hover,
.update-card:hover,
.feed-card:hover,
.accordion-item:hover {
  border-color: rgba(140, 224, 0, 0.6) !important;
  box-shadow: 0 0 20px rgba(140, 224, 0, 0.15) !important;
}

/* Ensure clean standard borders on icons, buttons, badges, inputs */
.badge, 
.btn-secondary, 
.btn-discord-theme, 
.social-btn, 
.social-icon-btn, 
.form-control, 
.form-select, 
.tab-btn, 
.status-pill {
  outline: none !important;
}

/* ============================================================
   MINI VINYL RECORD PLAYER WIDGET
   ============================================================ */
@keyframes vinyl-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vinyl-disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 16%, #111 20%, #050505 40%, #1a1a1a 42%, #0b0b0b 70%, #1f1f1f 72%, #000 100%);
  border: 2px solid rgba(140, 224, 0, 0.45);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(140, 224, 0, 0.3);
  animation: vinyl-spin 4s linear infinite;
  flex-shrink: 0;
}

.vinyl-disc::before {
  content: '';
  width: 14px;
  height: 14px;
  background: #8CE000;
  border-radius: 50%;
  border: 2px solid #000;
  box-shadow: 0 0 5px #8CE000;
}

.vinyl-disc::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  position: absolute;
}

#vinyl-player-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 224, 0, 0.7) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.8), 0 0 20px rgba(140,224,0,0.2) !important;
}





