/* ============================================================
   SITE.CSS — Styles custom du site MushWay Affiliation
   ============================================================
   DESIGN TOKENS:
   - Muted text:  --muted-1: #aaa  --muted-2: #888  --muted-3: #666
   - Radius:      16px (cards), 12px (buttons), 10px (inputs), 20px (pills)
   - Section gap:  80px vertical rhythm
   - Glass:       var(--glass-bg) + var(--glass-border) everywhere
   - Purple:      #c084fc (light/accent), var(--casino-purple) #8B5CF6 (saturated)
   ============================================================ */

:root {
  --muted-1: #aaa;
  --muted-2: #888;
  --muted-3: #666;
  --section-pad: 80px;
  --card-radius: 16px;
  --purple-light: #c084fc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: #070707;
  color: #fff;
  overflow-x: hidden;
}


/* ============================================================
   LAYOUT — Sections & rhythm
   ============================================================ */
.main-content {
  width: 100%;
}

.section {
  padding: var(--section-pad) 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section:last-child {
  border-bottom: none;
}

/* --- Section header block (label + title + desc) --- */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--casino-gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.2;
}

.section-desc {
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.6;
  margin-top: -16px;
}

/* Grilles utilitaires */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }


/* ============================================================
   ADMIN SECTIONS — Visual grouping
   ============================================================ */
.section-admin {
  background: rgba(255,255,255,0.01);
  border-bottom-color: rgba(255,255,255,0.06);
}


/* ============================================================
   CENTERED CONTENT — Uniform max-width for narrow blocks
   ============================================================ */
.centered-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   TYPOGRAPHY — Consistent text sizing
   ============================================================ */

/* Card heading inside bento / display / feature */
.card-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Card body text */
.card-text {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* Stat number inside bento / display cards */
.card-stat {
  font-size: 28px;
  font-weight: 800;
  display: block;
  margin-top: 12px;
}

.card-stat-label {
  font-size: 11px;
  color: var(--muted-3);
  display: block;
  margin-top: 2px;
}


/* ============================================================
   BUTTON SIZING — Normalized tiers
   ============================================================
   Default shimmer/neon: 16px, 14px 32px pad (from components.css)
   .btn-sm: 13px, 10px 24px pad — for inside cards/sections
   .btn-xs: 12px, 8px 16px pad — for admin forms
   ============================================================ */
.btn-sm {
  font-size: 13px !important;
  padding: 10px 24px !important;
}

.btn-xs {
  font-size: 12px !important;
  padding: 8px 16px !important;
}

.btn-block {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   SIDEBAR (#36)
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #0a0a0a;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-inner {
  padding: 24px 14px;
}

.sidebar-section-label {
  margin-top: 16px;
}

.sidebar-section-label:first-child {
  margin-top: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger toggle */
.sidebar-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  border-color: var(--casino-gold);
  box-shadow: 0 0 15px rgba(255,215,0,0.15);
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sidebar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   TAB NAVIGATION — Sticky sous le hero
   ============================================================ */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  padding: 0;
  overflow: hidden;
}

.tab-nav-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.tab-nav-inner::-webkit-scrollbar {
  display: none;
}

.tab-nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  margin-right: 32px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tab-nav-brand:hover {
  opacity: 0.8;
}

.tab-btn {
  padding: 16px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  position: relative;
}

.tab-btn:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--casino-gold);
  border-bottom-color: var(--casino-gold);
}

.tab-btn-login {
  margin-left: auto;
  color: var(--casino-gold) !important;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  transition: all 0.2s;
}

.tab-btn-login:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  border-color: rgba(255, 215, 0, 0.4);
}

/* Tab page transitions + fond thème */
.tab-page {
  animation: tabFadeIn 0.3s ease;
  min-height: 80vh;
  position: relative;
}

/* Tab pages avec fond thème */
.tab-page-themed {
  position: relative;
  overflow: hidden;
}

.tab-page-themed > .section {
  position: relative;
  z-index: 3;
}

/* Sparkles dans les tabs */
.tab-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Reveal bg dans les tabs — même style que le hero */
.tab-bg-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.tab-bg-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.2) saturate(1.2);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tab-bg-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 280px at var(--reveal-x, -999px) var(--reveal-y, -999px),
    transparent 0%,
    transparent 20%,
    rgba(0,0,0,0.8) 50%,
    rgba(0,0,0,1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.tab-page-themed.revealing .tab-bg-reveal img {
  opacity: 0.8;
}

/* Page Concours — fond subtil, sobre, dans le thème */
[data-tab="concours"] .tab-bg-reveal img {
  opacity: 0.2;
  filter: blur(18px) brightness(0.2) saturate(1.1);
}
[data-tab="concours"] .tab-bg-reveal::after {
  background: radial-gradient(
    circle 180px at var(--reveal-x, -999px) var(--reveal-y, -999px),
    transparent 0%,
    rgba(0,0,0,0.5) 30%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,0.95) 100%
  );
}
[data-tab="concours"].revealing .tab-bg-reveal img {
  opacity: 0.4;
  filter: blur(14px) brightness(0.25) saturate(1.1);
}

