@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Exo+2:wght@300;400;500;600&display=swap');

/* ── RESET & VARIABLES ────────────────────────────────────────────────────── */

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

:root {
  --bg:          #0d1117;
  --bg2:         #111827;
  --surface:     #151e2d;
  --card:        #1a2437;
  --card2:       #1e2b3c;
  --accent:      #00b3ff;
  --accent-dim:  rgba(0, 179, 255, 0.12);
  --accent-brd:  rgba(0, 179, 255, 0.25);
  --gold:        #f0d060;
  --text:        #d0dae8;
  --text-muted:  #5a6a80;
  --border:      rgba(255, 255, 255, 0.07);
  --glow-sm:     0 0 14px rgba(0, 179, 255, 0.22);
  --glow-md:     0 0 32px rgba(0, 179, 255, 0.35);
  --navbar-h:    80px;
  --radius:      10px;
  --radius-lg:   16px;
  --max-w:       1240px;
  --px:          clamp(16px, 4vw, 48px);
}

html {
  scroll-behavior: smooth;
}

a { color: var(--accent); }
a:visited { color: var(--accent); }
a:active  { color: var(--accent); }

body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg2); }

/* ── NAVBAR (ex sidebar) ─────────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--accent-brd);
  box-shadow: 0 2px 24px rgba(0, 179, 255, 0.12), 0 1px 0 rgba(0, 179, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 var(--px);
  gap: 24px;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 48px;
  width: 120px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.nav-brand span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.nav-back svg { color: #fff; transition: transform 0.2s, color 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); color: var(--accent); }
.nav-back:hover span { color: var(--accent); }
.nav-back span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: color 0.2s;
}

.sidebar-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.sidebar-menu li {
  padding: 8px 13px;
  cursor: pointer;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.02em;
  color: #b0bec5;
  transition: color 0.2s, background 0.2s;
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sidebar-menu li:hover .nav-icon,
.sidebar-menu li.nav-admin .nav-icon { opacity: 1; }

.sidebar-menu li:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.sidebar-menu li.nav-admin {
  background: var(--accent-dim);
  border: 1px solid var(--accent-brd);
  color: var(--accent);
  font-weight: 700;
  margin-left: 8px;
}

.sidebar-menu li.nav-admin:hover {
  background: rgba(0, 179, 255, 0.22);
  box-shadow: var(--glow-sm);
}

/* ── Language Switcher ───────────────────────────────────────────────────── */

.nav-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-lang-current {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 150px;
  z-index: 1100;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.lang-option:hover {
  background: var(--accent-dim);
  color: #fff;
}

.lang-option.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-flag { font-size: 1.2rem; line-height: 1; }
.lang-name { white-space: nowrap; }

/* Hamburger — visible only on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.sidebar.open .hamburger span:nth-child(2) { opacity: 0; }
.sidebar.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* ── DISCORD FLIP COUNTER ────────────────────────────────────────────────── */

.discord-counter {
  position: fixed;
  top: calc(var(--navbar-h) + 16px);
  right: 24px;
  z-index: 998;
  display: flex;
  gap: 32px;
}

.flip-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flip-group .flip-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.flip-digits {
  display: flex;
  gap: 2px;
}

.flip-digit {
  width: 22px;
  height: 32px;
  background: linear-gradient(to bottom, #1a1a2e 0%, #1a1a2e 49.5%, #12121c 50.5%, #12121c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.flip-digit::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.5);
}

.flip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
  margin: 0 2px;
}

.flip-dot-green { background: #3ba55d; box-shadow: 0 0 6px rgba(59,165,93,0.6); }
.flip-dot-blue  { background: #5865F2; box-shadow: 0 0 6px rgba(88,101,242,0.5); }

@media (max-width: 900px) {
  .discord-counter { right: 12px; gap: 8px; }
  .flip-digit { width: 18px; height: 26px; font-size: 0.9rem; }
  .flip-group .flip-label { font-size: 0.5rem; }
}

@media (max-width: 600px) {
  .discord-counter {
    top: auto;
    bottom: 12px;
    right: 12px;
    gap: 16px;
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-brd);
    border-radius: var(--radius);
    padding: 6px 10px;
  }
  .flip-digit { width: 14px; height: 20px; font-size: 0.72rem; }
  .flip-group .flip-label { font-size: 0.42rem; }
  .flip-dot { width: 6px; height: 6px; }
}

/* ── FLOATING LANG SWITCHER (mobile) ──────────────────────────────────── */

.floating-lang-switcher {
  display: none;
  position: fixed;
  bottom: 12px;
  z-index: 999;
}

.floating-lang-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent-brd);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: border-color 0.2s, transform 0.2s;
}
.floating-lang-btn:hover { border-color: var(--accent); transform: scale(1.05); }

