@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================================
   BLOCKRADIO — Global Design System (Refined Dark Theme)
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #09090b;
  --bg-secondary:  #0f0f11;
  --bg-card:       #18181b;
  --bg-card-hover: #202024;
  --bg-nav:        rgba(9, 9, 11, 0.96);
  --bg-glass:      rgba(24, 24, 27, 0.6);

  /* Accent Colors */
  --cyan:          #8b5cf6; /* Electric Purple (Mapped to --cyan to retain template styles without breaking views) */
  --cyan-dark:     #7c3aed;
  --cyan-glow:     rgba(139, 92, 246, 0.12);
  --purple:        #ec4899; /* Sleek Rose (Mapped to --purple for high contrast accents) */
  --purple-dark:   #be185d;
  --purple-glow:   rgba(236, 72, 153, 0.12);
  --pink:          #f43f5e;

  /* Text */
  --text-primary:  #f4f4f5;
  --text-secondary:#a1a1aa;
  --text-muted:    #52525b;

  /* Status */
  --success:       #22c55e;
  --warning:       #eab308;
  --danger:        #ef4444;
  --info:          #3b82f6;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.16);

  /* Gradients */
  --gradient-main:    linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-text:    linear-gradient(90deg,  #ffffff 0%, #a78bfa 100%);
  --gradient-hero:    linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, transparent 100%);
  --gradient-btn:     linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-donate:  linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  --gradient-card:    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 30px rgba(0,0,0,0.6);
  --shadow-cyan: 0 4px 20px rgba(139, 92, 246, 0.15);
  --shadow-glow: 0 4px 20px rgba(236, 72, 153, 0.15);

  /* Spacing & Layout */
  --nav-height:  70px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: #09090b;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ensure page containers stretch to fill viewport so footer stays at the very bottom */
body > .container-br,
body > main,
body > .main-content,
body > .site-content,
body > .auth-page,
body > .chat-page,
body > .profile-page,
body > .shop-page,
body > .team-page,
body > section:not(.br-nav):not(#global-player):not(#global-adslot) {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('/image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(15px);
  opacity: 0.18;
  pointer-events: none;
}

body.has-game-bg::before {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}





a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--purple); }

