﻿/* Elyndor Website — Fantasy Obsidian (aligned with Shop) */
:root {
  --bg: #07090c;
  --dark: #0c1016;
  --darker: #07090c;
  --surface: #12161c;
  --surface-light: #1a2029;

  --gold: #d4a84b;
  --gold-soft: #e8c878;
  --teal: #2dd4bf;
  --orange: #e8a054;

  /* Map legacy names so the whole site flips */
  --cyan: #2dd4bf;
  --purple: #d4a84b;
  --pink: #c9a227;

  --text: #e8eaed;
  --text-dim: #a8b0ba;
  --text-muted: #7a8490;

  --border: #243040;
  --border-light: #334155;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f3efe6;
  --dark: #f7f4ef;
  --darker: #faf8f4;
  --surface: #ffffff;
  --surface-light: #f5f1e8;

  --text: #141820;
  --text-dim: #3a4250;
  --text-muted: #5c6674;

  --border: #ddd5c6;
  --border-light: #cfc5b4;

  --cyan: #0f766e;
  --purple: #b8892f;
  --pink: #a67c2a;
  --gold: #b8892f;
  --teal: #0f766e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--darker);
  background-image:
    radial-gradient(ellipse 80% 50% at 12% 8%, rgba(212, 168, 75, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 85%, rgba(45, 212, 191, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 18% 28%, rgba(212, 168, 75, 0.2), transparent),
    radial-gradient(1px 1px at 72% 64%, rgba(45, 212, 191, 0.16), transparent),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(212, 168, 75, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes particleMove {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.6; }
}

.navbar {
  background: rgba(7, 9, 12, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.2);
  padding: 0.7rem 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1200;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 9, 12, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(212, 168, 75, 0.32);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold);
  background: none;
  padding: 0.12rem 0;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  animation: none;
  text-shadow: none;
}

.navbar-brand:hover {
  color: var(--gold-soft) !important;
  -webkit-text-fill-color: var(--gold-soft);
  transform: translateY(-1px);
  filter: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.navbar-nav {
  gap: 0.25rem;
}

.navbar-nav .nav-link {
  color: var(--text-dim);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--gold);
  background: rgba(212, 168, 75, 0.12);
  transform: none;
  box-shadow: none;
}

.navbar-nav .nav-link.active {
  color: var(--gold);
  background: rgba(212, 168, 75, 0.16);
  box-shadow: none;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 255, 255, 0.1) inset,
    0 0 20px rgba(0, 255, 255, 0.1);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  transform: none;
  min-width: 11rem;
  overflow: hidden;
}

.navbar .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.dropdown-menu .dropdown-item {
  display: block;
  color: var(--text-dim);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  text-decoration: none;
}

.dropdown-menu .dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), rgba(168, 85, 247, 0.1));
  color: var(--cyan);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
  transform: none;
  filter: none;
}

.navbar .btn::before {
  display: none;
}

.navbar .btn:hover::before {
  display: none;
}

.navbar .btn-primary,
.navbar .btn-nav--gold {
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid rgba(212, 168, 75, 0.45);
  color: var(--gold);
  box-shadow: none;
}

.navbar .btn-primary:hover,
.navbar .btn-nav--gold:hover {
  background: rgba(212, 168, 75, 0.26);
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: none;
  box-shadow: none;
  filter: none;
}

.navbar .btn-outline,
.navbar .btn-nav {
  background: transparent;
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--text-dim);
}

.navbar .btn-outline:hover,
.navbar .btn-nav:hover {
  background: rgba(212, 168, 75, 0.1);
  border-color: rgba(212, 168, 75, 0.5);
  color: var(--gold);
  box-shadow: none;
  transform: none;
}

.navbar .btn-danger,
.navbar .btn-nav--mute {
  background: transparent;
  border: 1px solid rgba(168, 176, 186, 0.28);
  color: var(--text-dim);
}

.navbar .btn-danger:hover,
.navbar .btn-nav--mute:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
  transform: none;
  box-shadow: none;
}