.floating-lang-flag { font-size: 1.2rem; line-height: 1; }

.floating-lang-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
  min-width: 150px;
  overflow: hidden;
}
.floating-lang-dropdown.open { display: block; }

.floating-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.floating-lang-option:hover { background: var(--accent-dim); color: #fff; }
.floating-lang-option.active { color: var(--accent); font-weight: 700; }

@media (max-width: 600px) {
  .floating-lang-switcher {
    display: block;
    right: 12px;
    bottom: 12px;
  }
  #lang-switcher {
    display: none !important;
  }
}

/* ── TWITCH EMBEDS ───────────────────────────────────────────────────────── */

.twitch-embeds {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.twitch-embed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.twitch-embed-card:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
}

.twitch-embed-player {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0e10;
  cursor: pointer;
}
.twitch-embed-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.twitch-embed-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.twitch-embed-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.twitch-embed-info .twitch-embed-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}

.twitch-embed-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.twitch-embed-info .twitch-link-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.twitch-embed-info .twitch-link-icon:hover { opacity: 1; }

/* Featured streamer — full width, horizontal layout */
.twitch-embeds-featured {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.twitch-featured {
  border: 1px solid var(--accent-brd);
  box-shadow: var(--glow-sm);
}

.twitch-featured-layout {
  display: flex;
  min-height: 0;
}
.twitch-featured-layout .twitch-embed-player {
  flex: 1.2;
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.twitch-featured-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  min-width: 0;
}

.twitch-featured-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.twitch-featured-header > img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-brd);
  flex-shrink: 0;
}
.twitch-featured-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.twitch-featured-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.twitch-featured-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(145, 70, 255, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.twitch-featured-desc {
  flex: 1;
  overflow-y: auto;
}
.twitch-featured-desc p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0 0 6px;
}

.twitch-featured-socials {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.twitch-featured-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.twitch-featured-socials a:hover {
  background: var(--accent-dim);
  border-color: var(--accent-brd);
  transform: translateY(-2px);
}
.twitch-featured-socials a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .twitch-featured-layout {
    flex-direction: column;
  }
  .twitch-featured-layout .twitch-embed-player {
    flex: none;
  }
}

@media (max-width: 600px) {
  .twitch-embeds {
    grid-template-columns: 1fr;
  }
}

/* ── ROLE BADGES (public) ────────────────────────────────────────────────── */

.pub-role-badge { font-size: 0.9rem; }
.players-table td { vertical-align: middle; }

/* ── */

/* ── EVENT FEATURED ─────────────────────────────────────────────────────── */

.ev-featured-wrapper {
  max-width: var(--max-w);
  margin: 12px auto 32px;
  width: 100%;
  padding: 0 var(--px);
  box-sizing: border-box;
}

.ev-featured {
  border: 1px solid var(--accent-brd);
  box-shadow: var(--glow-sm);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}

.ev-featured-layout {
  display: flex;
  min-height: 0;
}

.ev-featured-image {
  flex: 1.2;
  position: relative;
  min-width: 0;
}
.ev-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
  max-height: 420px;
}

