/* ═══════════════════════════════════════════════════════════════
   FoCo Wargaming — Main Stylesheet
   Logo-matched palette:
     Bronze/Brass  #B8943F  — banners, accents
     Deep Purple   #7B45A8  — d20, highlights
     Electric Cyan #00C8FF  — glow rings, links
     Dark BG       #07050F  — base
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --bg-darkest:   #07050F;
  --bg-dark:      #0D0A1A;
  --bg-card:      #141028;
  --bg-card-hover:#1A1535;
  --bg-elevated:  #1C1535;
  --border:       #2A2048;
  --border-light: #3D3068;

  /* Bronze — primary accent (banner, CTAs) */
  --accent:       #B8943F;
  --accent-light: #D4AF5A;
  --accent-dark:  #8B7030;
  --accent-glow:  rgba(184,148,63,0.18);

  /* Purple — secondary accent (d20, highlights) */
  --purple:       #7B45A8;
  --purple-light: #9B65C8;
  --purple-dark:  #5B2880;
  --purple-glow:  rgba(123,69,168,0.20);

  /* Cyan — tertiary (glow rings, links, info) */
  --cyan:         #00C8FF;
  --cyan-dark:    #0090C8;
  --cyan-glow:    rgba(0,200,255,0.12);

  --blood:        #8b0000;
  --crimson:      #c0392b;

  --text-primary: #EDE8F5;
  --text-muted:   #9090B8;
  --text-dim:     #585878;

  --discord:      #5865f2;
  --discord-dark: #4752c4;

  --success:      #27ae60;
  --warning:      #D4AF5A;
  --danger:       #c0392b;
  --info:         #00C8FF;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 32px rgba(0,0,0,0.7);
  --shadow-bronze: 0 0 24px rgba(184,148,63,0.20);
  --shadow-purple: 0 0 24px rgba(123,69,168,0.25);
  --shadow-cyan:   0 0 24px rgba(0,200,255,0.15);
  --transition:   0.22s ease;

  --nav-height:   72px;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Rajdhani', sans-serif;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle purple-to-black radial bg texture */
  background-image: radial-gradient(ellipse at 50% 0%, rgba(123,69,168,0.08) 0%, transparent 65%);
}