.navbar-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.navbar-text strong {
  color: var(--gold);
  font-weight: 600;
}

/* Main Layout - New Structure */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display), Cinzel, Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.page-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-main {
  grid-column: span 8;
}

.dashboard-sidebar {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .dashboard-main {
    grid-column: span 12;
  }
  
  .dashboard-sidebar {
    grid-column: span 12;
  }
}

/* Feature Cards — Obsidian / Gold (no neon glow) */
.feature-card {
  background: rgba(18, 22, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 75, 0.22);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.55), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.feature-card::after {
  display: none;
}

.feature-card:hover {
  border-color: rgba(212, 168, 75, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background: rgba(18, 22, 28, 0.95);
}

.feature-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.75), transparent);
}

/* Video Card - Special Styling */
.feature-card .ratio {
  margin-top: 0.5rem;
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
}

.feature-card-title {
  font-family: var(--font-display), Cinzel, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.feature-card-title::after {
  content: '';
  position: absolute;
  bottom: -0.65rem;
  left: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
  opacity: 0.85;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Banner */
.hero-banner {
  width: 100%;
  max-width: 100%;
  max-height: 500px;
  background: linear-gradient(135deg, rgba(18, 22, 28, 0.95), rgba(12, 16, 22, 0.95));
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-banner::before,
.hero-banner::after {
  display: none;
}

.hero-banner:hover {
  transform: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 168, 75, 0.4);
}

.hero-banner:hover::before,
.hero-banner:hover::after {
  display: none;
}

.hero-banner img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  transition: none;
  filter: none;
}

.hero-banner:hover img {
  transform: none;
  filter: none;
}

/* Buttons - Enhanced with Glow Effects */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid rgba(212, 168, 75, 0.45);
  color: var(--gold);
  font-weight: 600;
  box-shadow: none;
  position: relative;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  background: rgba(212, 168, 75, 0.26);
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: none;
  box-shadow: none;
}

.btn-primary:hover::after {
  display: none;
}

.btn-primary:active {
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(168, 176, 186, 0.28);
  color: var(--text-dim);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--text-dim);
}

.btn-outline:hover {
  background: rgba(212, 168, 75, 0.1);
  border-color: rgba(212, 168, 75, 0.5);
  color: var(--gold);
}

/* Shared action buttons (Navbar + Account etc.) */
.btn-nav {
  background: transparent;
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--text-dim);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
}

.btn-nav:hover {
  background: rgba(212, 168, 75, 0.1);
  border-color: rgba(212, 168, 75, 0.5);
  color: var(--gold);
  box-shadow: none;
  transform: none;
}

.btn-nav--gold {
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid rgba(212, 168, 75, 0.45);
  color: var(--gold);
}

.btn-nav--gold:hover {
  background: rgba(212, 168, 75, 0.26);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-nav--mute {
  border-color: rgba(168, 176, 186, 0.28);
  color: var(--text-dim);
}

.btn-nav--mute:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.account-actions .btn {
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.w-100 {
  width: 100%;
}

/* Forms */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #ffffff !important;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  width: 100%;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--cyan) !important;
  background: var(--surface-light) !important;
  color: #ffffff !important;
  box-shadow: 
    0 0 0 3px rgba(0, 255, 255, 0.15),
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-1px);
}

.form-control:focus::placeholder,
input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.4;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tables - Dark Mode (Default) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface) !important;
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: var(--dark) !important;
}

.table thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--dark) !important;
}

.table tbody {
  background: var(--surface) !important;
}

.table tbody tr {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: var(--surface-light) !important;
}

.table tbody td {
  padding: 0.875rem 1rem;
  color: var(--text) !important;
  font-size: 0.9rem;
  background: var(--surface) !important;
}

.table tbody th {
  color: var(--text) !important;
  background: var(--surface) !important;
}