.ev-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
}
.ev-featured-badge.live { background: #00c853; }
.ev-featured-badge.soon { background: #e0a020; }
.ev-featured-badge.featured { background: var(--accent); }

.ev-featured-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px;
  min-width: 0;
}

.ev-featured-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(145, 70, 255, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.ev-featured-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.ev-featured-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ev-featured-desc {
  flex: 1;
  overflow-y: auto;
}
.ev-featured-desc p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0 0 6px;
}

.ev-featured-partners {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.ev-featured-partners-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ev-featured-partners img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.ev-featured-partners img:hover { opacity: 1; }

.ev-featured-link,
.ev-featured-link:visited,
.ev-featured-link:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  width: fit-content;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 12px rgba(0, 179, 255, 0.35);
}
.ev-featured-link:hover {
  background: color-mix(in srgb, var(--accent) 80%, #000);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 179, 255, 0.55);
}

@media (max-width: 768px) {
  .ev-featured-layout {
    flex-direction: column;
  }
  .ev-featured-image img {
    max-height: 220px;
  }
}

/* ── CONTENT ─────────────────────────────────────────────────────────────── */

.content {
  padding-top: var(--navbar-h);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Inner wrapper for all sections */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--px);
}

/* ── HERO HEADER ─────────────────────────────────────────────────────────── */

.hero-header {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
  filter: blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,0.2) 0%,
    rgba(13,17,23,0.15) 40%,
    rgba(13,17,23,0.95) 100%
  );
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 60px var(--px) 24px;
  max-width: var(--max-w);
  width: 100%;
}

.hero-logo-img {
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(0,179,255,0.4);
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-claim {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 16px 52px;
  background: var(--accent);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--glow-md);
  margin-top: 8px;
}

.btn-cta:visited { color: #fff; }

.btn-cta:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

.btn-cta:hover:visited { color: var(--accent); }

.hero-cta {
  position: relative;
  z-index: 2;
  margin: 0 auto 40px;
}

.btn-join {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: var(--glow-sm);
}

.btn-join:hover {
  opacity: 0.88;
  box-shadow: var(--glow-md);
}

/* ── SECTION LAYOUT ──────────────────────────────────────────────────────── */

.title-content {
  padding: 56px var(--px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}

.section-detail-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.section-detail-link:hover { opacity: 0.7; }

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 48px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
  box-shadow: var(--glow-sm);
}

.section-sub-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  padding: 32px var(--px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: block;
}

.section-sub-title-2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.textual-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 16px var(--px) 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 780px;
  font-weight: 400;
}

.section-description strong { color: var(--text); font-weight: 600; }
.section-description a { color: var(--accent); text-decoration: none; }

/* ── COMMUNITY WELCOME ───────────────────────────────────────────────────── */

#community-container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--px) 12px;
}

.section-info-content {
  padding: 40px 0 8px;
}

.info-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(0,179,255,0.5), 0 0 60px rgba(0,179,255,0.25);
  position: relative;
  display: inline-block;
}

.info-content h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
  box-shadow: var(--glow-sm);
}

.info-content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.section-description-2 {
  padding: 28px var(--px) 4px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── FEATURES LIST ───────────────────────────────────────────────────────── */

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 8px var(--px) 24px;
}

.features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.features ul li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.features ul li:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
}