/* ============================================================
   CARD SPOTLIGHT — Halo confiné dans les panels
   ============================================================ */
/* Glare overlay — réduire l'intensité 3D */
.glare-overlay {
  opacity: 0.25 !important;
}

/* Moving-border — couleur par panel, plus subtile */
.moving-border {
  background: conic-gradient(
    from var(--border-angle, 0deg) at 50% 50%,
    transparent 0%, var(--mb-color, rgba(212,175,55,0.3)) 25%, transparent 50%,
    transparent 75%, var(--mb-color, rgba(212,175,55,0.3)) 100%
  ) !important;
}

/* Glow-pulse — réduit et sobre */
.glow-pulse {
  animation: glow-pulse-subtle 2s ease-in-out infinite !important;
}
@keyframes glow-pulse-subtle {
  0%, 100% { box-shadow: 0 0 10px rgba(212,175,55,0.15), 0 0 20px rgba(212,175,55,0.08); }
  50% { box-shadow: 0 0 15px rgba(212,175,55,0.25), 0 0 30px rgba(212,175,55,0.12); }
}

.card-spotlight {
  --spot-color: 255, 215, 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

/* Halo lumineux interne — suit la souris, confiné par overflow:hidden */
.card-spotlight::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(var(--spot-color), 0.04) 0%,
    rgba(var(--spot-color), 0.015) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  left: var(--mouse-x, -999px);
  top: var(--mouse-y, -999px);
  z-index: 1;
}

/* Bordure lumineuse subtile au hover */
.card-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: radial-gradient(
    circle 150px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(var(--spot-color), 0.08),
    transparent 60%
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.card-spotlight:hover::before {
  opacity: 1;
}

.card-spotlight:hover::after {
  opacity: 1;
}

/* Spotlight atténué sur les pages avec fond photo visible */
[data-tab="concours"] .card-spotlight::before {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle,
    rgba(var(--spot-color), 0.03) 0%,
    rgba(var(--spot-color), 0.01) 40%,
    transparent 70%
  );
}
[data-tab="concours"] .card-spotlight::after {
  background: radial-gradient(
    circle 100px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(var(--spot-color), 0.06),
    transparent 60%
  ) border-box;
}

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

/* Info tooltip — conditions cachées dans un ℹ️ */
.info-tooltip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}
.info-tooltip-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #666;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
}
.info-tooltip-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #aaa;
}
.info-tooltip-content {
  display: none;
  position: absolute;
  right: 0;
  top: 28px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  color: #888;
  min-width: 200px;
  line-height: 1.7;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.info-tooltip:hover .info-tooltip-content {
  display: block;
}

/* Accueil footer */
.accueil-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 20px 24px;
  margin-top: 20px;
}

.accueil-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.accueil-footer-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.af-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.af-stat-value {
  font-size: 28px;
}

.af-stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.accueil-footer-copy {
  font-size: 11px;
  color: #444;
  margin-bottom: 12px;
}

.accueil-footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .tab-btn {
    padding: 12px 14px;
    font-size: 12px;
  }

  .accueil-footer-stats {
    gap: 20px;
  }
}


/* ============================================================
   HERO
   ============================================================ */
.hero-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  overflow: hidden;
  border-bottom: none;
}

/* Hero background image — revealed on mouse hover */
.hero-bg-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.4) saturate(1.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-bg-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 350px at var(--reveal-x, -999px) var(--reveal-y, -999px),
    transparent 0%,
    transparent 30%,
    rgba(0,0,0,0.7) 60%,
    rgba(0,0,0,1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* When mouse enters hero, show the image and mask it */
.hero-main.revealing .hero-bg-reveal img {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.15));
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted-2);
  margin-bottom: 14px;
  font-weight: 400;
  text-align: center;
}

.hero-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.trust-badge.verified { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }
.trust-badge.community { background: rgba(114,137,218,0.1); border: 1px solid rgba(114,137,218,0.25); color: #93a8f4; }
.trust-badge.exclusive { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); color: #F5D76E; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}

.hero-stat { text-align: center; }
.hero-stat-label { display: block; font-size: 11px; color: var(--muted-3); margin-top: 2px; }
.hero-stat-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.08); }