/* Badges - Enhanced */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge::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: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge-primary {
  background: rgba(0, 255, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.badge-primary:hover {
  background: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: scale(1.05);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-success:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

.badge-secondary {
  background: rgba(26, 26, 26, 0.6);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-secondary:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: var(--border-light);
}

/* News List - Enhanced Style */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-item {
  padding: 1.1rem 1.25rem;
  background: rgba(18, 22, 28, 0.72);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(212, 168, 75, 0.35);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.news-item::before,
.news-item::after {
  display: none;
}

.news-item:hover {
  background: rgba(26, 32, 40, 0.9);
  border-color: rgba(212, 168, 75, 0.35);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.news-item:hover::before,
.news-item:hover::after {
  display: none;
}

.news-title {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.news-title:hover {
  color: var(--cyan);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Navigation Pills — Obsidian / Gold */
.nav-pills {
  display: flex;
  gap: 0.5rem;
}

.nav-pills .nav-link {
  padding: 0.45rem 0.85rem;
  background: rgba(18, 22, 28, 0.85);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.nav-pills .nav-link::before {
  display: none;
}

.nav-pills .nav-link:hover {
  background: rgba(212, 168, 75, 0.1);
  color: var(--gold);
  border-color: rgba(212, 168, 75, 0.35);
  transform: none;
  box-shadow: none;
}

.nav-pills .nav-link:hover::before {
  display: none;
}

.nav-pills .nav-link.active {
  background: rgba(212, 168, 75, 0.18);
  color: var(--gold);
  border-color: rgba(212, 168, 75, 0.45);
  box-shadow: none;
  font-weight: 600;
}

.nav-pills .nav-link.active::before {
  display: none;
}

/* Footer — Obsidian / Gold */
footer {
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 168, 75, 0.2);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  box-shadow: none;
}

footer::before {
  display: none;
}

footer a {
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}

footer a::after {
  display: none;
}

footer a:hover {
  color: var(--gold);
}

footer a:hover::after {
  display: none;
}

/* Utility */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-dim) !important;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-md-row { flex-direction: row; }
.align-items-center { align-items: center; }
.align-items-md-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.text-center { text-align: center; }
.small { font-size: 0.85rem; }

.link-light {
  color: var(--text-dim);
}

.link-light:hover {
  color: var(--cyan);
}

[data-theme="light"] .link-light {
  color: #2a2a2a !important;
}

[data-theme="light"] .link-light:hover {
  color: var(--cyan) !important;
}

[data-theme="light"] .link-light.small {
  color: #4a4a4a !important;
}

[data-theme="light"] .link-light.small:hover {
  color: var(--cyan) !important;
}

.navbar-text {
  color: var(--text-dim);
}

.navbar-text strong {
  color: var(--cyan);
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  background: var(--surface);
  max-height: 300px;
}

.ratio::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.ratio-16x9::before {
  padding-bottom: 56.25%;
}

/* Limit aspect ratio container height for compact display */
@media (min-width: 768px) {
  .ratio::before {
    max-height: 300px;
  }
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 300px;
}

.ratio iframe {
  border: none;
  border-radius: 12px;
  transition: none;
  max-height: 300px;
}

.ratio:hover iframe {
  transform: none;
}

.ratio:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 168, 75, 0.4);
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .page-content {
    padding: 1rem;
  }
  
  .page-header {
    padding: 2rem 1rem 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

/* Compatibility */
.main-content {
  min-height: 100vh;
}

.main-header {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.main-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.card,
.login-card,
.video-card,
.news-section,
.online-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-section {
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  padding: 0 0.75rem;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

@media (max-width: 992px) {
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

.promo-img,
.placeholder-banner {
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  display: block;
  width: 1.5em;
  height: 1.5em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Mobile Navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-collapse.show {
    display: block;
  }

  .custom-dropdown {
    position: static;
    display: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    box-shadow: none;
    border: 1px solid rgba(0, 255, 255, 0.2);
  }

  .custom-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.3), rgba(168, 85, 247, 0.3));
  border-radius: 5px;
  border: 2px solid var(--darker);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.5), rgba(168, 85, 247, 0.5));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Light Mode Styles */
[data-theme="light"] .navbar {
  background: rgba(255, 252, 247, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border-light);
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar-nav .nav-link:hover {
  background: rgba(184, 137, 47, 0.12);
  color: var(--gold);
  box-shadow: none;
}

[data-theme="light"] .navbar-nav .nav-link.active {
  background: rgba(184, 137, 47, 0.16);
  color: var(--gold);
  box-shadow: none;
}

[data-theme="light"] .feature-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .feature-card::before {
  background: linear-gradient(90deg, transparent, rgba(184, 137, 47, 0.45), transparent) !important;
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(184, 137, 47, 0.4) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .feature-card-header {
  border-bottom: 1px solid var(--border) !important;
}

[data-theme="light"] .feature-card-title {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
  background: none !important;
}

[data-theme="light"] .btn-primary {
  background: rgba(184, 137, 47, 0.14);
  border: 1px solid rgba(184, 137, 47, 0.4);
  color: var(--gold);
}

[data-theme="light"] .btn-primary:hover {
  background: rgba(184, 137, 47, 0.22);
  box-shadow: none;
}

[data-theme="light"] .btn-outline {
  border: 1px solid var(--border);
  color: var(--text-dim);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(184, 137, 47, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

[data-theme="light"] .form-control,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="url"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--cyan) !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15) !important;
}

[data-theme="light"] .form-control:focus::placeholder,
[data-theme="light"] input:focus::placeholder,
[data-theme="light"] textarea:focus::placeholder {
  opacity: 0.5;
}

[data-theme="light"] .page-header {
  border-bottom: 1px solid var(--border);
}

/* Light Mode - Ensure all text is dark and readable */
[data-theme="light"] body,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] div,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] label,
[data-theme="light"] .form-label,
[data-theme="light"] .navbar-text,
[data-theme="light"] .nav-link,
[data-theme="light"] .dropdown-item {
  color: var(--text) !important;
}

[data-theme="light"] .feature-card-title {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .form-text,
[data-theme="light"] small {
  color: var(--text-muted) !important;
}

[data-theme="light"] .navbar-nav .nav-link {
  color: var(--text-dim) !important;
}

[data-theme="light"] .navbar-nav .nav-link:hover,
[data-theme="light"] .navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

[data-theme="light"] .dropdown-item {
  color: var(--text-dim) !important;
}

[data-theme="light"] .dropdown-item:hover {
  color: var(--text) !important;
  background: var(--surface-light) !important;
}

[data-theme="light"] .table {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="light"] .table thead {
  background: #f8f9fa !important;
}

[data-theme="light"] .table thead th {
  color: #2a2a2a !important;
  font-weight: 600 !important;
  border-bottom: 2px solid var(--border) !important;
}

[data-theme="light"] .table tbody tr {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

[data-theme="light"] .table tbody tr:hover {
  background: #f8f9fa !important;
}

[data-theme="light"] .table tbody td {
  color: #1a1a1a !important;
}

[data-theme="light"] .table tbody th {
  color: #1a1a1a !important;
}

/* Dark Mode Tables - Explicit styles to ensure they work */
body:not([data-theme="light"]) .table,
:not([data-theme="light"]) .table {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table thead,
:not([data-theme="light"]) .table thead {
  background: var(--dark) !important;
}

body:not([data-theme="light"]) .table thead th,
:not([data-theme="light"]) .table thead th {
  color: var(--text-dim) !important;
  background: var(--dark) !important;
}

body:not([data-theme="light"]) .table tbody,
:not([data-theme="light"]) .table tbody {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody tr,
:not([data-theme="light"]) .table tbody tr {
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody tr:hover,
:not([data-theme="light"]) .table tbody tr:hover {
  background: var(--surface-light) !important;
}

body:not([data-theme="light"]) .table tbody td,
:not([data-theme="light"]) .table tbody td {
  color: var(--text) !important;
  background: var(--surface) !important;
}

body:not([data-theme="light"]) .table tbody th,
:not([data-theme="light"]) .table tbody th {
  color: var(--text) !important;
  background: var(--surface) !important;
}

/* Override Bootstrap table-dark in Light Mode */
[data-theme="light"] .table-dark,
[data-theme="light"] .table.table-dark {
  background-color: transparent !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .table-dark thead,
[data-theme="light"] .table-dark thead th {
  background-color: #f8f9fa !important;
  color: #2a2a2a !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .table-dark tbody,
[data-theme="light"] .table-dark tbody tr {
  background-color: var(--surface) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .table-dark tbody tr:hover {
  background-color: #f8f9fa !important;
}

[data-theme="light"] .table-dark tbody td,
[data-theme="light"] .table-dark tbody th {
  color: #1a1a1a !important;
  border-color: var(--border) !important;
}

/* Override table-striped in Light Mode */
[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--surface) !important;
}

[data-theme="light"] .table-striped > tbody > tr:nth-of-type(even) {
  background-color: #fafafa !important;
}

[data-theme="light"] table {
  border-color: var(--border) !important;
}

[data-theme="light"] table thead {
  background: #f8f9fa !important;
}

[data-theme="light"] table thead th {
  color: #2a2a2a !important;
  font-weight: 600 !important;
}

[data-theme="light"] table tbody tr {
  background: var(--surface) !important;
}

[data-theme="light"] table tbody tr:hover {
  background: #f8f9fa !important;
}

[data-theme="light"] table tbody td {
  color: #1a1a1a !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--darker);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--surface);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--surface-light);
}

/* Theme Toggle — Obsidian / Gold */
.theme-toggle,
#theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 75, 0.28);
  background: rgba(18, 22, 28, 0.7);
  color: var(--gold);
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: none;
  transform: none;
}

.theme-toggle:hover,
#theme-toggle:hover {
  border-color: rgba(212, 168, 75, 0.55);
  background: rgba(212, 168, 75, 0.12);
  color: var(--gold-soft);
  transform: none;
}

.theme-toggle:active,
#theme-toggle:active {
  transform: none;
  background: rgba(212, 168, 75, 0.18);
}

.theme-toggle__icon {
  width: 1.05rem;
  height: 1.05rem;
  display: none;
}

/* Dark mode active → show sun (switch to light) */
html:not([data-theme="light"]) .theme-toggle__icon--sun {
  display: block;
}

/* Light mode active → show moon (switch to dark) */
html[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] #theme-toggle {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(184, 137, 47, 0.35);
  color: var(--gold);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] #theme-toggle:hover {
  background: rgba(184, 137, 47, 0.12);
  border-color: rgba(184, 137, 47, 0.55);
}

/* Fade-in animation classes - Enhanced */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for multiple items */
.news-item {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.news-item:nth-child(1) { animation-delay: 0.05s; }
.news-item:nth-child(2) { animation-delay: 0.1s; }
.news-item:nth-child(3) { animation-delay: 0.15s; }
.news-item:nth-child(4) { animation-delay: 0.2s; }
.news-item:nth-child(5) { animation-delay: 0.25s; }
.news-item:nth-child(6) { animation-delay: 0.3s; }
.news-item:nth-child(7) { animation-delay: 0.35s; }
.news-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Feature cards fade-in */
.feature-card {
  animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.feature-card:nth-of-type(1) { animation-delay: 0.1s; }
.feature-card:nth-of-type(2) { animation-delay: 0.2s; }
.feature-card:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Slide-in animation for news items - Enhanced */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse animation for live badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), 0 0 50px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
  }
}

.badge-success[data-live="true"] {
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.badge-success[data-live="true"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.3);
  transform: translate(-50%, -50%) scale(1.5);
  animation: pulseRing 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulseRing {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Form input focus state */
.form-control:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}

.form-group.focused .form-label,
.form-control:focus + .form-label,
.form-select:focus + .form-label {
  color: var(--cyan);
}


.auth-panel { max-width: 500px; margin: 0 auto; }
.auth-panel--wide { max-width: 720px; }
.auth-alert { margin-top: 1rem; margin-bottom: 1rem; padding: 1rem; border-radius: 10px; }
.auth-alert--warn { background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3); color: var(--orange); }
.auth-alert--ok { background: rgba(0, 255, 255, 0.1); border: 1px solid rgba(0, 255, 255, 0.3); color: var(--cyan); }

/* ===== Complete Website Theme Overrides ===== */
.page-header h1,
.feature-card-title,
.card-title,
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.page-header h1 {
  color: var(--gold);
}

.navbar-nav .nav-link:hover {
  background: rgba(212, 168, 75, 0.12);
  color: var(--gold);
  box-shadow: none;
}

.navbar-nav .nav-link.active {
  color: var(--gold);
  background: rgba(212, 168, 75, 0.16);
  box-shadow: none;
}

.navbar-nav .nav-link.active::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.navbar .dropdown-menu {
  border-color: rgba(212, 168, 75, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(212, 168, 75, 0.12);
  color: var(--gold);
  box-shadow: none;
}

.feature-card {
  background: rgba(18, 22, 28, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.feature-card:hover {
  border-color: rgba(212, 168, 75, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.feature-card-title::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.18) !important;
}

.badge-primary {
  background: rgba(212, 168, 75, 0.18);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 75, 0.35);
}

.news-title:hover {
  color: var(--gold);
}

footer {
  border-top: 1px solid rgba(212, 168, 75, 0.2);
  background: rgba(7, 9, 12, 0.92);
  padding: 1.5rem 0;
  margin-top: 2rem;
  box-shadow: none;
}

footer::before {
  display: none !important;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* Full homepage hero */
.site-hero {
  position: relative;
  min-height: 280px;
  max-height: 340px;
  display: grid;
  place-items: center stretch;
  overflow: hidden;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
}

.site-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,9,12,0.88) 0%, rgba(7,9,12,0.62) 45%, rgba(7,9,12,0.82) 100%),
    url('/includes/img/elyndor_banner.png') center 35% / cover no-repeat;
  transform: none;
  animation: none;
  z-index: 0;
}

.site-hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  animation: siteHeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 0.65rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
}

.site-hero__lead {
  max-width: 36ch;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-dim);
  margin: 0 0 1.1rem;
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-hero__actions .btn-nav {
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(7, 9, 12, 0.35);
  border-color: rgba(212, 168, 75, 0.35);
  color: #e8eaed;
}

.site-hero__actions .btn-nav:hover {
  background: rgba(212, 168, 75, 0.14);
  border-color: rgba(212, 168, 75, 0.6);
  color: var(--gold-soft);
}

.site-hero__actions .btn-nav--gold {
  background: rgba(212, 168, 75, 0.2);
  border-color: rgba(212, 168, 75, 0.55);
  color: var(--gold-soft);
}

.site-hero__actions .btn-nav--gold:hover {
  background: rgba(212, 168, 75, 0.32);
  border-color: var(--gold);
  color: #f0d78a;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--text-dim);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: rgba(212, 168, 75, 0.5);
  color: var(--gold);
  background: rgba(212, 168, 75, 0.1);
}

.home-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.auth-panel { max-width: 500px; margin: 0 auto; }
.auth-panel--wide { max-width: 720px; }
.auth-alert {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 10px;
}
.auth-alert--warn {
  background: rgba(232, 160, 84, 0.12);
  border: 1px solid rgba(232, 160, 84, 0.35);
  color: var(--orange);
}
.auth-alert--ok {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal);
}

@keyframes siteHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes siteHeroDrift {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.07) translate3d(-1%, -0.5%, 0); }
}

@media (max-width: 768px) {
  .site-hero { min-height: 240px; max-height: 280px; }
  .site-hero__content { text-align: center; padding: 1.5rem 1rem; }
  .site-hero__lead { margin-left: auto; margin-right: auto; }
  .site-hero__actions { justify-content: center; }
}

/* Patchnotes — same layout, less heavy */
.patchnote-card {
  margin-bottom: 1.15rem !important;
  padding: 1.25rem 1.35rem !important;
}

.patchnote-card:hover {
  transform: none;
}

.patchnote-card .feature-card-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
}

.patchnote-card__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.patchnote-card__media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 75, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.patchnote-card__img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 35%;
}