.features ul li .emoji {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.features ul li .emoji img {
  width: 10px;
  height: 10px;
  filter: hue-rotate(195deg) saturate(5) brightness(1.3);
  vertical-align: middle;
}

.features ul li .point {
  display: inline;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.features ul li .description {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── HORIZONTAL SCROLL WRAPPER ───────────────────────────────────────────── */

.wrapper {
  max-width: var(--max-w);
  margin: 12px auto 32px;
  width: 100%;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}


/* ── GAME BADGES ─────────────────────────────────────────────────────────── */

#games-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex: 1;
  padding: 8px 0 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
}
#games-container::-webkit-scrollbar { height: 6px; }
#games-container::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
#games-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.game-card {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.game-card .game-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.game-overlay .game-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.game-overlay .game-stores {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.store-logo {
  height: 18px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.store-logo:hover { opacity: 1; }

/* ── EVENT BADGES ────────────────────────────────────────────────────────── */

#events-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
  padding: 8px 0;
  scroll-behavior: smooth;
}
#events-container::-webkit-scrollbar { height: 6px; }
#events-container::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
#events-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.simple-box {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.simple-box:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.simple-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.simple-box a { display: block; width: 100%; height: 100%; }

/* ── STAFF CARDS ─────────────────────────────────────────────────────────── */

#founders-container,
#moderators-container,
#staffers-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 12px var(--px) 24px;
  scroll-behavior: smooth;
}

/* Hide scrollbar but allow scrolling */
#founders-container::-webkit-scrollbar,
#moderators-container::-webkit-scrollbar,
#staffers-container::-webkit-scrollbar { height: 0; display: none; }

.staff-badge {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: default;
  transition: transform 0.2s;
}

.staff-badge:hover { transform: translateY(-3px); }

.staff-badge img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-brd);
  box-shadow: var(--glow-sm);
  transition: box-shadow 0.2s;
}

.staff-badge:hover img { box-shadow: var(--glow-md); }

.staff-badge .badge-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.staff-badge.badge-square img {
  border-radius: var(--radius);
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(0,0,0,0.2);
  padding: 4px;
}

.staff-badge .badge-role {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.hero.staff-member {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: flex-start;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.hero.staff-member:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

.hero.staff-member::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* Override dynamic background — keep white text on dark overlay */
.hero.staff-member.light-bg {
  color: #fff !important;
}

.staff-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
}

.staff-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.staff-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-brd);
  box-shadow: var(--glow-sm);
  margin-bottom: 10px;
}

.staff-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.hero.staff-member.light-bg .staff-name { color: #fff; }

.staff-signature {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 10px;
  border-radius: 20px;
}

.staff-info-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.staff-timings {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.4;
}

.hero.staff-member.light-bg .staff-timings { color: rgba(255,255,255,0.7); }

.toggle-staff-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-brd);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-staff-btn:hover { background: rgba(0,179,255,0.22); }

.staff-info {
  padding: 14px 18px;
  flex: 1;
}

.staff-description {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.hero.staff-member.light-bg .staff-description { color: rgba(255,255,255,0.75); }

/* ── POPOVER ─────────────────────────────────────────────────────────────── */

.popover {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 20px;
  z-index: 11;
  overflow-y: auto;
}

.popover p {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

.popover-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.popover-close:hover { background: rgba(255,255,255,0.2); }

.collab-description {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.collab-description p { margin-bottom: 4px; }

/* ── STREAMERS ───────────────────────────────────────────────────────────── */

#streamers-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 12px var(--px) 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
}
#streamers-container::-webkit-scrollbar { height: 6px; }
#streamers-container::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
#streamers-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.streamer-card {
  flex: 1 1 320px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

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

.streamer-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.streamer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-brd);
  flex-shrink: 0;
}

.streamer-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.streamer-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.streamer-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent-brd);
  transform: translateY(-2px);
}

.social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ── COMPETITIVE / TEAM CARDS ────────────────────────────────────────────── */

#competitive-container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 12px var(--px) 24px;
}

#teams-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
}
#teams-container::-webkit-scrollbar { height: 6px; }
#teams-container::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
#teams-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.team-card {
  flex: 1 1 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  background: var(--card);
}

.team-card:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.team-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.team-column { display: flex; flex-direction: column; }
.team-left { flex-shrink: 0; }
.team-right { flex: 1; min-width: 0; }

.team-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  padding: 4px;
}