/* HERO CARDS — 2x2 grid */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.hero-card-side .spotlight-card,
.hero-card-center .spotlight-card { height: 100%; display: flex; flex-direction: column; }

.hcc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hcc-badge { padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.hcc-badge--gold { background: rgba(212,175,55,0.12); color: #F5D76E; border: 1px solid rgba(212,175,55,0.25); }
.hcc-badge--purple { background: rgba(168,85,247,0.12); color: var(--purple-light); border: 1px solid rgba(168,85,247,0.25); }
.hcc-badge--green { background: rgba(0,255,136,0.1); color: #00ff88; border: 1px solid rgba(0,255,136,0.2); }

.hcc-name { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.hero-card-center .hcc-name { font-size: 20px; }

.hcc-bonus { text-align: center; margin-bottom: 14px; }
.hcc-amount { display: block; font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 900; line-height: 1.1; }
.hero-card-center .hcc-amount { font-size: 52px; }
.hcc-label { display: block; font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.hero-card-center .hcc-label { font-size: 14px; }

.hcc-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hcc-pill { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; color: var(--muted-2); border: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }

.hcc-cta { width: 100%; justify-content: center; margin-top: auto; font-size: 13px !important; padding: 11px !important; }
.hero-card-center .hcc-cta { font-size: 16px !important; padding: 16px !important; }

.hcc-promo { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px dashed rgba(212,175,55,0.25); }
.hcc-promo-label { font-size: 9px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; }
.hcc-promo-code { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: var(--casino-gold); letter-spacing: 2px; flex: 1; }
.hcc-promo-copy { padding: 4px 10px; border-radius: 6px; background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.2); color: var(--casino-gold); font-size: 10px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.hcc-promo-copy:hover { background: rgba(212,175,55,0.2); }

.hero-bottom { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.04); width: 100%; }
.hero-bottom-stat { text-align: center; font-size: 11px; color: var(--muted-3); }
.hero-bottom-stat strong { color: var(--casino-gold); font-size: 13px; }


/* ============================================================
   PROFILE SECTION — Card wrapper
   ============================================================ */
.profile-card-wrap {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}


/* ============================================================
   BENTO GRID — Normalized card internals
   ============================================================ */
.bento-grid .bento-item > div {
  height: 100%;
}

.bento-card-inner {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.bento-card-inner h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.bento-card-inner p {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* Large bento stat */
.bento-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.bento-stat-number {
  font-size: 32px;
  font-weight: 800;
}

.bento-stat-label {
  font-size: 13px;
  color: var(--muted-2);
}

/* Glass card used inside bento */
.bento-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 28px;
  height: 100%;
}

.bento-glass h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-glass p {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* Gradient bg card inside bento */
.bento-gradient {
  border-radius: var(--card-radius);
  padding: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-gradient h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-gradient p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}


/* ============================================================
   ADMIN KPI — Normalized color classes
   ============================================================ */
.kpi-value-purple { color: var(--purple-light) !important; }
.kpi-value-blue { color: var(--casino-blue) !important; }


/* ============================================================
   UTILITY COLORS
   ============================================================ */
.text-gold { color: var(--casino-gold) !important; }
.text-green { color: var(--casino-green) !important; }
.text-purple { color: var(--purple-light) !important; }
.text-muted { color: var(--muted-2) !important; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root {
    --section-pad: 60px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .hero-card-side { order: 1; }
  .hero-card-center { order: 0; }

  .hero-stats {
    gap: 16px;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .bento-grid .bento-item[style*="span 2"] {
    grid-column: span 1 !important;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 48px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-desc {
    font-size: 13px;
  }

  .hero-title {
    letter-spacing: 3px;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .yt-featured {
    grid-template-columns: 1fr !important;
  }

  .yt-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
  }
}


/* ============================================================
   YOUTUBE SECTION
   ============================================================ */
.yt-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.yt-featured-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.yt-featured-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-featured-info {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-featured-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.yt-featured-meta {
  font-size: 12px;
  color: var(--muted-3, #666);
  margin-bottom: 10px;
}

.yt-featured-desc {
  font-size: 13px;
  color: var(--muted-2, #888);
  line-height: 1.6;
}

/* Video grid */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.yt-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.yt-card:hover {
  transform: translateY(-4px);
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #111;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-card:hover .yt-thumb img {
  transform: scale(1.05);
}

.yt-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', monospace;
  letter-spacing: 0.5px;
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 40px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.yt-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-card-body {
  padding: 14px 16px;
}

.yt-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted-3, #666);
}

@media (max-width: 860px) {
  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
