/* =============================================================================
   LOO.RE — Style & Design System Inspiré de Tipeee & Ko-fi
   Palette officielle : #6c2287 (Violet très foncé) & nuances harmonieuses violet-rose
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Nuances officielles violet-rose */
  --primary: #6c2287;
  /* Violet très foncé (couleur principale Loo.re) */
  --primary-mid: #8B3A9B;
  /* Violet moyen */
  --primary-mauve: #A54FB0;
  /* Violet-mauve */
  --mauve-light: #B080C2;
  /* Mauve clair */
  --rose-mauve: #C999D4;
  /* Rose-mauve */
  --rose-light: #E0B3E6;
  /* Rose léger */
  --rose-vivid: #E74B8C;
  /* Rose fuchsia vif */
  --rose-warm: #D96B9E;
  /* Rose corail chaleureux */

  /* Thème sombre par défaut */
  --bg: #07080e;
  --bg-surface: #0e1019;
  --bg-card: #141724;
  --bg-card-hover: #1c2032;
  --bg-glass: rgba(14, 16, 25, 0.85);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --border: rgba(176, 128, 194, 0.16);
  --border-hover: rgba(231, 75, 140, 0.35);
  --border-focus: rgba(108, 34, 135, 0.6);

  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-cyan: #06B6D4;
  --accent-red: #EF4444;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 45%, var(--rose-vivid) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(108, 34, 135, 0.35);
  --shadow-fuchsia: 0 0 25px rgba(231, 75, 140, 0.35);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

/* ── Thème Sombre Explicite ── */
html[data-theme="dark"] {
  --bg: #07080e;
  --bg-surface: #0e1019;
  --bg-card: #141724;
  --bg-card-hover: #1c2032;
  --bg-glass: rgba(14, 16, 25, 0.85);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --border: rgba(176, 128, 194, 0.16);
  --border-hover: rgba(231, 75, 140, 0.35);
  --border-focus: rgba(108, 34, 135, 0.6);
}

/* ── Thème Clair Explicite ── */
html[data-theme="light"] {
  --bg: #f8f6fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3eff9;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --text: #171120;
  --text-muted: #4e435c;
  --text-subtle: #736582;
  --rose-light: #8B3A9B;
  /* Violet-mauve moyen avec contraste > 4.5:1 sur fond blanc */
  --rose-mauve: #6c2287;
  /* Violet sombre */
  --mauve-light: #5b1b72;
  /* Violet profond */
  --border: rgba(108, 34, 135, 0.14);
  --border-hover: rgba(231, 75, 140, 0.45);
  --border-focus: rgba(108, 34, 135, 0.7);
  --shadow-sm: 0 2px 8px rgba(108, 34, 135, 0.05);
  --shadow-md: 0 10px 25px rgba(108, 34, 135, 0.08);
  --shadow-lg: 0 20px 45px rgba(108, 34, 135, 0.12);
  --shadow-glow: 0 0 30px rgba(108, 34, 135, 0.12);
  --shadow-fuchsia: 0 0 25px rgba(231, 75, 140, 0.12);
}

/* ── Mode Auto : Préférence Système Clair ── */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    --bg: #f8f6fb;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f3eff9;
    --bg-glass: rgba(255, 255, 255, 0.94);
    --text: #171120;
    --text-muted: #4e435c;
    --text-subtle: #736582;
    --rose-light: #8B3A9B;
    --rose-mauve: #6c2287;
    --mauve-light: #5b1b72;
    --border: rgba(108, 34, 135, 0.14);
    --border-hover: rgba(231, 75, 140, 0.45);
    --border-focus: rgba(108, 34, 135, 0.7);
    --shadow-sm: 0 2px 8px rgba(108, 34, 135, 0.05);
    --shadow-md: 0 10px 25px rgba(108, 34, 135, 0.08);
    --shadow-lg: 0 20px 45px rgba(108, 34, 135, 0.12);
    --shadow-glow: 0 0 30px rgba(108, 34, 135, 0.12);
    --shadow-fuchsia: 0 0 25px rgba(231, 75, 140, 0.12);
  }
}

/* ── Ajustements Thème Clair Spécifiques ── */
html[data-theme="light"] #tabLoginBtn.active,
html.light #tabLoginBtn.active,
html[data-theme="light"] #tabRegisterBtn.active,
html.light #tabRegisterBtn.active {
  color: var(--bg-surface);
}