.team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.team-card.light-bg .team-name { color: #fff; }

.team-details {
  font-size: 0.78rem;
  border-collapse: collapse;
  width: 100%;
}

.team-details td {
  padding: 2px 0;
  vertical-align: top;
}

.team-details td:first-child {
  color: var(--text-muted);
  padding-right: 8px;
  white-space: nowrap;
}

.team-card.light-bg .team-details td { color: rgba(255,255,255,0.8); }
.team-card.light-bg .team-details td:first-child { color: rgba(255,255,255,0.6); }

.toggle-btn {
  margin-top: 10px;
  padding: 5px 14px;
  background: rgba(0,179,255,0.1);
  border: 1px solid rgba(0,179,255,0.25);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: background 0.2s;
}

.toggle-btn:hover { background: rgba(0,179,255,0.2); }
.team-card.light-bg .toggle-btn { background: rgba(0,0,0,0.2); color: #fff; border-color: rgba(255,255,255,0.2); }

.players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.players-table th {
  background: rgba(0,0,0,0.2);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  padding: 7px 12px;
  text-align: left;
}

.players-table td {
  padding: 7px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.8rem;
}

/* ── PARTNER CARDS ───────────────────────────────────────────────────────── */

#partners-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 12px var(--px) 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
}
#partners-container::-webkit-scrollbar { height: 6px; }
#partners-container::-webkit-scrollbar-track { background: var(--bg2); border-radius: 3px; }
#partners-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.collab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.collab-card:hover {
  border-color: var(--accent-brd);
  box-shadow: var(--glow-sm);
}

.collab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.collab-card.light-bg { color: #fff; }
.collab-card.light-bg p { color: rgba(255,255,255,0.75); }
.collab-card.light-bg h3 { color: #fff; }

.collab-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.collab-left {
  flex: 1;
  min-width: 200px;
}

.collab-left h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.collab-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.collab-logo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.partner-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.15);
  padding: 6px;
}

.discord-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.discord-icon:hover { opacity: 1; transform: scale(1.1); }

/* ── LOGOS MARQUEE (partner/sponsor carousel) ────────────────────────────── */

#carousel-container {
  max-width: 100%;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.section-content { overflow: hidden; }

.logos-marquee {
  overflow: hidden;
  padding: 28px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-marquee-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}

.logos-marquee-track:hover { animation-play-state: paused; }

.logos-marquee-track img {
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0;
  cursor: default;
}

.logos-marquee-track img.logo-large {
  height: 84px;
}

.logos-marquee-track img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0,179,255,0.6));
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── CONTACTS ────────────────────────────────────────────────────────────── */

#contact-container {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px var(--px) 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.contact {
  flex: 1 1 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
}

.contact-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.contact-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-content a {
  color: var(--accent);
  text-decoration: none;
}

.contact iframe {
  width: 100%;
  border-radius: var(--radius);
  min-height: 280px;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.footer {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px var(--px);
  max-width: 100%;
}

.footer-title h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer .social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer .social-icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.footer .social-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── TOOLS / MISC ────────────────────────────────────────────────────────── */

.twitch-icon img { vertical-align: middle; border-radius: 3px; }
.twitch-logo { width: 24px; height: 24px; object-fit: contain; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hamburger { display: flex; }

  .sidebar-menu {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--accent-brd);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    z-index: 999;
    max-height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
  }

  .sidebar-menu li {
    text-align: center;
    padding: 11px;
    font-size: 0.9rem;
  }

  .sidebar.open .sidebar-menu {
    display: flex;
  }

  .lang-dropdown {
    position: static;
    margin-top: 0;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    border-radius: 8px;
  }

  .nav-lang-switcher {
    flex-direction: column;
    align-items: stretch;
  }

  /* Detail pages: lang switcher at bottom of mobile menu */
  .sidebar-detail.open .sidebar-menu {
    height: calc(100vh - var(--navbar-h));
  }
  .sidebar-detail #lang-switcher {
    margin-top: auto !important;
    border-top: 1px solid var(--border);
    padding-top: 4px;
  }

  .hero-body { flex-direction: column; text-align: center; gap: 24px; }
  .hero-logo-img { width: 200px; height: 200px; }
  .hero-text { align-items: center; }
  .hero.staff-member { max-width: 100%; }
  .streamer-card { max-width: 100%; }

  .textual-content { padding-left: 16px; padding-right: 16px; align-items: center; text-align: center; }
  .section-description { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero-header { min-height: 340px; }
  .features ul { grid-template-columns: 1fr; }
  .wrapper { padding: 0 8px; }
  .contact { padding: 20px 16px; }
  #contact-container { padding: 16px 16px 32px; }
  .footer { padding: 16px; }
  .auth-popover { right: 8px; left: 8px; width: auto; }
}