img { max-width: 100%; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text,
.main-gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan   { color: var(--cyan) !important; }
.text-purple { color: var(--purple) !important; }
.text-muted  { color: var(--text-secondary) !important; }

/* ─── Star Particles Background (De-activated) ────────────── */
.stars-bg {
  position: relative;
}
.stars-bg::before,
.stars-bg::after {
  display: none !important;
}

/* ─── Animated Background Waves (De-activated) ────────────── */
.bg-waves {
  display: none !important;
}
.bg-wave {
  display: none !important;
}

/* Ensure page content sits correctly */
.page-content,
.br-nav,
.br-footer {
  position: relative;
  z-index: 1;
}

/* ─── Buttons ───────────────────────────────────────────────── */
/* Legacy .btn class */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-btn);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--cyan) !important;
  border: 1.5px solid var(--cyan);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-outline-cyan:hover {
  background: var(--cyan-glow);
  color: var(--cyan) !important;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gradient-donate);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.card-glass:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.card-dark:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ─── Badges & Tags ─────────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-published { background: rgba(0,230,118,0.15); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.badge-draft     { background: rgba(255,214,0,0.12);  color: var(--warning); border: 1px solid rgba(255,214,0,0.25); }
.badge-cyan      { background: rgba(0,229,255,0.12);  color: var(--cyan);    border: 1px solid rgba(0,229,255,0.25); }
.badge-purple    { background: rgba(157,78,255,0.12); color: var(--purple);  border: 1px solid rgba(157,78,255,0.25); }
.badge-pink      { background: rgba(255,77,166,0.12); color: var(--pink);    border: 1px solid rgba(255,77,166,0.25); }

/* Role badges in chat */
.role-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.role-badge.admin    { background: rgba(255,82,82,0.2);   color: #FF5252; }
.role-badge.owner    { background: rgba(255,214,0,0.2);   color: var(--warning); }
.role-badge.moderator{ background: rgba(0,229,255,0.15);  color: var(--cyan); }
.role-badge.dj       { background: rgba(157,78,255,0.2);  color: var(--purple); }
.role-badge.vip      { background: rgba(255,77,166,0.15); color: var(--pink); }
.role-badge.member   { background: rgba(136,146,176,0.15);color: var(--text-secondary); }

/* ─── Layout Utilities ─────────────────────────────────────── */
.container-br {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.glass-effect {
   overflow-wrap: break-word;
   word-wrap: break-word;
   word-break: break-word;
   max-width: 100%;
   overflow: hidden;
 }

/* Fix for injected HTML content (Admin pages, Articles, etc.) */
.glass-effect div[dangerouslySetInnerHTML],
.article-content,
.page-content-inner,
.rich-text-content {
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.glass-effect img,
.article-content img,
.page-content-inner img,
.rich-text-content img {
  max-width: 100% !important;
  height: auto !important;
}

.glass-effect table,
.article-content table,
.page-content-inner table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.glass-effect pre,
.article-content pre,
.page-content-inner pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ─── Navigation ────────────────────────────────────────────── */
.br-nav {
  position: relative;
  z-index: 10000;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.br-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.br-nav-logo .nav-logo-full {
  height: 32px;
  width: auto;
  display: block;
}
.br-nav-logo .nav-logo-mini {
  display: none;
  height: 34px;
  width: 34px;
  border-radius: 8px;
  object-fit: cover;
}
.br-nav-logo-text {
  font-family: 'Rajdhani', 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.br-nav-logo-text .block { color: var(--cyan); }

.br-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  flex-shrink: 1;
}
.br-nav-links a {
  display: block;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.br-nav-links a:hover,
.br-nav-links a.active {
  color: var(--cyan);
  background: rgba(0,229,255,0.08);
}

.br-nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.br-nav-socials a {
  color: var(--text-secondary);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.br-nav-socials a:hover { color: var(--cyan); }
.br-nav-socials svg { width: 18px; height: 18px; }

.br-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-bot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary) !important;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.btn-nav-bot:hover {
  border-color: var(--cyan);
  color: var(--cyan) !important;
}
.btn-nav-bot svg { width: 14px; height: 14px; }

.user-avatar-wrap { position: relative; }
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  transition: all var(--transition);
  overflow: hidden;
}
.user-avatar-btn:hover {
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: scale(1.05);
}
.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  width: max-content;
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(139, 92, 246, 0.12);
  z-index: 99999;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: mobileNavSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
  .nav-dropdown {
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    min-width: 210px;
    max-width: calc(100vw - 20px);
    width: max-content;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(139, 92, 246, 0.15) !important;
  }
}
.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  text-align: left;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  transform: translateX(2px);
}
.nav-dropdown .separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}
.nav-dropdown .danger { color: #ef4444 !important; }
.nav-dropdown .danger:hover { background: rgba(239, 68, 68, 0.12) !important; color: #ff6b6b !important; }
.nav-dropdown svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Mobile nav toggle */
.br-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.br-nav-toggle svg { width: 20px; height: 20px; }

/* ─── Page Layout ───────────────────────────────────────────── */
.page-content {
  min-height: 100vh;
}

.container-br {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(157,78,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section > * { position: relative; z-index: 1; }

/* ─── Radio Player (Hero) ───────────────────────────────────── */
.hero-player {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-play-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(0,229,255,0.4);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-slow);
  position: relative;
  flex-shrink: 0;
}
.hero-play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.2);
  animation: pulse-ring 2s ease-in-out infinite;
}
.hero-play-btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: scale(1.05);
}
.hero-play-btn svg {
  width: 48px;
  height: 48px;
  color: var(--cyan);
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-on-air {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.hero-on-air .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-on-air .track-title { color: var(--text-primary); font-weight: 600; }

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

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}
.volume-control svg { width: 18px; height: 18px; flex-shrink: 0; }
.volume-control .vol-pct { font-size: 0.82rem; color: var(--text-muted); min-width: 30px; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--cyan-glow);
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
}

.control-btn-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.control-btn-sm:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.control-btn-sm svg { width: 16px; height: 16px; }

/* ─── Top Announcement Bar (PC & Mobile) ────────────────────── */
.br-top-announcement-bar {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28) 0%, rgba(236, 72, 153, 0.2) 50%, rgba(0, 229, 255, 0.22) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 9999;
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.ann-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ann-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.ann-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.ann-bar-text {
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ann-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ann-bar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: translateY(-1px);
}

.ann-bar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.ann-bar-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .br-top-announcement-bar {
    padding: 8px 0;
  }
  .ann-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .ann-bar-left {
    justify-content: center;
    width: 100%;
  }
  .ann-bar-text {
    white-space: normal;
    font-size: 0.8rem;
  }
  .ann-bar-right {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
}

/* ─── Announcement Toast ────────────────────────────────────── */
.announcement-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  animation: slideUpIn 0.4s ease;
}
.announcement-toast .ann-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.announcement-toast .ann-content { flex: 1; min-width: 0; }
.announcement-toast .ann-title  { font-size: 0.85rem; font-weight: 700; }
.announcement-toast .ann-date   { font-size: 0.73rem; color: var(--text-secondary); }
.announcement-toast .ann-body   { font-size: 0.82rem; color: var(--text-secondary); margin-top: 3px; }
.announcement-toast .ann-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.announcement-toast .ann-close:hover { color: var(--text-secondary); }

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

/* ─── Music History ─────────────────────────────────────────── */
.music-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.music-history-item:hover { background: var(--bg-glass); }
.music-history-item.current {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
}

.music-history-cover {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.music-history-info { flex: 1; min-width: 0; }
.music-history-info .track  { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-history-info .artist { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-history-time { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

/* ─── Stats Counters ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  text-align: center;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-card .stat-icon { font-size: 1.5rem; color: var(--cyan); margin-bottom: 8px; }
.stat-card .stat-icon svg { width: 28px; height: 28px; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat-card .stat-label  { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

/* ─── Episodes / Shows Grid ─────────────────────────────────── */
.show-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.show-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.show-card .show-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}
.show-card .show-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}
.show-card .show-body { padding: 14px; }
.show-card .show-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.show-card.featured .show-title { color: var(--cyan); }
.show-card .show-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.show-card .show-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Schedule / Programme ──────────────────────────────────── */
.day-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.day-tab {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}
.day-tab.active {
  background: var(--cyan);
  color: var(--bg-primary);
}
.day-tab:hover:not(.active) { color: var(--text-primary); }

/* ─── Articles & Content ────────────────────────────────────── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card .art-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
  display: block;
}
.article-card .art-body { padding: 18px; }
.article-card .art-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.article-card .art-tag {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.art-tag.gaming     { background: rgba(0,229,255,0.15);  color: var(--cyan); }
.art-tag.esport     { background: rgba(157,78,255,0.15); color: var(--purple); }
.art-tag.radio      { background: rgba(0,230,118,0.15);  color: var(--success); }
.art-tag.musique    { background: rgba(255,77,166,0.15); color: var(--pink); }
.art-tag.communaute { background: rgba(255,214,0,0.15);  color: var(--warning); }
.art-tag.interview  { background: rgba(0,229,255,0.1);   color: var(--cyan-dark); }
.art-tag.tech       { background: rgba(157,78,255,0.1);  color: var(--purple-dark); }
.art-tag.article    { background: rgba(157,78,255,0.15); color: var(--purple); }

.article-card .art-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-card .art-excerpt {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.article-card .art-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.art-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gradient-btn);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
}
.btn-read-more:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-cyan);
  color: #fff !important;
}
.btn-read-more svg { width: 14px; height: 14px; }

/* Content type tabs */
.content-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.content-tab {
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
}
.content-tab.active {
  background: var(--cyan);
  color: var(--bg-primary);
  border-color: var(--cyan);
}
.content-tab:hover:not(.active) { color: var(--text-primary); border-color: var(--border-hover); }

/* Category filter pills */
.category-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.category-pill {
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
}
.category-pill.active {
  background: var(--cyan);
  color: var(--bg-primary);
  border-color: var(--cyan);
}
.category-pill:hover:not(.active) { color: var(--text-primary); border-color: var(--border-hover); }

/* ─── Chat ──────────────────────────────────────────────────── */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-header .chat-title { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chat-header .live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.chat-header .live-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 1.5s infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 10px;
}
.chat-empty svg { width: 48px; height: 48px; opacity: 0.3; }
.chat-empty p { font-size: 0.88rem; }

.chat-message {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}
.chat-message .chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-main);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.chat-message .chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-message .chat-msg-content { flex: 1; }
.chat-message .chat-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.chat-message .chat-username { font-size: 0.85rem; font-weight: 700; }
.chat-message .chat-time { font-size: 0.72rem; color: var(--text-muted); }
.chat-message .chat-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; word-break: break-word; }

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

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-main);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.chat-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: 'Poppins', sans-serif;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--cyan); }
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-btn);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-cyan); }
.chat-send-btn svg { width: 15px; height: 15px; color: #fff; }

/* ─── Support / Tickets ─────────────────────────────────────── */
.support-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}
.form-section-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group, .form-group-br { margin-bottom: 18px; }
/* Legacy aliases for older pages */
.form-label, .form-label-br {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input, .form-input-br,
.form-select-br,
.form-textarea-br {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-input-br::placeholder,
.form-textarea-br::placeholder { color: var(--text-muted); }
.form-input-br:focus,
.form-select-br:focus,
.form-textarea-br:focus { border-color: var(--cyan); }
.form-textarea-br { resize: vertical; min-height: 120px; }
.form-select-br {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892B0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--bg-secondary);
  padding-right: 36px;
  cursor: pointer;
}
.form-select-br option { background: var(--bg-card); }

.upload-area {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.upload-area:hover { border-color: var(--cyan); color: var(--cyan); }
.upload-area svg { width: 24px; height: 24px; margin-bottom: 6px; }

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.ticket-card:hover { border-color: var(--border-hover); }
.ticket-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.ticket-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; }
.ticket-empty p { font-size: 0.88rem; }

/* Help sidebar card */
.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.help-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.help-card p { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 20px; }
.help-card .help-btns { display: flex; flex-direction: column; gap: 10px; }

/* ─── Team Cards ────────────────────────────────────────────── */
.team-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.team-section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  flex-shrink: 0;
}
.team-section-title h2 { font-size: 1.2rem; font-weight: 700; }

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
  position: relative;
}
.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-card .tc-avatar-wrap {
  position: relative;
  padding: 20px 20px 0;
}
.team-card .tc-role-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
.team-card .tc-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
}
.team-card .tc-body { padding: 14px; }
.team-card .tc-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.team-card .tc-role { font-size: 0.78rem; color: var(--text-secondary); }
.team-card .tc-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.team-card .tc-socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.team-card .tc-socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.team-card .tc-socials svg { width: 13px; height: 13px; }