html[data-theme="light"] .text-gradient,
html.light .text-gradient {
  background: linear-gradient(135deg, #171120 15%, var(--primary) 65%, var(--rose-vivid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .text-gradient {
    background: linear-gradient(135deg, #171120 15%, var(--primary) 65%, var(--rose-vivid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

html[data-theme="light"] .brand-logo span,
html.light .brand-logo span {
  background: linear-gradient(135deg, var(--primary) 30%, var(--rose-vivid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .brand-logo span {
    background: linear-gradient(135deg, var(--primary) 30%, var(--rose-vivid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

html[data-theme="light"] .nav-link:hover,
html.light .nav-link:hover {
  color: var(--primary);
  background: rgba(108, 34, 135, 0.08);
}

html[data-theme="light"] .nav-link.active,
html.light .nav-link.active {
  color: var(--primary);
  background: rgba(108, 34, 135, 0.12);
  border: 1px solid rgba(108, 34, 135, 0.2);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .nav-link:hover {
    color: var(--primary);
    background: rgba(108, 34, 135, 0.08);
  }

  html:not([data-theme="dark"]) .nav-link.active {
    color: var(--primary);
    background: rgba(108, 34, 135, 0.12);
    border: 1px solid rgba(108, 34, 135, 0.2);
  }
}

html[data-theme="light"] .creator-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .value-card,
html[data-theme="light"] .blog-card,
html.light .creator-card,
html.light .team-card,
html.light .value-card,
html.light .blog-card {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(108, 34, 135, 0.07);
  border: 1px solid rgba(108, 34, 135, 0.12);
}

@media (prefers-color-scheme: light) {

  html:not([data-theme="dark"]) .creator-card,
  html:not([data-theme="dark"]) .team-card,
  html:not([data-theme="dark"]) .value-card,
  html:not([data-theme="dark"]) .blog-card {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(108, 34, 135, 0.07);
    border: 1px solid rgba(108, 34, 135, 0.12);
  }
}

html[data-theme="light"] .chip-btn,
html.light .chip-btn {
  background: #ffffff;
  border-color: rgba(108, 34, 135, 0.15);
  color: var(--text-muted);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .chip-btn {
    background: #ffffff;
    border-color: rgba(108, 34, 135, 0.15);
    color: var(--text-muted);
  }
}

html[data-theme="light"] .chip-btn.active,
html.light .chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .chip-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }
}

html[data-theme="light"] .btn-secondary,
html.light .btn-secondary {
  background: #efeaf5;
  color: var(--primary);
  border-color: rgba(108, 34, 135, 0.22);
}

html[data-theme="light"] .btn-secondary:hover,
html.light .btn-secondary:hover {
  background: #e6ddf0;
  color: var(--primary);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .btn-secondary {
    background: #efeaf5;
    color: var(--primary);
    border-color: rgba(108, 34, 135, 0.22);
  }

  html:not([data-theme="dark"]) .btn-secondary:hover {
    background: #e6ddf0;
    color: var(--primary);
  }
}

html[data-theme="light"] .tipeee-search-box,
html.light .tipeee-search-box,
html[data-theme="light"] .hero-search-box,
html.light .hero-search-box {
  background: #ffffff;
  border: 1px solid rgba(108, 34, 135, 0.22);
  box-shadow: 0 10px 30px rgba(108, 34, 135, 0.08);
}

html[data-theme="light"] .hero-search-input,
html.light .hero-search-input {
  color: #1e293b;
}

@media (prefers-color-scheme: light) {

  html:not([data-theme="dark"]) .tipeee-search-box,
  html:not([data-theme="dark"]) .hero-search-box {
    background: #ffffff;
    border: 1px solid rgba(108, 34, 135, 0.22);
    box-shadow: 0 10px 30px rgba(108, 34, 135, 0.08);
  }

  html:not([data-theme="dark"]) .hero-search-input {
    color: #1e293b;
  }
}

html[data-theme="light"] .site-footer,
html.light .site-footer {
  background: #f1ecf7;
  border-top: 1px solid rgba(108, 34, 135, 0.12);
}

html[data-theme="light"] .footer-heading,
html.light .footer-heading {
  color: var(--primary);
}

html[data-theme="light"] .pay-pill,
html.light .pay-pill {
  background: #ffffff;
  border-color: rgba(108, 34, 135, 0.15);
  color: var(--text);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .site-footer {
    background: #f1ecf7;
    border-top: 1px solid rgba(108, 34, 135, 0.12);
  }

  html:not([data-theme="dark"]) .footer-heading {
    color: var(--primary);
  }

  html:not([data-theme="dark"]) .pay-pill {
    background: #ffffff;
    border-color: rgba(108, 34, 135, 0.15);
    color: var(--text);
  }
}

html[data-theme="light"] .kpi-card,
html[data-theme="light"] .split-card,
html[data-theme="light"] .chart-section,
html[data-theme="light"] .editorial-content,
html[data-theme="light"] .editorial-container,
html[data-theme="light"] .faq-card,
html[data-theme="light"] .contact-card,
html.light .kpi-card,
html.light .split-card,
html.light .chart-section,
html.light .editorial-content,
html.light .editorial-container,
html.light .faq-card,
html.light .contact-card {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(108, 34, 135, 0.06);
  border: 1px solid rgba(108, 34, 135, 0.12);
}

@media (prefers-color-scheme: light) {

  html:not([data-theme="dark"]) .kpi-card,
  html:not([data-theme="dark"]) .split-card,
  html:not([data-theme="dark"]) .chart-section,
  html:not([data-theme="dark"]) .editorial-content,
  html:not([data-theme="dark"]) .editorial-container,
  html:not([data-theme="dark"]) .faq-card,
  html:not([data-theme="dark"]) .contact-card {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(108, 34, 135, 0.06);
  }
}

html[data-theme="light"] .svc-box,
html.light .svc-box {
  background: #ffffff;
  border-color: rgba(108, 34, 135, 0.14);
}

html[data-theme="light"] .svc-split,
html.light .svc-split {
  background: #f7f3fa;
  border-color: rgba(108, 34, 135, 0.12);
  color: var(--text);
}

html[data-theme="light"] .faq-item,
html.light .faq-item {
  background: #ffffff;
  border-color: rgba(108, 34, 135, 0.14);
}

html[data-theme="light"] .faq-question,
html.light .faq-question {
  color: var(--text);
}

/* ── Sélecteur de Thème (Theme Switcher Widget) ── */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.theme-btn:hover {
  color: var(--text);
  background: rgba(165, 79, 176, 0.15);
}

.theme-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(108, 34, 135, 0.35);
}

.theme-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}


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

html {
  font-size: 17.5px;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 992px) {
  html {
    font-size: 16.5px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ── Glows & Effets d'ambiance ── */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-primary {
  background: radial-gradient(circle, var(--primary), transparent 70%);
}

.glow-rose {
  background: radial-gradient(circle, var(--rose-vivid), transparent 70%);
}

.glow-mauve {
  background: radial-gradient(circle, var(--mauve-light), transparent 70%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Typography & Gradients ── */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--rose-mauve) 65%, var(--rose-vivid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--mauve-light) 0%, var(--primary-mid) 50%, var(--rose-vivid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Header / Navbar Style Tipeee ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo img,
.brand-logo svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 3px 10px rgba(108, 34, 135, 0.45));
}

.brand-logo span {
  background: linear-gradient(135deg, #fff 40%, var(--rose-mauve) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo .brand-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  background: rgba(231, 75, 140, 0.18);
  border: 1px solid rgba(231, 75, 140, 0.35);
  color: var(--rose-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(176, 128, 194, 0.14);
}

.nav-link.active {
  color: var(--rose-light);
  background: rgba(108, 34, 135, 0.28);
  border: 1px solid rgba(176, 128, 194, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ── Buttons (Style Ko-fi / Tipeee Pill) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.72rem 1.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 45%, var(--rose-vivid) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 34, 135, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 8px 25px rgba(231, 75, 140, 0.5);
  transform: translateY(-2px);
}

.hero-search-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 45%, var(--rose-vivid) 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(108, 34, 135, 0.45);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.hero-search-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 22px rgba(231, 75, 140, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(176, 128, 194, 0.18);
  border-color: var(--mauve-light);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-outline-rose {
  background: transparent;
  border: 1.5px solid var(--rose-vivid);
  color: var(--rose-light);
}

.btn-outline-rose:hover {
  background: rgba(231, 75, 140, 0.18);
  color: var(--rose-vivid);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.52rem 1.25rem;
  font-size: 0.94rem;
  border-radius: var(--radius-pill);
}

.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.18rem;
  border-radius: var(--radius-pill);
}

/* ── Badges & Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-creator {
  background: rgba(108, 34, 135, 0.28);
  color: var(--rose-light);
  border: 1px solid rgba(176, 128, 194, 0.35);
}

.badge-media {
  background: rgba(231, 75, 140, 0.22);
  color: #FFA5D2;
  border: 1px solid rgba(231, 75, 140, 0.4);
}

.badge-service {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  padding: 5px 11px;
}

.badge-service.club {
  color: #C084FC;
  border-color: rgba(192, 132, 252, 0.4);
}

.badge-service.don {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.4);
}

.badge-service.chat {
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.4);
}

.badge-service.vote {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.4);
}

/* ── Hero Tipeee / Ko-fi ── */
.tipeee-hero,
.home-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  background: rgba(108, 34, 135, 0.22);
  border: 1px solid rgba(176, 128, 194, 0.35);
  color: var(--rose-light);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  box-shadow: 0 0 24px rgba(108, 34, 135, 0.25);
}

.tipeee-hero h1,
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 960px;
  margin: 0 auto 1.4rem;
}

.tipeee-hero p.subtitle,
.home-hero p.subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* ── Search Bar Tipeee / Ko-fi ── */
.tipeee-search-box {
  max-width: 680px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 22px;
  box-shadow: var(--shadow-md), 0 0 30px rgba(108, 34, 135, 0.15);
  transition: var(--transition);
}

.tipeee-search-box:focus-within {
  border-color: var(--rose-vivid);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(231, 75, 140, 0.2);
}

.tipeee-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.12rem;
  font-family: inherit;
}

.tipeee-search-box input::placeholder {
  color: var(--text-subtle);
}

.tipeee-search-box button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--rose-vivid) 100%);
  border: none;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tipeee-search-box button:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

/* ── Category Chips Bar ── */
.category-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.58rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip-btn:hover {
  background: rgba(176, 128, 194, 0.18);
  color: var(--text);
  border-color: var(--mauve-light);
  transform: translateY(-1px);
}

.chip-btn.active {
  background: linear-gradient(135deg, rgba(108, 34, 135, 0.5) 0%, rgba(231, 75, 140, 0.5) 100%);
  color: #fff;
  border-color: var(--rose-vivid);
  box-shadow: 0 0 16px rgba(231, 75, 140, 0.3);
}

/* ── Category Dropdown Component ── */
.category-dropdown-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.category-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  min-height: 48px;
}

.category-dropdown-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.category-dropdown-btn:focus-visible {
  border-color: var(--rose-vivid);
  box-shadow: 0 0 0 3px rgba(231, 75, 140, 0.2);
}

.category-dropdown-wrap.open .category-dropdown-btn {
  border-color: var(--rose-vivid);
  box-shadow: 0 0 16px rgba(231, 75, 140, 0.2);
}

.category-dropdown-btn.has-filter {
  background: linear-gradient(135deg, rgba(108, 34, 135, 0.25) 0%, rgba(231, 75, 140, 0.25) 100%);
  border-color: var(--rose-vivid);
  color: var(--text);
}

.cat-icon {
  color: var(--rose-vivid);
  flex-shrink: 0;
}

.cat-current-label {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-chevron {
  color: var(--text-subtle);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 2px;
}

.category-dropdown-wrap.open .cat-chevron {
  transform: rotate(180deg);
}

.cat-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 2px;
}

.category-dropdown-btn.has-filter .cat-clear-btn {
  display: inline-flex;
}

.cat-clear-btn:hover {
  background: var(--rose-vivid);
  color: #fff;
  transform: scale(1.1);
}

/* Dropdown Menu Panel */
.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 120;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  pointer-events: none;
}

.category-dropdown-wrap.open .category-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Category Quick Search input inside menu */
.cat-dropdown-search {
  padding: 0.25rem 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.cat-dropdown-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.cat-dropdown-search input:focus {
  border-color: var(--rose-vivid);
  box-shadow: 0 0 0 2px rgba(231, 75, 140, 0.15);
}

/* Items list */
.category-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.category-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.category-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-pill);
}

.category-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}