.patchnote-card__body {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.rich-text {
  color: var(--text);
  line-height: 1.7;
}

.rich-text__p {
  margin: 0 0 0.85rem;
  white-space: normal;
}

.rich-text__p:last-child {
  margin-bottom: 0;
}

.rich-text__code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.92em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(184, 137, 47, 0.14);
  border: 1px solid rgba(184, 137, 47, 0.35);
  color: var(--gold, #d4a84b);
}

@media (max-width: 700px) {
  .patchnote-card__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .patchnote-card__img {
    height: 160px;
  }
}

/* ===== Light Mode completeness (wins over legacy neon) ===== */
[data-theme="light"] body {
  background: var(--darker);
  background-image:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(184, 137, 47, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #faf8f4 0%, #f3efe6 100%);
}

[data-theme="light"] body::before {
  opacity: 0.18;
  background:
    radial-gradient(1px 1px at 18% 28%, rgba(184, 137, 47, 0.35), transparent),
    radial-gradient(1px 1px at 72% 64%, rgba(15, 118, 110, 0.2), transparent);
}

[data-theme="light"] .news-item {
  background: #f7f3ea;
  border: 1px solid var(--border);
  border-left: 3px solid rgba(184, 137, 47, 0.55);
  box-shadow: none;
}

[data-theme="light"] .news-item:hover {
  background: #fffdf8;
  border-color: rgba(184, 137, 47, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .news-title {
  color: var(--text) !important;
}

[data-theme="light"] .news-title:hover {
  color: var(--gold) !important;
}

[data-theme="light"] .badge-secondary {
  background: rgba(184, 137, 47, 0.1);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

[data-theme="light"] .badge-success,
[data-theme="light"] .badge-success[data-live="true"] {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.3);
  box-shadow: none;
  animation: none;
}

[data-theme="light"] .badge-success[data-live="true"]::before {
  display: none;
}

[data-theme="light"] .nav-pills .nav-link {
  background: #f3efe6;
  color: var(--text-dim);
  border: 1px solid var(--border);
  box-shadow: none;
}

[data-theme="light"] .nav-pills .nav-link:hover {
  background: rgba(184, 137, 47, 0.1);
  border-color: rgba(184, 137, 47, 0.35);
  color: var(--gold);
  box-shadow: none;
}

[data-theme="light"] .nav-pills .nav-link.active {
  background: rgba(184, 137, 47, 0.16);
  color: var(--gold) !important;
  border-color: rgba(184, 137, 47, 0.45);
  box-shadow: none;
}

[data-theme="light"] .site-hero__brand {
  color: #e8c878 !important;
  -webkit-text-fill-color: #e8c878 !important;
  background: none !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .site-hero__lead {
  color: #e8eaed !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .site-hero .btn-nav,
[data-theme="light"] .site-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #f5f5f5 !important;
  background: rgba(0, 0, 0, 0.32);
}

[data-theme="light"] .site-hero .btn-nav:hover,
[data-theme="light"] .site-hero .btn-ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft) !important;
  background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .site-hero .btn-nav--gold {
  background: rgba(212, 168, 75, 0.28);
  border-color: rgba(232, 200, 120, 0.65);
  color: #f0d78a !important;
}

[data-theme="light"] footer {
  background: rgba(255, 252, 247, 0.92);
  border-top: 1px solid var(--border);
}

[data-theme="light"] footer a {
  color: var(--text-dim);
}

[data-theme="light"] footer a:hover {
  color: var(--gold);
}

[data-theme="light"] .page-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .page-header h1 {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  background: none;
}

[data-theme="light"] .admin-nav {
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .admin-nav a {
  color: var(--text-dim);
}

[data-theme="light"] .admin-nav a:hover,
[data-theme="light"] .admin-nav a.active {
  color: var(--gold);
  background: rgba(184, 137, 47, 0.12);
}
