/* ================================================================
   CraftBoarding CMS — style.css
   Thème "Game World" — inspiré de play-aqua.net
   Cyan-aqua / Noir profond / Or
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --cb-primary:       #38bdf8;
  --cb-primary-dark:  #0ea5e9;
  --cb-primary-deep:  #0284c7;
  --cb-primary-glow:  rgba(56, 189, 248, 0.35);
  --cb-primary-soft:  rgba(56, 189, 248, 0.08);
  --cb-accent:        #f59e0b;
  --cb-accent-light:  #fbbf24;
  --cb-accent-glow:   rgba(245, 158, 11, 0.35);
  --cb-green:         #10b981;
  --cb-red:           #f43f5e;
  --cb-purple:        #a78bfa;

  /* Backgrounds */
  --cb-bg:            #04070e;
  --cb-bg-card:       #080f1e;
  --cb-bg-panel:      #0b1428;
  --cb-bg-subtle:     #0d1830;
  --cb-bg-hover:      #0f1e38;

  /* Borders */
  --cb-border:        rgba(56, 189, 248, 0.12);
  --cb-border-hover:  rgba(56, 189, 248, 0.3);
  --cb-border-gold:   rgba(245, 158, 11, 0.25);

  /* Text */
  --cb-text:          #cce7ff;
  --cb-text-muted:    #5e7d9a;
  --cb-text-bright:   #ffffff;

  /* Legacy aliases (used in views) */
  --cb-blue:          #38bdf8;
  --cb-blue-dark:     #0ea5e9;
  --cb-blue-light:    #7dd3fc;
  --cb-blue-glow:     rgba(56, 189, 248, 0.35);
  --cb-gold:          #f59e0b;
  --cb-gold-light:    #fbbf24;
  --cb-gold-glow:     rgba(245, 158, 11, 0.35);
  --cb-navy:          #cce7ff;
  --cb-white:         #ffffff;

  /* Radius */
  --cb-radius:        10px;
  --cb-radius-sm:     6px;
  --cb-radius-lg:     16px;
  --cb-radius-xl:     24px;

  /* Shadows */
  --cb-shadow:        0 4px 24px rgba(0, 0, 0, 0.6);
  --cb-shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.8);
  --cb-shadow-blue:   0 0 24px rgba(56, 189, 248, 0.2);
  --cb-shadow-gold:   0 0 24px rgba(245, 158, 11, 0.2);

  /* Transitions */
  --cb-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--cb-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56,189,248,0.07) 0%, transparent 70%),
    radial-gradient(circle, rgba(56,189,248,0.028) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px;
  background-attachment: fixed, fixed;
  color: var(--cb-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--cb-primary); text-decoration: none; transition: var(--cb-transition); }
a:hover { color: var(--cb-blue-light); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--cb-text-bright); font-weight: 700; }

/* ── Utilitaires ─────────────────────────────────────────────── */
.bg-light-subtle { background: var(--cb-bg-subtle) !important; }
.text-purple     { color: var(--cb-purple) !important; }
.letter-spacing  { letter-spacing: 0.08em; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--cb-bg); }
::-webkit-scrollbar-thumb { background: var(--cb-primary-deep); border-radius: 8px; }

/* ================================================================
   NAVBAR — floating pill, play-aqua style
   ================================================================ */
.cb-navbar {
  position: fixed !important;
  top: 10px;
  left: 15px;
  right: 15px;
  width: auto !important;
  border-radius: 10px;
  background: rgba(4, 14, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(56,189,248,0.05);
  padding: 0.5rem 0;
  transition: var(--cb-transition);
  z-index: 2000;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
.cb-navbar.scrolled {
  background: rgba(4, 10, 20, 0.96);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 6px 36px rgba(0,0,0,0.75), 0 0 0 1px rgba(56,189,248,0.1);
}

/* Brand */
.cb-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  letter-spacing: -0.5px;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9375rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--cb-primary-glow);
}
.brand-name { color: white; font-family: 'Cinzel', serif; letter-spacing: 0.03em; }
.cb-brand:hover { color: var(--cb-primary); }
.cb-brand:hover .brand-name { color: var(--cb-primary); }

/* Nav Links */
.cb-nav-link {
  color: rgba(204, 231, 255, 0.7) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--cb-radius-sm);
  transition: var(--cb-transition);
  position: relative;
  letter-spacing: 0.01em;
}
.cb-nav-link:hover,
.cb-nav-link.active {
  color: white !important;
  background: rgba(56, 189, 248, 0.1);
}
.cb-nav-link.active::after { display: none; } /* replaced by .nav-indicator */

/* ── Sliding nav indicator (play-aqua style) ── */
.navbar-nav { position: relative; }
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--cb-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cb-primary-glow);
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1), width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
  opacity: 0;
}
.nav-indicator::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px; height: 5px;
  background: var(--cb-primary);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--cb-primary-glow);
}
/* On mobile, hide the indicator */
@media (max-width: 991px) { .nav-indicator { display: none; } }

/* cb-nav-link--join kept for compat */
.cb-nav-link--join {
  color: var(--cb-primary) !important;
  border: 1.5px solid rgba(56,189,248,0.35);
  border-radius: 50px;
  padding: 0.4rem 1rem !important;
}
.cb-nav-link--join:hover,
.cb-nav-link--join.active {
  background: rgba(56,189,248,0.12) !important;
  border-color: var(--cb-primary);
  color: white !important;
}

/* ── Rejoindre CTA in nav ── */
.cb-nav-join {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e !important;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(56,189,248,0.28);
  transition: var(--cb-transition);
}
.cb-nav-join:hover,
.cb-nav-join.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56,189,248,0.48);
  color: #04070e !important;
}

/* ── Dropdown nav links ── */
.cb-nav-link-dd {
  display: flex !important;
  align-items: center;
  gap: 0.25rem;
}
.cb-nav-caret {
  font-size: 0.65rem;
  margin-left: 0.15rem;
  transition: transform 0.22s ease;
}
.cb-nav-dd-icon-pre {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Rotate caret when dropdown is open */
.cb-nav-dd-item.show .cb-nav-caret,
.cb-nav-dd-item:hover .cb-nav-caret {
  transform: rotate(180deg);
}

/* ── Nav dropdown panel ── */
.cb-nav-dropdown {
  min-width: 240px;
  padding: 0.5rem;
  margin-top: 0.5rem !important;
  border: 1px solid rgba(56,189,248,0.18);
  background: rgba(6, 16, 34, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(56,189,248,0.06);
  border-radius: 14px;
  /* Animation */
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  display: block !important;
  pointer-events: none;
}
/* Invisible bridge: covers the margin-top gap so mouse doesn't trigger mouseleave */
.cb-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.cb-nav-dd-item.show .cb-nav-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Hover-open on desktop */
@media (min-width: 992px) {
  .cb-nav-dd-item:hover > .cb-nav-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* Mobile: reset animation to static */
@media (max-width: 991px) {
  .cb-nav-dropdown {
    display: none !important;
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none !important;
    background: rgba(56,189,248,0.04);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 10px;
    margin-top: 0 !important;
  }
  .cb-nav-dd-item.show > .cb-nav-dropdown,
  .cb-nav-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ── Dropdown section header ── */
.cb-dd-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-text-muted, #8892a4);
  padding: 0.2rem 0.75rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(56,189,248,0.08);
  margin-bottom: 0.25rem;
}

/* ── Dropdown link rows ── */
.cb-dd-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem !important;
  border-radius: 10px;
  transition: background 0.15s, box-shadow 0.15s;
  color: rgba(204, 231, 255, 0.78) !important;
}
.cb-dd-link:hover,
.cb-dd-link.active {
  background: rgba(56, 189, 248, 0.09) !important;
  color: white !important;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,0.12);
}
.cb-dd-link.active {
  background: rgba(56, 189, 248, 0.13) !important;
}

/* Icon wrap */
.cb-dd-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cb-dd-icon-amber  { background: rgba(245,158,11,.15);  color: #fbbf24; }
.cb-dd-icon-blue   { background: rgba(56,189,248,.12);  color: var(--cb-primary); }
.cb-dd-icon-green  { background: rgba(34,197,94,.13);   color: #4ade80; }
.cb-dd-icon-purple { background: rgba(139,92,246,.13);  color: #a78bfa; }
.cb-dd-icon-accent { background: rgba(245,158,11,.12);  color: #fb923c; }

/* Text block */
.cb-dd-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cb-dd-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}
.cb-dd-sub {
  font-size: 0.73rem;
  color: var(--cb-text-muted, #8892a4);
  line-height: 1.3;
}
.cb-dd-link:hover .cb-dd-sub,
.cb-dd-link.active .cb-dd-sub { color: rgba(204,231,255,0.55); }

/* Boutons navbar */
.cb-btn-primary,
.cb-btn-outline {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.02em;
}
.cb-btn-primary {
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
.cb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
  color: #04070e;
}
.cb-btn-outline {
  background: transparent;
  color: var(--cb-primary);
  border-color: rgba(56, 189, 248, 0.4);
}
.cb-btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--cb-primary);
  color: white;
  transform: translateY(-2px);
}

.cb-btn-primary-sm, .cb-btn-outline-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
}
.cb-btn-primary-sm {
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-deep));
  color: #04070e;
  border: 1.5px solid transparent;
  font-weight: 700;
}
.cb-btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--cb-primary-glow); color: #04070e; }
.cb-btn-outline-sm {
  background: transparent;
  color: var(--cb-primary);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
}
.cb-btn-outline-sm:hover { background: rgba(56,189,248,0.1); color: white; border-color: var(--cb-primary); }

/* User dropdown */
.cb-btn-user {
  background: rgba(56, 189, 248, 0.07);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  border-radius: 50px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cb-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--cb-transition);
}
.cb-btn-user:hover { border-color: var(--cb-primary); color: white; box-shadow: 0 0 12px var(--cb-primary-glow); }
.user-avatar { font-size: 1rem; color: var(--cb-primary); }

/* Dropdown */
.cb-dropdown {
  background: var(--cb-bg-panel);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--cb-radius);
  box-shadow: var(--cb-shadow-lg), 0 0 40px rgba(56, 189, 248, 0.08);
  padding: 0.5rem;
  min-width: 200px;
}
.cb-dropdown .dropdown-item {
  border-radius: var(--cb-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  transition: var(--cb-transition);
  color: var(--cb-text);
}
.cb-dropdown .dropdown-item:hover { background: rgba(56, 189, 248, 0.1); color: var(--cb-primary); }
.cb-dropdown .dropdown-divider { border-color: rgba(56, 189, 248, 0.1); }
.cb-dropdown-admin { color: var(--cb-accent) !important; }
.cb-dropdown-admin:hover { background: rgba(245,158,11,0.08) !important; color: var(--cb-accent) !important; }
.cb-dropdown-danger { color: #fb7185 !important; }
.cb-dropdown-danger:hover { background: rgba(244,63,94,0.08) !important; color: #fb7185 !important; }

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher { position: relative; }

.cb-btn-lang {
  background: rgba(255,255,255,0.045);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.35rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cb-text-muted);
  transition: var(--cb-transition);
  font-size: 0.875rem;
}
.cb-btn-lang::after { display: none; } /* remove BS caret */
.cb-btn-lang:hover, .cb-btn-lang:focus {
  background: rgba(56,189,248,0.09);
  border-color: rgba(56,189,248,0.3);
  color: var(--cb-primary);
}
.lang-globe  { font-size: 1rem; }
.lang-flag-current { font-size: 1.1rem; line-height: 1; }

.lang-menu { min-width: 160px; padding: 0.375rem 0; }
.lang-menu-header {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-text-muted);
  padding: 0.2rem 0.875rem 0.5rem;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cb-text);
}
.lang-item:hover { background: rgba(56,189,248,0.08); color: var(--cb-primary); }
.lang-item-active { color: var(--cb-primary) !important; font-weight: 700; background: rgba(56,189,248,0.06); }
.lang-item-flag { font-size: 1.15rem; line-height: 1; }
.lang-item-name { flex: 1; }
.lang-item-check { color: var(--cb-primary); font-size: 0.875rem; margin-left: auto; }

/* Mobile toggler */
.cb-toggler {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.375rem;
  cursor: pointer;
}
.toggler-line {
  width: 22px; height: 2px;
  background: rgba(204, 231, 255, 0.6);
  border-radius: 2px;
  transition: var(--cb-transition);
  display: block;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
/* Since navbar is now fixed + floating (top:10px), push page body down */
body { padding-top: 0; }
.hero-section {
  position: relative;
  height: 980px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Atmospheric background layers */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #04070e 0%, #060d1e 40%, #0a1a2e 65%, #142a3e 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot grid */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 2;
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* Decorative glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 2;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: rgba(56, 189, 248, 0.12);
  top: -150px; left: 50%;
  transform: translateX(-50%);
}
.hero-orb--2 {
  width: 320px; height: 320px;
  background: rgba(245, 158, 11, 0.06);
  bottom: 80px; right: 10%;
}
.hero-orb--3 {
  width: 240px; height: 240px;
  background: rgba(99, 102, 241, 0.08);
  top: 30%; left: 5%;
}

/* Hero body wrapper — flex-grow so news bar stays at bottom */
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 6rem 0 3rem; /* extra top padding for floating navbar */
  width: 100%;
}

/* Keep hero content visible if AOS is missing or fails to init */
.hero-content[data-aos],
.hero-actions[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--cb-primary);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse-dot 2s infinite;
}

/* Title */
.hero-title {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.25rem;
}
.hero-title-accent {
  display: block;
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 30%, var(--cb-primary) 60%, var(--cb-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.5));
}
.hero-subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: rgba(204, 231, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* Hero CTA buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.cb-btn-hero-primary {
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  padding: 0.875rem 2.25rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9375rem;
  border: 1px solid var(--cb-primary);
  cursor: pointer;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  width: 350px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4), 0 4px 20px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
.cb-btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.6), 0 8px 30px rgba(0,0,0,0.5);
  color: #04070e;
}
.cb-btn-hero-outline {
  background: transparent;
  color: rgba(204, 231, 255, 0.85);
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
}
.cb-btn-hero-outline:hover {
  border-color: var(--cb-primary);
  color: white;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-3px);
}

/* Hero stats (inside hero content) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}
.hero-stat-divider { border-left: 1px solid rgba(56, 189, 248, 0.15); }
.hero-stat-number {
  font-size: 1.625rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--cb-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ================================================================
   HERO NEWS BAR — play-aqua style, inside hero at bottom
   ================================================================ */
.hero-news {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.068);
  padding: 40px 0 60px;
}
.hero-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hero-news-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-news-all {
  color: var(--cb-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--cb-transition);
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
}
.hero-news-all:hover { color: white; }

/* Right group: "Toutes les actualités" link + slider arrows */
.hero-news-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Grid of image cards (legacy — kept for fallback) */
.hero-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) { .hero-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .hero-news-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Individual news card — image with overlay */
.nch {
  position: relative;
  display: block;
  height: 215px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(40, 105, 143, 0.55);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.nch:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 20px rgba(56,189,248,0.12);
  text-decoration: none;
}

/* Image layer */
.nch-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.nch-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.nch:hover .nch-img img { transform: scale(1.08); }

/* Placeholder (no image) */
.nch-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #050d1c 0%, rgba(40,105,143,0.22) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Category-specific placeholder gradients */
.nch-ph-annonce    { background: linear-gradient(140deg, #04091a 0%, rgba(56,189,248,0.22) 100%); }
.nch-ph-update     { background: linear-gradient(140deg, #04120c 0%, rgba(16,185,129,0.22) 100%); }
.nch-ph-event      { background: linear-gradient(140deg, #110900 0%, rgba(245,158,11,0.22) 100%); }
.nch-ph-patch_note { background: linear-gradient(140deg, #0a0416 0%, rgba(139,92,246,0.22) 100%); }

.nch-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.8;
}
.nch-ph-update     .nch-grid { background-image: radial-gradient(circle, rgba(16,185,129,0.1) 1px, transparent 1px); }
.nch-ph-event      .nch-grid { background-image: radial-gradient(circle, rgba(245,158,11,0.1) 1px, transparent 1px); }
.nch-ph-patch_note .nch-grid { background-image: radial-gradient(circle, rgba(139,92,246,0.1) 1px, transparent 1px); }

/* Diagonal accent line behind icon */
.nch-placeholder::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.015) 50%, transparent 60%);
  pointer-events: none;
}

.nch-placeholder-icon {
  font-size: 3.5rem;
  color: rgba(56,189,248,0.35);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(56,189,248,0.25));
}
.nch-ph-update     .nch-placeholder-icon { color: rgba(16,185,129,0.4);  filter: drop-shadow(0 0 20px rgba(16,185,129,0.2)); }
.nch-ph-event      .nch-placeholder-icon { color: rgba(245,158,11,0.4);  filter: drop-shadow(0 0 20px rgba(245,158,11,0.2)); }
.nch-ph-patch_note .nch-placeholder-icon { color: rgba(139,92,246,0.4);  filter: drop-shadow(0 0 20px rgba(139,92,246,0.2)); }

/* Gradient overlay — text appears from bottom */
.nch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.48) 45%, rgb(11,29,52) 100%);
  z-index: 2;
}
.nch-date {
  color: rgba(190, 215, 235, 0.85);
  font-size: 0.72rem;
  text-shadow: 0 0 5px black;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nch-title {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 0 6px black;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.nch:hover .nch-title { color: white; }

/* Legacy art wrapper — hidden */
.hero-art-wrapper { display: none; }

/* ================================================================
   CB CARD (generic)
   ================================================================ */
.cb-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.5rem;
  transition: var(--cb-transition);
}
.cb-card:hover { border-color: var(--cb-border-hover); box-shadow: var(--cb-shadow-blue); }

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-header {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% -20%, rgba(56, 189, 248, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #060d1e 0%, var(--cb-bg) 100%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-title-wrap { position: relative; z-index: 1; }
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  font-family: 'Cinzel', serif;
}
.page-subtitle { color: var(--cb-text-muted); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--cb-primary);
  padding: 0.3rem 0.875rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc {
  font-size: 0.9375rem;
  color: var(--cb-text-muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ================================================================
   FEATURES TABBED SHOWCASE (play-aqua .features style)
   ================================================================ */
.ftab-section {
  height: 700px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.ftab-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(56,189,248,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(99,102,241,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #060d1e 0%, #04070e 100%);
}
.ftab-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.ftab-bg-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(4,7,14,0.7) 100%);
  z-index: 1;
}
.ftab-list {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Content panels */
.ftab-content {
  flex: 1;
  display: none;
  align-items: center;
  min-height: 0;
}
.ftab-content.ftab-active {
  display: flex;
  animation: ftab-in 0.45s ease both;
}
@keyframes ftab-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ftab-content > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}
.ftab-text {
  width: 55%;
  text-align: left;
  animation: ftab-right 0.5s ease both;
}
@keyframes ftab-right {
  from { opacity: 0; transform: translateX(-25px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ftab-text h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(rgb(236, 229, 214), rgb(211, 229, 236));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.ftab-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ftab-text a {
  color: var(--cb-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.ftab-text a:hover { color: white; }
.ftab-text a i { transition: transform 0.35s; }
.ftab-text a:hover i { transform: translateX(4px); }
.ftab-visual {
  width: 42%;
  height: 340px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56,189,248,0.08), inset 0 0 60px rgba(56,189,248,0.04);
  background: linear-gradient(145deg, #060d1e 0%, #091525 60%, rgba(40,105,143,0.18) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ftab-left 0.5s ease both;
}
.ftab-visual::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, rgba(56,189,248,0.04) 55%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: ftab-orb-pulse 3.5s ease-in-out infinite;
}
@keyframes ftab-orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.65; }
  50%       { transform: translate(-50%, -50%) scale(1.35); opacity: 1;    }
}
@keyframes ftab-left {
  from { opacity: 0; transform: translateX(25px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ftab-visual-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ftab-visual-icon {
  font-size: 7.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 50px currentColor);
  opacity: 0.9;
}
/* Nav tabs at bottom */
.ftab-nav {
  flex-shrink: 0;
  height: 100px;
  background: rgba(8, 20, 38, 0.88);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ftab-nav > .container {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 0;
  max-width: 100%;
}
.ftab-nav-list {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftab-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s, background 0.3s;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  padding: 0 1rem;
  text-align: center;
}
.ftab-nav-item:last-child { border-right: none; }
.ftab-nav-item:hover { color: rgba(255, 255, 255, 0.7); background: rgba(255,255,255,0.025); }
.ftab-nav-item.ftab-active { color: white; background: rgba(56, 189, 248, 0.06); }
.ftab-nav-item.ftab-active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cb-primary);
  box-shadow: 0 0 12px var(--cb-primary-glow);
}
.ftab-nav-item > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.ftab-nav-icon { font-size: 1.25rem; }
@media (max-width: 767px) {
  .ftab-section { height: auto; }
  .ftab-content { padding: 3rem 0; }
  .ftab-content > .container { flex-direction: column; gap: 2rem; }
  .ftab-text { width: 100%; }
  .ftab-visual { width: 100%; height: 180px; }
  .ftab-nav { height: auto; }
  .ftab-nav-item { font-size: 0.7rem; padding: 0.75rem 0.25rem; }
  .ftab-nav-icon { font-size: 1rem; }
}

/* ================================================================
   NEWS SECTION — play-aqua style featured layout
   ================================================================ */
.news-section { padding: 5rem 0; background: var(--cb-bg-subtle); }

/* ── Category badges ─────────────────────────────────────────── */
.news-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.news-cat-patch_note { background: rgba(56,189,248,0.12); color: var(--cb-primary);    border: 1px solid rgba(56,189,248,0.25); }
.news-cat-event      { background: rgba(245,158,11,0.12);  color: var(--cb-accent);     border: 1px solid rgba(245,158,11,0.25); }
.news-cat-update     { background: rgba(16,185,129,0.12);  color: #10b981;              border: 1px solid rgba(16,185,129,0.25); }
.news-cat-annonce    { background: rgba(167,139,250,0.12); color: var(--cb-purple);     border: 1px solid rgba(167,139,250,0.25); }

/* ── "NEW" ribbon pill ───────────────────────────────────────── */
.news-ribbon-new {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  background: var(--cb-accent);
  color: #04070e;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.18rem 0.55rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 0 10px var(--cb-accent-glow);
}

/* ── Featured article card ───────────────────────────────────── */
.news-featured {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--cb-transition);
  display: block;
}
.news-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-accent));
  z-index: 1;
}
.news-featured:hover {
  border-color: var(--cb-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 40px rgba(56,189,248,0.12);
}
.news-featured-img {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--cb-bg-panel);
}
.news-featured-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #080f1e 0%, #060d1e 40%, rgba(56,189,248,0.04) 100%);
  position: relative;
}
.news-featured-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.news-featured-placeholder-icon {
  font-size: 4rem;
  color: rgba(56,189,248,0.13);
  position: relative;
  z-index: 1;
}
.news-featured-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.news-featured-body { padding: 1.625rem; }
.news-featured-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  line-height: 1.35;
  margin: 0 0 0.625rem;
  transition: color 0.2s;
}
.news-featured:hover .news-featured-title { color: var(--cb-primary); }
.news-featured-excerpt {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--cb-text-muted);
  margin-top: 0.875rem;
}
.news-meta-sep { opacity: 0.4; }
.news-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cb-primary);
  margin-top: 0.75rem;
  transition: var(--cb-transition);
}
.news-featured:hover .news-read-more { gap: 0.375rem; }

/* ── Small news cards (sidebar list) ────────────────────────── */
.news-small-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 0.875rem;
  transition: var(--cb-transition);
  position: relative;
  overflow: hidden;
  flex: 1;
}
.news-small-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cb-primary);
  opacity: 0;
  transition: var(--cb-transition);
}
.news-small-card:hover {
  border-color: var(--cb-border-hover);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 16px rgba(56,189,248,0.06);
}
.news-small-card:hover::before { opacity: 1; }
.news-small-thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--cb-radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cb-bg-panel) 0%, rgba(56,189,248,0.07) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: rgba(56,189,248,0.2);
}
.news-small-body { min-width: 0; flex: 1; }
.news-small-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  line-height: 1.45;
  margin: 0.3rem 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.news-small-card:hover .news-small-title { color: var(--cb-primary); }
.news-small-meta { font-size: 0.7rem; color: var(--cb-text-muted); }

/* ── Article detail page ─────────────────────────────────────── */
.news-article-banner { border-radius: var(--cb-radius-lg); overflow: hidden; }
.news-article-banner-placeholder {
  height: 240px;
  border-radius: var(--cb-radius-lg);
  background: linear-gradient(135deg, var(--cb-bg-panel) 0%, rgba(56,189,248,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(56,189,248,0.15);
  border: 1px solid var(--cb-border);
}
.news-article-body { padding: 2rem; }
.news-article-content {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--cb-text);
}
.news-article-content h3,
.news-article-content h4 { color: white; margin: 1.5rem 0 0.75rem; }
.news-article-content p  { margin-bottom: 1rem; }
.news-article-content p:has(> br:only-child) { min-height: 1.85em; margin-bottom: 1rem; }
.news-article-content p.news-empty-line { display: block; height: 1.85em; min-height: 1.85em; margin: 0; line-height: 1; }
.news-article-content a  { color: var(--cb-primary); }
.news-article-content img { max-width: 100%; height: auto; border-radius: var(--cb-radius-sm); margin: 0.5rem 0; }
.news-article-content pre { background: rgba(0,0,0,0.24); border: 1px solid var(--cb-border); border-radius: var(--cb-radius-sm); color: var(--cb-text); padding: 1rem; white-space: pre-wrap; }
.news-article-content .ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.news-article-content .ql-font-monospace { font-family: 'Courier New', monospace; }
.news-article-content blockquote {
  border-left: 3px solid var(--cb-primary);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: var(--cb-text-muted);
  background: rgba(56,189,248,0.04);
  border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
}
.news-article-content ul, .news-article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.news-article-content li { margin-bottom: 0.375rem; }

/* Keep old card classes for backward compat */
.news-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
  height: 100%;
  transition: var(--cb-transition);
}
.news-card:hover {
  border-color: var(--cb-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.6), 0 0 20px rgba(56,189,248,0.12);
}
.news-card-img { height: 140px; overflow: hidden; background: var(--cb-bg-panel); }
.news-placeholder-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: rgba(56, 189, 248, 0.2);
  background: linear-gradient(135deg, var(--cb-bg-panel) 0%, rgba(56,189,248,0.04) 100%);
}
.news-card-body { padding: 1.125rem; }
.news-meta { display: flex; flex-wrap: wrap; font-size: 0.75rem; color: var(--cb-text-muted); }
.news-date, .news-author { display: flex; align-items: center; }
.news-title { font-size: 0.9375rem; font-weight: 700; color: white; margin: 0 0 0.5rem; line-height: 1.4; }
.news-excerpt { font-size: 0.8125rem; color: var(--cb-text-muted); line-height: 1.6; margin: 0; }