/* ─── Profile ───────────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}
.profile-nav-item:hover { background: var(--bg-glass); color: var(--text-primary); }
.profile-nav-item.active { background: rgba(0,229,255,0.08); color: var(--cyan); }
.profile-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* (Old admin panel CSS removed - see Refined block below) */

/* ─── Team Grid responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* ─── Ad Slot ───────────────────────────────────────────────── */
.adslot-wrap { margin: 16px 0; }
.adslot-empty {
  background: var(--bg-card);
  border: 1.5px dashed rgba(0,229,255,0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.adslot-empty p { margin: 0; color: var(--text-muted); font-size: 0.78rem; }
.adslot-empty a { color: var(--cyan); text-decoration: none; font-size: 0.72rem; opacity: 0.7; }
.adslot-empty a:hover { opacity: 1; text-decoration: underline; }
.adslot-banner {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(157,78,255,0.04));
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  position: relative;
}
.adslot-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.6;
}
.adslot-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}
.adslot-text-link {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.adslot-text-link:hover { color: var(--cyan); }
.adslot-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: var(--gradient-main);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.adslot-banner img { max-width: 100%; border-radius: var(--radius-sm); }

/* ─── Admin Panel Layout (Refined) ─────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
  font-size: 0.82rem;
}
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}
.admin-sidebar-header {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-logo-icon {
  width: 26px;
  height: 26px;
  background: var(--gradient-main);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
}
.admin-logo-icon svg { width: 14px; height: 14px; }
.admin-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
}
.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  text-align: left;
  white-space: nowrap;
}
.admin-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.6; }
.admin-nav-item:hover {
  background: rgba(0,229,255,0.06);
  color: var(--text-primary);
}
.admin-nav-item:hover svg { opacity: 1; }
.admin-nav-item.active {
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  font-weight: 600;
}
.admin-nav-item.active svg { opacity: 1; color: var(--cyan); }
.admin-nav-item.danger { color: #ef4444; }
.admin-nav-item.danger:hover { background: rgba(239,68,68,0.08); }
.admin-sidebar-footer {
  padding: 6px;
  border-top: 1px solid var(--border);
}
.admin-main {
  flex: 1;
  margin-left: 200px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(8,11,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Rajdhani', 'Poppins', sans-serif;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.admin-topbar-right img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  object-fit: cover;
}
.admin-body {
  flex: 1;
  padding: 20px 24px 60px;
  overflow-y: auto;
}

/* Admin compact utility classes */
.admin-body h2 { font-size: 1rem !important; font-weight: 700; margin-bottom: 0.75rem !important; }
.admin-body h3 { font-size: 0.88rem !important; font-weight: 600; margin-bottom: 0.5rem !important; }
.admin-body h4 { font-size: 0.82rem !important; font-weight: 600; }
.admin-body .form-group { margin-bottom: 0.6rem; }
.admin-body .form-label { font-size: 0.76rem; margin-bottom: 3px; }
.admin-body .form-input { font-size: 0.8rem; padding: 7px 10px; }
.admin-body .form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,229,255,0.1); }
.admin-body textarea.form-input { padding: 8px 10px; }
.admin-body .btn { font-size: 0.76rem; padding: 6px 12px; border-radius: 6px; }
.admin-body .btn-donate { font-size: 0.78rem; padding: 7px 14px; }