.category-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--rose-vivid);
}

.category-dropdown-item.active {
  background: rgba(231, 75, 140, 0.12);
  color: var(--rose-vivid);
  font-weight: 600;
}

.category-dropdown-item .cat-item-check {
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.15s ease;
  color: var(--rose-vivid);
  flex-shrink: 0;
}

.category-dropdown-item.active .cat-item-check {
  opacity: 1;
  transform: scale(1);
}

.cat-empty-msg {
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .category-dropdown-wrap {
    width: 100%;
  }
  .category-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
  .category-dropdown-menu {
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
  }
}

/* ── Live Key Metrics Bar ── */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  background: rgba(20, 23, 36, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem auto 0;
  max-width: 1000px;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── Cards Grid (Créateurs & Médias) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.creator-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 35px rgba(108, 34, 135, 0.25);
}

.card-banner {
  height: 130px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--rose-vivid) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}

.card-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.card-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 46px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-title .verified-check {
  color: var(--accent-emerald);
  font-size: 1.1rem;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.card-services-pills,
.card-footer {
  display: none !important;
}

.card-stats-info {
  display: none;
  visibility: hidden;
  font-size: 0.92rem;
  color: var(--text-subtle);
}

.card-stats-info strong {
  color: var(--rose-light);
  font-weight: 800;
}

/* ── Section Titles ── */
.section {
  padding: 3rem 0;
}

.section-header,
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title,
.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-subtitle,
.section-title-wrap p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── Blog Card ── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.blog-cover {
  height: 180px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

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

.blog-card:hover .blog-cover img {
  transform: scale(1.05);
}

.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Editorial Page Shell (Qui sommes-nous, Legal, CGU...) ── */
.editorial-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(108, 34, 135, 0.25) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.editorial-container {
  max-width: 860px;
  margin: 3rem auto 5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.editorial-content {
  border: none !important;
  box-shadow: none !important;
}

.editorial-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.4rem 0 1.2rem;
  padding-bottom: 0.6rem;
}

.editorial-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rose-light);
  margin: 1.6rem 0 0.9rem;
}