/* ── AUTH POPOVER ─────────────────────────────────────────────────────────── */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.auth-popover {
  position: fixed;
  top: calc(var(--navbar-h) + 10px);
  right: 24px;
  width: 390px;
  background: rgba(10, 15, 25, 0.98);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-md), 0 24px 64px rgba(0, 0, 0, 0.7);
  z-index: 1100;
  overflow: hidden;
}

.auth-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-popover-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.auth-popover-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.auth-popover-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: -4px;
}

.auth-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Exo 2', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.auth-input:focus {
  border-color: var(--accent-brd);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.auth-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: var(--glow-sm);
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-btn:hover { opacity: 0.85; box-shadow: var(--glow-md); }

.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

#google-signin-wrap,
#twitch-signin-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 350px;
  max-width: 100%;
  padding: 10px 16px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.google-signin-btn:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.twitch-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 350px;
  max-width: 100%;
  padding: 10px 16px;
  background: #9146ff;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  box-sizing: border-box;
}

.twitch-signin-btn:hover { background: #7d2ff7; }
.twitch-signin-btn:visited { color: #fff; }

.auth-error {
  color: #e05555;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 12px;
  background: rgba(224, 85, 85, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(224, 85, 85, 0.25);
}

.auth-success {
  color: #55c07c;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 12px;
  background: rgba(85, 192, 124, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(85, 192, 124, 0.25);
}

/* ── NAV DROPDOWN (Info submenu) ─────────────────────────────────────────── */

.nav-dropdown-group {
  position: relative;
  padding: 0 !important;
  cursor: default;
  background: none !important;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0.02em;
  color: #b0bec5;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-group.open .nav-dropdown-trigger {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-dropdown-trigger:hover .nav-icon,
.nav-dropdown-group.open .nav-dropdown-trigger .nav-icon { opacity: 1; }

.nav-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
  margin-left: 2px;
}

.nav-dropdown-group.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Desktop dropdown panel */
.nav-sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), var(--glow-sm);
  list-style: none;
  min-width: 180px;
  z-index: 1050;
  overflow: hidden;
  padding: 6px;
}

.nav-dropdown-group.open .nav-sub-menu { display: block; }

.nav-sub-menu li {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 9px 14px !important;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b0bec5;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-align: left !important;
}

.nav-sub-menu li:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-sub-menu li:hover .nav-icon { opacity: 1; }

/* Tools dropdown panel */
.nav-tools-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-brd);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), var(--glow-sm);
  z-index: 1050;
  padding: 10px;
  min-width: 260px;
}

.nav-dropdown-group.open .nav-tools-panel { display: block; }

.nav-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.nav-tool-card:hover {
  border-color: var(--accent-brd);
  background: var(--card);
  box-shadow: var(--glow-sm);
}

.nav-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-tool-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.nav-tool-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-tool-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.nav-tool-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.nav-tool-body {
  min-width: 0;
}

/* Mobile: tools panel expands inline */
@media (max-width: 900px) {
  .nav-tools-panel {
    position: static;
    right: auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    box-shadow: none;
    margin-top: 4px;
    padding: 6px;
  }

  .nav-tool-card {
    align-items: center;
  }
}