/* ================================================================
   RANKING PREVIEW + PAGINATION
   ================================================================ */
.ranking-preview-section { padding: 5rem 0; }
.ranking-preview-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { padding: 5rem 0; }
.cta-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 2.25rem 2rem;
  height: 100%;
  transition: var(--cb-transition);
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.05);
  pointer-events: none;
}
.cta-card:hover { border-color: var(--cb-border-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(56,189,248,0.1); }
.cta-vote::after  { background: rgba(56, 189, 248, 0.06); }
.cta-shop::after  { background: rgba(245, 158, 11, 0.05); }
.cta-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px var(--cb-primary-glow));
}
.cta-vote .cta-icon  { color: var(--cb-primary); }
.cta-shop .cta-icon  { color: var(--cb-accent); }
.cta-title { font-size: 1.25rem; font-weight: 800; color: white; margin-bottom: 0.625rem; }
.cta-desc { font-size: 0.875rem; color: var(--cb-text-muted); line-height: 1.65; margin-bottom: 0; }

/* ================================================================
   PLAY CTA SECTION (play-aqua .play_section style)
   ================================================================ */
.play-cta {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 90% 50%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
    linear-gradient(105deg, #04070e 0%, #04070e 40%, #0d0a04 70%, #1a0f03 100%);
}
.play-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,158,11,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.play-cta::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 65%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.play-cta .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.play-cta-body {
  width: 50%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.play-cta-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(rgb(236, 229, 214), rgb(236, 225, 211));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.play-cta-sub {
  color: rgba(255, 255, 255, 0.52);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.play-cta-btn {
  width: 100%;
  max-width: 400px;
  height: 80px;
  background: var(--cb-accent);
  border: 1px solid rgba(245, 158, 11, 0.65);
  border-radius: 8px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
  transition: box-shadow 0.4s, color 0.2s;
}
.play-cta-btn:hover {
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 45px rgba(245, 158, 11, 0.55);
}
.play-cta-btn::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 100%;
  top: 0; left: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: 0.4s;
  pointer-events: none;
}
.play-cta-btn:hover::before { width: 100%; }
.play-cta-btn > span { position: relative; z-index: 1; }
.play-cta-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
}
.play-cta-link {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}
.play-cta-link:hover { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
@media (max-width: 991px) {
  .play-cta { height: auto; padding: 5rem 0; }
  .play-cta .container { justify-content: center; }
  .play-cta-body { width: 100%; }
}

/* ================================================================
   TABLE
   ================================================================ */
.cb-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cb-table thead th {
  background: rgba(4, 7, 14, 0.7);
  border-bottom: 1px solid var(--cb-border);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-text-muted);
  white-space: nowrap;
}
.cb-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.05);
  color: var(--cb-text);
  vertical-align: middle;
}
.cb-table tbody tr:last-child td { border-bottom: none; }
.cb-table tbody tr:hover td { background: rgba(56, 189, 248, 0.04); }

/* Row highlights */
.rank-gold   td { background: linear-gradient(90deg, rgba(245,158,11,0.14), rgba(245,158,11,0.03)) !important; border-left: 2px solid rgba(245,158,11,0.5); }
.rank-silver td { background: linear-gradient(90deg, rgba(148,163,184,0.12), rgba(148,163,184,0.02)) !important; border-left: 2px solid rgba(148,163,184,0.4); }
.rank-bronze td { background: linear-gradient(90deg, rgba(180,120,60,0.12), rgba(180,120,60,0.02)) !important; border-left: 2px solid rgba(180,120,60,0.4); }
.ranking-silver { color: #94a3b8 !important; }
.ranking-bronze { color: #b47c3c !important; }

/* Badges */
.cb-badge-class  { background: rgba(56,189,248,0.08); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.2); border-radius: 50px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.cb-badge-level  { background: rgba(245,158,11,0.1); color: var(--cb-accent); border: 1px solid rgba(245,158,11,0.2); border-radius: 50px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.cb-badge-points { background: rgba(56,189,248,0.08); color: var(--cb-primary); border: 1px solid var(--cb-border); border-radius: 50px; padding: 0.2rem 0.7rem; font-size: 0.8rem; font-weight: 700; display: inline-block; }
.glow-gold  { color: var(--cb-accent); text-shadow: 0 0 10px var(--cb-accent-glow); }
.glow-silver{ color: #94a3b8; }
.glow-bronze{ color: #b47c3c; }

/* Pagination */
.cb-pagination { display: flex; justify-content: center; gap: 0.35rem; flex-wrap: wrap; }
.cb-page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  color: var(--cb-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--cb-transition);
  cursor: pointer;
  text-decoration: none;
}
.cb-page-btn:hover { border-color: var(--cb-primary); color: white; background: rgba(56,189,248,0.1); }
.cb-page-btn.active { background: var(--cb-primary); border-color: var(--cb-primary); color: #04070e; font-weight: 800; box-shadow: 0 0 14px var(--cb-primary-glow); }

/* ================================================================
   VOTE PAGE
   ================================================================ */
.vote-site-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.5rem;
  height: 100%;
  transition: var(--cb-transition);
  display: flex;
  flex-direction: column;
}
.vote-site-card:hover { border-color: var(--cb-border-hover); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 20px rgba(56,189,248,0.1); }
.vote-site-name { font-size: 1.0625rem; font-weight: 800; color: white; margin-bottom: 0.25rem; }
.vote-site-desc { font-size: 0.8125rem; color: var(--cb-text-muted); flex: 1; line-height: 1.6; }
.vote-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--cb-accent);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.75rem 0;
}
.btn-vote-action {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.btn-vote-action:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,197,94,0.4); color: white; }
.btn-voted { background: var(--cb-bg-panel) !important; color: var(--cb-text-muted) !important; border: 1px solid var(--cb-border) !important; cursor: not-allowed !important; transform: none !important; }
.vote-cooldown { font-size: 0.75rem; color: var(--cb-text-muted); }

/* ================================================================
   SHOP PAGE
   ================================================================ */
.shop-hero { padding: 5rem 0 3.5rem; }
.shop-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.shop-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: var(--cb-transition);
  position: relative;
  overflow: hidden;
}
.shop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cb-primary), transparent);
  opacity: 0;
  transition: var(--cb-transition);
}
.shop-card:hover { border-color: var(--cb-border-hover); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.6), 0 0 24px rgba(56,189,248,0.12); }
.shop-card:hover::before { opacity: 1; }
.shop-card-featured {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, var(--cb-bg-card) 0%, rgba(245,158,11,0.04) 100%);
}
.shop-card-featured::before { background: linear-gradient(90deg, transparent, var(--cb-accent), transparent); opacity: 1; }
.shop-pack-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.shop-pack-name { font-size: 1.0625rem; font-weight: 800; color: white; margin: 0 0 0.5rem; }
.shop-pack-credits {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--cb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.shop-price { font-size: 0.875rem; color: var(--cb-text-muted); margin-bottom: 1.25rem; }
.shop-price strong { color: white; font-size: 1.25rem; }
.shop-badge-popular {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--cb-accent);
  color: #04070e;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Shop buttons */
.cb-btn-shop  {
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
}
.cb-btn-shop:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px var(--cb-primary-glow); color: #04070e; }
.cb-btn-shop-gold {
  background: linear-gradient(135deg, var(--cb-accent) 0%, #d97706 100%);
  color: #04070e;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
}
.cb-btn-shop-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--cb-accent-glow); color: #04070e; }

/* Credits display */
.shop-credits-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cb-accent);
}

/* Accordion */
.cb-accordion-item {
  margin-bottom: 0.5rem;
  border-radius: var(--cb-radius-sm);
  overflow: hidden;
}
.cb-accordion-btn {
  background: var(--cb-bg-card) !important;
  color: var(--cb-text) !important;
  font-weight: 600 !important;
  font-size: 0.9rem;
  border: 1px solid var(--cb-border) !important;
}
.cb-accordion-btn:not(.collapsed) { color: var(--cb-primary) !important; border-color: rgba(56,189,248,0.3) !important; }
.cb-accordion-btn:focus { box-shadow: none !important; }

/* ================================================================
   MEMBER DASHBOARD
   ================================================================ */
.member-main { background: var(--cb-bg); min-height: calc(100vh - 70px); }
.member-header { padding: 2rem 0; }
.member-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: white; margin: 0 0 0.25rem; font-family: 'Cinzel', serif; }
.member-subtitle { color: var(--cb-text-muted); font-size: 0.9rem; }

.member-stat-card {
  background: var(--cb-bg-card);
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--cb-transition);
}
.member-stat-card:hover { border-color: var(--cb-border-hover); box-shadow: var(--cb-shadow-blue); transform: translateY(-2px); }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--cb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon-blue   { background: rgba(56, 189, 248, 0.1);  color: var(--cb-primary); }
.stat-icon-green  { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.stat-icon-orange { background: rgba(249, 115, 22, 0.1);  color: #fb923c; }
.stat-icon-purple { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }
.stat-value { display: block; font-size: 1.375rem; font-weight: 800; color: white; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--cb-text-muted); font-weight: 500; }

.member-card {
  background: var(--cb-bg-card);
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  overflow: hidden;
}
.member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--cb-border);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  background: rgba(56, 189, 248, 0.03);
}
.member-card-body { padding: 1.25rem; }

.account-info-list { display: flex; flex-direction: column; gap: 0.75rem; }
.account-info-item { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(56,189,248,0.06); }
.account-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-size: 0.8125rem; color: var(--cb-text-muted); display: flex; align-items: center; }
.info-value { font-size: 0.875rem; font-weight: 600; color: var(--cb-text); }

.quick-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-nav-item {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  transition: var(--cb-transition);
  text-decoration: none;
}
.quick-nav-item i { font-size: 1.4rem; }
.quick-nav-item:hover { border-color: rgba(56,189,248,0.35); color: var(--cb-primary); background: rgba(56,189,248,0.08); transform: translateY(-2px); box-shadow: 0 0 12px rgba(56,189,248,0.15); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; font-size: 2rem; color: var(--cb-text-muted); }

.cb-badge-admin { background: rgba(244,63,94,0.1); color: #fb7185; border: 1px solid rgba(244,63,94,0.2); font-size: 0.8rem; border-radius: 50px; padding: 0.15rem 0.6rem; }
.cb-badge-user  { background: rgba(56,189,248,0.08); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.2); font-size: 0.8rem; border-radius: 50px; padding: 0.15rem 0.6rem; }
.cb-link-sm { font-size: 0.8125rem; color: var(--cb-primary); font-weight: 600; text-decoration: none; }
.cb-link-sm:hover { text-decoration: underline; }

/* ================================================================
   AUTH MODAL
   ================================================================ */
.cb-auth-modal .modal-dialog { max-width: 500px; }
.cb-auth-content {
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  background: var(--cb-bg-panel);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(56,189,248,0.06);
}
.cb-auth-header { padding: 1.5rem 1.5rem 0; background: transparent; }
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(0,0,0,0.3);
  border-radius: var(--cb-radius-sm);
  padding: 0.2rem;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--cb-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-tab-btn:hover { color: var(--cb-primary); background: rgba(56,189,248,0.06); }
.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56,189,248,0.3);
}
.cb-modal-close { opacity: 0.35; transition: var(--cb-transition); filter: invert(1); }
.cb-modal-close:hover { opacity: 0.9; }
.auth-welcome { padding-top: 1.25rem; }
.auth-title { font-size: 1.375rem; font-weight: 800; color: white; margin: 0 0 0.25rem; }
.auth-subtitle { font-size: 0.875rem; color: var(--cb-text-muted); margin: 0; }
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }
.cb-form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cb-text);
  display: flex;
  align-items: center;
  margin-bottom: 0.375rem;
}
.cb-input {
  border-radius: var(--cb-radius-sm) !important;
  border: 1.5px solid rgba(56,189,248,0.15) !important;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.9rem !important;
  transition: var(--cb-transition) !important;
  background: rgba(4,7,14,0.7) !important;
  color: var(--cb-text) !important;
}
.cb-input::placeholder { color: rgba(94, 125, 154, 0.6) !important; }
.cb-input:focus {
  border-color: var(--cb-primary) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12) !important;
  background: rgba(4,7,14,0.9) !important;
  color: white !important;
}
.cb-form-hint { font-size: 0.75rem; color: var(--cb-text-muted); margin-top: 0.25rem; }
.input-pwd-wrapper { position: relative; }
.input-pwd-wrapper .cb-input { padding-right: 2.75rem !important; }
.pwd-toggle {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--cb-text-muted);
  cursor: pointer; padding: 0;
  font-size: 0.875rem;
  transition: var(--cb-transition);
}
.pwd-toggle:hover { color: var(--cb-primary); }
.pwd-strength-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease, background 0.3s ease; width: 0; }
.pwd-strength-label { font-size: 0.75rem; color: var(--cb-text-muted); }

.cb-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cb-captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.cb-captcha-image {
  width: 180px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.28);
  background: rgba(6,15,28,0.85);
}

.cb-captcha-refresh {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.12);
  color: var(--cb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-captcha-refresh:hover {
  background: rgba(56,189,248,0.2);
  color: #fff;
}

.cb-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--cb-text);
  font-size: 0.82rem;
}

.cb-terms-check .form-check-input {
  margin-top: 0.15rem;
}

.cb-terms-check a {
  color: var(--cb-primary);
  font-weight: 700;
  text-decoration: underline;
}
.auth-switch-text { font-size: 0.875rem; color: var(--cb-text-muted); }
.auth-switch-link { color: var(--cb-primary); font-weight: 600; cursor: pointer; }
.auth-switch-link:hover { text-decoration: underline; }

/* ================================================================
   ALERTS
   ================================================================ */