/* Admin card compact styles */
.a-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.a-card:hover { border-color: var(--border-hover); }
.a-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.a-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.a-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.a-stat-label { color: var(--text-secondary); font-size: 0.72rem; margin-top: 2px; }
.a-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.a-badge-green { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.a-badge-yellow { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
.a-badge-red { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.a-badge-cyan { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.a-badge-purple { background: rgba(157,78,255,0.1); color: var(--purple); border: 1px solid rgba(157,78,255,0.2); }
.a-badge-blue { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }

/* Admin table styles */
.a-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.a-table th { padding: 8px 10px; text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.a-table td { padding: 7px 10px; color: var(--text-primary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.a-table tr:hover td { background: rgba(0,229,255,0.02); }

/* Admin action buttons */
.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  transition: all 0.15s;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.a-btn-edit { color: var(--cyan); border-color: rgba(0,229,255,0.2); }
.a-btn-edit:hover { background: rgba(0,229,255,0.08); border-color: var(--cyan); }
.a-btn-delete { color: #ef4444; border-color: rgba(239,68,68,0.2); }
.a-btn-delete:hover { background: rgba(239,68,68,0.08); border-color: #ef4444; }
.a-btn-approve { color: #22c55e; border-color: rgba(34,197,94,0.2); }
.a-btn-approve:hover { background: rgba(34,197,94,0.08); border-color: #22c55e; }
.a-btn-primary { background: rgba(0,229,255,0.1); color: var(--cyan); border-color: rgba(0,229,255,0.25); }
.a-btn-primary:hover { background: rgba(0,229,255,0.18); }

/* Admin filter pills */
.a-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 500;
  transition: all 0.15s;
  font-family: 'Poppins', sans-serif;
}
.a-filter:hover { border-color: var(--cyan); color: var(--text-primary); }
.a-filter.active { background: rgba(0,229,255,0.1); border-color: var(--cyan); color: var(--cyan); font-weight: 600; }

/* Admin grid helpers */
.a-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.a-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* Admin modal */
.a-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.a-modal {
  width: 90%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.a-modal h3 { color: var(--cyan); margin-bottom: 14px; }

@media (max-width: 900px) {
  .admin-sidebar { width: 180px; }
  .admin-main { margin-left: 180px; }
  .admin-body { padding: 16px 14px 40px; }
  .a-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .admin-sidebar { width: 52px; }
  .admin-sidebar-header { padding: 10px 6px; }
  .admin-logo-text { display: none; }
  .admin-nav-item span { display: none; }
  .admin-nav-item { justify-content: center; padding: 8px; }
  .admin-main { margin-left: 52px; }
  .a-grid-2, .a-grid-3, .a-grid-4 { grid-template-columns: 1fr; }
}

/* ─── Mini Player ───────────────────────────────────────────── */
.mini-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  min-width: 260px;
  max-width: 320px;
}
.mini-player .mp-cover {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.mini-player .mp-info { flex: 1; min-width: 0; }
.mini-player .mp-track  { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .mp-artist { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .mp-controls { display: flex; gap: 6px; }
.input-br {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: 'Poppins', sans-serif;
}
.input-br:focus { border-color: var(--cyan); }
.input-br::placeholder { color: var(--text-muted); }

/* ─── Divider ───────────────────────────────────────────────── */
.divider-br {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 16px 0;
}
.divider-br::before,
.divider-br::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Section Decorator ─────────────────────────────────────── */
.section-deco {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-deco::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  flex-shrink: 0;
}

/* ─── Toasts / Notifications ────────────────────────────────── */
.toast-container-br {
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}
.toast-br {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  animation: slideLeft 0.3s ease;
}
.toast-br.success { border-left: 4px solid var(--success); }
.toast-br.error   { border-left: 4px solid var(--danger); }
.toast-br.info    { border-left: 4px solid var(--cyan); }
.toast-br .toast-title  { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.toast-br .toast-body   { font-size: 0.8rem; color: var(--text-secondary); }

@keyframes slideLeft {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Footer Partners & Maps ────────────────────────────── */
.footer-maps-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 20px;
  align-items: center;
}
.footer-find-us-left {
  text-align: left;
}
.footer-maps-right {
  width: 100%;
}
.footer-maps-wrapper {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0px;
  background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
  .footer-maps-row { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-find-us-left { text-align: center; }
}

/* ─── Skeleton Loading ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Footer ────────────────────────────────────────────────── */
.br-footer {
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.88) 0%, rgba(9, 9, 11, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 96px;
  margin-top: auto !important;
  width: 100%;
  position: relative;
  z-index: 10;
}
.br-footer .footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 240px;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.br-footer .footer-socials {
  display: flex;
  gap: 10px;
}
.br-footer .footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.br-footer .footer-socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.br-footer .footer-socials svg { width: 15px; height: 15px; }

.br-footer .footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.br-footer .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.br-footer .footer-links a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.br-footer .footer-links a:hover { color: var(--cyan); }

.br-footer .footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.br-footer .footer-bottom .heart { color: var(--danger); }

/* Footer grid layout */
.br-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

/* Footer Google Maps section */
.br-footer .footer-maps-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.br-footer .footer-maps-text {
  flex: 1 1 280px;
  min-width: 0;
}
.br-footer .footer-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.br-footer .footer-maps-btn:hover {
  opacity: 0.85;
  color: #fff;
}
.br-footer .footer-maps-embed {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Login / Register Pages ────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ─── Misc Utilities ────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.3rem; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar { width: 180px; }
  .admin-main { margin-left: 180px; }
  .container-br { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}

@media (max-width: 1100px) {
  :root { --nav-height: 60px; }

  .br-nav { padding: 0 12px; gap: 8px; }
  .br-nav-logo .nav-logo-full { display: none; }
  .br-nav-logo .nav-logo-mini { display: block; }
  .br-nav-links { display: none; }
  .br-nav-socials { display: none; }
  .br-nav-actions { margin-left: auto; flex-shrink: 0; }
  .br-nav-toggle { display: flex; }

  .br-nav-links.mobile-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: rgba(9, 9, 11, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 16px 20px 24px !important;
    gap: 8px !important;
    z-index: 10000 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(139, 92, 246, 0.12) !important;
    margin: 0 !important;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    animation: mobileNavSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .br-nav-links.mobile-open li {
    width: 100%;
    list-style: none;
  }

  .br-nav-links.mobile-open a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .br-nav-links.mobile-open a:hover,
  .br-nav-links.mobile-open a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
  }

  .nav-notif-dropdown {
    position: fixed !important;
    top: 72px !important;
    bottom: auto !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 16px !important;
    animation: mobileNavSlideDown 0.25s ease;
  }

  .hero-title { font-size: 2.2rem; }
  .hero-play-btn { width: 80px; height: 80px; }
  .hero-play-btn svg { width: 32px; height: 32px; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-main { margin-left: 0; }

  .br-footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .br-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .br-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .br-footer .footer-maps-section {
    flex-direction: column;
    align-items: stretch;
  }
  .br-footer .footer-maps-embed {
    width: 100%;
  }
  .team-grid {
    grid-template-columns: 1fr !important;
  }
  .featured-article-card {
    grid-template-columns: 1fr !important;
  }
  .featured-article-card > div:last-child {
    padding: 24px !important;
  }
  .chat-layout {
    grid-template-columns: 1fr !important;
  }

  .support-form-card { padding: 20px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }
  .container-br { padding: 0 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .br-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .br-footer .footer-brand-desc {
    max-width: 100%;
  }
  .br-footer .footer-socials {
    flex-wrap: wrap;
  }
}

/* ─── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .game-artwork-label, .blockradio-watermark, body.page-entering, #br-page-progress, #br-page-glow {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── Ultra-Sleek Page Transition ────────────────────────────── */
#br-page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #00e5ff 100%);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(236, 72, 153, 0.6), 0 0 30px rgba(139, 92, 246, 0.5);
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s ease;
}
#br-page-progress.is-loading {
  opacity: 1;
  width: 72%;
  animation: progressPulse 1.2s ease-in-out infinite alternate;
}
#br-page-progress.is-finishing {
  opacity: 1;
  width: 100%;
}
#br-page-progress.is-hidden {
  opacity: 0;
  transition: opacity 0.3s ease, width 0s 0.3s;
}

@keyframes progressPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.35) drop-shadow(0 0 8px #00e5ff); }
}

/* Ambient glow accent across the top on transition */
#br-page-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 92vw);
  height: 160px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.22) 0%, rgba(0, 229, 255, 0.12) 40%, transparent 70%);
  z-index: 999990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#br-page-glow.is-active {
  opacity: 1;
  animation: glowPulse 0.5s ease-out forwards;
}

@keyframes glowPulse {
  0% { opacity: 0; transform: translateX(-50%) scale(0.92); }
  40% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.05); }
}

/* Fluid Page Entry Animation */
body.page-entering {
  animation: brPageReveal 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes brPageReveal {
  0% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
  }
}

/* Keep standard content above backdrop without affecting navbar or fixed overlays */
body > *:not(#br-page-progress):not(#br-page-glow):not(#br-game-backdrop):not(#global-player):not(#br-cursor-trail):not(.br-nav):not(#br-nav):not(#nav-overlay):not(#user-dropdown-overlay) {
  position: relative;
  z-index: 2;
}

.br-nav {
  position: relative;
  z-index: 10000 !important;
}

/* ─── Ultra-Sleek Page Transition ────────────────────────────── */
#br-page-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3.5px !important;
  width: 0%;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 40%, #00e5ff 80%, #8b5cf6 100%) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.9), 0 0 24px rgba(236, 72, 153, 0.7), 0 0 35px rgba(139, 92, 246, 0.6) !important;
  z-index: 9999999 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s ease;
}
#br-page-progress.is-loading {
  opacity: 1;
  width: 75%;
  animation: progressPulse 1.2s ease-in-out infinite alternate;
}
#br-page-progress.is-finishing {
  opacity: 1;
  width: 100%;
}
#br-page-progress.is-hidden {
  opacity: 0;
  transition: opacity 0.3s ease, width 0s 0.3s;
}

@keyframes progressPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.35) drop-shadow(0 0 8px #00e5ff); }
}

/* Ambient glow accent across the top on transition */
#br-page-glow {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(850px, 92vw) !important;
  height: 160px !important;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.28) 0%, rgba(0, 229, 255, 0.16) 40%, transparent 70%) !important;
  z-index: 9999990 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#br-page-glow.is-active {
  opacity: 1;
  animation: glowPulse 0.5s ease-out forwards;
}