/* Mobile: sub-menu expands inline */
@media (max-width: 900px) {
  .nav-dropdown-group {
    flex-direction: column;
    align-items: stretch !important;
    padding: 0 !important;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 11px !important;
    font-size: 0.9rem;
    border-radius: 7px;
  }

  .nav-sub-menu {
    position: static;
    transform: none;
    left: auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    box-shadow: none;
    margin-top: 4px;
    padding: 4px;
  }

  .nav-sub-menu li {
    justify-content: flex-start;
    padding: 9px 9px 9px 28px !important;
    font-size: 0.88rem;
  }
}

/* ── NEWS PAGE ───────────────────────────────────────────────────────────── */

.news-layout {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Left: article viewer */
.news-article-pane {
  flex: 1 1 0;
  min-width: 0;
  padding: 40px var(--px);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.news-article-pane .news-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: var(--text-muted);
  gap: 16px;
}

.news-article-pane .news-empty-state svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.news-article-header { margin-bottom: 28px; }

.news-article-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-article-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 10px;
}

.news-article-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.news-article-meta span { display: flex; align-items: center; gap: 5px; }

.news-cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.news-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}

.news-article-body p { margin-bottom: 1em; }
.news-article-body h1, .news-article-body h2, .news-article-body h3 { font-family: 'Rajdhani', sans-serif; color: #fff; margin: 1.4em 0 0.5em; }
.news-article-body h1 { font-size: 1.7rem; } .news-article-body h2 { font-size: 1.4rem; } .news-article-body h3 { font-size: 1.15rem; }
.news-article-body img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }
.news-article-body iframe { width: 100%; border: none; display: block; overflow: hidden; min-height: 750px; }
.news-article-body a { color: var(--accent); text-decoration: none; }
.news-article-body a:hover { text-decoration: underline; }
.news-article-body blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--text-muted); font-style: italic; margin: 16px 0; }
.news-article-body ul, .news-article-body ol { padding-left: 1.5em; margin: 10px 0; }
.news-article-body li { margin-bottom: 4px; }
.news-article-body code { background: rgba(255,255,255,.08); border-radius: 3px; padding: 1px 6px; font-family: monospace; font-size: 0.9em; }
.news-article-body pre { background: rgba(255,255,255,.06); border-radius: 6px; padding: 12px 16px; overflow-x: auto; margin: 14px 0; }
.news-article-body pre code { background: none; padding: 0; }
.news-article-body strong { font-weight: 700; }
.news-article-body small { font-size: 0.82em; color: var(--text-muted); }

.news-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.news-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

/* Video items span the full width inside the mixed gallery */
.news-gallery .news-gallery-video {
  grid-column: 1 / -1;
}

.news-gallery .news-gallery-video .news-video-wrap {
  margin-bottom: 0;
}

.news-gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--glow-sm);
}