.cb-alert-wrapper {
  position: fixed;
  top: 80px; right: 1.5rem;
  z-index: 1060;
  max-width: 420px;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cb-alert {
  border-radius: var(--cb-radius) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--cb-bg-panel) !important;
  border: 1px solid rgba(56,189,248,0.2) !important;
  color: var(--cb-text) !important;
}
.cb-alert-info {
  background: rgba(56, 189, 248, 0.07) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: var(--cb-primary) !important;
  border-radius: var(--cb-radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

/* ================================================================
   DISCORD SECTION
   ================================================================ */
.discord-section {
  position: relative;
  background: linear-gradient(135deg, #3333c4 0%, #5865F2 50%, #2831a0 100%);
  overflow: hidden;
}
.discord-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.discord-cta-box { padding: 4rem 1rem; position: relative; }
.discord-icon { font-size: 3.5rem; color: white; opacity: 0.95; margin-bottom: 1rem; display: block; filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
.discord-title { color: white; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.03em; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.discord-desc { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cb-btn-discord {
  background: white;
  color: #5865F2;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 800;
  border: none;
  display: inline-flex;
  align-items: center;
  transition: var(--cb-transition);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.cb-btn-discord:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); color: #4752C4; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #0b1526 0%, #080f1e 100%);
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: var(--cb-transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: var(--cb-transition);
  pointer-events: none;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cb-shadow-blue);
  border-color: var(--cb-border-hover);
}
.contact-card:hover::before { opacity: 1; }
.contact-card-discord { border-color: rgba(88, 101, 242, 0.25); }
.contact-card-discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 8px 30px rgba(88,101,242,0.2); }
.contact-card-discord::before { background: radial-gradient(circle at 50% 0%, rgba(88,101,242,0.18) 0%, transparent 60%); }
.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
  display: block;
  color: var(--cb-primary);
  transition: var(--cb-transition);
  position: relative;
  z-index: 1;
}
.contact-card:hover .contact-icon { transform: scale(1.15) rotate(-6deg); }
.contact-card-discord .contact-icon { color: #7289da; filter: drop-shadow(0 0 8px rgba(88,101,242,0.5)); }
.contact-card h5 { color: #ffffff; font-weight: 700; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.contact-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  flex: 1 1 auto;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.contact-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ================================================================
   FEATURES PAGE
   ================================================================ */
.features-page { padding: 6rem 0 4.5rem; }
.features-hero { text-align: center; max-width: 760px; margin: 0 auto 2.25rem; }
.features-eyebrow {
  display: inline-block;
  color: var(--cb-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.features-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .9rem;
}
.features-hero p { color: rgba(255,255,255,.66); font-size: 1rem; margin: 0 auto; max-width: 620px; }

.features-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.features-chip {
  border: 1px solid var(--cb-border);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.65);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.features-chip:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.4); color: #fff; background: rgba(56,189,248,.08); }
.features-chip.is-active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  color: #1a1103;
  box-shadow: 0 8px 22px rgba(245,158,11,.28);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cb-border);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  animation: featureCardIn .5s ease both;
  animation-delay: var(--delay, 0ms);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card.is-hidden { display: none; }
.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56,189,248,.4);
  box-shadow: 0 22px 46px rgba(0,0,0,.4), 0 0 28px rgba(56,189,248,.12);
}
.feature-card-media { position: relative; height: 190px; overflow: hidden; background: #0b1526; }
.feature-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .4s ease; }
.feature-card:hover .feature-card-media img { transform: scale(1.08); filter: brightness(1.05); }
.feature-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 2rem; }
.feature-card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,12,24,.92) 0%, rgba(6,12,24,0) 55%);
  pointer-events: none;
}
.feature-card-cat {
  position: absolute;
  left: .85rem;
  bottom: .75rem;
  z-index: 1;
  color: var(--cb-accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feature-card-body { padding: 1.15rem 1.25rem 1.35rem; }
.feature-card-body h3 { color: #fff; font-style: italic; font-size: 1.08rem; font-weight: 700; margin-bottom: .55rem; }
.feature-card-body p { color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.55; margin-bottom: 1rem; min-height: 3.3em; }
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--cb-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.feature-card-link i { transition: transform .22s ease; }
.feature-card-link:hover { color: #fde68a; gap: .65rem; }
.feature-card-link:hover i { transform: translateX(3px); }
.feature-card-link-static { cursor: default; opacity: .85; }

.features-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(56,189,248,.22);
  border-radius: 14px;
  background: rgba(56,189,248,.04);
  color: var(--cb-text-muted);
}
.features-empty i { font-size: 2.2rem; color: var(--cb-primary); margin-bottom: .6rem; }
.features-empty strong { display: block; color: #fff; margin-bottom: .2rem; }

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

@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-page { padding-top: 4.5rem; }
}

/* Admin — Features */
.feature-admin-list { display: grid; gap: 1rem; }
.feature-admin-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--cb-border); flex-shrink: 0; }

.feature-add-panel { padding: 0; }
.feature-add-summary { cursor: pointer; list-style: none; display: flex; align-items: center; }
.feature-add-summary::-webkit-details-marker { display: none; }
.feature-add-caret { margin-left: auto; transition: transform .2s ease; }
.feature-add-panel[open] .feature-add-caret { transform: rotate(180deg); }

.feature-image-picker { display: flex; gap: .85rem; align-items: flex-start; }
.feature-image-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--cb-border);
  background: rgba(4,14,30,.55);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  color: rgba(255,255,255,.25);
  font-size: 1.4rem;
}
.feature-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feature-table { display: flex; flex-direction: column; }
.feature-row { border-top: 1px solid var(--cb-border); }
.feature-row:first-child { border-top: none; }
.feature-row-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.25rem;
  transition: background .18s ease;
}
.feature-row-summary::-webkit-details-marker { display: none; }
.feature-row-summary:hover { background: rgba(56,189,248,.05); }
.feature-row-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4,14,30,.55);
  border: 1px solid var(--cb-border);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.feature-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.feature-row-info strong { color: #fff; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-row-cat { color: var(--cb-text-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.feature-row-order { color: var(--cb-text-muted); font-size: .78rem; font-weight: 700; }
.feature-row-caret { color: var(--cb-text-muted); transition: transform .2s ease; }
.feature-row[open] .feature-row-caret { transform: rotate(180deg); }
.feature-row-body { padding: .25rem 1.25rem 1.25rem; }
.feature-row-actions { border-top: 1px dashed var(--cb-border); }

@media (max-width: 640px) {
  .feature-row-summary { flex-wrap: wrap; }
  .feature-row-order { order: 5; }
}

/* Feature detail popup */
.feature-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2,5,12,0.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.feature-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.feature-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(170deg, rgba(13,22,40,.98), rgba(7,12,24,.98));
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 40px rgba(56,189,248,.12);
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.feature-modal-overlay.is-open .feature-modal { transform: translateY(0) scale(1); opacity: 1; }
.feature-modal-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(4,10,22,.65);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.feature-modal-close:hover { background: rgba(56,189,248,.22); transform: rotate(90deg); }
.feature-modal-media { height: 260px; background: #0b1526; }
.feature-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-modal-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 2.5rem; }
.feature-modal-body { padding: 1.5rem 1.6rem 1.75rem; }
.feature-modal-cat { display: inline-block; color: var(--cb-accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.feature-modal-body h3 { color: #fff; font-style: italic; font-size: 1.35rem; font-weight: 800; margin-bottom: .8rem; }
.feature-modal-body p { color: rgba(255,255,255,.75); font-size: .94rem; line-height: 1.7; margin-bottom: 1.1rem; }
.feature-modal-description { color: rgba(255,255,255,.75); font-size: .94rem; line-height: 1.7; white-space: pre-line; margin-bottom: 1.1rem; }
.feature-modal-description p { margin: 0 0 .65em; }
.feature-modal-description p:last-child { margin-bottom: 0; }
.feature-modal-description h3, .feature-modal-description h4 { color: #fff; margin: .8em 0 .35em; font-size: 1.05rem; font-weight: 800; }
.feature-modal-description h4 { font-size: .95rem; }
.feature-modal-description ul, .feature-modal-description ol { padding-left: 1.25rem; margin: .4em 0 .7em; }
.feature-modal-description li { margin-bottom: .25em; }
.feature-modal-description a { color: #67e8f9; text-decoration: underline; }
.feature-modal-description strong, .feature-modal-description b { color: #fff; }
.feature-modal-description code { background: rgba(56,189,248,.14); padding: .1em .4em; border-radius: 4px; font-size: .88em; }
.feature-modal-description blockquote { border-left: 3px solid #38bdf8; margin: .6em 0; padding: .2em .9em; color: rgba(255,255,255,.6); }
.feature-modal-visit {
  display: none;
  align-items: center;
  gap: .5rem;
  color: #04070e;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  font-weight: 800;
  font-size: .85rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-modal-visit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(56,189,248,.3); color: #04070e; }
.feature-open-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }

/* ================================================================
   SUPPORT
   ================================================================ */
.support-hero {
  padding: 5.5rem 0 1.25rem;
}
.support-hero-shell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 280px;
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 18px;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  background:
    linear-gradient(120deg, rgba(7,18,34,.96), rgba(8,30,46,.9) 52%, rgba(12,18,34,.96)),
    radial-gradient(70% 100% at 78% 0%, rgba(245,158,11,.18), transparent 62%);
  box-shadow: var(--cb-shadow), inset 0 0 42px rgba(56,189,248,.08);
}
.support-hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 88%);
  pointer-events: none;
}
.support-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
  animation: supportFloat 6s ease-in-out infinite;
}
.support-hero-glow-a { width: 230px; height: 230px; right: -60px; top: -70px; background: rgba(56,189,248,.28); }
.support-hero-glow-b { width: 170px; height: 170px; left: 28%; bottom: -75px; background: rgba(245,158,11,.2); animation-delay: -2s; }
.support-hero-copy, .support-hero-stats { position: relative; z-index: 1; }
.support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #8ee8ff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.support-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: .98;
  font-weight: 900;
  margin: 0 0 .9rem;
}
.support-hero p {
  max-width: 620px;
  color: rgba(214,236,255,.78);
  font-size: 1rem;
  margin: 0;
}
.support-hero-stats { display: grid; grid-template-columns: repeat(3, 92px); gap: .7rem; }
.support-stat-pill {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(2,10,23,.48);
  padding: .8rem .7rem;
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.support-stat-pill:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.09); }
.support-stat-pill strong { display: block; color: #fff; font-size: 1.45rem; line-height: 1; }
.support-stat-pill span { color: var(--cb-text-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.support-page { padding: 1.4rem 0 4rem; }
.support-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.support-flow-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  padding: .75rem .85rem;
  color: rgba(235,247,255,.86);
  font-weight: 800;
  font-size: .82rem;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.support-flow-card i { color: var(--cb-primary); font-size: 1.05rem; }
.support-flow-card:hover { transform: translateY(-3px); border-color: rgba(56,189,248,.34); background: rgba(56,189,248,.075); }
.support-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(11,21,38,.96) 0%, rgba(8,15,30,.98) 100%);
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.support-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, rgba(56,189,248,.13), transparent 45%);
  opacity: .7;
  pointer-events: none;
}
.support-panel:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.28); box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 28px rgba(56,189,248,.08); }
.support-panel > * { position: relative; z-index: 1; }
.support-panel-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.support-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #06101d;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  box-shadow: 0 0 22px rgba(56,189,248,.25);
}
.support-panel h2 { color: #fff; font-size: 1.2rem; font-weight: 850; margin: 0; }
.support-form label, .support-admin-form label { color: var(--cb-text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; margin-top: 0.9rem; margin-bottom: 0.35rem; }
.support-field { margin-bottom: .85rem; }
.support-input {
  background: rgba(2,10,23,.52) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-radius: 10px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.support-input:focus {
  background: rgba(2,10,23,.74) !important;
  border-color: rgba(56,189,248,.45) !important;
  box-shadow: 0 0 0 .18rem rgba(56,189,248,.12), 0 0 22px rgba(56,189,248,.08) !important;
  transform: translateY(-1px);
}
.support-input::placeholder { color: rgba(255,255,255,.35); }
.support-dropzone {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: .95rem !important;
  padding: .95rem;
  border: 1px dashed rgba(56,189,248,.35);
  border-radius: 12px;
  background: rgba(56,189,248,.045);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.support-dropzone:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.62); background: rgba(56,189,248,.09); }
.support-dropzone input { display: none; }
.support-drop-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(56,189,248,.12); color: var(--cb-primary); font-size: 1.25rem; }
.support-dropzone strong { display: block; color: #fff; font-size: .88rem; }
.support-dropzone small { display: block; color: var(--cb-text-muted); font-size: .74rem; text-transform: none; letter-spacing: 0; margin-top: .15rem; }
.support-submit {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 10px;
  padding: .85rem 1rem;
  color: #03101d;
  font-weight: 900;
  background: linear-gradient(135deg, #67e8f9, #38bdf8 55%, #fbbf24);
  box-shadow: 0 12px 28px rgba(56,189,248,.22);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.support-submit:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(56,189,248,.32); filter: saturate(1.08); }
.support-ticket-list, .support-admin-list { display: grid; gap: 1rem; }
.support-ticket-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(4,14,30,.58);
  animation: supportTicketIn .38s ease both;
  animation-delay: var(--delay, 0ms);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.support-ticket-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #38bdf8, #fbbf24);
  opacity: .9;
}
.support-ticket-card:hover { transform: translateX(4px) translateY(-3px); border-color: rgba(56,189,248,.32); background: rgba(7,22,39,.78); box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 24px rgba(56,189,248,.08); }
.support-ticket-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.support-ticket-card h3 { color: #fff; font-size: 1.04rem; margin: 0.2rem 0 0.75rem; }
.support-ticket-card p, .support-message-admin { color: rgba(255,255,255,.78); font-size: .92rem; }
.support-ticket-message { max-height: 138px; overflow: auto; padding-right: .25rem; }
.support-kicker { color: var(--cb-primary); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.support-meta { color: var(--cb-text-muted); font-size: .78rem; margin-top: .75rem; }
.support-status { display: inline-flex; align-items: center; height: 26px; padding: 0 .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; transition: transform .2s ease; }
.support-ticket-card:hover .support-status { transform: scale(1.04); }
.support-status-open { background: rgba(56,189,248,.12); color: #38bdf8; border: 1px solid rgba(56,189,248,.28); }
.support-status-pending { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.28); }
.support-status-closed { background: rgba(16,185,129,.12); color: #10b981; border: 1px solid rgba(16,185,129,.28); }
.support-ticket-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; color: var(--cb-text-muted); font-size: .8rem; }
.support-ticket-actions span { display: inline-flex; align-items: center; gap: .35rem; }
.support-attachment { display: inline-flex; align-items: center; gap: .4rem; color: var(--cb-primary); font-weight: 800; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.support-attachment:hover { color: #fff; transform: translateX(2px); }
.support-admin-note { display: flex; gap: .7rem; margin-top: .85rem; padding: .85rem; border-radius: 10px; background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.16); color: rgba(255,255,255,.82); }
.support-admin-note > i { color: var(--cb-primary); font-size: 1.05rem; }
.support-empty { min-height: 280px; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(56,189,248,.22); border-radius: 14px; background: rgba(56,189,248,.04); color: var(--cb-text-muted); }
.support-empty i { font-size: 2.3rem; color: var(--cb-primary); margin-bottom: .65rem; }
.support-empty strong { display: block; color: #fff; margin-bottom: .25rem; }
.support-snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.support-snapshot-box { border: 1px solid var(--cb-border); border-radius: 10px; padding: .9rem; background: rgba(4,14,30,.55); }
.support-snapshot-wide { grid-column: 1 / -1; }
.support-snapshot-box h4 { color: #fff; font-size: .88rem; font-weight: 800; margin-bottom: .65rem; }
.support-snapshot-box ul { margin: 0; padding-left: 1rem; color: rgba(255,255,255,.76); font-size: .84rem; }
.support-snapshot-box li + li { margin-top: .35rem; }
.support-char-group + .support-char-group { margin-top: .65rem; }
.support-char-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.support-char-list span { border: 1px solid rgba(56,189,248,.18); background: rgba(56,189,248,.06); color: rgba(255,255,255,.82); border-radius: 999px; padding: .25rem .55rem; font-size: .78rem; }

/* ================================================================
   SUPPORT FERMÉ — REDIRECTION DISCORD
   ================================================================ */
.support-hero-shell-closed {
  border-color: rgba(88,101,242,.45);
  background:
    linear-gradient(120deg, rgba(7,18,34,.96), rgba(12,16,44,.92) 52%, rgba(8,14,30,.96)),
    radial-gradient(70% 100% at 78% 0%, rgba(88,101,242,.24), transparent 62%);
  box-shadow: var(--cb-shadow), inset 0 0 42px rgba(88,101,242,.12);
}
.support-hero-closed .support-hero-glow-a { background: rgba(88,101,242,.38); }
.support-hero-closed .support-hero-glow-b { background: rgba(88,101,242,.22); }
.support-hero-closed .support-eyebrow { color: #aab8ff; }
.support-stat-pill-closed { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }
.support-stat-pill-closed strong { font-size: 1.5rem; color: #fcd34d; }
.support-closed-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(88,101,242,.28);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1rem, 3vw, 3rem);
  background:
    radial-gradient(85% 130% at 50% -20%, rgba(88,101,242,.26), transparent 60%),
    linear-gradient(160deg, rgba(7,18,34,.97), rgba(10,16,38,.97) 55%, rgba(8,14,30,.97));
  box-shadow: var(--cb-shadow), inset 0 0 48px rgba(88,101,242,.1);
  margin-bottom: 2rem;
}
.support-closed-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.support-closed-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.1);
  color: #fcd34d;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .45rem .9rem;
  margin-bottom: 1.4rem;
}
.support-discord-orb {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.6rem;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  box-shadow: 0 14px 40px rgba(88,101,242,.45);
  animation: supportOrbPulse 3.2s ease-in-out infinite;
}
.support-closed-title { position: relative; color: #fff; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 0 0 .6rem; }
.support-closed-sub { position: relative; max-width: 640px; margin: 0 auto 1.9rem; color: rgba(214,236,255,.78); font-size: 1rem; }
.support-discord-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.6rem 1rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 38px rgba(88,101,242,.5);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  animation: supportCtaPulse 2.6s ease-in-out infinite;
}
.support-discord-cta > i:first-child { font-size: 2rem; line-height: 1; }
.support-discord-cta strong { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1.15; }
.support-discord-cta small { display: block; font-size: .75rem; opacity: .85; font-weight: 600; }
.support-discord-cta-arrow { font-size: .95rem; opacity: .75; }
.support-discord-cta:hover, .support-discord-cta:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 52px rgba(88,101,242,.65);
  color: #fff;
  filter: brightness(1.06);
}
@keyframes supportCtaPulse {
  0%, 100% { box-shadow: 0 12px 38px rgba(88,101,242,.5), 0 0 0 0 rgba(88,101,242,.4); }
  50% { box-shadow: 0 12px 38px rgba(88,101,242,.5), 0 0 0 14px rgba(88,101,242,0); }
}
@keyframes supportOrbPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.support-discord-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; text-align: left; margin-top: 2.2rem; }
.support-discord-step {
  position: relative;
  border: 1px solid rgba(88,101,242,.22);
  background: rgba(2,10,23,.55);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  transition: transform .22s ease, border-color .22s ease;
}
.support-discord-step:hover { transform: translateY(-3px); border-color: rgba(88,101,242,.5); }
.support-discord-step-num {
  position: absolute;
  left: 1.05rem;
  top: 1.15rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
}
.support-discord-step h4 { color: #fff; font-size: .95rem; font-weight: 800; margin: 0 0 .35rem; }
.support-discord-step h4 i { color: #8ea1ff; margin-right: .3rem; }
.support-discord-step p { color: rgba(214,236,255,.7); font-size: .86rem; margin: 0; }
.support-discord-step a, .support-closed-hint { color: #aab8ff; }
.support-discord-step a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.support-closed-hint { position: relative; margin: 1.6rem 0 0; font-size: .84rem; }
.support-closed-hint i { margin-right: .35rem; color: #8ea1ff; }
@media (max-width: 768px) {
  .support-discord-steps { grid-template-columns: 1fr; }
  .support-discord-cta { width: 100%; justify-content: center; }
  .support-discord-cta strong { font-size: 1.05rem; }
}

@media (max-width: 768px) {
  .support-hero { padding-top: 4.2rem; }
  .support-hero-shell { min-height: auto; align-items: flex-start; flex-direction: column; }
  .support-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .support-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-snapshot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .support-flow { grid-template-columns: 1fr; }
  .support-hero-stats { grid-template-columns: 1fr; }
}

@keyframes supportFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-12px,0); }
}

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

/* ================================================================
   VOTE — VALIDATION OTP (captcha retour de vote)
   ================================================================ */
.vt-otp-confirm {
  background: linear-gradient(160deg, rgba(245,158,11,.12) 0%, #080f1e 60%);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: var(--cb-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}
.vt-otp-confirm-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.vt-otp-icon { font-size: 1.75rem; color: #fbbf24; flex-shrink: 0; }
.vt-otp-confirm-head h5 { color: #fff; font-weight: 700; margin-bottom: .25rem; }
.vt-otp-confirm-head p { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }
.vt-otp-confirm-form { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.vt-otp-captcha-box { display: flex; align-items: center; gap: .5rem; }
.vt-otp-captcha-image { border-radius: 8px; border: 1px solid var(--cb-border); display: block; }
.vt-otp-captcha-refresh {
  background: rgba(255,255,255,.06); border: 1px solid var(--cb-border); color: #fff;
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: var(--cb-transition);
}
.vt-otp-captcha-refresh:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.vt-otp-confirm-form input[name="otp_captcha"] { max-width: 220px; }
.vt-otp-waiting-state { display: flex; align-items: flex-start; gap: 1rem; }
.vt-otp-confirm--waiting .vt-otp-icon { animation: vtOtpPulse 1.6s ease-in-out infinite; }
@keyframes vtOtpPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.12); }
}

/* ================================================================
   VOTE — PALIERS OGRINES (progression animée + VIP)
   ================================================================ */
.vt-tiers {
  background: linear-gradient(160deg, #0b1526 0%, #080f1e 100%);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.vt-tiers-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.vt-tiers-head h5 { color: #fff; font-weight: 700; margin-bottom: .25rem; }
.vt-tiers-head p { color: rgba(255,255,255,.6); font-size: .875rem; margin: 0; max-width: 560px; }
.vt-vip-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1200; font-weight: 800; font-size: .8rem;
  padding: .4rem .9rem; border-radius: 50px;
  box-shadow: 0 0 18px rgba(245,158,11,.4);
  animation: vtVipPulse 2.4s ease-in-out infinite;
}
@keyframes vtVipPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245,158,11,.35); }
  50%      { box-shadow: 0 0 22px rgba(245,158,11,.6); }
}

.vt-tiers-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.vt-stat {
  background: rgba(255,255,255,.03); border: 1px solid var(--cb-border);
  border-radius: 10px; padding: .9rem 1rem; text-align: center;
}
.vt-stat strong { display: block; color: var(--cb-primary); font-size: 1.4rem; font-weight: 800; }
.vt-stat span { color: rgba(255,255,255,.55); font-size: .78rem; }

.vt-progress-wrap { margin-bottom: 1.5rem; }
.vt-progress-labels { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.vt-progress-track {
  height: 12px; border-radius: 50px; background: rgba(255,255,255,.06);
  overflow: hidden; position: relative; border: 1px solid var(--cb-border);
}
.vt-progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--cb-primary), #a78bfa);
  width: 0;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.vt-progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: vtShimmer 1.8s ease-in-out infinite;
}
@keyframes vtShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.vt-tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.vt-tier-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--cb-border);
  border-radius: 10px; padding: .9rem 1rem;
  transition: var(--cb-transition);
  opacity: .55;
}
.vt-tier-card.is-done { opacity: .8; border-color: rgba(16,185,129,.3); }
.vt-tier-card.is-current {
  opacity: 1;
  border-color: var(--cb-primary);
  box-shadow: 0 0 20px rgba(56,189,248,.25);
  transform: translateY(-2px);
}
.vt-tier-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.vt-tier-n {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vt-tier-card.is-current .vt-tier-n { background: var(--cb-primary); color: #04070e; }
.vt-tier-range { color: #fff; font-weight: 600; font-size: .82rem; flex: 1; }
.vt-tier-check { color: var(--cb-green); }
.vt-tier-reward { display: flex; flex-direction: column; gap: .25rem; }
.vt-tier-base { color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; }
.vt-tier-vip { color: #fbbf24; font-size: .78rem; font-weight: 700; }
.vt-tier-vip em { color: rgba(251,191,36,.7); font-style: normal; font-weight: 600; }

/* ================================================================
   LEGAL PAGE
   ================================================================ */
.legal-content h4 { font-size: 1.0625rem; font-weight: 700; color: var(--cb-primary); margin: 1.5rem 0 0.5rem; }
.legal-content h4:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.9rem; color: var(--cb-text-muted); line-height: 1.7; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.375rem; }

/* ================================================================
   SERVER STATUS BADGE
   ================================================================ */
.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8125rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #030509; /* overridden by later rule below */
  color: rgba(204, 231, 255, 0.5);
  border-top: 1px solid rgba(56, 189, 248, 0.08);
}
.footer-brand { display: flex; align-items: center; gap: 0.625rem; }
.footer-logo-icon {
  width: 34px; height: 34px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--cb-primary);
}
.footer-logo-text { font-weight: 800; font-size: 1.0625rem; color: white; font-family: 'Cinzel', serif; }
.footer-desc { font-size: 0.8125rem; color: rgba(204,231,255,0.3); line-height: 1.6; margin: 0; }
.footer-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(204,231,255,0.3); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: rgba(204,231,255,0.45); transition: var(--cb-transition); }
.footer-links a:hover { color: var(--cb-primary); }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-social-btn {
  width: 34px; height: 34px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: var(--cb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(204,231,255,0.4);
  transition: var(--cb-transition);
  font-size: 0.9rem;
}
.footer-social-btn:hover { background: var(--cb-primary); border-color: var(--cb-primary); color: #04070e; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(56,189,248,0.3); }
.footer-divider { border-color: rgba(56,189,248,0.07); margin: 0; }
.footer-copy { color: rgba(204,231,255,0.2); font-size: 0.8rem; }

/* ================================================================
   WORLDS / SERVER SECTION  (Aqua .worlds style)
   ================================================================ */
.worlds-section {
  position: relative;
  height: 650px;
  overflow: hidden;
  z-index: 10;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(20, 42, 62, 0.85) 0%, #050a14 75%),
    linear-gradient(180deg, #070d1a 0%, #050a14 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.worlds-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.worlds-bg-glow--1 {
  width: 700px; height: 700px;
  background: rgba(20, 42, 62, 0.7);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.worlds-bg-glow--2 {
  width: 280px; height: 280px;
  background: rgba(56, 189, 248, 0.06);
  top: 15%; right: 12%;
}
.worlds-container {
  height: 100%;
  position: relative;
  z-index: 2;
}
.worlds-header {
  position: absolute;
  top: 80px;
  left: 0; right: 0;
  text-align: center;
}
.worlds-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(#ece5d6, #d3e5ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.worlds-nav {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.worlds-nav-item {
  padding: 0.5rem 2.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.worlds-nav-item:hover { color: rgba(255, 255, 255, 0.7); }
.worlds-nav-item.active { color: white; }
.worlds-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--cb-primary);
  box-shadow: 0 0 8px var(--cb-primary-glow);
}
.worlds-stats {
  position: absolute;
  bottom: 70px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0; margin: 0;
}
.worlds-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 14%;
  text-align: center;
  position: relative;
}
.worlds-stat + .worlds-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.worlds-stat p {
  color: #fff;
  font-size: 2.125rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
  font-family: 'Cinzel', serif;
}
.worlds-stat span {
  color: rgba(200, 220, 235, 0.65);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}
.worlds-play-btn {
  background: var(--cb-primary);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  color: #04070e;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.625rem 1.625rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--cb-transition);
  white-space: nowrap;
}
.worlds-play-btn:hover {
  color: #04070e;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}
@media (max-width: 991px) {
  .worlds-section { height: auto; padding: 4rem 0; }
  .worlds-header { position: relative; top: auto; margin-bottom: 2.5rem; }
  .worlds-stats { position: relative; bottom: auto; flex-wrap: wrap; gap: 1.5rem; row-gap: 2rem; }
  .worlds-stat { width: 40%; }
  .worlds-stat + .worlds-stat::before { display: none; }
}

/* ================================================================
   JOIN / COMMUNITY SECTION  (Aqua .join style)
   ================================================================ */
.join-section {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 48, 80, 0.98) 0%, rgba(14, 30, 52, 0.98) 100%);
  overflow: hidden;
  z-index: 50;
}
.join-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.join-wrapper { height: 350px; }
.join-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}
.join-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  width: 80%;
  margin: 0 auto 0.625rem;
  background: linear-gradient(#ece5d6, #d3e5ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.join-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  width: 55%;
  line-height: 1.65;
}
.join-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.join-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.375rem;
  transition: var(--cb-transition);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.join-link-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
@media (max-width: 767px) {
  .join-wrapper { height: auto; padding: 4rem 0; }
  .join-sub { width: 90%; }
  .join-title { width: 95%; }
}

/* ================================================================
   FOOTER — centered Aqua style (overrides old multi-column footer)
   ================================================================ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3.5rem 0 0;
  text-align: center;
  position: relative;
  z-index: 60;
  background: var(--cb-bg);
  color: rgba(204, 231, 255, 0.45);
}
.footer-logo-wrap { margin-bottom: 1.5rem; }
.footer-logo-wrap .footer-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}
.footer-center-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0 0 1rem;
}
.footer-center-links li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-center-links li a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-copy-text {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ================================================================
   MEMBER DASHBOARD
   ================================================================ */

/* Layout */
.db-main {
  background: transparent;
  min-height: 100vh;
  padding: 100px 0 4rem;
  position: relative;
}
.db-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 0%, rgba(56,189,248,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(245,158,11,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 100%, rgba(56,189,248,0.1) 0%, transparent 65%),
    linear-gradient(180deg, #060d1e 0%, var(--cb-bg) 55%);
  pointer-events: none;
  z-index: 0;
}
.db-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, black 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
.db-main > .container { position: relative; z-index: 1; }
.db-layout  { display: grid; grid-template-columns: 248px 1fr; gap: 1.75rem; align-items: start; }

/* ── Sidebar ──────────────────────────────────────── */
.dbs         { position: sticky; top: 96px; }
.dbs-inner   { background: linear-gradient(165deg, rgba(56,189,248,0.05), var(--cb-bg-card) 45%); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.05); }

.dbs-profile { display: flex; align-items: center; gap: 0.875rem; padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dbs-avatar  { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 1.0625rem; font-weight: 800; color: #04070e; flex-shrink: 0; }
.dbs-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dbs-name    { font-weight: 700; color: white; font-size: 0.9375rem; line-height: 1.2; display: block; }
.dbs-role    { font-size: 0.72rem; color: var(--cb-text-muted); display: block; margin-top: 0.1rem; }

.dbs-avatar-form { padding: 0.8rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dbs-avatar-form input[type="file"] { display: none; }
.dbs-avatar-upload { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 600; color: var(--cb-primary); cursor: pointer; }
.dbs-avatar-upload:hover { opacity: 0.85; }
.dbs-avatar-submit { border: 1px solid rgba(56,189,248,0.35); background: rgba(56,189,248,0.14); color: var(--cb-primary); font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem; }
.dbs-avatar-submit:hover { background: rgba(56,189,248,0.22); }

.dbs-stats   { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dbs-stat    { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.875rem 0.4rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.05); }
.dbs-stat:last-child { border-right: none; }
.dbs-stat-n  { font-size: 1.0625rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 0.2rem; }
.dbs-stat-l  { font-size: 0.65rem; color: var(--cb-text-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.dbs-stat:nth-child(1) .dbs-stat-n { color: var(--cb-accent); }
.dbs-stat:nth-child(2) .dbs-stat-n { color: var(--cb-primary); }
.dbs-stat:nth-child(3) .dbs-stat-n { color: var(--cb-green); }

.dbs-nav     { padding: 0.5rem; display: flex; flex-direction: column; gap: 2px; }
.dbs-btn     { display: flex; align-items: center; gap: 0.625rem; padding: 0.6rem 0.875rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--cb-text-muted); background: none; border: none; cursor: pointer; text-align: left; transition: var(--cb-transition); width: 100%; }
.dbs-btn i   { font-size: 1rem; width: 18px; flex-shrink: 0; }
.dbs-btn > span { flex: 1; }
.dbs-btn:hover  { color: var(--cb-text); background: rgba(255,255,255,0.04); }
.dbs-btn.active { color: white; background: rgba(56,189,248,0.13); box-shadow: inset 3px 0 0 var(--cb-primary); font-weight: 600; }
.dbs-btn-badge  { background: rgba(56,189,248,0.14); color: var(--cb-primary); font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 50px; line-height: 1.6; }

.dbs-sep   { height: 1px; background: rgba(255,255,255,0.05); margin: 0.25rem 0; }

.dbs-links   { padding: 0.5rem 0.5rem 0.875rem; display: flex; flex-direction: column; gap: 1px; }
.dbs-links a { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.875rem; font-size: 0.8125rem; color: var(--cb-text-muted); border-radius: 6px; transition: var(--cb-transition); }
.dbs-links a i { font-size: 0.875rem; width: 16px; }
.dbs-links a:hover { color: var(--cb-text); background: rgba(255,255,255,0.04); }

/* ── Content ──────────────────────────────────────── */
.db-content { min-width: 0; }
.db-panel { display: none; }
.db-panel.active { display: block; animation: dbIn 0.28s ease both; }
@keyframes dbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.db-atmo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(110% 120% at 85% -10%, rgba(56,189,248,0.2), rgba(56,189,248,0) 58%),
    linear-gradient(130deg, rgba(6,14,28,0.95), rgba(9,26,46,0.9));
  box-shadow: var(--cb-shadow), 0 0 30px rgba(56,189,248,0.09) inset;
}

.db-atmo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
}

.db-atmo-orb-a {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -30px;
  background: rgba(56,189,248,0.28);
}

.db-atmo-orb-b {
  width: 130px;
  height: 130px;
  bottom: -55px;
  left: 25%;
  background: rgba(245,158,11,0.22);
}

.db-atmo-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.db-atmo-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #82d9ff;
  margin: 0 0 0.2rem;
}

.db-atmo-head h1 {
  margin: 0 0 0.28rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
}

.db-atmo-head p {
  margin: 0;
  color: rgba(204,231,255,0.76);
  font-size: 0.88rem;
  max-width: 620px;
}

.db-atmo-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-content: flex-start;
}

.db-atmo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.22);
  background: rgba(56,189,248,0.1);
  color: #d7f2ff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

.db-atmo-badge.is-ok {
  border-color: rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.14);
  color: #86efac;
}

.db-atmo-badge.is-warn {
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.14);
  color: #fcd34d;
}

.db-atmo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.75rem;
}

.db-atmo-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 0.8rem;
}

.db-atmo-card-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(204,231,255,0.66);
  margin-bottom: 0.35rem;
}

.db-atmo-card strong {
  color: white;
  font-size: 1.35rem;
  line-height: 1;
}

.db-atmo-card p {
  margin: 0.45rem 0 0;
  color: rgba(204,231,255,0.72);
  font-size: 0.78rem;
}

.db-atmo-progress {
  margin-top: 0.5rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.db-atmo-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.db-atmo-shortcuts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.db-atmo-shortcuts-row button {
  border: 1px solid rgba(56,189,248,0.25);
  background: rgba(56,189,248,0.12);
  color: #d9f2ff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.db-atmo-shortcuts-row button:hover {
  background: rgba(56,189,248,0.22);
}

.dbp-head     { margin-bottom: 1.5rem; }
.dbp-head h2  { font-size: 1.275rem; font-weight: 700; color: white; margin: 0 0 0.3rem; padding-left: 0.75rem; border-left: 3px solid var(--cb-primary); }
.dbp-head p   { font-size: 0.875rem; color: var(--cb-text-muted); margin: 0; padding-left: 1rem; }
.dbp-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ── Cards (dbc) ──────────────────────────────────── */
.dbc          { background: var(--cb-bg-card); border: 1px solid rgba(255,255,255,0.08); border-top: 2px solid rgba(56,189,248,0.28); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.dbc-title    { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--cb-text-muted); padding: 0.7rem 1.25rem; display: block; background: rgba(255,255,255,0.025); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 0; }
.dbc-title-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.25rem; background: rgba(255,255,255,0.025); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 0; }
.dbc-title-row .dbc-title { padding: 0; margin: 0; background: none; border-bottom: none; }
.dbc-more     { font-size: 0.8rem; font-weight: 600; color: var(--cb-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.2rem; background: none; border: none; cursor: pointer; transition: opacity 0.2s; padding: 0; }
.dbc-more:hover { opacity: 0.7; color: var(--cb-primary); }

.dbc-list     { list-style: none; padding: 0.375rem 1.25rem 1rem; margin: 0; }
.dbc-list li  { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.875rem; }
.dbc-list li:last-child { border-bottom: none; }
.dbc-list span  { color: var(--cb-text-muted); display: flex; align-items: center; gap: 0.35rem; }
.dbc-list span i { font-size: 0.8rem; color: rgba(56,189,248,0.55); }
.dbc-list strong { color: white; font-weight: 600; }
.dbc-list .gold  { color: var(--cb-accent); font-weight: 700; }
.db-discord-name { margin-left: 0.4rem; color: var(--cb-primary); font-size: 0.8rem; }
.db-discord-actions { padding: 0 1.25rem 1rem; }
.db-cta-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

.db-vote-reminder-box {
  margin: 0 1.25rem 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(56,189,248,0.08), rgba(56,189,248,0.02));
}

.db-vote-reminder-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d8f2ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.db-vote-reminder-box p {
  margin: 0.28rem 0 0.6rem;
  color: var(--cb-text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.db-vote-reminder-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.db-vote-reminder-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d9edff;
  font-size: 0.78rem;
  font-weight: 700;
}

.db-vote-reminder-switch input {
  width: 15px;
  height: 15px;
}

.db-vote-reminder-box small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(245,158,11,0.88);
  font-size: 0.72rem;
}

/* ================================================================
   GIVEAWAY
   ================================================================ */