.editorial-content p {
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
  text-align: left;
}

.editorial-content ul,
.editorial-content ol {
  margin: 1rem 0 1.6rem 1.6rem;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* ── Team Grid (Section L'équipe) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--mauve-light);
  box-shadow: 0 14px 35px rgba(108, 34, 135, 0.25);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 3.5px solid var(--primary-mid);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.94rem;
  color: var(--rose-vivid);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.team-bio {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-role-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose-light);
  background: rgba(108, 34, 135, 0.25);
  border: 1px solid rgba(176, 128, 194, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.team-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.team-social-btn:hover {
  color: var(--rose-vivid);
  border-color: var(--rose-vivid);
  transform: translateY(-2px);
}

/* ── Contact Form ── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--rose-vivid);
  box-shadow: 0 0 0 3px rgba(231, 75, 140, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ── Stats Page Styles ── */
.stats-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 220px;
  padding-top: 2rem;
  border-bottom: 1px solid var(--border);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--rose-vivid) 0%, var(--primary) 100%);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.8s ease;
  position: relative;
}

.bar-fill:hover {
  filter: brightness(1.2);
}

.bar-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 8px;
  font-weight: 600;
}

/* ── Footer Style Tipeee & Ko-fi ── */
.site-footer {
  margin-top: auto;
  background: #05060a;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 1rem 0 1.6rem;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 1.35rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1.02rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--rose-light);
  transform: translateX(4px);
  display: inline-block;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pay-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

/* ── Hamburger Toggle Button ───────────────────────── */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  color: var(--text);
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle-btn:hover {
  border-color: var(--rose-light);
  background: rgba(165, 79, 176, 0.15);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Navigation Drawer ──────────────────────── */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 14, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
  z-index: 1999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.mobile-nav-close:hover {
  color: var(--text);
  border-color: var(--rose-vivid);
  transform: scale(1.08);
}

.mobile-nav-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  min-height: 48px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(176, 128, 194, 0.15);
  color: var(--rose-light);
  transform: translateX(4px);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

.mobile-nav-theme-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
}

.mobile-nav-theme-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
}