@keyframes glowPulse {
  0% { opacity: 0; transform: translateX(-50%) scale(0.92); }
  40% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.05); }
}

/* ─── Official Game Background & BlockRadio Watermark (Non-Home Pages) ─── */
#br-game-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0;
  display: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-game-bg #br-game-backdrop {
  display: block !important;
}

#br-game-backdrop.is-active {
  opacity: 1;
}

.br-game-artwork-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center 25% !important;
  background-repeat: no-repeat !important;
  filter: brightness(0.58) contrast(1.15) saturate(1.2) !important;
  transform: scale(1.02);
  transition: background-image 0.5s ease;
  contain: layout style paint;
}

/* Subtle Cyber Ambient Grid */
.br-game-ambient-grid {
  position: absolute !important;
  inset: 0 !important;
  background-image: linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px) !important;
  background-size: 60px 60px !important;
  pointer-events: none !important;
  opacity: 0.7 !important;
}

/* Rich Dark Vignette Overlay for Crisp Contrast & Legibility */
.br-game-dark-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(circle at 50% 30%, rgba(9, 9, 11, 0.45) 0%, rgba(9, 9, 11, 0.78) 75%, #09090b 100%),
              linear-gradient(180deg, rgba(9, 9, 11, 0.75) 0%, rgba(9, 9, 11, 0.45) 40%, rgba(9, 9, 11, 0.95) 100%) !important;
  pointer-events: none !important;
}