.gw-page { min-height: 80vh; padding-bottom: 3rem; }
.gw-hero { padding: 96px 0 1rem; }
.gw-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  background: radial-gradient(circle at top right, rgba(6,182,212,0.22), rgba(10,14,25,0.9) 55%);
}
.gw-title { margin: 0 0 0.3rem; color: #fff; font-size: 1.5rem; font-weight: 800; }
.gw-sub { margin: 0; color: var(--cb-text-muted); }
.gw-hero-link { color: var(--cb-primary); font-weight: 600; white-space: nowrap; }

.gw-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 1.25rem;
}
.gw-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.gw-badge { padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.gw-badge-live { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.gw-badge-wait { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }
.gw-badge-future { background: rgba(56,189,248,0.16); color: #38bdf8; border: 1px solid rgba(56,189,248,0.35); }
.gw-participants { color: var(--cb-text-muted); font-size: 0.86rem; }

.gw-main { display: grid; grid-template-columns: 320px 1fr; gap: 1.1rem; }
.gw-prize { border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); min-height: 220px; }
.gw-prize img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-prize-placeholder { height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; color: #38bdf8; font-size: 3.2rem; }
.gw-info h2 { color: #fff; margin: 0 0 0.4rem; }
.gw-prize-label { color: #d5e5f6; margin-bottom: 0.6rem; }
.gw-desc { color: var(--cb-text-muted); margin-bottom: 0.8rem; }

.gw-timing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.gw-timing div { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.5rem; background: rgba(255,255,255,0.02); }
.gw-timing span { display: block; color: var(--cb-text-muted); font-size: 0.74rem; margin-bottom: 0.15rem; }
.gw-timing strong { color: #fff; font-size: 0.84rem; }

.gw-countdown { display: inline-flex; align-items: center; gap: 0.6rem; border-radius: 999px; border: 1px solid rgba(56,189,248,0.35); background: rgba(56,189,248,0.12); padding: 0.35rem 0.8rem; color: #cfefff; margin-bottom: 0.9rem; }
.gw-countdown strong { font-size: 1rem; color: #fff; letter-spacing: 0.05em; }

.gw-winners { margin-bottom: 0.8rem; }
.gw-winners span { color: #facc15; font-weight: 700; font-size: 0.86rem; display: inline-block; margin-bottom: 0.25rem; }
.gw-winners ul { margin: 0; padding-left: 1rem; color: #fff; }

.gw-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(56,189,248,0.35); background: rgba(56,189,248,0.2); color: #d8f2ff; padding: 0.5rem 0.9rem; border-radius: 10px; font-weight: 700; }
.gw-btn:hover { background: rgba(56,189,248,0.3); color: #fff; }
.gw-btn-warning { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.2); color: #f7d58f; }
.gw-btn-ok { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.2); color: #8ef2b1; }
.gw-btn-disabled { opacity: 0.7; cursor: not-allowed; }

.gw-empty { border: 1px dashed rgba(255,255,255,0.2); border-radius: 14px; padding: 2rem 1rem; text-align: center; color: var(--cb-text-muted); }
.gw-empty i { font-size: 2rem; display: block; margin-bottom: 0.5rem; color: #38bdf8; }

@media (max-width: 900px) {
  .gw-main { grid-template-columns: 1fr; }
  .gw-hero-card { flex-wrap: wrap; }
  .gw-hero-link { white-space: normal; }
}

/* ================================================================
   HOME BANNERS (Giveaway)
   ================================================================ */
.home-banners { margin-top: 1.1rem; margin-bottom: 2rem; }
.hb-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.85rem; }
.hb-grid-carousel { grid-template-columns: 1fr; }
.hb-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.95rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.hb-card h3 { font-size: 1rem; margin: 0.35rem 0 0.35rem; color: #fff; }
.hb-card p { margin: 0 0 0.65rem; color: var(--cb-text-muted); font-size: 0.85rem; line-height: 1.45; }
.hb-chip {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  border: 1px solid transparent;
}
.hb-live .hb-chip { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.35); color: #4ade80; }
.hb-winners .hb-chip { background: rgba(250,204,21,0.16); border-color: rgba(250,204,21,0.35); color: #fde047; }
.hb-custom .hb-chip { background: rgba(56,189,248,0.14); border-color: rgba(56,189,248,0.35); color: #67e8f9; }

.hb-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.1);
  color: #b8ffd3;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
}

.hb-winners-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem; }
.hb-winners-list span {
  font-size: 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0.18rem 0.52rem;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56,189,248,0.35);
  color: #dcf5ff;
  background: rgba(56,189,248,0.15);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.66rem;
}
.hb-btn:hover { color: #fff; background: rgba(56,189,248,0.24); }
.hb-btn-ghost { background: transparent; }

.hb-theme-aqua { border-color: rgba(56,189,248,0.35); background: linear-gradient(145deg, rgba(56,189,248,0.14), rgba(255,255,255,0.01)); }
.hb-theme-aqua .hb-chip { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.35); color: #67e8f9; }

.hb-theme-emerald { border-color: rgba(34,197,94,0.35); background: linear-gradient(145deg, rgba(34,197,94,0.13), rgba(255,255,255,0.01)); }
.hb-theme-emerald .hb-chip { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.35); color: #86efac; }

.hb-theme-gold { border-color: rgba(250,204,21,0.38); background: linear-gradient(145deg, rgba(250,204,21,0.15), rgba(255,255,255,0.01)); }
.hb-theme-gold .hb-chip { background: rgba(250,204,21,0.2); border-color: rgba(250,204,21,0.4); color: #fde68a; }

.hb-theme-sunset { border-color: rgba(249,115,22,0.38); background: linear-gradient(145deg, rgba(249,115,22,0.15), rgba(255,255,255,0.01)); }
.hb-theme-sunset .hb-chip { background: rgba(249,115,22,0.2); border-color: rgba(249,115,22,0.4); color: #fdba74; }

.hb-theme-violet { border-color: rgba(167,139,250,0.38); background: linear-gradient(145deg, rgba(167,139,250,0.16), rgba(255,255,255,0.01)); }
.hb-theme-violet .hb-chip { background: rgba(167,139,250,0.22); border-color: rgba(167,139,250,0.42); color: #ddd6fe; }

.hb-carousel-controls { margin-top: 0.55rem; display: flex; gap: 0.45rem; justify-content: flex-end; }
.hb-carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #dce8f7;
}
.hb-carousel-btn:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 980px) {
  .hb-grid { grid-template-columns: 1fr; }
}

.gw-admin-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.gw-admin-preview .hb-card {
  min-height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.gw-admin-preview .hb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(0,0,0,0.34), rgba(0,0,0,0.12));
}
.gw-admin-preview .hb-card > * {
  position: relative;
  z-index: 1;
}

/* ================================================================
   GIVEAWAY HALL OF FAME
   ================================================================ */
.gw-hof-page { min-height: 70vh; padding-bottom: 3rem; }
.gw-hof-hero { padding: 92px 0 1rem; }
.gw-hof-hero h1 { margin: 0 0 0.35rem; color: #fff; font-size: 1.55rem; }
.gw-hof-hero p { margin: 0; color: var(--cb-text-muted); }

.gw-hof-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; }
.gw-hof-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 0.95rem;
  margin-bottom: 0.8rem;
}

.gw-hof-card h2 { color: #fff; margin: 0 0 0.7rem; font-size: 1rem; }
.gw-hof-empty { color: var(--cb-text-muted); margin: 0; }

.gw-hof-leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.gw-hof-leaderboard li { display: grid; grid-template-columns: 42px 1fr auto; gap: 0.5rem; align-items: center; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.35rem 0.45rem; }
.gw-hof-rank { font-weight: 800; color: #facc15; text-align: center; }
.gw-hof-user { color: #fff; font-weight: 600; }
.gw-hof-wins { color: var(--cb-text-muted); font-size: 0.8rem; }

.gw-hof-entry-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.gw-hof-entry-head h3 { margin: 0; color: #fff; font-size: 1rem; }
.gw-hof-entry-head p { margin: 0.2rem 0 0; color: var(--cb-text-muted); }
.gw-hof-date { color: var(--cb-text-muted); font-size: 0.78rem; white-space: nowrap; }

.gw-hof-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.55rem 0 0.65rem; color: var(--cb-text-muted); font-size: 0.82rem; }
.gw-hof-winner-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.gw-hof-chip { border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #fff; font-size: 0.75rem; padding: 0.2rem 0.55rem; }

.gw-hof-pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.8rem; }
.gw-hof-page-btn { border: 1px solid rgba(255,255,255,0.15); color: #d4e9ff; border-radius: 8px; padding: 0.28rem 0.55rem; font-size: 0.78rem; }
.gw-hof-page-btn.active { background: rgba(56,189,248,0.2); border-color: rgba(56,189,248,0.45); color: #fff; }

@media (max-width: 980px) {
  .gw-admin-preview { grid-template-columns: 1fr; }
  .gw-hof-layout { grid-template-columns: 1fr; }
}

.dbc-empty    { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 2rem 1rem; color: var(--cb-text-muted); font-size: 0.875rem; }
.dbc-empty i  { font-size: 2rem; color: var(--cb-primary); opacity: 0.4; }
.dbc-empty p  { margin: 0; }

.dbc-gac-list { display: flex; flex-direction: column; padding: 0.25rem 0 0.75rem; }
.dbc-gac-row  { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 1.25rem; transition: background 0.15s; }
.dbc-gac-row:hover { background: rgba(255,255,255,0.025); }
.dbc-gac-av   { width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #04070e; flex-shrink: 0; }
.dbc-gac-row span { font-size: 0.875rem; font-weight: 600; color: white; flex: 1; }
.dbc-gac-row em   { font-style: normal; font-size: 0.75rem; color: var(--cb-primary); font-weight: 600; }

/* ── Table ────────────────────────────────────────── */
.dbt-wrap { overflow-x: auto; }
.dbt      { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dbt thead { background: rgba(255,255,255,0.022); }
.dbt thead th { padding: 0.6rem 1.25rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cb-text-muted); text-align: left; border-bottom: 1px solid rgba(255,255,255,0.07); white-space: nowrap; }
.dbt tbody td { padding: 0.75rem 1.25rem; color: var(--cb-text); border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
.dbt tbody tr:last-child td { border-bottom: none; }
.dbt tbody tr:hover td { background: rgba(255,255,255,0.025); }
.dbt-pos  { color: var(--cb-green); font-weight: 700; }
.dbt-neg  { color: #f43f5e; font-weight: 700; }

/* ── Badges ──────────────────────────────────────── */
.dbb      { display: inline-flex; align-items: center; padding: 0.18rem 0.55rem; border-radius: 50px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.dbb-ok   { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.dbb-warn { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.dbb-err  { background: rgba(244,63,94,0.1);  color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }
.dbb-info { background: rgba(56,189,248,0.1);  color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.2); }

/* ── Notice ──────────────────────────────────────── */
.db-notice      { border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1.25rem; }
.db-notice-warn { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); color: rgba(245,158,11,0.85); }

/* ── CTA Buttons ─────────────────────────────────── */
.db-cta       { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--cb-primary); color: #04070e; font-weight: 700; font-size: 0.875rem; border: none; border-radius: 8px; padding: 0.6rem 1.25rem; cursor: pointer; text-decoration: none; transition: var(--cb-transition); white-space: nowrap; }
.db-cta:hover { background: var(--cb-primary-dark); color: #04070e; transform: translateY(-1px); }
.db-cta-ghost       { background: transparent; border: 1px solid rgba(56,189,248,0.25); color: var(--cb-primary); }
.db-cta-ghost:hover { background: rgba(56,189,248,0.07); color: var(--cb-primary); }

/* ── GAC Cards ───────────────────────────────────── */
.gac-grid     { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 0.875rem; }
.gac-card     { background: var(--cb-bg-card); border: 1px solid rgba(255,255,255,0.08); border-top: 2px solid rgba(56,189,248,0.2); border-radius: 12px; padding: 1.25rem; transition: var(--cb-transition); display: flex; flex-direction: column; gap: 0; }
.gac-card:hover { border-color: rgba(56,189,248,0.22); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.gac-card-top { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.75rem; }
.gac-av       { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: #04070e; flex-shrink: 0; }
.gac-info     { flex: 1; min-width: 0; }
.gac-uname    { display: block; font-weight: 700; color: white; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gac-nick     { display: block; font-size: 0.78rem; color: var(--cb-text-muted); }
.gac-tag      { display: inline-block; margin-top: 0.2rem; font-size: 0.68rem; color: var(--cb-primary); font-weight: 700; background: rgba(56,189,248,0.08); border-radius: 50px; padding: 0.1rem 0.45rem; border: 1px solid rgba(56,189,248,0.15); }
.gac-char-badge { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; background: rgba(56,189,248,0.12); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.2); border-radius: 50px; padding: 0.15rem 0.55rem; white-space: nowrap; }
.gac-pwd-btn  { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--cb-text-muted); border-radius: 8px; cursor: pointer; transition: var(--cb-transition); font-size: 0.85rem; }
.gac-pwd-btn:hover { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25); color: var(--cb-primary); }
.gac-chars    { margin: 0 0 0.75rem; padding: 0.625rem; background: rgba(255,255,255,0.025); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 0.4rem; }
.gac-char-row { display: flex; align-items: center; gap: 0.5rem; }
.gac-char-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.gac-char-name { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gac-char-level { font-size: 0.7rem; font-weight: 700; color: var(--cb-primary); white-space: nowrap; }
.gac-char-breed { font-size: 0.68rem; color: var(--cb-text-muted); white-space: nowrap; }
.gac-meta     { font-size: 0.75rem; color: var(--cb-text-muted); margin-bottom: 0.875rem; margin-top: auto; }
.gac-del      { width: 100%; background: transparent; border: 1px solid rgba(244,63,94,0.2); color: rgba(244,63,94,0.55); border-radius: 6px; padding: 0.375rem 0.75rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--cb-transition); }
.gac-del:hover { background: rgba(244,63,94,0.08); border-color: #f43f5e; color: #f43f5e; }

/* ── Modal ───────────────────────────────────────── */
.dbm-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(2,5,12,0.85); display: flex; align-items: center; justify-content: center; padding: 1.25rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; backdrop-filter: blur(6px); }
.dbm-overlay.open { opacity: 1; pointer-events: auto; }
.dbm       { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #060d1c; border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 2rem; box-shadow: 0 32px 80px rgba(0,0,0,0.9); transform: translateY(20px) scale(0.98); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.dbm-overlay.open .dbm { transform: translateY(0) scale(1); }
.dbm-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--cb-text-muted); cursor: pointer; font-size: 0.8125rem; display: flex; align-items: center; justify-content: center; transition: var(--cb-transition); }
.dbm-close:hover { background: rgba(244,63,94,0.1); border-color: rgba(244,63,94,0.3); color: #f43f5e; }
.dbm-head { text-align: center; margin-bottom: 1.75rem; }
.dbm-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.18); color: var(--cb-primary); font-size: 1.375rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.dbm-head h2 { font-size: 1.25rem; font-weight: 700; color: white; margin: 0 0 0.25rem; }
.dbm-head p  { font-size: 0.875rem; color: var(--cb-text-muted); margin: 0; }
.dbf       { margin-bottom: 1rem; }
.dbf-row   { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.dbf label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--cb-text); margin-bottom: 0.35rem; }
.dbf label span { color: #f43f5e; }
.dbf input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.6rem 0.875rem; font-size: 0.9rem; color: white; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.dbf input:focus { outline: none; border-color: var(--cb-primary); box-shadow: 0 0 0 3px rgba(56,189,248,0.1); }
.dbf input::placeholder { color: rgba(94,125,154,0.45); }
.dbf small { display: block; font-size: 0.72rem; color: var(--cb-text-muted); margin-top: 0.25rem; }
.dbf-pwd   { position: relative; }
.dbf-pwd input { padding-right: 2.75rem; }
.dbf-pwd button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--cb-text-muted); cursor: pointer; font-size: 0.875rem; padding: 0; line-height: 1; transition: color 0.2s; }
.dbf-pwd button:hover { color: var(--cb-primary); }
.dbm-foot  { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.dbm-cancel  { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--cb-text-muted); border-radius: 8px; padding: 0.65rem; font-weight: 600; cursor: pointer; transition: var(--cb-transition); font-size: 0.875rem; }
.dbm-cancel:hover { border-color: rgba(255,255,255,0.2); color: white; }
.dbm-submit  { flex: 2; background: var(--cb-primary); color: #04070e; border: none; border-radius: 8px; padding: 0.65rem; font-weight: 700; font-size: 0.9375rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; transition: var(--cb-transition); }
.dbm-submit:hover { background: var(--cb-primary-dark); transform: translateY(-1px); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .db-layout { grid-template-columns: 1fr; }
  .dbs { position: static; }
  .dbs-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .dbs-profile, .dbs-stats { grid-column: 1/-1; }
  .dbs-nav { flex-direction: row; flex-wrap: wrap; padding: 0.5rem; grid-column: 1/-1; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .dbs-btn { white-space: nowrap; }
  .dbs-sep, .dbs-links { display: none; }
  .db-atmo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .db-main { padding-top: 90px; }
  .dbs-inner { display: block; }
  .dbf-row { flex-direction: column; }
  .dbm { padding: 1.5rem; }
  .gac-grid { grid-template-columns: 1fr; }
}
.db-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.db-hero-identity { display: flex; align-items: center; gap: 1.25rem; }
.db-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: #04070e; flex-shrink: 0; box-shadow: 0 0 24px rgba(56,189,248,0.35); }
.db-hero-name { font-size: clamp(1.25rem,2.5vw,1.75rem); font-weight: 800; color: white; margin: 0 0 0.25rem; font-family: 'Cinzel', serif; }
.db-hero-name span { color: var(--cb-primary); }
.db-hero-sub { color: var(--cb-text-muted); font-size: 0.875rem; margin: 0; }
.db-hero-actions { display: flex; gap: 0.625rem; flex-shrink: 0; }

/* Stat strip */
.db-stat-strip { display: flex; align-items: center; flex-wrap: wrap; border-top: 1px solid rgba(56,189,248,0.08); }
.db-stat-item { display: flex; align-items: center; gap: 0.875rem; padding: 1.25rem 2rem; flex: 1; min-width: 140px; cursor: default; transition: background 0.2s; }
.db-stat-item:hover { background: rgba(56,189,248,0.04); }
.db-stat-sep { width: 1px; height: 40px; background: rgba(56,189,248,0.1); }
.db-stat-icon { font-size: 1.5rem; }
.db-stat-val { display: block; font-size: 1.375rem; font-weight: 800; color: white; line-height: 1.1; }
.db-stat-lbl { font-size: 0.7rem; color: var(--cb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* Tabs bar */
.db-tabs-bar { background: rgba(4,7,14,0.97); border-bottom: 1px solid rgba(56,189,248,0.10); position: sticky; top: 70px; z-index: 100; backdrop-filter: blur(12px); }
.db-tabs-nav { display: flex; list-style: none; padding: 0; margin: 0; gap: 0; overflow-x: auto; }
.db-tab-btn { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.5rem; color: rgba(204,231,255,0.45); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; transition: var(--cb-transition); white-space: nowrap; user-select: none; }
.db-tab-btn:hover { color: rgba(255,255,255,0.75); }
.db-tab-btn.active { color: white; border-bottom-color: var(--cb-primary); }
.db-tab-badge { background: var(--cb-primary); color: #04070e; font-size: 0.65rem; font-weight: 800; padding: 0.1rem 0.45rem; border-radius: 50px; line-height: 1.6; }

/* Panels */
.db-panels-wrap { padding: 2.5rem 0 4rem; }
.db-panel { display: none; }
.db-panel.active { display: block; animation: dbFadeUp 0.35s ease both; }
@keyframes dbFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cards */
.db-card { background: var(--cb-bg-card); border: 1px solid var(--cb-border); border-radius: var(--cb-radius); overflow: hidden; transition: var(--cb-transition); }
.db-card-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--cb-border); font-weight: 700; font-size: 0.875rem; color: white; background: rgba(56,189,248,0.03); }
.db-card-body { padding: 1.25rem; }
.db-card-link { color: var(--cb-primary); font-size: 0.8rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.2s; }
.db-card-link:hover { color: white; }

/* Info list */
.db-info-list { list-style: none; padding: 0; margin: 0; }
.db-info-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0; border-bottom: 1px solid rgba(56,189,248,0.06); }
.db-info-list li:last-child { border-bottom: none; }
.db-info-label { font-size: 0.8125rem; color: var(--cb-text-muted); display: flex; align-items: center; }
.db-info-value { font-size: 0.875rem; font-weight: 600; color: var(--cb-text); text-align: right; }

/* Empty state */
.db-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem 1rem; color: var(--cb-text-muted); }

/* Table */
.db-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.db-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.db-table thead th { background: rgba(4,7,14,0.6); border-bottom: 1px solid var(--cb-border); padding: 0.625rem 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cb-text-muted); white-space: nowrap; }
.db-table tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(56,189,248,0.05); color: var(--cb-text); vertical-align: middle; }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover td { background: rgba(56,189,248,0.04); }
.db-reward { color: #22c55e; font-weight: 700; font-size: 0.875rem; }

/* Status badges */
.db-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.db-badge-success { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.db-badge-warning { background: rgba(245,158,11,0.12); color: var(--cb-accent); border: 1px solid rgba(245,158,11,0.25); }
.db-badge-info    { background: rgba(56,189,248,0.12); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.25); }
.db-badge-danger  { background: rgba(244,63,94,0.12); color: #fb7185; border: 1px solid rgba(244,63,94,0.25); }

/* Warning alert */
.db-alert-warning { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--cb-radius); padding: 0.875rem 1.25rem; color: rgba(245,158,11,0.9); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Game account section header */
.gac-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.gac-section-title { font-size: 1.5rem; font-weight: 800; color: white; margin: 0 0 0.375rem; font-family: 'Cinzel', serif; }
.gac-section-sub { color: var(--cb-text-muted); font-size: 0.875rem; margin: 0; }
.gac-create-btn { background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); color: #04070e; border: none; border-radius: 8px; padding: 0.75rem 1.625rem; font-weight: 800; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; transition: var(--cb-transition); white-space: nowrap; box-shadow: 0 0 20px rgba(56,189,248,0.3); text-decoration: none; }
.gac-create-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(56,189,248,0.45); color: #04070e; }

/* Game account grid & cards */
.gac-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1rem; }
.gac-card { background: var(--cb-bg-card); border: 1px solid var(--cb-border); border-radius: var(--cb-radius); padding: 1.375rem; transition: var(--cb-transition); }
.gac-card:hover { border-color: rgba(56,189,248,0.35); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(56,189,248,0.1); }
.gac-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.875rem; }
.gac-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; color: #04070e; flex-shrink: 0; }
.gac-info { min-width: 0; }
.gac-username { display: block; font-weight: 800; color: white; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gac-nickname { display: block; font-size: 0.8rem; color: var(--cb-text-muted); }
.gac-tag { display: inline-block; background: rgba(56,189,248,0.1); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.2); border-radius: 50px; padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 700; margin-top: 0.2rem; }
.gac-card-meta { font-size: 0.75rem; color: var(--cb-text-muted); margin-bottom: 1rem; }
.gac-card-actions { border-top: 1px solid rgba(56,189,248,0.07); padding-top: 0.875rem; }
.gac-delete-btn { background: transparent; border: 1px solid rgba(244,63,94,0.25); color: rgba(251,113,133,0.7); border-radius: 6px; padding: 0.375rem 0.875rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; width: 100%; transition: var(--cb-transition); }
.gac-delete-btn:hover { background: rgba(244,63,94,0.1); border-color: #fb7185; color: #fb7185; }

/* Game account preview (in aperçu panel) */
.gac-preview-list { display: flex; flex-direction: column; gap: 0.625rem; }
.gac-preview-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem; background: rgba(56,189,248,0.04); border-radius: var(--cb-radius-sm); border: 1px solid rgba(56,189,248,0.07); }
.gac-preview-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #04070e; flex-shrink: 0; }
.gac-preview-name { font-weight: 700; color: white; font-size: 0.875rem; }
.gac-preview-tag { color: var(--cb-primary); font-size: 0.75rem; font-weight: 600; margin-left: 0.375rem; }

/* Modal */
.db-modal-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(2,5,12,0.88); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.db-modal-overlay.open { opacity: 1; pointer-events: auto; }
.db-modal { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: linear-gradient(160deg,#070f1e,#050f1c); border: 1px solid rgba(56,189,248,0.2); border-radius: 16px; padding: 2rem; box-shadow: 0 24px 80px rgba(0,0,0,0.8); transform: translateY(30px); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.db-modal-overlay.open .db-modal { transform: translateY(0); }
.db-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(4,7,14,0.7); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.875rem; transition: var(--cb-transition); }
.db-modal-close:hover { background: rgba(244,63,94,0.15); border-color: #fb7185; color: #fb7185; }
.db-modal-header { text-align: center; margin-bottom: 2rem; }
.db-modal-icon { font-size: 2.5rem; color: var(--cb-primary); display: block; margin-bottom: 0.75rem; filter: drop-shadow(0 0 16px rgba(56,189,248,0.5)); }
.db-modal-header h2 { font-size: 1.375rem; font-weight: 800; color: white; margin: 0 0 0.375rem; font-family: 'Cinzel', serif; }
.db-modal-header p { color: var(--cb-text-muted); font-size: 0.875rem; margin: 0; }

/* Form fields */
.db-field { margin-bottom: 1.125rem; }
.db-field-row { display: flex; gap: 0.875rem; margin-bottom: 1.125rem; }
.db-field-grow { flex: 1; min-width: 0; }
.db-field-tag { width: 130px; flex-shrink: 0; }
.db-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--cb-text); margin-bottom: 0.375rem; }
.db-label-req { color: #fb7185; }
.db-input { width: 100%; background: rgba(4,7,14,0.7); border: 1.5px solid rgba(56,189,248,0.15); border-radius: var(--cb-radius-sm); padding: 0.625rem 0.875rem; font-size: 0.9rem; color: var(--cb-text); transition: var(--cb-transition); box-sizing: border-box; }
.db-input:focus { outline: none; border-color: var(--cb-primary); box-shadow: 0 0 0 3px rgba(56,189,248,0.12); background: rgba(4,7,14,0.9); color: white; }
.db-input::placeholder { color: rgba(94,125,154,0.55); }
.db-hint { display: block; font-size: 0.73rem; color: var(--cb-text-muted); margin-top: 0.25rem; }
.db-input-pwd { position: relative; }
.db-input-pwd .db-input { padding-right: 2.75rem; }
.db-pwd-toggle { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--cb-text-muted); cursor: pointer; padding: 0; font-size: 0.875rem; transition: color 0.2s; }
.db-pwd-toggle:hover { color: var(--cb-primary); }
.db-modal-footer { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.db-modal-cancel { flex: 1; background: transparent; border: 1.5px solid var(--cb-border); color: var(--cb-text-muted); border-radius: 8px; padding: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--cb-transition); }
.db-modal-cancel:hover { border-color: rgba(255,255,255,0.2); color: white; }
.db-modal-submit { flex: 2; background: linear-gradient(135deg,var(--cb-primary),var(--cb-primary-deep)); color: #04070e; border: none; border-radius: 8px; padding: 0.75rem; font-weight: 800; font-size: 0.9375rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--cb-transition); }
.db-modal-submit:hover { box-shadow: 0 0 24px rgba(56,189,248,0.45); transform: translateY(-1px); }

/* Responsive */
@media (max-width: 767px) {
  .db-stat-sep   { display: none; }
  .db-stat-item  { padding: 1rem; min-width: 120px; }
  .db-tab-btn    { padding: 0.75rem 0.875rem; font-size: 0.8rem; }
  .db-field-row  { flex-direction: column; }
  .db-field-tag  { width: 100%; }
  .gac-grid      { grid-template-columns: 1fr; }
  .db-modal      { padding: 1.25rem; }
  .db-hero       { padding: 2rem 0 0; }
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-sidebar {
  background: var(--cb-bg-card);
  border-right: 1px solid var(--cb-border);
  min-height: calc(100vh - 80px);
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  color: var(--cb-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--cb-transition);
  text-decoration: none;
  margin: 0.1rem 0.5rem;
  border-radius: var(--cb-radius-sm);
  border-left: 2px solid transparent;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--cb-primary);
  background: rgba(56, 189, 248, 0.07);
  border-left-color: var(--cb-primary);
}
.admin-nav-link i { font-size: 1rem; }

.admin-stat-card {
  background: var(--cb-bg-card);
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--cb-transition);
}
.admin-stat-card:hover { box-shadow: var(--cb-shadow-blue); border-color: var(--cb-border-hover); transform: translateY(-2px); }
.admin-stat-icon { width: 50px; height: 50px; border-radius: var(--cb-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.admin-stat-value { font-size: 1.75rem; font-weight: 900; color: white; line-height: 1; }
.admin-stat-label { font-size: 0.8rem; color: var(--cb-text-muted); font-weight: 500; margin-top: 0.2rem; }

.admin-panel {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
}
.admin-panel-header {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--cb-border);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  background: rgba(56,189,248,0.03);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { background: rgba(4,7,14,0.5); color: var(--cb-text-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--cb-border); white-space: nowrap; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(56,189,248,0.05); color: var(--cb-text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(56,189,248,0.03); }

.admin-input {
  background: rgba(4,7,14,0.7) !important;
  border: 1.5px solid rgba(56,189,248,0.15) !important;
  border-radius: var(--cb-radius-sm) !important;
  color: var(--cb-text) !important;
  font-size: 0.875rem !important;
}
.admin-input:focus {
  border-color: var(--cb-primary) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1) !important;
}
.pagination-admin .page-link { background: var(--cb-bg-card); border-color: var(--cb-border); color: var(--cb-text-muted); }
.pagination-admin .page-link:hover { background: rgba(56,189,248,0.08); color: var(--cb-primary); border-color: rgba(56,189,248,0.3); }
.pagination-admin .page-item.active .page-link { background: var(--cb-primary); border-color: var(--cb-primary); color: #04070e; font-weight: 700; }
.breadcrumb-admin { background: transparent; padding: 0; }
.breadcrumb-admin .breadcrumb-item a { color: var(--cb-primary); }
.breadcrumb-admin .breadcrumb-item.active { color: var(--cb-text-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-header { margin-top: 60px; }
  .navbar-collapse {
    background: rgba(4, 7, 14, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-top: none;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0 0 var(--cb-radius) var(--cb-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    backdrop-filter: blur(14px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2001;
  }
  .navbar-actions { flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid rgba(56,189,248,0.1); margin-top: 0.5rem; }
  .hero-server-item { padding: 0.25rem 0.875rem; }
  .hero-server-item-label { display: none; }
}

@media (max-width: 767px) {
  .hero-title { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat { padding: 0 1rem; }
  .rk-podium { gap: 0.5rem; }
  .rk-podium-card { width: 92px; padding: 0.75rem 0.5rem; }
  .rk-podium-name { font-size: 0.75rem; max-width: 76px; }
  .cb-alert-wrapper { right: 1rem; left: 1rem; max-width: none; }
  .hero-server-stats { justify-content: flex-start; overflow-x: auto; }
}

@media (max-width: 575px) {
  .modal {
    padding: 0.5rem;
  }
  .modal-dialog {
    width: auto;
    max-width: none;
    min-height: calc(100dvh - 1rem);
    margin: 0;
  }
  .modal-content {
    max-height: calc(100dvh - 1rem);
  }
  .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dbm-overlay,
  .db-modal-overlay,
  .np-overlay,
  .wheel-result-overlay,
  .mkt-modal-overlay {
    padding: 0.75rem;
  }
  .dbm,
  .db-modal,
  .np-modal,
  .wro-box,
  .mkt-modal {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.modal-backdrop {
  z-index: 2990;
}
.modal {
  z-index: 3000;
}
.mkt-modal-overlay,
.wheel-result-overlay,
.np-overlay {
  z-index: 3000;
}

@media (max-width: 991px) {
  .cb-navbar {
    left: max(0.5rem, env(safe-area-inset-left));
    right: max(0.5rem, env(safe-area-inset-right));
    top: max(0.5rem, env(safe-area-inset-top));
  }
  .navbar-collapse {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* ================================================================
   PAGE HEADER — inner page shared components
   ================================================================ */
.page-header-content { position: relative; z-index: 1; }
.page-header-icon {
  font-size: 2.5rem;
  color: var(--cb-primary);
  margin-bottom: 0.875rem;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.5));
  display: block;
}
.page-header-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}
.page-header-desc { color: var(--cb-text-muted); font-size: 0.9375rem; max-width: 540px; margin: 0 auto; }

/* ================================================================
   CB-CARD — header / body / footer sub-components
   ================================================================ */
.cb-card-header {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--cb-border);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  background: rgba(56, 189, 248, 0.03);
  display: flex;
  align-items: center;
}
.cb-card-body  { padding: 1.25rem; }
.cb-card-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--cb-border);
  background: rgba(56, 189, 248, 0.02);
}

/* ================================================================
   VOTE PAGE — revised card structure
   ================================================================ */
.vote-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
  height: 100%;
  transition: var(--cb-transition);
}
.vote-card:hover { border-color: var(--cb-border-hover); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 20px rgba(56,189,248,0.1); }
.vote-card-cooldown { opacity: 0.65; }
.vote-card-cooldown:hover { transform: none !important; box-shadow: none !important; border-color: var(--cb-border) !important; }

.vote-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cb-border);
  background: rgba(56, 189, 248, 0.03);
}
.vote-site-icon {
  width: 38px; height: 38px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--cb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--cb-primary);
  flex-shrink: 0;
}
.vote-card-body { padding: 1.125rem; }
.vote-cooldown-info {
  font-size: 0.8125rem;
  color: var(--cb-text-muted);
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-sm);
  padding: 0.625rem 0.875rem;
  text-align: center;
}
.vote-cooldown-info strong { color: var(--cb-text); }

.cb-btn-vote {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--cb-transition);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.cb-btn-vote:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,197,94,0.4); color: white; }

/* Reward steps */
.reward-step { padding: 0.5rem; }
.reward-step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #04070e;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(56,189,248,0.35);
}
.reward-step h6 { color: white; font-weight: 700; font-size: 0.875rem; }

/* ================================================================
   SHOP PAGE — revised card + info structures
   ================================================================ */
.shop-balance-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--cb-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}
.shop-info-banner {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.25rem;
}
.shop-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  padding: 0.75rem;
}
.shop-info-item i { font-size: 1.5rem; }
.shop-info-item span { color: var(--cb-text); }

.shop-card-popular-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cb-accent), #d97706);
  color: #04070e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.shop-card-header {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--cb-border);
  margin-bottom: 0.875rem;
  text-align: center;
}
.shop-pack-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  filter: drop-shadow(0 0 10px currentColor);
  opacity: 0.9;
}
.shop-card-body { padding-bottom: 0.875rem; border-bottom: 1px solid var(--cb-border); margin-bottom: 0.875rem; }
.shop-card-footer { padding-top: 0; }

/* Credits display inside shop card */
.shop-credits-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.625rem;
}
.shop-credits-count {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--cb-accent);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.4));
}
.shop-credits-label { font-size: 0.875rem; color: var(--cb-text-muted); font-weight: 600; }
.shop-pack-desc { font-size: 0.8125rem; color: var(--cb-text-muted); line-height: 1.65; margin: 0; text-align: center; }

.shop-price {
  font-size: 1.625rem;
  font-weight: 900;
  color: white;
  text-align: center;
}
.shop-currency { font-size: 1.125rem; color: var(--cb-text-muted); font-weight: 500; }

.cb-btn-shop-featured {
  background: linear-gradient(135deg, var(--cb-accent) 0%, #d97706 100%);
  color: #04070e;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.cb-btn-shop-featured:hover { box-shadow: 0 6px 24px rgba(245,158,11,0.5); color: #04070e; }
.shop-coming-soon { font-size: 0.75rem; color: var(--cb-text-muted); }

.shop-free-section {
  background: var(--cb-bg-card);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--cb-radius);
  padding: 1.75rem 2rem;
}
.cb-accordion-body {
  background: var(--cb-bg-subtle) !important;
  color: var(--cb-text-muted) !important;
  font-size: 0.875rem;
  line-height: 1.7;
  border: none !important;
}

/* ================================================================
   RANKING PAGE — podium + table badges
   ================================================================ */
.rk-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0.5rem 0 0;
}
.rk-podium-place { display: flex; flex-direction: column; align-items: center; width: 150px; }
.rk-podium-place--1 { order: 2; position: relative; z-index: 2; }
.rk-podium-place--2 { order: 1; }
.rk-podium-place--3 { order: 3; }

.rk-podium-place { animation: rk-podium-rise 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.rk-podium-place--2 { animation-delay: 0.05s; }
.rk-podium-place--3 { animation-delay: 0.2s; }
.rk-podium-place--1 { animation-delay: 0.35s; animation-name: rk-podium-rise-lead; }
@keyframes rk-podium-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rk-podium-rise-lead {
  0%   { opacity: 0; transform: translateY(30px) scale(0.88); }
  70%  { opacity: 1; transform: translateY(-6px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1.03); }
}

.rk-podium-crown {
  font-size: 1.5rem;
  color: var(--cb-accent);
  margin-bottom: 0.375rem;
  filter: drop-shadow(0 0 10px rgba(245,158,11,0.65));
  animation: rk-podium-float 3s ease-in-out infinite;
}
@keyframes rk-podium-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Card holding avatar + name + stat, sits above the colored pedestal */
.rk-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(15,23,42,0.35));
  border: 1px solid var(--cb-border);
  border-radius: 14px;
  padding: 1rem 0.75rem 0.875rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rk-podium-place:hover .rk-podium-card { transform: translateY(-3px); }
.rk-podium-place--1 .rk-podium-card {
  border-color: rgba(245,158,11,0.4);
  background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(15,23,42,0.35));
  box-shadow: 0 0 26px rgba(245,158,11,0.18);
}
.rk-podium-place--2 .rk-podium-card { border-color: rgba(148,163,184,0.3); }
.rk-podium-place--3 .rk-podium-card { border-color: rgba(180,120,60,0.35); }

.rk-podium-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(56,189,248,0.1);
  border: 2px solid var(--cb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}
.rk-podium-place--1 .rk-podium-avatar { border-color: rgba(245,158,11,0.55); box-shadow: 0 0 18px rgba(245,158,11,0.3); }
.rk-podium-place--2 .rk-podium-avatar { border-color: rgba(148,163,184,0.5); }
.rk-podium-place--3 .rk-podium-avatar { border-color: rgba(180,120,60,0.5); }
.rk-podium-avatar--lg { width: 76px; height: 76px; font-size: 2rem; border-width: 3px; }
.rk-podium-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rk-podium-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.125rem;
}
.rk-podium-meta {
  font-size: 0.7rem;
  color: var(--cb-text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Pedestal : bloc coloré sous la carte, hauteur croissante avec le rang */
.rk-podium-pedestal {
  width: 100%;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.rk-podium-pedestal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent 55%);
  pointer-events: none;
}
.rk-podium-rank-num { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 900; }
.rk-podium-place--1 .rk-podium-pedestal { height: 64px; background: linear-gradient(180deg, rgba(245,158,11,0.32), rgba(245,158,11,0.08)); border: 1px solid rgba(245,158,11,0.4); border-top: none; }
.rk-podium-place--1 .rk-podium-rank-num { color: var(--cb-accent); }
.rk-podium-place--2 .rk-podium-pedestal { height: 46px; background: linear-gradient(180deg, rgba(148,163,184,0.24), rgba(148,163,184,0.06)); border: 1px solid rgba(148,163,184,0.3); border-top: none; }
.rk-podium-place--2 .rk-podium-rank-num { color: #cbd5e1; }
.rk-podium-place--3 .rk-podium-pedestal { height: 34px; background: linear-gradient(180deg, rgba(217,146,89,0.24), rgba(180,120,60,0.06)); border: 1px solid rgba(180,120,60,0.35); border-top: none; }
.rk-podium-place--3 .rk-podium-rank-num { color: #d99259; font-size: 1.25rem; }

.rank-trophy { font-size: 1rem; }
.rank-number { font-size: 0.875rem; font-weight: 700; color: var(--cb-text-muted); }
.player-avatar-sm {
  width: 30px; height: 30px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--cb-primary);
  flex-shrink: 0;
}
.player-class-avatar-sm {
  overflow: hidden;
}
.player-class-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podium-guild-emblem {
  background: color-mix(in srgb, var(--bg, #1f2937) 55%, #0b1220 45%);
  color: var(--fg, #e2e8f0);
  border: 2px solid color-mix(in srgb, var(--fg, #e2e8f0) 55%, #0b1220 45%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 6px 16px rgba(0,0,0,0.3);
}

.align-bonta {
  background: rgba(56, 189, 248, 0.12);
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.3);
}
.align-brakmar {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.align-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}
.class-badge { background: rgba(56,189,248,0.07); color: var(--cb-primary); border: 1px solid rgba(56,189,248,0.15); border-radius: 50px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.level-badge  { background: rgba(245,158,11,0.08); color: var(--cb-accent); border: 1px solid rgba(245,158,11,0.15); border-radius: 50px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.prestige-stars { color: var(--cb-accent); font-size: 0.75rem; }
.ranking-table .rank-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }

/* Bootstrap pagination override for dark theme */
.cb-pagination .page-link {
  background: var(--cb-bg-card);
  border-color: var(--cb-border);
  color: var(--cb-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--cb-transition);
}
.cb-pagination .page-link:hover { background: rgba(56,189,248,0.1); color: var(--cb-primary); border-color: rgba(56,189,248,0.3); }
.cb-pagination .page-item.active .page-link { background: var(--cb-primary); border-color: var(--cb-primary); color: #04070e; font-weight: 800; box-shadow: 0 0 12px var(--cb-primary-glow); }
.cb-pagination .page-item.disabled .page-link { background: var(--cb-bg-card); border-color: var(--cb-border); color: rgba(94,125,154,0.4); }

/* ================================================================
   ADMIN — additional utilities
   ================================================================ */
.admin-wrap { background: var(--cb-bg); min-height: calc(100vh - 70px); }
.admin-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: white; letter-spacing: -0.02em; font-family: 'Cinzel', serif; }
.admin-stat-body { flex: 1; }

/* Soft icon backgrounds */
.bg-primary-soft  { background: rgba(56, 189, 248, 0.1)  !important; }
.bg-success-soft  { background: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-soft  { background: rgba(245, 158, 11, 0.1)  !important; }
.bg-danger-soft   { background: rgba(244, 63, 94, 0.1)   !important; }
.bg-purple-soft   { background: rgba(167, 139, 250, 0.1) !important; }
.bg-info-soft     { background: rgba(103, 232, 249, 0.1) !important; }

/* ================================================================
   TOP VOTERS LIST (vote sidebar)
   ================================================================ */
.top-voters-list { list-style: none; padding: 0; margin: 0; }
.top-voter-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.06);
  transition: var(--cb-transition);
}
.top-voter-item:last-child { border-bottom: none; }
.top-voter-item:hover { background: rgba(56,189,248,0.04); }
.top-voter-rank {
  width: 22px; height: 22px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--cb-primary);
  flex-shrink: 0;
}
.top-voter-item:first-child .top-voter-rank { background: rgba(245,158,11,0.12); color: var(--cb-accent); }
.top-voter-avatar { font-size: 1.125rem; color: var(--cb-primary); opacity: 0.7; }
.top-voter-name   { font-size: 0.875rem; font-weight: 600; color: var(--cb-text); }
.top-voter-count  { font-size: 0.8rem; font-weight: 700; color: var(--cb-text-muted); }

/* ================================================================
   ADMIN PANEL BODY / TITLE
   ================================================================ */
.admin-panel-title { font-size: 0.9rem; font-weight: 700; color: white; margin: 0; }
.admin-panel-body  { padding: 1.25rem; }

/* ================================================================
   ADMIN PANEL v2 — layout, sidebar, badges, action buttons
   ================================================================ */

/* --- Sidebar layout --- */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  align-items: flex-start;
  margin-top: 80px;
}
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2rem 2rem;
}

/* --- Sidebar brand --- */
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--cb-border);
}
.admin-sidebar-brand svg,
.admin-sidebar-brand .bi {
  color: var(--cb-primary);
  font-size: 1.2rem;
}

/* --- Sidebar nav --- */
.admin-sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
}
.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cb-text-muted);
  padding: 0.9rem 1.25rem 0.3rem;
  opacity: 0.7;
}

/* --- Sidebar footer --- */
.admin-sidebar-footer {
  padding: 0.875rem 0.75rem;
  border-top: 1px solid var(--cb-border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-sidebar-ext,
.admin-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  border-radius: var(--cb-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  text-decoration: none;
  transition: var(--cb-transition);
}
.admin-sidebar-ext:hover  { background: rgba(56,189,248,0.07); color: var(--cb-primary); }
.admin-sidebar-logout:hover { background: rgba(251,113,133,0.09); color: #fb7185; }

/* --- Top bar --- */
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}
.admin-page-sub {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  margin: 0.15rem 0 0;
}

/* --- panel header "more" link --- */
.admin-panel-more {
  font-size: 0.8rem;
  color: var(--cb-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  opacity: 0.85;
  transition: var(--cb-transition);
}
.admin-panel-more:hover { opacity: 1; }

/* --- Badges --- */
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  gap: 0.2rem;
}
.admin-badge-blue   { background: rgba(56,189,248,0.14);  color: #38bdf8; }
.admin-badge-green  { background: rgba(16,185,129,0.14);  color: #10b981; }
.admin-badge-red    { background: rgba(251,113,133,0.14); color: #fb7185; }
.admin-badge-amber  { background: rgba(245,158,11,0.14);  color: #f59e0b; }
.admin-badge-gray   { background: rgba(100,116,139,0.18); color: #94a3b8; }
.admin-badge-purple { background: rgba(139,92,246,0.14);  color: #a78bfa; }

/* --- Table helpers --- */
.admin-td-muted { color: var(--cb-text-muted); font-size: 0.8125rem; }
.admin-row-muted { opacity: 0.45; }
.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  color: var(--cb-text-muted);
  text-align: center;
  gap: 0.5rem;
}
.admin-empty .bi  { font-size: 2.5rem; opacity: 0.3; }
.admin-empty p    { margin: 0; font-size: 0.925rem; }

/* --- User avatar --- */
.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56,189,248,0.12);
  color: var(--cb-primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* --- Action buttons --- */
.admin-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--cb-transition);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.admin-action-btn:hover { transform: translateY(-1px); }
.admin-action-btn-danger  { border-color: rgba(251,113,133,0.35); color: #fb7185; background: rgba(251,113,133,0.07); }
.admin-action-btn-danger:hover  { background: rgba(251,113,133,0.18); }
.admin-action-btn-success { border-color: rgba(16,185,129,0.35);  color: #10b981; background: rgba(16,185,129,0.07); }
.admin-action-btn-success:hover { background: rgba(16,185,129,0.18); }
.admin-action-btn-warn    { border-color: rgba(245,158,11,0.35);  color: #f59e0b; background: rgba(245,158,11,0.07); }
.admin-action-btn-warn:hover    { background: rgba(245,158,11,0.18); }
.admin-action-btn-blue    { border-color: rgba(56,189,248,0.35);  color: #38bdf8; background: rgba(56,189,248,0.07); }
.admin-action-btn-blue:hover    { background: rgba(56,189,248,0.18); }

/* --- News image upload dropzone --- */
.news-upload-dropzone {
  position: relative;
  border: 1.5px dashed rgba(56,189,248,0.28);
  background: rgba(8, 15, 30, 0.55);
  border-radius: var(--cb-radius);
  min-height: 130px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--cb-transition);
  overflow: hidden;
}
.news-upload-dropzone:hover,
.news-upload-dropzone.is-dragover {
  border-color: var(--cb-primary);
  background: rgba(56,189,248,0.08);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.12) inset;
}
.news-upload-dropzone.is-uploading {
  opacity: 0.75;
}
.news-upload-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.news-upload-placeholder {
  text-align: center;
  color: var(--cb-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}
.news-upload-placeholder i {
  font-size: 1.7rem;
  color: var(--cb-primary);
}
.news-upload-placeholder strong {
  color: var(--cb-text);
  font-size: 0.9rem;
}
.news-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- News rich text editor (Quill) --- */
.news-editor-wrap { border: 1px solid var(--cb-border); border-radius: var(--cb-radius); overflow: hidden; background: rgba(8, 15, 30, 0.55); }
.news-editor-toolbar.ql-toolbar.ql-snow { background: rgba(15, 23, 42, 0.65); border: none; border-bottom: 1px solid var(--cb-border); }
.news-editor-toolbar .ql-stroke { stroke: var(--cb-text-muted); }
.news-editor-toolbar .ql-fill { fill: var(--cb-text-muted); }
.news-editor-toolbar .ql-picker-label { color: var(--cb-text-muted); }
.news-editor-toolbar button:hover .ql-stroke, .news-editor-toolbar .ql-picker-label:hover { color: var(--cb-primary); }
.news-editor-toolbar button:hover .ql-stroke, .news-editor-toolbar button.ql-active .ql-stroke { stroke: var(--cb-primary); }
.news-editor-toolbar button.ql-active .ql-fill { fill: var(--cb-primary); }
.news-editor-body.ql-container.ql-snow { border: none; color: var(--cb-text); font-size: 0.9rem; min-height: 170px; }
.news-editor-body .ql-editor { min-height: 170px; }
.news-editor-body .ql-editor.ql-blank::before { color: var(--cb-text-muted); font-style: normal; }
.ql-snow .ql-picker-options { background: #0f172a; border-color: var(--cb-border); }
.ql-snow .ql-picker-item { color: var(--cb-text-muted); }
.ql-snow .ql-tooltip { background: #0f172a; border-color: var(--cb-border); color: var(--cb-text); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.ql-snow .ql-tooltip input[type="text"] { background: rgba(8,15,30,0.7); border-color: var(--cb-border); color: var(--cb-text); }
.news-preview-article { max-height: 65vh; overflow-y: auto; padding: 0.5rem 0.25rem; }
.news-preview-article h3 { color: #fff; font-size: 1.35rem; margin: 1rem 0; }
.news-preview-image { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--cb-radius-sm); margin-bottom: 1rem; }

/* --- Quick action cards (dashboard) --- */
.admin-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  text-decoration: none;
  color: var(--cb-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--cb-transition);
  gap: 0.6rem;
}
.admin-quick-card .bi { font-size: 1.5rem; }
.admin-quick-card:hover {
  border-color: rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.05);
  color: var(--cb-primary);
  transform: translateY(-2px);
  box-shadow: var(--cb-shadow-blue);
}

/* --- Form label in admin context --- */
.admin-form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.35rem;
  display: block;
}
.admin-form-label .text-danger { font-weight: 700; }

/* Fix Bootstrap form-check on dark bg */
.form-check-input:checked { background-color: var(--cb-primary); border-color: var(--cb-primary); }
.form-check-input { background-color: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.3); }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

/* ── Bootstrap dark overrides (admin & modals) ──────────────────────────── */
/* form-control / form-select default white → dark */
.admin-main .form-control,
.admin-main .form-select,
.admin-layout .form-control,
.admin-layout .form-select,
.dbm .form-control,
.dbm .form-select {
  background-color: rgba(4,7,14,0.75) !important;
  border: 1.5px solid rgba(56,189,248,0.15) !important;
  color: var(--cb-text) !important;
  border-radius: var(--cb-radius-sm) !important;
}
.admin-main .form-control:focus,
.admin-main .form-select:focus,
.admin-layout .form-control:focus,
.admin-layout .form-select:focus,
.dbm .form-control:focus,
.dbm .form-select:focus {
  background-color: rgba(4,7,14,0.95) !important;
  border-color: var(--cb-primary) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12) !important;
  color: white !important;
}
/* placeholder */
.admin-layout .form-control::placeholder,
.admin-layout .form-select::placeholder,
.dbm .form-control::placeholder { color: rgba(94,125,154,0.5) !important; }
/* select option items */
.admin-layout .form-select option,
.dbm .form-select option { background: #0d1117; color: var(--cb-text); }
/* textarea */
.admin-main textarea.form-control,
.dbm textarea.form-control { resize: vertical; min-height: 80px; }
/* Bootstrap table background */
.admin-main .table,
.admin-main .table > :not(caption) > * > * { background-color: transparent; color: var(--cb-text); }
/* Bootstrap collapse card / well (if any) */
.admin-layout .card { background: var(--cb-bg-card); border-color: var(--cb-border); color: var(--cb-text); }
.admin-layout .card-body { color: var(--cb-text); }
/* Bootstrap form-switch track on dark sidebar */
.admin-layout .form-check-input[type="checkbox"] { background-color: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); }
.admin-layout .form-check-input[type="checkbox"]:checked { background-color: var(--cb-primary); border-color: var(--cb-primary); }

/* Bootstrap alert → dark theme overrides (admin) */
.admin-layout .alert,
.admin-main  .alert {
  border-radius: var(--cb-radius-sm);
  font-size: 0.875rem;
}
.admin-layout .alert-success,
.admin-main  .alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}
.admin-layout .alert-danger,
.admin-main  .alert-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.admin-layout .alert-info,
.admin-main  .alert-info {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
}
.admin-layout .alert-warning,
.admin-main  .alert-warning {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d;
}
.admin-layout .alert strong,
.admin-main  .alert strong { color: inherit; filter: brightness(1.25); }
.admin-layout .btn-close,
.admin-main  .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.7;
}
.admin-layout .btn-close:hover,
.admin-main  .btn-close:hover { opacity: 1; }

/* ── text-muted / text-secondary dans le contexte admin ─────────────── */
/* Bootstrap utilise --bs-secondary-color (≈ gris quasi-noir) par défaut */
.admin-layout .text-muted,
.admin-main   .text-muted,
.admin-layout .text-secondary,
.admin-main   .text-secondary {
  color: var(--cb-text-muted) !important; /* #5e7d9a — lisible sur fond sombre */
}
/* input-group-text (icône de table, etc.) */
.admin-layout .input-group-text,
.admin-main   .input-group-text {
  background: transparent;
  border-color: rgba(56,189,248,0.15);
  color: var(--cb-text-muted);
}
/* h6 section titles inside panels */
.admin-layout h6.text-muted,
.admin-main   h6.text-muted {
  color: rgba(94,125,154,0.85) !important;
  letter-spacing: 0.06em;
}
/* form-text (small hint under inputs) */
.admin-layout .form-text,
.admin-main   .form-text {
  color: var(--cb-text-muted) !important;
}
.admin-layout .form-text code,
.admin-main   .form-text code {
  color: var(--cb-primary);
  background: rgba(56,189,248,0.08);
  padding: 0 .3em;
  border-radius: 3px;
}

/* ================================================================
   NEWS CATALOG PAGE
   ================================================================ */
.news-catalog-hero {
  padding: 110px 0 24px;
}

.news-catalog-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 65%),
    linear-gradient(120deg, rgba(5, 14, 28, 0.95), rgba(6, 25, 44, 0.95));
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--cb-shadow), 0 0 40px rgba(56, 189, 248, 0.1) inset;
}

.news-catalog-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--cb-blue-light);
  margin-bottom: 0.35rem;
}