html[data-theme="light"] .mobile-nav-drawer,
html.light .mobile-nav-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(108, 34, 135, 0.16);
  box-shadow: -15px 0 50px rgba(108, 34, 135, 0.15);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-menu {
    display: none !important;
  }

  .nav-toggle-btn {
    display: flex !important;
  }

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

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

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

  .editorial-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .site-header .theme-switcher {
    display: none !important;
  }

  .navbar {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .creator-card {
    width: 100%;
    min-width: 0;
  }

  .search-input-wrap {
    max-width: 100%;
    width: 100%;
  }

  .filters-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search-box {
    padding: 4px;
  }

  .hero-search-input {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
  }

  .hero-search-btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.92rem;
  }
}

.hide {
  display: none !important;
}

/* ── Pie / Donut Chart  ── */
.pie-chart-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.pie-chart-svg-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.pie-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.pie-slice {
  fill: none;
  stroke-width: 32;
  transition: stroke-width 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.pie-slice:hover {
  stroke-width: 38;
  filter: drop-shadow(0 0 8px currentColor);
}

.pie-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.pie-center-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.pie-center-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pie-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.pie-legend-item:hover,
.pie-legend-item.highlight {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.pie-legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.pie-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pie-legend-val {
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 640px) {
  .pie-chart-container {
    flex-direction: column;
    align-items: center;
  }

  .pie-legend {
    width: 100%;
  }
}

/* ── Modal Dialog Auth (Login & Register) ── */
dialog.auth-modal-dialog {
  border: none;
  background: transparent;
  padding: 1.25rem 0.5rem;
  max-width: 520px;
  width: 94%;
  margin: auto;
  outline: none;
  overflow: visible;
  max-height: 94vh;
  max-height: 94dvh;
  box-sizing: border-box;
}

dialog.auth-modal-dialog::backdrop {
  background: rgba(7, 8, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 45px rgba(108, 34, 135, 0.28);
  position: relative;
  color: var(--text);
  max-height: calc(94vh - 2.5rem);
  max-height: calc(94dvh - 2.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 34, 135, 0.45) transparent;
}

.auth-modal-card::-webkit-scrollbar {
  width: 6px;
}

.auth-modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.auth-modal-card::-webkit-scrollbar-thumb {
  background: rgba(108, 34, 135, 0.35);
  border-radius: 999px;
}

.auth-modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(231, 75, 140, 0.65);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.auth-modal-close:hover {
  color: var(--text);
  border-color: var(--rose-vivid);
  transform: scale(1.1);
}

html[data-theme="light"] .auth-modal-card {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(108, 34, 135, 0.15);
  border: 1px solid rgba(108, 34, 135, 0.16);
  scrollbar-color: rgba(108, 34, 135, 0.25) transparent;
}

html[data-theme="light"] .auth-modal-card::-webkit-scrollbar-thumb {
  background: rgba(108, 34, 135, 0.25);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .auth-modal-card {
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(108, 34, 135, 0.15);
    border: 1px solid rgba(108, 34, 135, 0.16);
  }
}

@media (max-width: 640px) {
  dialog.auth-modal-dialog {
    width: 95%;
    max-width: 100%;
    padding: 0.5rem 0;
    max-height: 98vh;
    max-height: 98dvh;
  }

  .auth-modal-card {
    padding: 1.6rem 1.25rem 1.5rem;
    max-height: calc(98vh - 1rem);
    max-height: calc(98dvh - 1rem);
  }

  .auth-modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ── OAuth Social Buttons ────────────────────────────── */
.oauth-section {
  margin-bottom: 1.1rem;
}

.oauth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-items: stretch;
}

.btn-oauth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  transition: var(--transition);
}

.btn-oauth:hover {
  border-color: var(--rose-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-oauth svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.btn-oauth-google {
  background: rgba(255, 255, 255, 0.05);
}

.btn-oauth-apple {
  background: rgba(255, 255, 255, 0.05);
}

.btn-oauth-facebook {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.25);
  color: #1877f2;
}

.btn-oauth-facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
}

.oauth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oauth-separator::before,
.oauth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.oauth-separator span {
  padding: 0 10px;
}