main { flex: 1; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); letter-spacing: 0.04em; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: rgba(7,5,15,0.97);
  border-bottom: 2px solid var(--accent-dark);
  /* Subtle cyan glow under nav edge */
  box-shadow: 0 2px 20px rgba(0,200,255,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(184,148,63,0.4));
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { color: var(--accent-light); }
.brand-tagline { font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.nav-brand:hover .nav-logo { filter: drop-shadow(0 0 10px rgba(184,148,63,0.7)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-link:hover { color: var(--accent-light); background: var(--accent-glow); border-color: var(--accent-dark); }

.nav-discord { color: var(--discord) !important; }
.nav-discord:hover { background: rgba(88,101,242,0.12) !important; border-color: var(--discord) !important; color: #818cf8 !important; }

.btn-nav-login {
  border: 1px solid var(--border-light);
  color: var(--text-primary) !important;
}
.btn-nav-register {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--bg-darkest) !important;
  font-weight: 700;
  border: 1px solid var(--accent);
}
.btn-nav-register:hover { background: linear-gradient(135deg, var(--accent), var(--accent-light)); box-shadow: var(--shadow-bronze); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; user-select: none; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-purple);
  list-style: none;
  padding: 0.5rem;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  color: var(--text-primary);
  border-radius: var(--radius);
  font-size: 0.93rem;
  transition: all var(--transition);
  text-decoration: none;
}
.dropdown-menu li a i { color: var(--accent); width: 1rem; text-align: center; }
.dropdown-menu li a:hover { background: var(--bg-elevated); color: var(--accent-light); }
.dropdown-menu .divider { border-top: 1px solid var(--border); margin: 0.4rem 0.5rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* Role badges */
.role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.3rem;
}
.role-developer   { background: linear-gradient(135deg, var(--purple-dark), var(--purple)); color: #fff; }
.role-coordinator { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: var(--bg-darkest); }
.role-gamer       { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

/* ── FLASH MESSAGES ─────────────────────────────────────────── */
.flash-container { position: fixed; top: calc(var(--nav-height) + 10px); right: 1rem; z-index: 900; display: flex; flex-direction: column; gap: 0.5rem; max-width: 400px; }
.flash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flash-success { background: rgba(39,174,96,0.12); border-color: var(--success); color: #a8e6c0; }
.flash-danger  { background: rgba(192,57,43,0.12); border-color: var(--danger); color: #f8a5a0; }
.flash-warning { background: rgba(184,148,63,0.12); border-color: var(--accent); color: #f5d78e; }
.flash-info    { background: rgba(0,200,255,0.08); border-color: var(--cyan); color: #a0eeff; }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: 0.7; flex-shrink: 0; }
.flash-close:hover { opacity: 1; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: var(--bg-darkest);
  border-color: var(--accent-dark);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); box-shadow: var(--shadow-bronze); color: var(--bg-darkest); }

.btn-purple {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #fff;
  border-color: var(--purple-dark);
}
.btn-purple:hover { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%); box-shadow: var(--shadow-purple); color: #fff; }

.btn-outline  { background: transparent; color: var(--accent); border-color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-light); }

.btn-cyan { background: transparent; color: var(--cyan); border-color: var(--cyan-dark); }
.btn-cyan:hover { background: var(--cyan-glow); border-color: var(--cyan); box-shadow: var(--shadow-cyan); }

.btn-danger  { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.btn-danger:hover { background: #e74c3c; box-shadow: 0 0 12px rgba(192,57,43,0.4); }
.btn-discord { background: var(--discord); color: #fff; border-color: var(--discord); }
.btn-discord:hover { background: var(--discord-dark); box-shadow: 0 0 16px rgba(88,101,242,0.4); }
.btn-lg  { padding: 0.7rem 1.6rem; font-size: 1.05rem; }
.btn-xl  { padding: 1rem 2rem; font-size: 1.15rem; border-radius: var(--radius-lg); }
.btn-sm  { padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn-xs  { padding: 0.2rem 0.6rem; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── HERO SLIDER ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  background: var(--bg-darkest);
}

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-placeholder {
  background: linear-gradient(135deg, #07050F 0%, #141028 40%, #1C1535 60%, #07050F 100%);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,5,15,0.25) 0%,
    rgba(7,5,15,0.55) 50%,
    rgba(7,5,15,0.92) 100%
  );
}

/* Cyan glow framing on hero */
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,200,255,0.06), inset 0 -2px 0 var(--accent-dark);
  z-index: 5;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.hero-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  /* drop-shadow only — no background, no border-radius, preserves PNG transparency */
  filter: drop-shadow(0 0 24px rgba(184,148,63,0.5)) drop-shadow(0 0 48px rgba(0,200,255,0.2));
  animation: heroPulse 4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(184,148,63,0.5)) drop-shadow(0 0 40px rgba(0,200,255,0.2)); }
  50%       { filter: drop-shadow(0 0 32px rgba(184,148,63,0.7)) drop-shadow(0 0 60px rgba(0,200,255,0.3)); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  text-shadow: 0 4px 32px rgba(0,0,0,0.9), 0 0 40px rgba(123,69,168,0.3);
  margin-bottom: 0.5rem;
}
.hero-title .accent { color: var(--accent-light); }

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--cyan);
  font-style: italic;
  text-shadow: 0 0 16px var(--cyan-glow);
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Slider nav */
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20;
  background: rgba(7,5,15,0.75);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.slide-nav:hover { background: var(--accent); color: var(--bg-darkest); border-color: var(--accent); box-shadow: var(--shadow-bronze); }
.slide-prev { left: 1.5rem; }
.slide-next { right: 1.5rem; }

.slide-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 20; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 1px solid transparent; cursor: pointer; transition: all var(--transition); }
.dot.active { background: var(--accent); border-color: var(--accent-light); transform: scale(1.3); box-shadow: 0 0 8px rgba(184,148,63,0.6); }

/* ── ABOUT STRIP ────────────────────────────────────────────── */
.about-strip {
  padding: 4.5rem 0;
  background: var(--bg-dark);
  border-top: 2px solid var(--accent-dark);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple-dark), var(--cyan-dark));
  opacity: 0;
  transition: opacity var(--transition);
}
.about-card:hover { border-color: var(--purple); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-purple); }
.about-card:hover::before { opacity: 1; }
.about-card i { font-size: 2.4rem; color: var(--purple-light); margin-bottom: 1rem; }
.about-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--accent-light); }
.about-card p  { color: var(--text-muted); font-size: 0.95rem; }