.news-catalog-hero-card h1 {
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  margin-bottom: 0.4rem;
}

.news-catalog-hero-card p {
  margin-bottom: 0;
  color: rgba(204, 231, 255, 0.78);
}

.news-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.news-catalog-stats span {
  font-size: 0.82rem;
  color: var(--cb-text-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(56, 189, 248, 0.06);
  border-radius: 999px;
}

.news-catalog-stats strong {
  color: white;
  margin-right: 0.2rem;
}

.news-catalog-wrap {
  padding: 0 0 64px;
}

.news-filter-panel {
  border: 1px solid var(--cb-border);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.95), rgba(7, 16, 32, 0.95));
  border-radius: 14px;
  padding: 0.95rem;
  margin-bottom: 1.1rem;
}

.news-filter-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 220px 120px;
}

.news-search-box {
  position: relative;
}

.news-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cb-text-muted);
  pointer-events: none;
}

.news-search-box .form-control,
.news-sort-box .form-select {
  background: rgba(4, 9, 20, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--cb-text);
}

.news-search-box .form-control {
  padding-left: 36px;
}

.news-search-box .form-control:focus,
.news-sort-box .form-select:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.news-sort-box {
  display: flex;
  flex-direction: column;
  gap: 0.33rem;
}

.news-sort-box label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(204, 231, 255, 0.62);
}