/* ─── Official Game Name Badge (Top-Right) ───────────────────── */
.br-game-badge {
  position: fixed !important;
  top: calc(var(--nav-height) + 16px) !important;
  right: 24px !important;
  left: auto !important;
  bottom: auto !important;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(14, 14, 18, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f4f4f5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 229, 255, 0.2);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  user-select: none;
}

.br-game-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.br-game-badge svg {
  color: #00E5FF;
  flex-shrink: 0;
}

.br-game-badge .game-badge-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
}

.br-game-badge .game-badge-name {
  color: #00E5FF;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .br-game-badge {
    top: calc(var(--nav-height) + 6px) !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    font-size: 0.68rem !important;
    padding: 3px 10px !important;
    max-width: 200px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 50 !important;
    opacity: 0.9 !important;
  }
  .br-game-badge .game-badge-label {
    display: none;
  }
/* Notifications Dropdown */
.nav-notif-dropdown {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 340px !important;
  max-width: calc(100vw - 24px) !important;
  background: #0e0e14 !important;
  background-color: #0e0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 229, 255, 0.15) !important;
  z-index: 999999 !important;
  overflow: hidden !important;
}

/* Semi-transparent Glass Cards on Game Pages */
body.has-game-bg .team-card,
body.has-game-bg .article-card,
body.has-game-bg .auth-card,
body.has-game-bg .profile-card,
body.has-game-bg .shop-card,
body.has-game-bg .support-form-card,
body.has-game-bg .sg-card,
body.has-game-bg .demande-card,
body.has-game-bg .dm-card,
body.has-game-bg .rq-cat-card,
body.has-game-bg .rq-tickets-section,
body.has-game-bg .premium-card,
body.has-game-bg .custom-card,
body.has-game-bg .donate-card,
body.has-game-bg .chat-container,
body.has-game-bg .episode-card {
  background: rgba(18, 18, 24, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

/* ─── Mouse Trail Particles ──────────────────────────────────── */
#br-cursor-trail {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999999;
}

.cursor-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  display: none;
  will-change: opacity;
}

.cursor-particle.animating {
  animation: cursorParticleFade 0.6s ease-out forwards;
}

@keyframes cursorParticleFade {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
}

@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#nav-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}