/* ── SECTION STYLES ─────────────────────────────────────────── */
.section-dark { padding: 4.5rem 0; background: var(--bg-darkest); }
.section-title {
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 2.5rem; }

.store-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.store-card-preview {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.store-card-preview i { font-size: 2rem; color: var(--purple-light); }
.store-card-preview:hover { border-color: var(--cyan); background: var(--bg-card-hover); color: var(--cyan); box-shadow: var(--shadow-cyan); }

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--bg-darkest) 0%, #0F0C20 40%, var(--bg-darkest) 100%);
  border-bottom: 2px solid var(--accent-dark);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123,69,168,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-sm { padding: 3rem 0 2rem; }
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.page-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; position: relative; z-index: 1; }

/* Decorative divider line */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), var(--cyan-dark), var(--accent-dark), transparent);
  opacity: 0.5;
  margin: 0;
}

/* ── AUTH FORMS ─────────────────────────────────────────────── */
.auth-section { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow), var(--shadow-purple);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { width: 90px; height: 90px; object-fit: contain; margin: 0 auto 1rem; filter: drop-shadow(0 0 12px rgba(184,148,63,0.4)); }
.auth-header h1 { font-size: 1.6rem; color: var(--accent-light); margin-bottom: 0.3rem; }
.auth-header p { color: var(--text-muted); }
.auth-switch { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-glow); }
.form-control::placeholder { color: var(--text-dim); }
.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 fill='%239090B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.form-error { color: #f8a5a0; font-size: 0.85rem; display: block; margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.form-check input { width: auto; accent-color: var(--accent); }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }

/* ── FORM CARD ──────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: var(--shadow);
}
textarea.form-control { resize: vertical; }

/* ── CALENDAR ───────────────────────────────────────────────── */
.calendar-section { padding: 2.5rem 0; }
.fullcalendar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--purple-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-purple);
}
.fc { color: var(--text-primary) !important; }
.fc-theme-standard .fc-scrollgrid { border-color: var(--border) !important; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border) !important; }
.fc .fc-daygrid-day { background: var(--bg-card) !important; }
.fc .fc-daygrid-day:hover { background: var(--bg-card-hover) !important; }
.fc .fc-col-header-cell-cushion { color: var(--accent-light) !important; font-family: var(--font-heading) !important; }
.fc .fc-daygrid-day-number { color: var(--text-muted) !important; }
.fc .fc-button { background: var(--bg-elevated) !important; border-color: var(--border-light) !important; color: var(--text-primary) !important; font-family: var(--font-body) !important; }
.fc .fc-button:hover { background: var(--bg-card-hover) !important; border-color: var(--purple) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--purple) !important; border-color: var(--purple) !important; color: #fff !important; }
.fc .fc-toolbar-title { font-family: var(--font-heading) !important; color: var(--accent-light) !important; }
.fc .fc-event { cursor: pointer; border: none !important; font-weight: 600; font-size: 0.82rem; }
.fc .fc-day-today { background: rgba(123,69,168,0.07) !important; }
.fc .fc-list-event:hover td { background: var(--bg-card-hover) !important; }
.fc .fc-list-day-cushion { background: var(--bg-elevated) !important; }
.fc .fc-list-event-title a { color: var(--text-primary) !important; }

/* Calendar controls */
.cal-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 0.5rem 0; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--text-muted); }
.legend-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-toggles { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.toggle-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Toggle switches */
.toggle-switch { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; }
.toggle-switch input { display: none; }
.toggle-slider {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--purple); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(16px); }
.toggle-text { font-size: 0.88rem; color: var(--text-muted); }