.news-filter-btn {
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.16));
  color: var(--cb-text-bright);
  font-weight: 700;
}

.news-filter-btn:hover {
  color: white;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.24) inset;
}

.news-chip-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.news-chip {
  border: 1px solid rgba(56, 189, 248, 0.17);
  background: rgba(56, 189, 248, 0.05);
  color: var(--cb-text);
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  transition: var(--cb-transition);
}

.news-chip span {
  margin-left: 0.25rem;
  color: var(--cb-text-muted);
}

.news-chip:hover,
.news-chip.is-active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.14);
  color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.95), rgba(7, 13, 26, 0.95));
  transition: var(--cb-transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--cb-shadow-blue);
}

.news-card-media {
  display: block;
  position: relative;
  height: 190px;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.06);
}

.news-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.news-card-ph-annonce { background: linear-gradient(135deg, #0b3e62, #0b1934); }
.news-card-ph-update { background: linear-gradient(135deg, #11543f, #0f2a24); }
.news-card-ph-event { background: linear-gradient(135deg, #6c3d0a, #2f1f0a); }
.news-card-ph-patch_note { background: linear-gradient(135deg, #3c2663, #14192f); }

.news-card-media .news-cat {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.news-card-body {
  padding: 0.9rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.news-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: white;
  line-height: 1.35;
}

.news-card-title:hover {
  color: var(--cb-primary);
}

.news-card-excerpt {
  color: rgba(204, 231, 255, 0.72);
  margin: 0;
  font-size: 0.88rem;
}

.news-card-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--cb-text-muted);
}

.news-empty {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(8, 15, 30, 0.9);
  border-radius: 14px;
  text-align: center;
  padding: 2rem 1rem;
}

.news-empty i {
  font-size: 2.2rem;
  color: var(--cb-primary);
}

.news-empty h2 {
  margin: 0.55rem 0 0.25rem;
  font-size: 1.2rem;
}

.news-empty p {
  color: var(--cb-text-muted);
  margin-bottom: 0.8rem;
}

.news-pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.news-page-btn {
  min-width: 35px;
  height: 35px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.06);
  color: var(--cb-text);
  font-weight: 700;
}

.news-page-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: white;
}

.news-page-btn.is-active {
  border-color: var(--cb-primary);
  background: rgba(56, 189, 248, 0.2);
  color: white;
}

.news-page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.reg-editor-wrap {
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(4,7,14,0.72);
}

.reg-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem;
  border-bottom: 1px solid rgba(56,189,248,0.16);
  background: rgba(9,17,30,0.9);
}

.reg-editor-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.24);
  background: rgba(56,189,248,0.08);
  color: #d9f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.reg-editor-btn:hover {
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.42);
}

.reg-editor-sep {
  width: 1px;
  height: 20px;
  background: rgba(56,189,248,0.22);
  margin: 0 0.2rem;
}

.reg-editor-surface {
  min-height: 420px;
  padding: 0.9rem;
  color: var(--cb-text);
  line-height: 1.62;
  outline: none;
}

.reg-editor-surface h3,
.reg-editor-surface h4 {
  color: #fff;
  margin-top: 0.9rem;
}

.reg-editor-surface p {
  margin-bottom: 0.6rem;
}

.reg-editor-surface ul,
.reg-editor-surface ol {
  padding-left: 1.2rem;
}

.reg-editor-btn.is-active {
  background: rgba(212, 166, 67, 0.25);
  border-color: rgba(212, 166, 67, 0.6);
  color: #ffe9b8;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN FEATURES — liste compacte + fenêtre d'édition (.fem-*)
   ═══════════════════════════════════════════════════════════ */
.feat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.feat-toolbar .feat-search { max-width: 250px; }
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 12px;
  background: rgba(9, 17, 30, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feat-item:hover { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.05); }
.feat-item.is-inactive { opacity: 0.5; }
.feat-item-thumb {
  width: 68px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4, 7, 14, 0.75);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.1rem;
}
.feat-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-item-main { flex: 1 1 auto; min-width: 0; }
.feat-item-title {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feat-item-excerpt {
  color: var(--cb-text);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.18rem 0 0;
  opacity: 0.75;
}
.feat-item-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.28rem; }
.feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.14rem 0.55rem;
  border-radius: 99px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #9fdcff;
  background: rgba(56, 189, 248, 0.08);
}
.feat-badge.is-pos {
  border-color: rgba(212, 166, 67, 0.45);
  color: #ecd9a4;
  background: rgba(212, 166, 67, 0.08);
}
.feat-badge.is-off {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}
.feat-item-actions { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
@media (max-width: 640px) {
  .feat-item { flex-wrap: wrap; }
  .feat-item-main { order: 3; flex-basis: 100%; }
  .feat-item-actions { margin-left: auto; }
}

/* ── Fenêtre modale d'édition complète ─────────────────────────── */
.fem-overlay {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 5, 12, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.fem-overlay.is-open { opacity: 1; pointer-events: auto; }
.fem-dialog {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(13, 22, 40, 0.99), rgba(7, 12, 24, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.1);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.fem-overlay.is-open .fem-dialog { transform: translateY(0) scale(1); opacity: 1; }
.fem-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}
.fem-head h4 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fem-head .bi-stars { color: #67e8f9; }
.fem-close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 10, 22, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.fem-close:hover { background: rgba(56, 189, 248, 0.22); transform: rotate(90deg); }
.fem-body { overflow-y: auto; padding: 1.1rem 1.15rem 1.25rem; }
.fem-section { margin-bottom: 1.15rem; }
.fem-section:last-child { margin-bottom: 0; }
.fem-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ecd9a4;
  margin-bottom: 0.6rem;
}
.fem-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 166, 67, 0.35), transparent);
}
.fem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}
.fem-col-2 { grid-column: span 2; }
.fem-col-3 { grid-column: span 3; }
.fem-col-4 { grid-column: span 4; }
.fem-col-5 { grid-column: span 5; }
.fem-col-6 { grid-column: span 6; }
.fem-col-8 { grid-column: span 8; }
.fem-col-12 { grid-column: span 12; }
@media (max-width: 700px) {
  .fem-grid > * { grid-column: span 12; }
}
.fem-editor-surface { min-height: 190px; max-height: 340px; overflow-y: auto; }
.fem-source {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  min-height: 190px;
}
.fem-src-note { font-size: 0.74rem; color: var(--cb-text); opacity: 0.75; margin: 0.4rem 0 0; }
.fem-pos-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fem-pos-group label { margin: 0; }
.fem-pos-group input { position: absolute; opacity: 0; pointer-events: none; }
.fem-pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 99px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
  color: var(--cb-text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.fem-pos-pill:hover { border-color: rgba(56, 189, 248, 0.5); }
.fem-pos-group input:checked + .fem-pos-pill {
  border-color: #67e8f9;
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}
.fem-pos-pill .bi { font-size: 0.95rem; }
.fem-media { display: flex; gap: 0.8rem; align-items: flex-start; }
.fem-media-preview {
  width: 168px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(4, 7, 14, 0.72);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.5rem;
}
.fem-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.fem-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}
.fem-dialog form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.fem-body { flex: 1 1 auto; min-height: 0; }
.fem-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-filter-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   NEWS SLIDER  (.ns-*)
═══════════════════════════════════════════════════════════ */

/* Arrow controls group */
.ns-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ns-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(4,7,14,0.6);
  color: var(--cb-primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--cb-transition);
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.ns-arrow:hover {
  background: var(--cb-primary);
  color: #04070e;
  border-color: var(--cb-primary);
}
.ns-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Viewport — clips overflowing slides */
.ns-viewport {
  overflow: hidden;
  position: relative;
}

/* Draggable sliding track */
.ns-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.ns-track.dragging {
  transition: none;
  cursor: grabbing;
}

/* Each slide — 4 visible on desktop */
.ns-slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
}
.nch.ns-slide { cursor: pointer; }

@media (max-width: 991px) {
  .ns-slide { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 575px) {
  .ns-slide { flex: 0 0 calc(50% - 5px); }
  .hero-news-header { flex-wrap: wrap; gap: 10px; }
}


/* ═══════════════════════════════════════════════════════════
   NEWS POPUP  (.np-*)
═══════════════════════════════════════════════════════════ */

/* Full-screen overlay backdrop */
.np-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(2,5,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.np-overlay.np-open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal card */
.np-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: linear-gradient(160deg, #070f1e 0%, #05101c 100%);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 16px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(56,189,248,0.06);
  transform: translateY(28px);
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(56,189,248,0.18) transparent;
}
.np-overlay.np-open .np-modal {
  transform: translateY(0);
}
.np-modal::-webkit-scrollbar { width: 4px; }
.np-modal::-webkit-scrollbar-track { background: transparent; }
.np-modal::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 4px; }

/* × close button */
.np-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(4,7,14,0.75);
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--cb-transition);
  line-height: 1;
  padding: 0;
}
.np-close:hover {
  background: rgba(56,189,248,0.15);
  border-color: var(--cb-primary);
  color: white;
}

/* Banner image */
.np-image-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #050d1c 0%, rgba(40,105,143,0.25) 100%);
  flex-shrink: 0;
  position: relative;
}
.np-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.np-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.np-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.np-image-placeholder i {
  font-size: 5rem;
  color: rgba(56,189,248,0.12);
  position: relative;
  z-index: 1;
}

/* Article body */
.np-body { padding: 26px 32px 32px; }
@media (max-width: 575px) {
  .np-body { padding: 18px 16px 24px; }
  .np-image-wrap { height: 180px; }
}

/* Meta row */
.np-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.np-meta-left { flex: 1; min-width: 0; }

.np-title {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 7px 0 9px;
  background: linear-gradient(90deg, #fff 0%, var(--cb-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.np-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--cb-text-muted);
}
.np-meta-info i { margin-right: 4px; color: var(--cb-primary); }

/* Like button */
.np-like-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cb-transition);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.np-like-btn:hover {
  background: rgba(239,68,68,0.16);
  border-color: rgba(239,68,68,0.65);
  color: #f87171;
}
.np-like-btn.liked {
  background: rgba(239,68,68,0.18);
  border-color: #ef4444;
  color: #f87171;
}
.np-like-icon { font-size: 1rem; transition: transform 0.25s; }
.np-like-btn.liked .np-like-icon { animation: like-pop 0.4s ease; }
@keyframes like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* Article safe-HTML content */
.np-content {
  color: rgba(200,215,230,0.9);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  margin-bottom: 28px;
  word-break: break-word;
}
.np-content p  { margin-bottom: 0.85em; }
.np-content h1,.np-content h2,.np-content h3 { color: white; margin: 1.2em 0 0.5em; }
.np-content a  { color: var(--cb-primary); }
.np-content img { max-width: 100%; border-radius: 8px; }

/* Comments section */
.np-comments { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 22px; }
.np-comments-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}
.np-comments-title i { color: var(--cb-primary); }

/* Single comment */
.np-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.np-comment:last-child { border-bottom: none; }

.np-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  overflow: hidden;
}
.np-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.np-comment-content  { flex: 1; min-width: 0; }
.np-comment-header   { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.np-comment-author   { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.np-comment-date     { font-size: 0.72rem; color: var(--cb-text-muted); }
.np-comment-body     { font-size: 0.875rem; color: rgba(200,215,230,0.85); word-break: break-word; line-height: 1.5; }
.np-comment-delete   {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.np-comment-delete:hover { color: #f87171; }

.np-no-comments {
  text-align: center;
  color: var(--cb-text-muted);
  font-size: 0.875rem;
  padding: 20px 0 12px;
}

/* Comment form */
.np-comment-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.np-comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.25s;
  font-family: inherit;
}
.np-comment-form textarea::placeholder { color: var(--cb-text-muted); }
.np-comment-form textarea:focus { outline: none; border-color: rgba(56,189,248,0.5); }
.np-comment-form button {
  align-self: flex-end;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  color: #04070e;
  border: none;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: var(--cb-transition);
}
.np-comment-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--cb-primary-glow); }
.np-comment-form button:disabled { opacity: 0.55; pointer-events: none; }

.np-login-prompt {
  text-align: center;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px dashed rgba(56,189,248,0.15);
  color: var(--cb-text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}
.np-login-prompt a { color: var(--cb-primary); font-weight: 600; }

/* Loading spinner */
.np-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.np-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(56,189,248,0.12);
  border-top-color: var(--cb-primary);
  border-radius: 50%;
  animation: np-spin 0.8s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* ================================================================
   SERVER WORLD SECTION — play-aqua "Redécouvrez le monde des douzes"
   ================================================================ */
.server-world-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sw-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #060e20 0%, #04070e 100%);
  pointer-events: none;
}
.sw-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.sw-bg-glow--1 {
  width: 600px; height: 400px;
  background: rgba(56,189,248,0.08);
  top: -120px; left: -60px;
}
.sw-bg-glow--2 {
  width: 500px; height: 500px;
  background: rgba(245,158,11,0.05);
  bottom: -120px; right: -60px;
}

/* Two-column grid */
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) {
  .sw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Left: lore text */
.sw-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.75rem 0 1.5rem;
  background: linear-gradient(150deg, #ffffff 0%, #b8d8f0 60%, var(--cb-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.sw-desc {
  color: rgba(255,255,255,0.5);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.sw-link {
  color: var(--cb-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.sw-link:hover { color: white; text-decoration: none; }
.sw-link i { transition: transform 0.3s; display: inline-block; }
.sw-link:hover i { transform: translateX(4px); }

/* Right: server stats card */
.sw-card {
  background: linear-gradient(145deg, #070f1e 0%, #0b1628 100%);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(56,189,248,0.06);
  position: relative;
  overflow: hidden;
}
.sw-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.sw-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.sw-card-label {
  font-size: 1.0625rem;
  font-weight: 800;
  color: white;
  margin-right: 0.25rem;
}
.sw-card-tag {
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.22);
  color: var(--cb-primary);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sw-card-tag--global {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.28);
  color: var(--cb-accent);
}

/* Stats 4-column grid */
.sw-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 575px) {
  .sw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.sw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 10px;
  text-align: center;
  gap: 0.3rem;
  transition: border-color 0.25s;
}
.sw-stat:hover { border-color: rgba(56,189,248,0.28); }
.sw-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.8);
  animation: pulse-dot 2s infinite;
}
.sw-stat-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}
.sw-stat-label {
  font-size: 0.7rem;
  color: var(--cb-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Play button */
.sw-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9375rem;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-deep) 100%);
  border: none;
  border-radius: 10px;
  color: #04070e;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--cb-transition);
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px var(--cb-primary-glow);
}
.sw-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cb-primary-glow);
  color: #04070e;
  text-decoration: none;
}

/* ================================================================
   AMBIENT BACKGROUND ORBS (global, all pages)
   ================================================================ */
.cb-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  animation: cb-ambient-fadein 1.5s ease both;
}
@keyframes cb-ambient-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  opacity: 1;
}
/* Orb 1 — Blue, top-left */
.cb-orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle at 40% 40%, rgba(56,189,248,0.09) 0%, transparent 70%);
  top: -180px; left: -160px;
  animation: cb-orb-1 34s ease-in-out infinite alternate;
}
/* Orb 2 — Amber, bottom-right */
.cb-orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 60%, rgba(245,158,11,0.07) 0%, transparent 70%);
  bottom: -120px; right: -120px;
  animation: cb-orb-2 30s ease-in-out infinite alternate;
}
/* Orb 3 — Indigo, center-right */
.cb-orb-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.07) 0%, transparent 70%);
  top: 35%; left: 55%;
  animation: cb-orb-3 26s ease-in-out infinite alternate;
}
/* Orb 4 — Green, top-right */
.cb-orb-4 {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.055) 0%, transparent 70%);
  top: 15%; right: 5%;
  animation: cb-orb-4 40s ease-in-out infinite alternate;
}

@keyframes cb-orb-1 {
  0%   { transform: translate(0,    0);    }
  33%  { transform: translate(90px, 60px); }
  66%  { transform: translate(40px, 130px); }
  100% { transform: translate(120px, 80px); }
}
@keyframes cb-orb-2 {
  0%   { transform: translate(0,    0);      }
  33%  { transform: translate(-70px,-50px);  }
  66%  { transform: translate(-120px,-20px); }
  100% { transform: translate(-60px,-90px);  }
}
@keyframes cb-orb-3 {
  0%   { transform: translate(0,    0);    }
  33%  { transform: translate(50px,-70px); }
  66%  { transform: translate(-30px,50px); }
  100% { transform: translate(70px, 30px); }
}
@keyframes cb-orb-4 {
  0%   { transform: translate(0,   0);    }
  33%  { transform: translate(-50px,40px); }
  66%  { transform: translate(60px,-30px); }
  100% { transform: translate(-30px,70px); }
}

/* Low-power fallback: disable decorative infinite animations (helps on machines
   running without GPU/hardware acceleration, where filter+transform animation
   falls back to expensive software rendering) */
@media (prefers-reduced-motion: reduce) {
  .cb-orb,
  .db-atmo-orb,
  .podium-crown,
  .ftab-visual::before,
  .status-dot.online,
  .vt-vip-badge,
  .vt-progress-fill::after,
  .mkt-show-icon {
    animation: none !important;
  }
}

/* Subtle glow line under page-header for all inner pages */
.page-header {
  border-bottom: 1px solid rgba(56,189,248,0.08);
}

/* ══════════════════════════════════════════════════════════════
   NOUS REJOINDRE — join page components
   ══════════════════════════════════════════════════════════════ */

/* Nav highlight for "Nous rejoindre" link */
.cb-nav-link--join {
  color: var(--cb-primary) !important;
  font-weight: 600;
}
.cb-nav-link--join::after {
  background: var(--cb-primary) !important;
}

/* Step cards */
.join-step-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.join-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-blue);
  border-color: var(--cb-border-hover);
}
.join-step-card--highlight {
  border-color: rgba(56,189,248,.35);
  background: linear-gradient(135deg, rgba(56,189,248,.07) 0%, var(--cb-bg-card) 60%);
}
.join-step-num {
  position: absolute;
  top: .8rem;
  left: 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--cb-text-muted);
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.join-step-icon {
  font-size: 2.2rem;
  color: var(--cb-primary);
  filter: drop-shadow(0 0 10px rgba(56,189,248,.4));
  margin-top: .5rem;
}
.join-step-title {
  font-weight: 700;
  color: var(--cb-text-primary);
  margin: .25rem 0 0;
  font-size: 1rem;
}
.join-step-desc {
  font-size: .85rem;
  line-height: 1.55;
  flex: 1;
}
.join-step-free-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(56,189,248,.25), rgba(99,102,241,.25));
  border: 1px solid rgba(56,189,248,.4);
  color: var(--cb-primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 2rem;
  letter-spacing: .03em;
}

/* Feature cards */
.join-feature-card {
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.join-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cb-shadow-blue);
  border-color: var(--cb-border-hover);
}
.join-feature-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px currentColor);
}

/* CTA Banner */
.join-cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56,189,248,.1) 0%, rgba(99,102,241,.08) 100%);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 1.25rem;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.join-cta-orb--1,
.join-cta-orb--2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.join-cta-orb--1 {
  width: 300px; height: 300px;
  background: rgba(56,189,248,.12);
  top: -80px; left: -60px;
}
.join-cta-orb--2 {
  width: 250px; height: 250px;
  background: rgba(139,92,246,.1);
  bottom: -60px; right: -40px;
}
.join-cta-content { position: relative; z-index: 1; }
.join-cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--cb-text-primary);
  margin-bottom: .5rem;
}
.join-cta-sub {
  color: var(--cb-text-muted);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Section title reuse */
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--cb-text-primary);
  margin-bottom: .5rem;
}

/* Faint horizontal scan-line on main content areas */
main.py-5 {
  position: relative;
}
main.py-5::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(56,189,248,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main.py-5 > * { position: relative; z-index: 1; }
main.py-5 > .container { position: relative; z-index: 1; }

/* ================================================================
   RANKING PAGE — Tab navigation + panels + coming-soon
   ================================================================ */

/* ── Tab bar ─────────────────────────────────────────────────── */
.rk-tabs {
  display: flex;
  gap: 0.375rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 0.4rem;
  flex-wrap: wrap;
}

.rk-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: calc(var(--cb-radius) - 4px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--cb-transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.rk-tab:hover {
  color: var(--cb-text);
  background: rgba(56,189,248,0.05);
}
.rk-tab-active {
  color: white !important;
  background: rgba(56,189,248,0.1) !important;
  border-color: rgba(56,189,248,0.25) !important;
  box-shadow: 0 0 12px rgba(56,189,248,0.08);
}

/* ── Ranking cards: slightly lifted background for readability ─ */
.rk-tab-panel .cb-card {
  background: linear-gradient(180deg, rgba(56,189,248,0.04), var(--cb-bg-card) 40%);
}
.rk-tab-panel .cb-table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease;
}
.rk-tab-panel .cb-table tbody tr:hover {
  transform: translateX(2px);
}

/* count pill (active tabs) */
.rk-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,189,248,0.12);
  color: var(--cb-primary);
  border-radius: 50px;
  padding: 0.05rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 24px;
  line-height: 1.6;
}

/* "Bientôt" pill on disabled tabs */
.rk-tab-badge {
  display: inline-block;
  border-radius: 50px;
  padding: 0.05rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
}
.rk-soon-badge-pill {
  background: rgba(100,116,139,0.12);
  color: #64748b;
}

/* ── Tab panels ──────────────────────────────────────────────── */
.rk-tab-panel           { display: none; }
.rk-tab-panel.rk-active {
  display: block;
  animation: rk-in 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes rk-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Songe room badge ────────────────────────────────────────── */
.rk-songe-room {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cb-text);
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12));
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 6px;
  padding: .2rem .55rem;
}

/* ── Coming-soon panel ───────────────────────────────────────── */
.rk-coming-soon {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
}

/* Decorative glow blob */
.rk-cs-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.rk-cs-glow-blue { background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%); }
.rk-cs-glow-red  { background: radial-gradient(circle, rgba(239,68,68,0.1) 0%, transparent 70%); }

.rk-cs-icon {
  font-size: 4.5rem;
  color: rgba(56,189,248,0.35);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 24px rgba(56,189,248,0.25));
  position: relative;
  z-index: 1;
  display: block;
}
.rk-cs-icon-red {
  color: rgba(239,68,68,0.35);
  filter: drop-shadow(0 0 24px rgba(239,68,68,0.22));
}

.rk-cs-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.75rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.rk-cs-desc {
  color: var(--cb-text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto 1.75rem;
  position: relative;
  z-index: 1;
}

.rk-cs-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.2);
  color: var(--cb-primary);
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.rk-cs-pill-red {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.2);
  color: #f87171;
}