.news-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.news-social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.news-social-link:hover {
  border-color: var(--accent-brd);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Right: article list */
.news-list-pane {
  width: 370px;
  flex-shrink: 0;
  padding: 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.news-list-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── News card badge (bakeka) ── */
.news-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #5865F2;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.news-card-bakeka .news-card-thumb-placeholder {
  background: rgba(88,101,242,0.12);
  color: #5865F2;
}

/* ── Bakeka article view ── */
.bakeka-post {
  padding: 4px 0;
}
.bakeka-header {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bakeka-source {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5865F2;
}
.bakeka-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bakeka-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bakeka-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.bakeka-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bakeka-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.bakeka-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bakeka-content {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
  margin-bottom: 20px;
}
.bakeka-content strong { font-weight: 700; }
.bakeka-content em { font-style: italic; }
.bakeka-content u { text-decoration: underline; }
.bakeka-content s { text-decoration: line-through; color: var(--text-muted); }
.bakeka-content code { background: rgba(255,255,255,.08); border-radius: 3px; padding: 1px 5px; font-family: monospace; font-size: 0.9em; }
.bakeka-content pre { background: rgba(255,255,255,.06); border-radius: 6px; padding: 10px 14px; overflow-x: auto; margin: 10px 0; }
.bakeka-content pre code { background: none; padding: 0; }
.bakeka-content blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--text-muted); font-style: italic; margin: 10px 0; }
.bakeka-content h1, .bakeka-content h2, .bakeka-content h3 { font-family: 'Rajdhani', sans-serif; color: #fff; margin: 1em 0 0.4em; }
.bakeka-content h1 { font-size: 1.4rem; } .bakeka-content h2 { font-size: 1.2rem; } .bakeka-content h3 { font-size: 1.05rem; }
.bakeka-content ul, .bakeka-content ol { padding-left: 1.4em; margin: 8px 0; }
.bakeka-content li { margin-bottom: 3px; }
.bakeka-content a { color: var(--accent); text-decoration: none; }
.bakeka-content a:hover { text-decoration: underline; }
.bakeka-content img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }
.bakeka-content small { font-size: 0.82em; color: var(--text-muted); }
.spoiler { background: #2e2e35; color: transparent; border-radius: 3px; padding: 0 3px; cursor: pointer; transition: color .15s; }
.spoiler:hover, .spoiler.revealed { color: inherit; }
.mention { color: var(--accent); background: var(--accent-dim); border-radius: 3px; padding: 0 3px; font-weight: 500; }

/* ── News filters ── */
.news-filters {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-filter-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.news-filter-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.news-filter-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-filter-date input[type="date"] {
  padding: 5px 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  width: 100%;
  box-sizing: border-box;
}
.news-filter-reset {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 5px 9px;
  cursor: pointer;
  line-height: 1;
  align-self: flex-end;
  transition: border-color 0.15s, color 0.15s;
}
.news-filter-reset:hover { border-color: var(--danger); color: var(--danger); }
.news-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1.5px solid var(--tag-color, var(--accent));
  color: var(--tag-color, var(--accent));
  background: transparent;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.news-tag-chip.active {
  background: var(--tag-color, var(--accent));
  color: #fff;
}

.news-list { display: flex; flex-direction: column; gap: 8px; }

.news-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  border-color: var(--accent-brd);
  background: var(--card);
  box-shadow: var(--glow-sm);
}

.news-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.news-card-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--bg2);
}

.news-card-thumb-placeholder {
  width: 72px;
  height: 48px;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-info { flex: 1; min-width: 0; }

.news-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.news-card.active .news-card-title { color: #fff; }

.news-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mobile news tabs */
.news-mobile-tabs {
  display: none;
}

/* Mobile news layout: stacked with tabs */
@media (max-width: 900px) {
  .news-mobile-tabs {
    display: flex;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  .news-mobile-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
  }
  .news-mobile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  .news-layout {
    flex-direction: column;
  }

  .news-list-pane {
    width: 100%;
    max-height: none;
    position: static;
    padding: 20px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .news-article-pane {
    border-right: none;
    padding: 24px 16px 40px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    height: auto;
  }

  /* Show only the active pane */
  .news-layout.show-list .news-article-pane { display: none; }
  .news-layout.show-article .news-list-pane { display: none; }

  .news-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  .news-article-title { font-size: 1.6rem; }
  .news-cover-img { max-height: 240px; }
}

/* ── AUTH STATE NEL NAVBAR ───────────────────────────────────────────────── */

.nav-user-logged {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.nav-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-brd);
}

.nav-avatar-username {
  font-size: 0.82rem;
  color: var(--text);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-user-dropdown.open { display: block; }

.nav-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-user-dropdown a:hover {
  background: var(--bg2);
  color: var(--accent);
}

/* ── BRACKET TOOL CARD (LOCK) ────────────────────────────────────────────── */

.nav-tool-lock {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.7;
}

.nav-tool-locked { opacity: 0.9; }
.nav-tool-locked:hover { opacity: 1; }