/* ── STORES PAGE ────────────────────────────────────────────── */
.stores-section { padding: 3rem 0; display: flex; flex-direction: column; gap: 2rem; }
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.store-card:hover { border-color: var(--purple); box-shadow: var(--shadow-purple); }
.store-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(90deg, var(--bg-elevated), var(--bg-card));
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  gap: 1rem;
  flex-wrap: wrap;
}
.store-name { font-size: 1.4rem; color: var(--accent-light); margin: 0; }
.store-body { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.store-info-col { padding: 1.75rem; }
.store-info-row { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); margin-bottom: 0.65rem; font-size: 0.95rem; }
.store-info-row i { color: var(--purple-light); margin-top: 0.25rem; flex-shrink: 0; }
.store-info-row a { color: var(--text-muted); }
.store-info-row a:hover { color: var(--cyan); }
.store-desc { color: var(--text-muted); font-size: 0.95rem; margin: 1rem 0; line-height: 1.6; border-left: 2px solid var(--border); padding-left: 1rem; }
.store-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { font-size: 0.82rem; padding: 0.3rem 0.75rem; border-radius: 99px; display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.tag-tables { background: rgba(184,148,63,0.12); color: var(--accent-light); border: 1px solid var(--accent-dark); }
.tag-fee    { background: rgba(123,69,168,0.10); color: var(--purple-light); border: 1px solid var(--purple-dark); }
.store-hours-col {
  border-left: 1px solid var(--border);
  padding: 1.75rem;
  min-width: 260px;
  background: var(--bg-elevated);
}
.hours-title { font-size: 1rem; color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours-table td { padding: 0.38rem 0; }
.hours-table .day { color: var(--text-dim); font-weight: 600; width: 100px; }
.hours-table .time { color: var(--text-primary); }

/* ── EVENT DETAIL ───────────────────────────────────────────── */
.event-detail-section { padding: 3rem 0; max-width: 860px; margin: 0 auto; }
.event-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.event-detail-header { padding: 2rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); border-top: 3px solid var(--purple); }
.event-detail-header h1 { font-size: 2rem; color: var(--text-primary); margin: 0.5rem 0; }
.event-game-system { color: var(--cyan); font-size: 1rem; }

.event-type-badge {
  font-size: 0.76rem; font-weight: 700; padding: 0.25rem 0.8rem;
  border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; display: inline-block; margin-bottom: 0.5rem;
}
.event-type-league-campaign { background: rgba(123,69,168,0.2); color: var(--purple-light); border: 1px solid var(--purple); }
.event-type-tournament       { background: rgba(184,148,63,0.2); color: var(--accent-light); border: 1px solid var(--accent-dark); }
.event-type-challenge        { background: rgba(0,200,255,0.1); color: var(--cyan); border: 1px solid var(--cyan-dark); }
.event-type-gift-exchange    { background: rgba(39,174,96,0.15); color: #a8e6c0; border: 1px solid #27ae60; }

.event-detail-body { padding: 2rem; }
.event-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.meta-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.meta-item strong { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.25rem; }
.meta-item span { color: var(--text-primary); font-weight: 600; }
.deadline-passed { border-color: var(--crimson) !important; }
.event-details-text { margin-bottom: 2rem; }
.event-details-text h3 { color: var(--accent-light); margin-bottom: 0.75rem; font-size: 1.1rem; }
.event-details-text p { color: var(--text-muted); line-height: 1.7; }
.signup-section { margin: 2rem 0; padding: 1.5rem; background: var(--bg-elevated); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.already-signed { color: #a8e6c0; font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.deadline-note { color: var(--accent); }
.signups-list { margin-top: 2rem; }
.signups-list h3 { color: var(--accent-light); margin-bottom: 1rem; font-size: 1.1rem; }
.player-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.player-chip { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 99px; padding: 0.3rem 0.85rem; font-size: 0.88rem; color: var(--text-muted); }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── EVENT TYPE CARDS ───────────────────────────────────────── */
.event-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.event-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-primary);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.event-type-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.event-type-card:hover { border-color: var(--purple); background: var(--bg-card-hover); color: var(--accent-light); transform: translateY(-5px); box-shadow: var(--shadow-purple); }
.event-type-card:hover::before { transform: scaleX(1); }
.event-type-card i { font-size: 2.5rem; color: var(--purple-light); margin-bottom: 1rem; display: block; transition: color var(--transition); }
.event-type-card:hover i { color: var(--cyan); }
.event-type-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.event-type-card p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── MEMBER DASHBOARD ───────────────────────────────────────── */
.dashboard-section { padding: 3rem 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-top: 2px solid var(--purple-dark);
}
.dash-card-wide { grid-column: 1 / -1; }
.dash-title { font-size: 1.05rem; color: var(--accent-light); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.dash-title i { color: var(--purple-light); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.info-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-muted); font-weight: 600; width: 35%; }
.info-table td:last-child { color: var(--text-primary); }

.events-list { display: flex; flex-direction: column; gap: 0.5rem; }
.event-list-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all var(--transition);
  text-decoration: none;
}
.event-list-item:hover { border-color: var(--purple); background: var(--bg-card-hover); box-shadow: 0 0 12px rgba(123,69,168,0.15); }
.event-type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.event-type-dot.event-type-league-campaign { background: var(--purple); }
.event-type-dot.event-type-tournament       { background: var(--accent); }
.event-type-dot.event-type-challenge        { background: var(--cyan); }
.event-type-dot.event-type-gift-exchange    { background: #27ae60; }
.event-list-info { flex: 1; min-width: 0; }
.event-list-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-list-info small { color: var(--text-muted); font-size: 0.82rem; }
.event-list-dates { font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; }
.empty-state { color: var(--text-muted); text-align: center; padding: 2rem; font-size: 0.95rem; line-height: 2; }

/* ── ADMIN PANEL ────────────────────────────────────────────── */
.admin-section { padding: 2rem 0; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 120px;
  border-top: 2px solid var(--purple-dark);
}
.stat-card strong { display: block; font-size: 2rem; color: var(--accent-light); font-family: var(--font-heading); }
.stat-card span { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-danger { border-top-color: var(--crimson); }
.stat-danger strong { color: var(--crimson); }

.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th {
  background: var(--bg-elevated);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--accent-dark);
}
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.admin-table tbody tr:hover td { background: var(--bg-card-hover); }
.admin-table .row-banned td { opacity: 0.5; }
.inline-form { display: flex; align-items: center; gap: 0.4rem; }
.form-control-sm { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.badge { font-size: 0.73rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 99px; text-transform: uppercase; }
.badge-success { background: rgba(39,174,96,0.15); color: #a8e6c0; border: 1px solid #27ae60; }
.badge-danger  { background: rgba(192,57,43,0.15); color: #f8a5a0; border: 1px solid #c0392b; }
.muted-text { color: var(--text-dim); }

/* ── DISCORD PAGE ───────────────────────────────────────────── */
.discord-mega-icon { font-size: 5rem; color: var(--discord); margin-bottom: 1.5rem; text-shadow: 0 0 32px rgba(88,101,242,0.5); }
.discord-note { color: var(--text-dim); font-size: 0.9rem; margin-top: 1rem; }
.discord-features { padding: 3rem 0; }

/* ── STORE ADD BUTTONS ──────────────────────────────────────── */
.store-add-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-darkest);
  border-top: 2px solid var(--accent-dark);
  box-shadow: 0 -2px 24px rgba(0,0,0,0.5);
  padding: 2.5rem 0;
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), transparent);
  opacity: 0.3;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.footer-logo { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 0.75rem; filter: drop-shadow(0 0 8px rgba(184,148,63,0.3)); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 1.2rem; color: var(--accent-light); margin-bottom: 0.5rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: var(--text-dim); font-size: 0.78rem; }

/* ── TEXT UTILS ─────────────────────────────────────────────── */
.text-center { text-align: center; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .store-body { grid-template-columns: 1fr; }
  .store-hours-col { border-left: none; border-top: 1px solid var(--border); min-width: unset; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7,5,15,0.98);
    border-bottom: 2px solid var(--accent-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 0.75rem 1rem; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-elevated); border-radius: 0; padding: 0; margin-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .event-meta-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-card-wide { grid-column: auto; }
  .hero-logo { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .event-meta-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .btn-full { width: 100%; }
  .hero-logo { width: 140px; height: 140px; }
}