/* ── Vote badge ──────────────────────────────────────────────── */
.cb-badge-votes {
  background: rgba(56,189,248,0.08);
  color: var(--cb-primary);
  border: 1px solid var(--cb-border);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Fix: prevent Bootstrap table class from injecting white bg on cb-table */
.cb-table > tbody > tr > td,
.cb-table > tbody > tr > th {
  background-color: transparent !important;
}

@media (max-width: 575px) {
  .rk-tab { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .rk-tab-count, .rk-tab-badge { display: none; }
  .rk-coming-soon { padding: 3.5rem 1.25rem; }
}

/* ── Vote OTP badge ──────────────────────────────────────────── */
.vote-otp-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50px;
  padding: 0.05rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ── LOTTERY ─────────────────────────────────────────────────────────────── */

/* Balance bar */
.lot-balance-bar {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(99,102,241,0.08));
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.lot-balance-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}
.lot-balance-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.lot-balance-label {
  font-size: 0.78rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lot-balance-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cb-primary);
}
.lot-ticket-count { font-variant-numeric: tabular-nums; }

/* Tabs */
.lot-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--cb-border);
  margin-bottom: 1.5rem;
}
.lot-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.1rem;
  color: var(--cb-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lot-tab-btn:hover { color: var(--cb-text); }
.lot-tab-btn.active {
  color: var(--cb-primary);
  border-bottom-color: var(--cb-primary);
}

/* Tab panels */
.lot-tab-panel { display: none; }
.lot-tab-panel.active { display: block; }

/* Prize list sidebar */
.lot-prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lot-prize-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lot-prize-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lot-prize-name { flex: 1; }
.lot-prize-pct {
  font-size: 0.75rem;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* Wheel canvas wrapper */
.wheel-canvas-wrapper {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wheelCanvas {
  display: block;
  max-width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(56,189,248,0.18));
}
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid var(--cb-primary);
  filter: drop-shadow(0 2px 4px rgba(56,189,248,0.5));
  z-index: 2;
}

/* Wheel result overlay */
.wheel-result-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.wheel-result-overlay.active { display: flex; }
.wro-box {
  background: var(--cb-surface);
  border: 1px solid var(--cb-border);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  animation: wroSlideIn .35s cubic-bezier(.22,.68,0,1.4);
}
@keyframes wroSlideIn {
  from { opacity: 0; transform: scale(.8) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wro-stars { font-size: 1.6rem; letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.wro-prize-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 0.6rem; }
.wro-prize-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cb-primary);
  margin-bottom: 0.35rem;
}
.wro-prize-desc { font-size: 0.88rem; opacity: 0.65; margin-bottom: 1.25rem; }

/* ── Blackjack ──────────────────────────────────────────────────────────── */

.bj-table {
  background: linear-gradient(155deg, #0c2b1e 0%, #0a1f17 100%);
  border: 1px solid rgba(20, 120, 70, 0.35);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
}
.bj-zone {
  background: rgba(0,0,0,0.25);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.bj-zone--dealer { border-top: 2px solid rgba(99,102,241,0.3); }
.bj-zone--player { border-top: 2px solid rgba(56,189,248,0.3); }
.bj-zone-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}

/* Cards row */
.bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 110px;
  align-items: flex-start;
}

/* Playing card */
.bj-card {
  width: 64px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  position: relative;
  flex-shrink: 0;
  animation: cardDeal .25s ease-out;
  user-select: none;
}
@keyframes cardDeal {
  from { opacity: 0; transform: translateY(-16px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bj-card--red { color: #dc2626; }
.bj-card--facedown {
  background: repeating-linear-gradient(
    135deg,
    #1e3a5f 0px, #1e3a5f 6px,
    #0f2040 6px, #0f2040 12px
  );
  border-color: #1e3a5f;
}
.bj-card--placeholder {
  background: transparent;
  border: 2px dashed rgba(255,255,255,0.15);
  box-shadow: none;
}

.bj-card-rank {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  position: absolute;
}
.bj-card-rank--top { top: 5px; left: 6px; }
.bj-card-rank--bot {
  bottom: 5px;
  right: 6px;
  transform: rotate(180deg);
}
.bj-card-suit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}

/* VS bar */
.bj-vs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.4rem 0;
}
.bj-vs-text {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.35;
  letter-spacing: 0.08em;
}
.bj-total-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Status message */
.bj-status-msg {
  min-height: 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all .3s;
}
.bj-status--win     { color: #22c55e; background: rgba(34,197,94,0.12); }
.bj-status--lose    { color: #ef4444; background: rgba(239,68,68,0.12); }
.bj-status--push    { color: #94a3b8; background: rgba(148,163,184,0.1); }
.bj-status--blackjack { color: #f59e0b; background: rgba(245,158,11,0.12); }

/* Controls */
.bj-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.bj-bet-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 160px;
}
.bj-bet-slider {
  flex: 1;
  accent-color: var(--cb-primary);
}
.bj-bet-label-text {
  font-size: 0.78rem;
  opacity: 0.6;
  white-space: nowrap;
}
.bj-bet-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cb-primary);
  min-width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Rules list */
.bj-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Admin helpers ──────────────────────────────────────────────────────── */

.btn-xs {
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  border-radius: 0.3rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
  .lot-tab-btn { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
  .bj-card { width: 52px; height: 78px; }
  .bj-card-suit { font-size: 1.1rem; }
  .bj-card-rank { font-size: 0.65rem; }
  .wro-box { padding: 1.5rem 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   NOUS REJOINDRE — v2  (rj-* components)
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.rj-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(56,189,248,.15) 0%, transparent 65%),
    radial-gradient(circle, rgba(56,189,248,.05) 1px, transparent 1px);
  background-size: 100%, 30px 30px;
  pointer-events: none;
}
.rj-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.28);
  color: var(--cb-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.rj-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  font-family: 'Cinzel', serif;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.rj-hero-accent {
  background: linear-gradient(90deg, var(--cb-primary) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rj-hero-sub {
  color: var(--cb-text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.rj-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.rj-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .6rem 1.5rem;
}
.rj-hero-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.rj-hero-stat-label {
  font-size: .73rem;
  color: var(--cb-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 500;
}
.rj-hero-stat-sep {
  width: 1px;
  height: 2.5rem;
  background: var(--cb-border);
  flex-shrink: 0;
}

/* ── Main ──────────────────────────────────────────────────── */
.rj-main {
  padding-bottom: 5rem;
}

/* ── Steps accordion ───────────────────────────────────────── */
.rj-steps {
  max-width: 880px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.rj-step {
  border: 1px solid var(--cb-border);
  border-radius: 1rem;
  background: var(--cb-bg-card);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

/* Step header (the clickable bar) */
.rj-step-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background .2s;
}
.rj-step-header:hover {
  background: rgba(255,255,255,.03);
}
.rj-step-num {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1;
  border: 2px solid;
  transition: background .25s, box-shadow .25s;
}
.rj-step-icon {
  flex-shrink: 0;
  font-size: 1.45rem;
  transition: filter .3s;
}
.rj-step-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.rj-step-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cb-text-muted);
  line-height: 1;
}
.rj-step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cb-text-bright);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rj-step-badge-free {
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(56,189,248,.15), rgba(167,139,250,.15));
  border: 1px solid rgba(167,139,250,.32);
  color: #a78bfa;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 2rem;
  letter-spacing: .04em;
}
.rj-step-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--cb-text-muted);
  transition: transform .35s ease, color .2s;
}
.rj-step.is-open .rj-step-arrow {
  transform: rotate(180deg);
}

/* Animated body — CSS grid trick */
.rj-step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1);
}
.rj-step.is-open .rj-step-body {
  grid-template-rows: 1fr;
}
.rj-step-body-inner {
  overflow: hidden;
  min-height: 0;
}
.rj-step-body-content {
  display: flex;
  gap: 1.75rem;
  padding: .25rem 1.4rem 1.75rem;
  align-items: flex-start;
}
.rj-step-info {
  flex: 1;
  min-width: 0;
}
.rj-step-desc {
  color: var(--cb-text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.rj-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.25rem;
}
.rj-step-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--cb-border);
  border-radius: 2rem;
  padding: .22rem .7rem;
  font-size: .77rem;
  color: var(--cb-text-muted);
}
.rj-tag-green  { color: var(--cb-green)  !important; }
.rj-tag-amber  { color: #f59e0b          !important; }
.rj-tag-purple { color: #a78bfa          !important; }

/* Step action button */
.rj-step-action {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.25rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .87rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s;
  text-decoration: none;
}
.rj-step-done {
  display: inline-flex;
  align-items: center;
  color: var(--cb-green);
  font-size: .9rem;
  font-weight: 600;
}

/* Step visual (image / placeholder) */
.rj-step-visual {
  flex-shrink: 0;
  width: 260px;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--cb-border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: stretch;
  transition: border-color .25s;
}
.rj-step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rj-step-placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .78rem;
  padding: 1rem;
  text-align: center;
}
.rj-step-placeholder i {
  font-size: 2.75rem;
  filter: drop-shadow(0 0 14px currentColor);
}
.rj-step-placeholder span {
  color: var(--cb-text-muted);
  font-size: .72rem;
}

/* ── Per-step color themes ────────────────────────────────── */

/* Step 1 — cyan */
.rj-step-1 .rj-step-num        { color: var(--cb-primary); border-color: var(--cb-primary); background: rgba(56,189,248,.1); }
.rj-step-1 .rj-step-icon       { color: var(--cb-primary); }
.rj-step-1.is-open              { border-color: rgba(56,189,248,.3); }
.rj-step-1.is-open .rj-step-num { box-shadow: 0 0 12px rgba(56,189,248,.4); }
.rj-step-1.is-open .rj-step-icon { filter: drop-shadow(0 0 8px rgba(56,189,248,.7)); }
.rj-step-visual--1              { background: linear-gradient(135deg, rgba(56,189,248,.09) 0%, rgba(14,165,233,.04) 100%); }
.rj-step-placeholder--1         { color: var(--cb-primary); }
.rj-step-action--1              { background: rgba(56,189,248,.12); color: var(--cb-primary); border-color: rgba(56,189,248,.28); }
.rj-step-action--1:hover        { background: rgba(56,189,248,.22); color: var(--cb-primary); box-shadow: 0 0 18px rgba(56,189,248,.25); }

/* Step 2 — green */
.rj-step-2 .rj-step-num        { color: var(--cb-green); border-color: var(--cb-green); background: rgba(16,185,129,.1); }
.rj-step-2 .rj-step-icon       { color: var(--cb-green); }
.rj-step-2.is-open              { border-color: rgba(16,185,129,.3); }
.rj-step-2.is-open .rj-step-num { box-shadow: 0 0 12px rgba(16,185,129,.4); }
.rj-step-2.is-open .rj-step-icon { filter: drop-shadow(0 0 8px rgba(16,185,129,.7)); }
.rj-step-visual--2              { background: linear-gradient(135deg, rgba(16,185,129,.09) 0%, rgba(5,150,105,.04) 100%); }
.rj-step-placeholder--2         { color: var(--cb-green); }
.rj-step-action--2              { background: rgba(16,185,129,.12); color: var(--cb-green); border-color: rgba(16,185,129,.28); }
.rj-step-action--2:hover        { background: rgba(16,185,129,.22); color: var(--cb-green); box-shadow: 0 0 18px rgba(16,185,129,.25); }

/* Step 3 — amber */
.rj-step-3 .rj-step-num        { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.1); }
.rj-step-3 .rj-step-icon       { color: #f59e0b; }
.rj-step-3.is-open              { border-color: rgba(245,158,11,.3); }
.rj-step-3.is-open .rj-step-num { box-shadow: 0 0 12px rgba(245,158,11,.4); }
.rj-step-3.is-open .rj-step-icon { filter: drop-shadow(0 0 8px rgba(245,158,11,.7)); }
.rj-step-visual--3              { background: linear-gradient(135deg, rgba(245,158,11,.09) 0%, rgba(217,119,6,.04) 100%); }
.rj-step-placeholder--3         { color: #f59e0b; }
.rj-step-action--3              { background: rgba(245,158,11,.12); color: #f59e0b; border-color: rgba(245,158,11,.28); }
.rj-step-action--3:hover        { background: rgba(245,158,11,.22); color: #f59e0b; box-shadow: 0 0 18px rgba(245,158,11,.25); }

/* Step 4 — purple */
.rj-step-4 .rj-step-num        { color: #a78bfa; border-color: #a78bfa; background: rgba(167,139,250,.1); }
.rj-step-4 .rj-step-icon       { color: #a78bfa; }
.rj-step-4.is-open              { border-color: rgba(167,139,250,.3); }
.rj-step-4.is-open .rj-step-num { box-shadow: 0 0 12px rgba(167,139,250,.4); }
.rj-step-4.is-open .rj-step-icon { filter: drop-shadow(0 0 8px rgba(167,139,250,.7)); }
.rj-step-visual--4              { background: linear-gradient(135deg, rgba(167,139,250,.09) 0%, rgba(139,92,246,.04) 100%); }
.rj-step-placeholder--4         { color: #a78bfa; }
.rj-step-action--4              { background: rgba(167,139,250,.12); color: #a78bfa; border-color: rgba(167,139,250,.28); }
.rj-step-action--4:hover        { background: rgba(167,139,250,.22); color: #a78bfa; box-shadow: 0 0 18px rgba(167,139,250,.25); }

/* ── Why join section ──────────────────────────────────────── */
.rj-why {
  max-width: 880px;
  margin: 0 auto 4rem;
}
.rj-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.rj-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: .9rem;
  padding: 1.25rem;
  transition: border-color .25s, transform .25s;
}
.rj-feat:hover {
  border-color: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.rj-feat-icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--c, var(--cb-primary));
  background: oklch(from var(--c, #38bdf8) l c h / .12);
  border: 1px solid oklch(from var(--c, #38bdf8) l c h / .25);
}
/* Fallback for browsers without oklch() */
@supports not (color: oklch(from red l c h)) {
  .rj-feat-icon {
    background: rgba(56,189,248,.12);
    border-color: rgba(56,189,248,.25);
  }
}
.rj-feat-body { min-width: 0; }
.rj-feat-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--cb-text-bright);
  margin-bottom: .3rem;
}
.rj-feat-desc {
  font-size: .82rem;
  color: var(--cb-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── CTA ───────────────────────────────────────────────────── */
.rj-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(56,189,248,.1) 0%,
    rgba(99,102,241,.07) 50%,
    rgba(167,139,250,.07) 100%);
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 1.25rem;
  padding: 4.5rem 2rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.rj-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.rj-cta-glow--1 { width: 340px; height: 340px; background: rgba(56,189,248,.13);  top: -110px; left: -90px; }
.rj-cta-glow--2 { width: 280px; height: 280px; background: rgba(139,92,246,.1);   bottom: -90px; right: -60px; }
.rj-cta-inner { position: relative; z-index: 1; }
.rj-cta-icon {
  display: block;
  font-size: 2.75rem;
  color: var(--cb-primary);
  filter: drop-shadow(0 0 22px rgba(56,189,248,.5));
  margin-bottom: 1.1rem;
}
.rj-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  font-family: 'Cinzel', serif;
  letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.rj-cta-sub {
  color: var(--cb-text-muted);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rj-hero         { padding: 6rem 0 3.5rem; }
  .rj-hero-title   { letter-spacing: -.015em; }
  .rj-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rj-hero              { padding: 5.5rem 0 3rem; }
  .rj-hero-stat-sep     { display: none; }
  .rj-hero-stats        { gap: 0; }
  .rj-hero-stat         { padding: .5rem 1rem; }
  .rj-step-body-content { flex-direction: column; gap: 1rem; }
  .rj-step-visual       { width: 100%; aspect-ratio: 16/9; }
  .rj-step-title        { white-space: normal; }
  .rj-step-header       { padding: .95rem 1.1rem; gap: .75rem; }
  .rj-cta               { padding: 3rem 1.25rem; }
}

/* ── Fusée (Crash Game) ─────────────────────────────────────────────────── */
.rk-game-area {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.rk-canvas-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #04111f;
}
.rk-side-bar {
  width: 52px;
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.rk-bar-track {
  width: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  position: relative;
  align-self: stretch;
  overflow: visible;
}
.rk-bar-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0%;
  border-radius: 8px;
  background: linear-gradient(to top, #10b981, #34d399);
  transition: height .06s linear, background .3s;
  box-shadow: 0 0 10px rgba(16,185,129,.4);
}
.rk-bar-pointer {
  position: absolute;
  left: -3px; right: -3px;
  bottom: 0%;
  height: 2px;
  background: #10b981;
  border-radius: 2px;
  transition: bottom .06s linear;
}
.rk-bar-ticks {
  position: relative;
  flex: 1;
}
.rk-bar-tick {
  position: absolute;
  left: 0;
  font-size: .63rem;
  color: rgba(255,255,255,.32);
  white-space: nowrap;
  transform: translateY(50%);
  line-height: 1;
}
.rk-bar-tick span { display: block; }
.rk-canvas-wrapper canvas {
  display: block;
  width: 100%;
}
.rk-mult-wrap {
  text-align: center;
  padding: .4rem 0 .6rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rk-mult {
  font-size: 3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
  transition: color .15s, text-shadow .15s;
}
.rk-mult--idle    { color: #64748b; }
.rk-mult--flying  { color: #10b981; text-shadow: 0 0 22px rgba(16,185,129,.45); }
.rk-mult--crashed { color: #ef4444; text-shadow: 0 0 22px rgba(239,68,68,.45); }
.rk-controls {
  text-align: center;
}
.rk-bet-group {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.rk-bet-label {
  color: var(--cb-text-muted);
  font-size: .85rem;
  white-space: nowrap;
}
.rk-status-msg {
  margin: .75rem 0 0;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #e2e8f0;
}
.rk-status--win {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.3);
  color: #10b981;
}
.rk-status--lose {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.22);
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WIKI SYSTEM — GitBook-style documentation layout
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Wiki Index Page ─────────────────────────────────────────────────────────── */
.wiki-index-page { min-height: 60vh; }

.wiki-index-hero {
  background: linear-gradient(135deg, rgba(91,101,234,.15) 0%, rgba(0,0,0,0) 60%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 4rem 0 3rem;
}
.wiki-index-hero-inner { text-align: center; }
.wiki-index-hero-icon {
  font-size: 3rem;
  color: var(--wiki-accent, var(--cb-primary, #5B65EA));
  margin-bottom: 1rem;
  display: block;
}
.wiki-index-title { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.wiki-index-subtitle { color: rgba(255,255,255,.5); font-size: 1.1rem; }

.wiki-space-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .2s, border-color .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.wiki-space-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--card-accent, #5B65EA);
  border-radius: 3px 0 0 3px;
}
.wiki-space-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.wiki-space-card-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: color-mix(in srgb, var(--card-accent, #5B65EA) 15%, transparent);
  border-radius: 10px;
  color: var(--card-accent, #5B65EA);
}
.wiki-space-card-body { flex: 1; min-width: 0; }
.wiki-space-card-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 .3rem; }
.wiki-space-card-desc { color: rgba(255,255,255,.5); font-size: .875rem; margin: 0 0 .6rem; }
.wiki-space-card-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: rgba(255,255,255,.4); }
.wiki-space-badge { padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; }
.wiki-space-badge.badge-members { background: rgba(234,179,8,.15); color: #fbbf24; }
.wiki-space-badge.badge-admin   { background: rgba(239,68,68,.12);  color: #f87171; }
.wiki-space-card-arrow { color: rgba(255,255,255,.2); transition: color .2s, transform .2s; }
.wiki-space-card:hover .wiki-space-card-arrow { color: var(--card-accent, #5B65EA); transform: translateX(4px); }

.wiki-empty-state { color: rgba(255,255,255,.5); }
.wiki-empty-icon  { font-size: 4rem; display: block; margin-bottom: 1rem; opacity: .3; }

/* ── Wiki Page Layout ─────────────────────────────────────────────────────────── */
.wiki-wrap {
  display: flex;
  min-height: calc(100vh - var(--cb-nav-height, 64px));
  position: relative;
  padding-top: var(--cb-nav-height, 64px);
}

/* LEFT SIDEBAR */
.wiki-sidebar {
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  background: rgba(0,0,0,.25);
  border-right: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: var(--cb-nav-height, 64px);
  max-height: calc(100vh - var(--cb-nav-height, 64px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.wiki-sidebar::-webkit-scrollbar { width: 4px; }
.wiki-sidebar::-webkit-scrollbar-track { background: transparent; }
.wiki-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.wiki-sidebar-header {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.wiki-home-link {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  font-size: .9rem;
  padding: .2rem .3rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.wiki-home-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.wiki-space-brand {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  min-width: 0;
}
.wiki-space-brand i { color: var(--wiki-accent, #5B65EA); font-size: 1rem; flex-shrink: 0; }
.wiki-space-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Search */
.wiki-search-wrap {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
  flex-shrink: 0;
}
.wiki-search-input-wrap {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .4rem .6rem;
  transition: border-color .15s;
}
.wiki-search-input-wrap:focus-within { border-color: var(--wiki-accent, #5B65EA); }
.wiki-search-icon { color: rgba(255,255,255,.3); font-size: .85rem; flex-shrink: 0; }
.wiki-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .85rem;
}
.wiki-search-input::placeholder { color: rgba(255,255,255,.3); }
.wiki-search-kbd {
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.3);
  font-size: .65rem; padding: .1rem .3rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1); font-family: monospace;
}
.wiki-search-dropdown {
  position: absolute; top: 100%; left: 1rem; right: 1rem;
  background: #1a1d2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 100; overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.wiki-search-result {
  display: block; padding: .75rem 1rem; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.wiki-search-result:hover { background: rgba(255,255,255,.06); }
.wiki-search-result-title { display: block; color: #fff; font-size: .875rem; font-weight: 500; }
.wiki-search-result-excerpt { display: block; color: rgba(255,255,255,.4); font-size: .775rem; margin-top: .15rem; }
.wiki-search-empty { padding: 1rem; text-align: center; color: rgba(255,255,255,.3); font-size: .875rem; }

/* Sidebar Nav */
.wiki-nav { flex: 1; padding: .75rem 0; overflow-y: auto; }
.wiki-nav-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem 1.25rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .875rem;
  border-radius: 0;
  transition: color .15s, background .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wiki-nav-link i { font-size: .8rem; flex-shrink: 0; opacity: .8; }
.wiki-nav-link:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.wiki-nav-link.active {
  color: var(--wiki-accent, #5B65EA);
  background: color-mix(in srgb, var(--wiki-accent, #5B65EA) 10%, transparent);
  border-right: 2px solid var(--wiki-accent, #5B65EA);
  font-weight: 500;
}
.wiki-nav-empty { padding: .4rem 1.5rem; font-size: .8rem; color: rgba(255,255,255,.25); display: block; }

.wiki-nav-section { margin-bottom: .25rem; }
.wiki-nav-section-toggle {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .5rem 1rem .5rem 1.25rem;
  background: transparent; border: none; color: rgba(255,255,255,.7);
  font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: color .15s, background .15s;
}
.wiki-nav-section-toggle:hover { color: #fff; background: rgba(255,255,255,.04); }
.wiki-nav-section-toggle i.wiki-nav-chevron {
  margin-left: auto; font-size: .7rem; transition: transform .2s; color: rgba(255,255,255,.3);
}
.wiki-nav-section.open .wiki-nav-chevron { transform: rotate(90deg); }
.wiki-nav-section-pages {
  display: none;
  padding-left: 1rem;
}
.wiki-nav-section.open .wiki-nav-section-pages { display: block; }

.wiki-sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: .35rem;
  flex-shrink: 0;
}
.wiki-sidebar-action {
  display: block; text-align: center;
  padding: .4rem; border-radius: 6px;
  font-size: .8rem; color: rgba(255,255,255,.4);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.07);
  transition: color .15s, background .15s;
}
.wiki-sidebar-action:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }

/* Mobile sidebar */
.wiki-mobile-toggle {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 48px; height: 48px;
  background: var(--wiki-accent, #5B65EA);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  cursor: pointer;
}
.wiki-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 149;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}
.wiki-overlay.active { display: block; }

/* BODY + MAIN */
.wiki-body { flex: 1; min-width: 0; display: flex; }
.wiki-main {
  flex: 1; min-width: 0;
  padding: 2.5rem 2.5rem 4rem;
  max-width: 860px;
}

/* BREADCRUMB */
.wiki-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  font-size: .8rem; color: rgba(255,255,255,.35);
  margin-bottom: 1.5rem;
}
.wiki-breadcrumb a { color: rgba(255,255,255,.35); text-decoration: none; }
.wiki-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.wiki-breadcrumb .active { color: rgba(255,255,255,.6); }
.wiki-breadcrumb .bi { font-size: .65rem; }

/* PAGE HEADER */
.wiki-page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.wiki-page-title { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 0 0 .75rem; line-height: 1.2; }
.wiki-page-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
  font-size: .825rem; color: rgba(255,255,255,.35);
}
.wiki-page-meta i { opacity: .7; }
.wiki-meta-edit {
  color: var(--wiki-accent, #5B65EA); text-decoration: none; font-size: .8rem;
  padding: .2rem .5rem; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--wiki-accent, #5B65EA) 40%, transparent);
  transition: background .15s;
}
.wiki-meta-edit:hover {
  background: color-mix(in srgb, var(--wiki-accent, #5B65EA) 12%, transparent);
  text-decoration: none;
}

/* ── Wiki Content ────────────────────────────────────────────────────────────── */
.wiki-content { line-height: 1.75; color: rgba(255,255,255,.8); }
.wiki-content h1,.wiki-content h2,.wiki-content h3,
.wiki-content h4,.wiki-content h5,.wiki-content h6 {
  color: #fff; font-weight: 700; margin-top: 2em; margin-bottom: .6em; line-height: 1.3;
}
.wiki-content h1 { font-size: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .4em; }
.wiki-content h2 { font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .3em; }
.wiki-content h3 { font-size: 1.2rem; }
.wiki-content h4 { font-size: 1.05rem; }
.wiki-content p  { margin-bottom: 1em; }
.wiki-content a  { color: var(--wiki-accent, #5B65EA); text-decoration: underline; text-underline-offset: 2px; }
.wiki-content a:hover { opacity: .8; }
.wiki-content strong { color: #fff; font-weight: 600; }
.wiki-content em     { font-style: italic; }
.wiki-content mark   { background: rgba(250,204,21,.2); color: #fde68a; border-radius: 2px; padding: .1em .3em; }
.wiki-content code,
.wiki-content kbd    {
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: .875em;
}
.wiki-content code:not(pre code) {
  background: rgba(255,255,255,.08); border-radius: 4px;
  padding: .15em .4em; color: #e2e8f0;
}
.wiki-content pre {
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.25rem 1.5rem; overflow-x: auto;
  margin: 1.5em 0;
}
.wiki-content pre code { background: transparent; padding: 0; color: #e2e8f0; font-size: .875rem; }
.wiki-content blockquote {
  border-left: 3px solid var(--wiki-accent, #5B65EA);
  padding: .5rem 1rem; margin: 1em 0;
  background: rgba(255,255,255,.03); border-radius: 0 6px 6px 0;
  color: rgba(255,255,255,.65); font-style: italic;
}
.wiki-content ul,.wiki-content ol { padding-left: 1.5rem; margin-bottom: 1em; }
.wiki-content li { margin-bottom: .35em; }
.wiki-content hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 2em 0; }
.wiki-content img { max-width: 100%; border-radius: 8px; margin: .5em 0; }
.wiki-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; }
.wiki-content th,.wiki-content td {
  padding: .65rem 1rem; text-align: left;
  border: 1px solid rgba(255,255,255,.1);
}
.wiki-content thead { background: rgba(255,255,255,.05); }
.wiki-content thead th { color: #fff; font-weight: 600; font-size: .875rem; }
.wiki-content tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.wiki-code-block { position: relative; }
.wiki-code-block[data-lang]::before {
  content: attr(data-lang);
  position: absolute; top: .6rem; right: .8rem;
  font-size: .7rem; color: rgba(255,255,255,.3);
  text-transform: uppercase; font-family: monospace;
}
.wiki-table-wrap { overflow-x: auto; margin: 1em 0; }
.wiki-table { width: 100%; border-collapse: collapse; }
.wiki-table th,.wiki-table td {
  padding: .6rem .9rem; text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  font-size: .875rem;
}
.wiki-table thead { background: rgba(255,255,255,.05); }
.wiki-table thead th { color: #fff; font-weight: 600; }

/* Callouts */
.wiki-callout {
  border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25em 0;
  border-left: 4px solid; position: relative;
  display: flex; gap: .75rem; align-items: flex-start;
}
.wiki-callout::before {
  font-family: 'Bootstrap Icons'; font-style: normal;
  font-size: 1.1rem; flex-shrink: 0; margin-top: -.05em;
}
.wiki-callout-note    { background: rgba(59,130,246,.1);  border-color: #3b82f6; color: #93c5fd; }
.wiki-callout-note::before    { content: '\f430'; color: #3b82f6; } /* bi-info-circle */
.wiki-callout-tip     { background: rgba(16,185,129,.1);  border-color: #10b981; color: #6ee7b7; }
.wiki-callout-tip::before     { content: '\f44e'; color: #10b981; } /* bi-lightbulb */
.wiki-callout-info    { background: rgba(99,102,241,.1);  border-color: #6366f1; color: #a5b4fc; }
.wiki-callout-info::before    { content: '\f430'; color: #6366f1; }
.wiki-callout-warning { background: rgba(245,158,11,.1);  border-color: #f59e0b; color: #fcd34d; }
.wiki-callout-warning::before { content: '\f33a'; color: #f59e0b; } /* bi-exclamation-triangle */
.wiki-callout-danger  { background: rgba(239,68,68,.1);   border-color: #ef4444; color: #fca5a5; }
.wiki-callout-danger::before  { content: '\f623'; color: #ef4444; } /* bi-x-octagon */

/* Prev / Next nav */
.wiki-prev-next {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.wiki-prev,.wiki-next {
  flex: 1; display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 1.25rem; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  text-decoration: none; transition: background .2s, border-color .2s;
  max-width: 48%;
}
.wiki-prev { align-items: flex-start; }
.wiki-next { align-items: flex-end; text-align: right; }
.wiki-prev:hover,.wiki-next:hover {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); text-decoration: none;
}
.wiki-pn-label { font-size: .75rem; color: rgba(255,255,255,.35); }
.wiki-pn-title { font-size: .9rem; color: #fff; font-weight: 500; }

/* ── RIGHT TOC ─────────────────────────────────────────────────────────────── */
.wiki-toc {
  width: 220px; min-width: 220px; flex-shrink: 0;
  position: sticky; top: calc(var(--cb-nav-height, 64px) + 3rem);
  max-height: calc(100vh - var(--cb-nav-height, 64px) - 6rem);
  overflow-y: auto; padding: 1rem .75rem 1rem 1.25rem;
  align-self: flex-start;
}
.wiki-toc-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.3); margin-bottom: .75rem;
}
.wiki-toc-link {
  display: block; padding: .3rem .5rem; margin-bottom: .1rem;
  font-size: .825rem; color: rgba(255,255,255,.4); text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wiki-toc-link:hover { color: rgba(255,255,255,.8); text-decoration: none; }
.wiki-toc-link.active {
  color: var(--wiki-accent, #5B65EA);
  border-left-color: var(--wiki-accent, #5B65EA);
  background: color-mix(in srgb, var(--wiki-accent, #5B65EA) 8%, transparent);
}
.wiki-toc-h2 { padding-left: .5rem; }
.wiki-toc-h3 { padding-left: 1.25rem; font-size: .775rem; }

/* ── Admin Wiki styles ────────────────────────────────────────────────────── */
.wiki-space-dot {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; flex-shrink: 0;
}
.wiki-color-picker {
  width: 38px; height: 38px; padding: 0; border: none;
  cursor: pointer; border-radius: 6px; flex-shrink: 0;
  background: transparent;
}
.wiki-section-chip {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .35rem .75rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09); border-radius: 8px;
  font-size: .85rem; color: #e2e8f0;
}
.wiki-section-chip-edit, .wiki-section-chip-del {
  background: transparent; border: none; color: rgba(255,255,255,.3);
  cursor: pointer; padding: .1rem .25rem; line-height: 1; font-size: .8rem;
  border-radius: 4px; transition: color .15s, background .15s;
}
.wiki-section-chip-edit:hover { color: #60a5fa; background: rgba(96,165,250,.1); }
.wiki-section-chip-del:hover  { color: #f87171; background: rgba(248,113,113,.1); }

/* Admin navigation tabs */
.admin-tabs .nav-link[data-tab] {
  color: rgba(255,255,255,.5); border: none;
  border-bottom: 2px solid transparent; border-radius: 0;
  padding: .6rem 1.2rem; background: transparent;
  transition: color .15s;
}
.admin-tabs .nav-link[data-tab]:hover { color: rgba(255,255,255,.8); }
.admin-tabs .nav-link[data-tab].active {
  color: #fff;
  border-bottom-color: var(--cb-primary, #5B65EA);
  background: transparent;
}

/* ── Wiki Page Editor ─────────────────────────────────────────────────────── */
.wiki-editor-wrap {
  display: flex; flex-direction: column;
  height: 100vh; background: var(--cb-bg, #0f1117);
  overflow: hidden;
}
.wiki-editor-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; height: 52px; flex-shrink: 0;
  background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.07);
}
.wiki-editor-topbar-left  { display: flex; align-items: center; gap: .75rem; flex: 1; }
.wiki-editor-topbar-center { display: flex; align-items: center; }
.wiki-editor-topbar-right  { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.wiki-editor-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  color: rgba(255,255,255,.5); text-decoration: none; font-size: 1.1rem;
  transition: color .15s, background .15s; flex-shrink: 0;
}
.wiki-editor-back:hover { color: #fff; background: rgba(255,255,255,.08); }
.wiki-editor-breadcrumb { display: flex; align-items: center; font-size: .825rem; }

.wiki-editor-meta-row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0; display: flex; flex-direction: column; gap: .75rem;
  background: rgba(0,0,0,.15);
}
.wiki-editor-title-input {
  width: 100%; background: transparent; border: none; outline: none;
  color: #fff; font-size: 1.6rem; font-weight: 700;
  padding: 0; line-height: 1.3;
}
.wiki-editor-title-input::placeholder { color: rgba(255,255,255,.2); }
.wiki-editor-meta-fields { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.wiki-editor-label { display: block; font-size: .75rem; color: rgba(255,255,255,.35); margin-bottom: .25rem; }
.wiki-editor-meta-excerpt {}

.wiki-editor-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem;
  padding: .45rem .75rem;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.wiki-editor-toolbar-group { display: flex; align-items: center; gap: .15rem; }
.wiki-editor-toolbar-sep {
  width: 1px; height: 1.4rem; background: rgba(255,255,255,.1); margin: 0 .3rem;
}
.we-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,.55); padding: .3rem .5rem;
  border-radius: 5px; font-size: .875rem; cursor: pointer;
  transition: color .15s, background .15s; line-height: 1;
}
.we-btn:hover  { color: #fff; background: rgba(255,255,255,.08); }
.we-btn.active { color: #fff; background: rgba(255,255,255,.12); }
.we-btn-note   { font-size: 1rem; }
.we-btn-tip    { font-size: 1rem; }
.we-btn-warn   { font-size: 1rem; }
.we-btn-danger { font-size: 1rem; }

.wiki-editor-pane {
  display: flex; flex: 1; overflow: hidden;
}
.wiki-editor-write { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.wiki-editor-textarea {
  flex: 1; width: 100%; height: 100%;
  background: rgba(0,0,0,.15); border: none; outline: none; resize: none;
  color: rgba(255,255,255,.8); font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: .9rem; line-height: 1.65; padding: 1.5rem 2rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.wiki-editor-preview {
  flex: 0 0 50%; overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,.08);
}
.wiki-editor-preview-body {
  padding: 2rem 2.5rem;
  font-size: .95rem; line-height: 1.75; color: rgba(255,255,255,.8);
}
.wiki-editor-stat { font-family: monospace; }

/* Responsive wiki layout */
@media (max-width: 1200px) {
  .wiki-toc { display: none; }
  .wiki-main { max-width: 100%; }
}
@media (max-width: 768px) {
  .wiki-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .wiki-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 150;
    transform: translateX(-100%); transition: transform .25s ease;
    max-height: 100vh; top: 0;
  }
  .wiki-sidebar.open { transform: translateX(0); }
  .wiki-main { padding: 1.5rem 1rem 2rem; }
  .wiki-page-title { font-size: 1.6rem; }
  .wiki-editor-meta-fields { gap: .5rem; }
  .wiki-editor-topbar { flex-wrap: wrap; height: auto; }
  .wiki-prev,.wiki-next { max-width: 100%; }
  .wiki-prev-next { flex-direction: column; }
}


/* --------------------------------------------------------------------
   MARCH� DES PERSONNAGES
   -------------------------------------------------------------------- */

/* -- Hero ----------------------------------------------------------- */
.mkt-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--cb-border);
}
.mkt-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% -10%,
    rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
}
.mkt-hero-icon {
  font-size: 3rem;
  color: var(--cb-accent);
  margin-bottom: .75rem;
}
.mkt-hero-title {
  font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cb-text), var(--cb-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.mkt-hero-sub {
  color: var(--cb-text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.mkt-stats-row {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: 50px;
  padding: .6rem 1.5rem;
}
.mkt-stat { text-align: center; }
.mkt-stat strong { display: block; font-size: 1.2rem; font-weight: 700; color: var(--cb-accent); }
.mkt-stat span   { font-size: .72rem; color: var(--cb-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.mkt-stat-sep    { width: 1px; height: 30px; background: var(--cb-border); }

/* -- Filter Panel -------------------------------------------------- */
.mkt-filter-panel {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.mkt-filter-header {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mkt-filter-reset {
  font-size: .75rem;
  color: var(--cb-accent);
  text-decoration: none;
}
.mkt-filter-reset:hover { text-decoration: underline; }
.mkt-filter-group { margin-bottom: 1rem; }
.mkt-filter-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.mkt-input {
  width: 100%;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  color: var(--cb-text);
  padding: .55rem .75rem;
  font-size: .9rem;
  transition: border-color .2s;
}
.mkt-input:focus {
  outline: none;
  border-color: var(--cb-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.mkt-input-sm { width: 46%; }
.mkt-select {
  width: 100%;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  color: var(--cb-text);
  padding: .55rem .75rem;
  font-size: .9rem;
  cursor: pointer;
}
.mkt-search-wrap { position: relative; }
.mkt-search-wrap .bi { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--cb-text-muted); }
.mkt-search-wrap .mkt-input { padding-left: 2.25rem; }
.mkt-range-row { display: flex; align-items: center; gap: .5rem; }
.mkt-range-sep { color: var(--cb-text-muted); flex-shrink: 0; }
.mkt-btn-filter {
  background: var(--cb-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.mkt-btn-filter:hover { opacity: .88; transform: translateY(-1px); }
.mkt-btn-sell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.mkt-btn-sell:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.mkt-btn-sell-sm {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.mkt-btn-sell-sm:hover { opacity: .9; color: #fff; transform: translateY(-1px); }

/* -- Result header -------------------------------------------------- */
.mkt-result-count { color: var(--cb-text-muted); font-size: .9rem; }
.mkt-result-count strong { color: var(--cb-text); }

/* -- Cards grille -------------------------------------------------- */
.mkt-card {
  display: flex;
  flex-direction: column;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  text-decoration: none;
  color: var(--cb-text);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.mkt-card:hover {
  transform: translateY(-5px);
  border-color: var(--cb-accent);
  box-shadow: 0 12px 40px rgba(99,102,241,.2);
  color: var(--cb-text);
}
.mkt-card-promo {
  border-color: rgba(245,158,11,.4);
}
.mkt-card-promo:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 40px rgba(245,158,11,.2);
}
.mkt-promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mkt-card-visual {
  position: relative;
  background: linear-gradient(180deg, rgba(99,102,241,.08), transparent);
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mkt-char-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--aura-color, transparent) 0%, transparent 60%);
  opacity: .25;
  pointer-events: none;
}
.mkt-char-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
  transition: transform .3s;
}
.mkt-card:hover .mkt-char-icon { transform: scale(1.1) translateY(-4px); }
.mkt-color-strip {
  display: flex;
  gap: 4px;
  margin-top: .6rem;
}
.mkt-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.mkt-card-body { padding: .85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.mkt-card-name { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.mkt-card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem; }
.mkt-achieve { font-size: .75rem; color: var(--cb-text-muted); margin-bottom: .5rem; }
.mkt-achieve .bi { color: #f59e0b; margin-right: .25rem; }
.mkt-card-footer { margin-top: auto; }
.mkt-price-wrap { display: flex; align-items: baseline; gap: .35rem; }
.mkt-price     { font-size: 1.15rem; font-weight: 700; color: var(--cb-accent); }
.mkt-price-old { font-size: .85rem; color: var(--cb-text-muted); text-decoration: line-through; }
.mkt-price-promo { font-size: 1.15rem; font-weight: 700; color: #f59e0b; }
.mkt-credits-label { font-size: .75rem; color: var(--cb-text-muted); }
.mkt-countdown { font-size: .72rem; color: #f59e0b; margin-top: .2rem; }
.mkt-card-seller {
  font-size: .75rem;
  color: var(--cb-text-muted);
  margin-top: .4rem;
  border-top: 1px solid var(--cb-border);
  padding-top: .4rem;
}
.mkt-card-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(99,102,241,.9), transparent);
  color: #fff;
  text-align: center;
  padding: .9rem;
  font-weight: 600;
  font-size: .85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.mkt-card:hover .mkt-card-hover-overlay { opacity: 1; transform: translateY(0); }

/* -- Badges communs ------------------------------------------------ */
.mkt-badge-class {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: 5px;
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25);
}
.mkt-badge-level {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .5rem;
  border-radius: 5px;
  background: rgba(16,185,129,.12);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.25);
}
.mkt-badge-align {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ac) 15%, transparent);
  color: var(--ac);
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
}

/* -- Empty state --------------------------------------------------- */
.mkt-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--cb-text-muted);
}
.mkt-empty .bi {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--cb-border);
}
.mkt-empty p { margin-bottom: 1.5rem; }

/* -- Page Show ------------------------------------------------------ */
.mkt-breadcrumb { font-size: .85rem; }
.mkt-breadcrumb a { color: var(--cb-accent); text-decoration: none; }
.mkt-sold-banner {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--cb-radius);
  padding: .75rem 1.25rem;
  color: #f87171;
  font-weight: 600;
}
.mkt-show-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.mkt-show-visual {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.mkt-show-aura {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aura-c) 0%, transparent 70%);
  opacity: calc(.3 - var(--i) * .05);
  transform: scale(calc(1 + var(--i) * .3));
  transition: opacity .3s;
}
.mkt-show-icon-wrap { position: relative; z-index: 1; }
.mkt-show-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
  animation: mkt-float 3s ease-in-out infinite;
}
@keyframes mkt-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.mkt-show-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.mkt-show-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.mkt-show-palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.mkt-palette-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.12);
  transition: transform .2s;
  cursor: pointer;
}
.mkt-palette-swatch:hover { transform: scale(1.25); }
.mkt-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.mkt-stat-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .82rem;
}
.mkt-stat-label { flex: 1; color: var(--cb-text-muted); }
.mkt-stat-val   { font-weight: 700; }
.mkt-show-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}
.mkt-show-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 20px;
  padding: .2rem .6rem;
  color: var(--cb-text-muted);
}

/* Buy card */
.mkt-buy-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.75rem;
}
.mkt-buy-price-block { margin-bottom: 1.25rem; }
.mkt-buy-promo-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mkt-buy-price-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .3rem;
}
.mkt-price-old-lg  { font-size: 1.3rem; color: var(--cb-text-muted); text-decoration: line-through; }
.mkt-price-promo-lg { font-size: 2.2rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.mkt-price-lg      { font-size: 2.2rem; font-weight: 800; color: var(--cb-accent); line-height: 1; }
.mkt-credits-unit  { font-size: .9rem; color: var(--cb-text-muted); }
.mkt-buy-promo-timer { font-size: .82rem; color: #f59e0b; }
.mkt-buy-expire { font-size: .8rem; color: var(--cb-text-muted); margin-top: .3rem; }
.mkt-buy-seller {
  font-size: .85rem;
  color: var(--cb-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cb-border);
}
.mkt-btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cb-accent), #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, opacity .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.mkt-btn-buy:hover { transform: translateY(-2px); opacity: .92; box-shadow: 0 8px 30px rgba(99,102,241,.4); color: #fff; }
.mkt-btn-buy-disabled { background: var(--cb-border); box-shadow: none; cursor: not-allowed; opacity: .6; }
.mkt-credits-indicator { font-size: .82rem; color: var(--cb-text-muted); }
.mkt-own-notice, .mkt-sold-notice {
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--cb-text-muted);
}
.mkt-own-notice a, .mkt-sold-notice a { color: var(--cb-accent); }
.mkt-disclaimer {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #f87171;
}
.mkt-info-block {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
}
.mkt-info-title {
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 1px solid var(--cb-border);
  background: var(--cb-bg);
}
.mkt-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--cb-border);
  font-size: .85rem;
}
.mkt-info-row:last-child { border-bottom: none; }
.mkt-info-row span { color: var(--cb-text-muted); }
.mkt-status-active    { color: #10b981; }
.mkt-status-sold      { color: var(--cb-accent); }
.mkt-status-cancelled { color: #ef4444; }
.mkt-status-expired   { color: var(--cb-text-muted); }
.mkt-countdown-lg { font-weight: 700; }

/* -- Sell Page ------------------------------------------------------ */
.mkt-sell-hero {
  background: var(--cb-bg-card);
  border-bottom: 1px solid var(--cb-border);
}
.mkt-sell-title { font-size: 1.6rem; font-weight: 800; margin: 0; }
.mkt-sell-sub   { color: var(--cb-text-muted); margin: .2rem 0 0; font-size: .9rem; }
.mkt-btn-back {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  color: var(--cb-text-muted);
  text-decoration: none;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: .45rem .9rem;
  transition: color .2s, border-color .2s;
}
.mkt-btn-back:hover { color: var(--cb-text); border-color: var(--cb-accent); }

/* Tabs */
.mkt-sell-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 2px solid var(--cb-border);
  padding-bottom: -2px;
}
.mkt-sell-tab {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--cb-text-muted);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -2px;
}
.mkt-sell-tab.active { color: var(--cb-accent); border-bottom-color: var(--cb-accent); }
.mkt-sell-tab .badge {
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 20px;
  font-size: .7rem;
  padding: .1rem .45rem;
  color: var(--cb-text-muted);
}
.mkt-sell-panel { display: none; }
.mkt-sell-panel.active { display: block; animation: rk-in .3s both; }

/* Char cards */
.mkt-sell-char-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.mkt-sell-char-card:hover {
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 8px 24px rgba(245,158,11,.1);
}
.mkt-sell-char-visual {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.mkt-sell-aura {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aura-c) 0%, transparent 70%);
  opacity: calc(.3 - var(--i) * .06);
  transform: scale(calc(1 + var(--i) * .25));
}
.mkt-sell-aura-sm { width: 50px; height: 50px; }
.mkt-sell-char-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform .3s;
}
.mkt-sell-char-card:hover .mkt-sell-char-icon { transform: scale(1.08) translateY(-3px); }
.mkt-sell-char-info { text-align: center; }
.mkt-sell-char-name { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.mkt-btn-list-char {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .55rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.mkt-btn-list-char:hover { opacity: .9; transform: translateY(-1px); }

/* Listing cards */
.mkt-listing-summary {
  display: flex;
  gap: 1.5rem;
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1rem 1.5rem;
}
.mkt-ls-stat strong { display: block; font-size: 1.3rem; font-weight: 700; color: var(--cb-accent); }
.mkt-ls-stat span   { font-size: .75rem; color: var(--cb-text-muted); }
.mkt-listing-card {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
  transition: border-color .2s;
}
.mkt-listing-active  { border-left: 3px solid #10b981; }
.mkt-listing-sold    { border-left: 3px solid var(--cb-accent); opacity: .75; }
.mkt-listing-cancelled,.mkt-listing-expired { border-left: 3px solid var(--cb-border); opacity: .6; }
.mkt-listing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--cb-border);
  background: var(--cb-bg);
}
.mkt-listing-icon-wrap {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mkt-listing-icon-wrap img { width: 44px; height: 44px; object-fit: contain; position: relative; z-index:1; }
.mkt-listing-charname { font-weight: 700; font-size: .95rem; }
.mkt-listing-status-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
}
.mkt-status-active    { background: rgba(16,185,129,.12); color: #10b981; }
.mkt-status-sold      { background: rgba(99,102,241,.12); color: #a5b4fc; }
.mkt-status-cancelled { background: rgba(239,68,68,.1);  color: #f87171; }
.mkt-status-expired   { background: var(--cb-bg);        color: var(--cb-text-muted); }
.mkt-listing-body { padding: .75rem 1rem; }
.mkt-listing-price-row { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .35rem; }
.mkt-listing-sold-info, .mkt-listing-expire, .mkt-listing-promo-info {
  font-size: .78rem;
  color: var(--cb-text-muted);
}
.mkt-listing-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.mkt-btn-view-sm {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px;
  background: var(--cb-bg); border: 1px solid var(--cb-border);
  color: var(--cb-text-muted); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.mkt-btn-view-sm:hover { color: var(--cb-accent); border-color: var(--cb-accent); }
.mkt-btn-promo-sm {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25);
  color: #f59e0b; cursor: pointer;
  transition: background .2s;
}
.mkt-btn-promo-sm:hover { background: rgba(245,158,11,.18); }
.mkt-btn-cancel-sm {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  color: #f87171; cursor: pointer;
  transition: background .2s;
}
.mkt-btn-cancel-sm:hover { background: rgba(239,68,68,.15); }

/* -- Modal ---------------------------------------------------------- */
.mkt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mkt-modal-overlay.open { opacity: 1; pointer-events: all; }
.mkt-modal {
  background: var(--cb-bg-card);
  border: 1px solid var(--cb-border);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(16px);
  transition: transform .25s;
}
.mkt-modal-overlay.open .mkt-modal { transform: scale(1) translateY(0); }
.mkt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cb-border);
  position: sticky;
  top: 0;
  background: var(--cb-bg-card);
  z-index: 1;
}
.mkt-modal-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.mkt-modal-close {
  background: transparent;
  border: none;
  color: var(--cb-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .25rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.mkt-modal-close:hover { color: var(--cb-text); background: var(--cb-bg); }
.mkt-modal-body { padding: 1.25rem 1.5rem; }
.mkt-modal-char-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.mkt-modal-char-icon { font-size: 1.5rem; color: var(--cb-accent); }
.mkt-form-group { margin-bottom: 1rem; }
.mkt-form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cb-text-muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mkt-input-addon-wrap { display: flex; }
.mkt-input-addon-wrap .mkt-input { border-radius: 8px 0 0 8px; }
.mkt-input-addon {
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: .82rem;
  color: var(--cb-text-muted);
  white-space: nowrap;
}
.mkt-form-hint { font-size: .75rem; color: var(--cb-text-muted); margin: .3rem 0 0; }
.mkt-form-section {
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.mkt-form-section-title {
  display: flex;
  align-items: center;
  padding: .65rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--cb-bg);
  transition: background .2s;
}
.mkt-form-section-title:hover { background: rgba(255,255,255,.03); }
.mkt-toggle-icon { transition: transform .2s; }
.mkt-form-section-body { padding: .75rem .9rem; }
.mkt-quick-expiry { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.mkt-quick-btn {
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .75rem;
  color: var(--cb-text-muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mkt-quick-btn:hover { color: var(--cb-accent); border-color: var(--cb-accent); }
.mkt-modal-footer {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--cb-border);
  margin-top: .75rem;
}
.mkt-btn-cancel-modal {
  background: transparent;
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: .55rem 1.2rem;
  color: var(--cb-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mkt-btn-cancel-modal:hover { color: var(--cb-text); border-color: var(--cb-text); }
.mkt-btn-submit-sell {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 8px;
  padding: .55rem 1.4rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.mkt-btn-submit-sell:hover { opacity: .9; transform: translateY(-1px); }

/* -- Responsive ---------------------------------------------------- */
@media (max-width: 768px) {
  .mkt-stats-row { flex-wrap: wrap; gap: .75rem; padding: .5rem 1rem; }
  .mkt-stat-sep  { display: none; }
  .mkt-show-icon { width: 90px; height: 90px; }
  .mkt-price-lg, .mkt-price-promo-lg { font-size: 1.8rem; }
  .mkt-stats-grid { grid-template-columns: 1fr; }
  .mkt-listing-summary { flex-wrap: wrap; gap: .75rem; }
}
