/* ========================================
   TIXYA — Kinetic Volt Design System
   ======================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-primary: #b8d300;
  --color-primary-container: #d2f000;
  --color-on-primary: #2c3400;
  --color-secondary: #9F67FF;
  --color-secondary-light: #b794ff;
  --color-secondary-container: #7C3AED;
  --color-on-secondary: #ffffff;
  --color-surface: #121414;
  --color-surface-dim: #121414;
  --color-surface-bright: #38393a;
  --color-surface-container-lowest: #0c0f0f;
  --color-surface-container-low: #1a1c1c;
  --color-surface-container: #1e2020;
  --color-surface-container-high: #282a2b;
  --color-surface-container-highest: #333535;
  --color-on-surface: #e2e2e2;
  --color-on-surface-variant: #c6c9ab;
  --color-subtitle: #c6c9ab;
  --color-outline: #909378;
  --color-outline-variant: #454932;
  --color-error: #ffb4ab;
  --color-error-container: #93000a;
  --color-on-error: #690005;
  --color-white: #ffffff;
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-05: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-headline: 'Anton', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-unit: 8px;
  --space-container-max: 1280px;
  --space-gutter: 24px;
  --space-margin-mobile: 16px;
  --space-margin-desktop: 64px;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-default: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Glow */
  --glow-primary: 0 0 20px rgba(184, 211, 0, 0.4);
  --glow-primary-strong: 0 0 40px rgba(184, 211, 0, 0.6);
  --glow-secondary: 0 0 20px rgba(159, 103, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Container --- */
.container {
  max-width: var(--space-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-margin-mobile);
  padding-right: var(--space-margin-mobile);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-margin-desktop);
    padding-right: var(--space-margin-desktop);
  }
}

/* --- Glassmorphism Utilities --- */
.glass {
  background: rgba(30, 32, 32, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
}

.glass-strong {
  background: rgba(30, 32, 32, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-white-10);
}

.glass-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
}

/* --- Glow Utilities --- */
.glow-primary {
  box-shadow: var(--glow-primary);
}

.glow-secondary {
  box-shadow: var(--glow-secondary);
}

/* --- Skewed Accent --- */
.skew-accent {
  transform: skewX(-2deg);
}

.skew-accent > * {
  transform: skewX(2deg);
}

/* --- Typography Utilities --- */
.font-headline {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 12px;
  line-height: 16px;
}

/* Type Scale Utilities */
.headline-xl {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  font-style: italic;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.label-caps {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Form Input Style --- */
.input-glow {
  background: var(--color-surface-container);
  border: none;
  border-bottom: 2px solid var(--color-outline-variant);
  color: var(--color-on-surface);
  padding: 12px 16px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.input-glow:focus {
  border-bottom-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(184, 211, 0, 0.2);
}

.input-glow::placeholder {
  color: var(--color-outline);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(184, 211, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(184, 211, 0, 0.6);
  }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.animate-glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

.reveal-delay-100 { transition-delay: 0.15s; }
.reveal-delay-200 { transition-delay: 0.30s; }
.reveal-delay-300 { transition-delay: 0.45s; }

/* --- Scroll Reveal (JS toggles .revealed) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Spacing --- */
.section-spacing {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 639px) {
  .section-spacing {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 8px 24px;
  border-radius: var(--radius-default);
  font-family: var(--font-body);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 16px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-container-highest);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* --- Selection --- */
::selection {
  background: rgba(184, 211, 0, 0.3);
  color: var(--color-on-surface);
}

/* ========================================
   LANDING PAGE SECTIONS
   ======================================== */

/* --- Event Cards --- */
.event-card:hover {
  border-color: rgba(184, 211, 0, 0.5) !important;
  box-shadow: 0 0 20px rgba(184, 211, 0, 0.15);
}

/* --- Feature Cards (Why Choose Us) --- */
.glass-light.group:hover .rounded-xl,
.group:hover > .rounded-xl:first-child {
  box-shadow: 0 0 24px rgba(184, 211, 0, 0.2);
}

/* --- Testimonial Carousel --- */
.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .testimonial-carousel .glass {
    width: 380px;
  }
}

/* --- Testimonial Carousel Dots --- */
.testimonial-dot {
  border: none;
  cursor: pointer;
  padding: 0;
}

.testimonial-dot:hover {
  background: var(--color-primary) !important;
}

/* --- FAQ Accordion --- */
.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-on-surface);
  font-family: var(--font-body);
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.faq-toggle[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

/* --- Contact Form Textarea --- */
textarea.input-glow {
  min-height: 120px;
}

/* ========================================
   COMPONENT LIBRARY — Kinetic Volt
   ======================================== */

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  font-style: italic;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(184, 211, 0, 0.4), 0 0 60px rgba(184, 211, 0, 0.15);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(184, 211, 0, 0.5);
  background: transparent;
  color: var(--color-on-surface);
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  font-style: italic;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}
.btn-ghost:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Arrow-in-circle button (mockup signature) */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-arrow:hover {
  transform: translateY(-2px);
  background: var(--color-white);
  box-shadow: 0 0 30px rgba(184, 211, 0, 0.35);
}
.btn-arrow-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-secondary-container);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.btn-arrow:hover .btn-arrow-circle {
  transform: scale(1.1) rotate(45deg);
}
/* Purple variant */
.btn-arrow--purple {
  background: var(--color-secondary-container);
  color: #fff;
}
.btn-arrow--purple:hover {
  background: var(--color-secondary);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}
.btn-arrow--purple .btn-arrow-circle {
  background: rgba(255,255,255,0.15);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-lg);
}

/* --- Cards --- */
.card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: rgba(184, 211, 0, 0.5);
  box-shadow: 0 0 20px rgba(184, 211, 0, 0.15);
  transform: scale(1.02);
}

.card-empty {
  background: var(--color-surface-container);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}

.card-glass {
  background: rgba(30, 32, 32, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card-glass:hover {
  border-color: rgba(184, 211, 0, 0.5);
  box-shadow: 0 0 20px rgba(184, 211, 0, 0.15);
}

/* --- KPI Card --- */
.kpi-card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-white-10);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
}
.kpi-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-outline);
  margin-top: 4px;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.badge-success { background: rgba(184, 211, 0, 0.15); color: #b8d300; }
.badge-warning { background: rgba(255, 180, 171, 0.15); color: #ffb4ab; }
.badge-error   { background: rgba(255, 180, 171, 0.2); color: #ff8a80; }
.badge-info    { background: rgba(159, 103, 255, 0.15); color: #9F67FF; }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: #c6c9ab; }

/* --- Section Header --- */
.section-header {
  margin-bottom: 56px;
}
.section-header--centered {
  text-align: center;
}
.section-header__accent {
  width: 48px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  margin-bottom: 16px;
}
.section-header--centered .section-header__accent {
  margin-left: auto;
  margin-right: auto;
}
.section-header__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
  display: block;
  margin-bottom: 6px;
}
.section-header__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  line-height: 1.05;
}

/* --- Form Components --- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-container);
  border: none;
  border-bottom: 2px solid var(--color-outline-variant);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-bottom-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(184, 211, 0, 0.2);
}
.form-input::placeholder {
  color: var(--color-outline);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-error {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 6px;
}
.form-input.is-error {
  border-bottom-color: var(--color-error);
  box-shadow: 0 4px 12px rgba(255, 180, 171, 0.2);
}

/* --- States: Loading / Empty / Error --- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-container) 25%,
    var(--color-surface-container-high) 50%,
    var(--color-surface-container) 75%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-default);
}
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}
.skeleton-title {
  height: 28px;
  width: 60%;
  margin-bottom: 16px;
}
.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--color-surface-container);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease forwards;
}
.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(184, 211, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty-state__title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  text-transform: uppercase;
  font-style: italic;
  color: var(--color-on-surface);
  margin-bottom: 8px;
}
.empty-state__text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-on-surface-variant);
  max-width: 400px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: #ffb4ab;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.error-banner__icon {
  flex-shrink: 0;
}
.error-banner__retry {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-default);
  border: 1px solid rgba(255, 180, 171, 0.4);
  background: transparent;
  color: #ffb4ab;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.error-banner__retry:hover {
  background: rgba(255, 180, 171, 0.15);
}

/* Ticketing table enhancements */
.ticket-row {
  transition: background 0.2s ease;
}
.ticket-row:hover {
  background: rgba(184, 211, 0, 0.05) !important;
}

/* Badge pulse for active status */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 211, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(184, 211, 0, 0); }
}

/* Staggered row entry */
.ticket-row-animate {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ticket-row-animate.in {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-on-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Admin Table --- */
.table-admin {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.table-admin th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
  border-bottom: 1px solid var(--color-outline-variant);
  background: var(--color-surface-container-low);
}
.table-admin td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-on-surface);
  vertical-align: middle;
}
.table-admin tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
/* Table row → card on mobile */
@media (max-width: 767px) {
  .table-admin,
  .table-admin tbody,
  .table-admin tr,
  .table-admin td {
    display: block;
    width: 100%;
  }
  .table-admin thead { display: none; }
  .table-admin tr {
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-surface-container);
    border: 1px solid var(--color-white-10);
    padding: 16px;
  }
  .table-admin td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .table-admin td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-on-surface-variant);
    flex-shrink: 0;
  }
}

/* --- Focus Ring (Accessibility) --- */
.focus-ring:focus-visible,
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Toast / Flash Message --- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideDown 0.3s ease forwards;
}
.toast {
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Auto-dismiss / click-to-dismiss exit state (added by app.js after 10s). */
.toast--hide {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-16px) !important;
  pointer-events: none;
}
.toast-success {
  background: rgba(184, 211, 0, 0.15);
  border: 1px solid #b8d300;
  color: #b8d300;
}
.toast-error {
  background: rgba(255, 180, 171, 0.15);
  border: 1px solid #ffb4ab;
  color: #ffb4ab;
}

/* --- Autocomplete dropdown (search bars) --- */
.autocomplete-list {
  background: rgba(18, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.autocomplete-item:hover,
.autocomplete-item[data-idx]:hover {
  background: var(--color-surface-container) !important;
}
html.theme-light .autocomplete-list {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Visually Hidden (screen reader only) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   T10: Wizard / Tab System
   ========================================== */
.event-form-wizard {
  position: relative;
}

/* Desktop tabs — hidden on mobile, visible on desktop */
.wizard-tabs {
  display: none;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .wizard-tabs { display: flex; }
}
.wizard-tabs::-webkit-scrollbar { display: none; }

.wizard-tab {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-on-surface-variant);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.wizard-tab:hover {
  color: var(--color-on-surface);
  background: rgba(255,255,255,0.03);
}
.wizard-tab.active {
  color: #b8d300;
  border-bottom-color: #b8d300;
}
.wizard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b8d300;
  box-shadow: 0 0 8px rgba(184,211,0,0.5);
}

/* Step panels */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

/* Mobile wizard header */
.wizard-mobile-header {
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}
.wizard-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.wizard-progress-bar {
  height: 100%;
  background: #b8d300;
  border-radius: 2px;
  transition: width 0.35s ease;
}
.wizard-step-label {
  font-size: 0.85rem;
  color: var(--color-on-surface-variant);
  font-family: var(--font-body);
  font-weight: 500;
}

/* Action bar (desktop) */
.wizard-actions {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-container);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Mobile sticky nav */
.wizard-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: #121414;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 101; /* au-dessus de la tab bar (z-100) */
}
.wizard-mobile-nav button {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.8rem;
}
.wizard-mobile-nav button:first-child {
  flex: 0.6;
}
.wizard-mobile-nav button:last-child {
  flex: 1;
}

/* Bottom padding on mobile to account for sticky nav */
@media (max-width: 767px) {
  .event-form-wizard {
    padding-bottom: 4.5rem;
  }
}

/* Skeleton → content fade transition */
[data-skeleton] [data-content] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-skeleton].loaded [data-content] {
  opacity: 1;
}
[data-skeleton].loaded .skeleton {
  display: none;
}

/* Input validation error highlight for wizard */
.wizard-step .input-glow.is-error {
  border-bottom-color: #ffb4ab;
  box-shadow: 0 4px 12px rgba(255, 180, 171, 0.2);
}

/* ==========================================
   HOMEPAGE — HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 104px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-container-low) 30%, var(--color-surface-container) 50%, rgba(119,1,208,0.12) 70%, rgba(184,211,0,0.08) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,211,0,0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-skew {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: linear-gradient(90deg, #b8d300, #7C3AED);
  transform: skewY(-1.5deg);
  transform-origin: bottom left;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--space-container-max);
  margin: 0 auto;
  padding: 2rem var(--space-margin-mobile) 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-content {
    padding-left: var(--space-margin-desktop);
    padding-right: var(--space-margin-desktop);
    padding-bottom: 1.5rem;
    text-align: left;
  }
}

/* Urgency badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(30, 32, 32, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: glowPulse 3s ease-in-out infinite;
}

/* Title */
.hero-title {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 0.92;
  color: var(--color-on-surface);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s ease forwards;
  opacity: 0;
}

.hero-title-highlight {
  color: var(--color-primary);
  text-shadow: 0 0 60px rgba(184,211,0,0.5);
  position: relative;
  display: inline-block;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-on-surface-variant);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin: 0 0 2.5rem;
  }
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .btn-lg { padding: 12px 20px; font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
}

/* Search */
.hero-search {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 1024px) {
  .hero-search {
    margin: 0 0 2.5rem;
  }
}

.hero-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  background: rgba(30, 32, 32, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-white-10);
}

.hero-search-icon {
  flex-shrink: 0;
  margin-left: 0.75rem;
  color: var(--color-outline);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
}

.hero-search-input::placeholder {
  color: var(--color-outline);
}

.hero-search-btn {
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.6s 0.5s ease forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.75rem;
  text-transform: uppercase;
  font-style: italic;
  color: var(--color-on-surface);
  line-height: 1.1;
}

.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-on-surface-variant);
  margin-top: 0.2rem;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-outline-variant);
}

/* Premium ticket animation — replaces generic scroll mouse */
.hero-ticket-anim {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.6s 0.8s ease forwards;
  opacity: 0;
  z-index: 2;
}

.hero-ticket-svg {
  width: 48px;
  height: 32px;
  filter: drop-shadow(0 0 12px rgba(184, 211, 0, 0.35));
  animation: ticketFloat 3s ease-in-out infinite;
}

.hero-ticket-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--color-on-surface-variant);
  text-transform: uppercase;
  animation: ticketLabelPulse 3s ease-in-out infinite;
}

@keyframes ticketFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(0.5deg); }
  75% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes ticketLabelPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Ticket perforation shimmer */
.hero-ticket-shimmer {
  animation: ticketShimmer 2.5s ease-in-out infinite;
}

@keyframes ticketShimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* ==========================================
   BENTO GRID — Discover (mockup style)
   ========================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.bento-span-5 { grid-column: span 12; }
.bento-span-6 { grid-column: span 12; }
.bento-span-7 { grid-column: span 12; }
@media (min-width: 768px) {
  .bento-span-5 { grid-column: span 5; }
  .bento-span-6 { grid-column: span 6; }
  .bento-span-7 { grid-column: span 7; }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.bento-card:hover { transform: translateY(-4px); }

.bento-card--purple {
  background: var(--color-secondary-container);
  color: #fff;
  padding: 2rem;
}
.bento-card--purple:hover { box-shadow: 0 20px 50px rgba(124,58,237,0.25); }

.bento-card--lime {
  background: var(--color-primary);
  color: #121414;
  padding: 2rem;
}
.bento-card--lime:hover { box-shadow: 0 20px 50px rgba(184,211,0,0.25); }

.bento-card-body { display: flex; flex-direction: column; gap: 1rem; }
.bento-card-title {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.1;
}
.bento-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 90%;
}
.bento-card-bigtext {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.bento-card-cta { margin-top: 1.5rem; align-self: flex-start; }

/* Image bento cards */
.bento-card--image { min-height: 280px; }
.bento-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.85);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.bento-card--image:hover .bento-card-img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(0.95);
}
.bento-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,20,20,0.85) 0%, transparent 55%);
}
.bento-card-img-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-default);
}

/* ==========================================
   LATEST ARTICLES (Blog)
   ========================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-container);
  border: 1px solid var(--color-white-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184,211,0,0.4);
  box-shadow: 0 0 30px rgba(184,211,0,0.12);
}
.article-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img { transform: scale(1.06); }
.article-card-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--color-secondary-container);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-default);
}
.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.article-card-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--color-outline);
  text-transform: uppercase;
}
.article-card-title {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--color-on-surface);
}
.article-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}
.article-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}
.article-card:hover .article-card-more { gap: 0.7rem; }

/* ==========================================
   FINAL CTA BAND
   ========================================== */
.final-cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-surface-container) 0%, var(--color-surface-container-low) 100%);
  border: 1px solid var(--color-white-10);
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.final-cta-glow {
  position: absolute;
  top: -60px;
  left: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,211,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.final-cta-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  text-transform: uppercase;
}
.final-cta-title {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--color-on-surface);
}
.final-cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}
.final-cta-seal {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.final-cta-seal .hero-seal-spin { width: 100%; height: 100%; }
.final-cta-seal-center {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0a0c0c;
  border: 1px solid rgba(184,211,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .final-cta-seal { display: none; }
  .final-cta-band { padding: 2.5rem 1.5rem; }
}

/* ==========================================
   HERO — Premium Split Layout (V2)
   ========================================== */
/* Fade-in base animation */
.animate-fade-in {
  animation: fadeSlideIn 0.7s ease-out forwards;
  opacity: 0;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-text-col {
    align-items: flex-start;
    text-align: left;
    margin: 0;
  }
}

.hero-card-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* CTA button enhanced */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
}
.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-cta-btn:hover::after {
  opacity: 1;
}

/* ==========================================
   HERO — 3D Floating Ticket Card (mockup style)
   ========================================== */
.hero-ticket-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 1rem 0;
}

.hero-ticket-glow {
  position: absolute;
  width: 280px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Spinning seal badge */
.hero-seal {
  position: absolute;
  top: -10px;
  right: 4px;
  width: 92px;
  height: 92px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-seal-spin {
  width: 100%;
  height: 100%;
  animation: sealSpin 14s linear infinite;
}
@keyframes sealSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-seal-text {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: var(--color-primary);
  text-transform: uppercase;
}
.hero-seal-center {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0a0c0c;
  border: 1px solid rgba(184,211,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ticket fan — slides in from right, spreads into tiers on scroll */
.hero-ticket-fan {
  position: relative;
  width: 320px;
  max-width: 88vw;
  height: 420px;
  z-index: 2;
  animation: fanSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes fanSlideIn {
  from { opacity: 0; transform: translateX(140px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.hero-fan-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 320px;
  max-width: 86vw;
  height: 420px;
  margin-left: -160px;
  border-radius: 1.5rem;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  will-change: transform;
}

/* Center ticket — 3D continuous spin with pause at back */
.hero-fan-center {
  z-index: 3;
  perspective: 800px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
}
.hero-fan-center-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: ticketContinuousSpin 8s ease-in-out infinite;
}
.hero-fan-center-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-fan-center-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #23262f 0%, #16181d 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* Dark ticket variant — when front face gets a dark gradient (purple, dark, teal) */
.hero-fan-center-front.is-dark { color: #fff; }
.hero-fan-center-front.is-dark .hero-ticket-vip {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.hero-fan-center-front.is-dark .hero-ticket-flabel { color: rgba(255,255,255,0.55); }
.hero-fan-center-front.is-dark .hero-ticket-barcode span { background: rgba(255,255,255,0.3); }
.hero-fan-center-front.is-dark .hero-ticket-faccent { color: var(--color-secondary-light); }

/* Keyframes: 360° spin, 3s pause at back, color change, brief show, then resume */
@keyframes ticketContinuousSpin {
  0% { transform: rotateY(0deg); }
  14% { transform: rotateY(180deg); }      /* front → back: ~1.12 s */
  51.5% { transform: rotateY(180deg); }    /* pause at back: ~3 s */
  /* color change fires here via JS (at the ~4.12 s mark) */
  55% { transform: rotateY(180deg); }      /* brief show of new color: ~0.28 s */
  69% { transform: rotateY(360deg); }      /* back → front: ~1.12 s */
  100% { transform: rotateY(360deg); }     /* pause at front: ~2.48 s */
}

/* The premium ticket card (center) */
.hero-ticket-card {
  width: 320px;
  max-width: 86vw;
  height: 420px;
  background: var(--color-primary);
  color: #121414;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 20px 50px rgba(184, 211, 0, 0.22);
  border: 2px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Side tier cards (tucked behind, spread on scroll) */
.hero-fan-side {
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-fan-left {
  background: linear-gradient(160deg, #23262f 0%, #16181d 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  transform: translateX(-22px) rotate(-6deg) scale(0.92);
  opacity: 0.65;
}
.hero-fan-right {
  background: linear-gradient(160deg, var(--color-secondary-container) 0%, #4a1d8f 100%);
  color: #fff;
  border: 1px solid rgba(159,103,255,0.4);
  box-shadow: 0 18px 40px rgba(124,58,237,0.3);
  transform: translateX(22px) rotate(6deg) scale(0.92);
  opacity: 0.7;
}
.hero-fan-tier {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-default);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-fan-tier--vip {
  background: rgba(184,211,0,0.18);
  border-color: rgba(184,211,0,0.4);
  color: var(--color-primary);
}
.hero-fan-event {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.1;
  margin-top: auto;
}
.hero-fan-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}
.hero-fan-bar {
  height: 26px;
  margin: 0.85rem 0;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  opacity: 0.85;
}
.hero-fan-price {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.4rem;
  align-self: flex-end;
}

/* ==========================================
   SCROLL COMPANION TICKET
   Free-falls + spins 360° + changes color per section
   ========================================== */
.scroll-ticket {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 460px;
  z-index: 5;            /* sits behind navbar/modals; drifts as background ambiance */
  perspective: 1500px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: transform;
}
.scroll-ticket.active {
  opacity: 0.18;          /* très discret, en arrière-plan */
  visibility: visible;
  filter: drop-shadow(0 0 10px rgba(184, 211, 0, 0.12));
}

/* Partner band as standalone bridge between hero and sections */
.hero-partner-band {
  border-bottom: 1px solid var(--color-white-10);
}
/* 3D scene wrapper */
.scroll-ticket-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Each face shares size + position + backface hide */
.scroll-ticket-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
}
/* FRONT: dynamic bg via JS */
.scroll-ticket-front {
  background: linear-gradient(160deg, #d2f000 0%, #b8d300 100%);
  color: #121414;
  border: 2px solid rgba(0,0,0,0.1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}
.scroll-ticket-front.is-dark { color: #fff; }
/* BACK: always the QR side (dark) */
.scroll-ticket-back {
  background: linear-gradient(160deg, #1a1d2a 0%, #121414 100%);
  color: #fff;
  border: 2px solid rgba(124,58,237,0.4);
  box-shadow: 0 25px 60px rgba(124,58,237,0.3);
  transform: rotateY(180deg);
}
.scroll-ticket-notch {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--color-surface);
  border-radius: 50%;
  top: 52%;
}
.scroll-ticket-notch-left { left: -14px; }
.scroll-ticket-notch-right { right: -14px; }
.scroll-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scroll-ticket-brand {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}
.scroll-ticket-tier {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(0,0,0,0.18);
  letter-spacing: 0.06em;
}
.scroll-ticket-front.is-dark .scroll-ticket-tier {
  background: rgba(255,255,255,0.18);
}
.scroll-ticket-perf {
  border-top: 2px dashed currentColor;
  opacity: 0.3;
  margin: 0.5rem 0;
}
.scroll-ticket-mid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: auto 0;
}
.scroll-ticket-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.scroll-ticket-big {
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 1;
}
.scroll-ticket-bar {
  height: 22px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  opacity: 0.85;
}
.scroll-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.scroll-ticket-foot span:last-child {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.1rem;
}
.scroll-ticket-qr-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}
.scroll-ticket-qr-wrap .hero-qr {
  padding: 8px;
  border-radius: 0.5rem;
}
.scroll-ticket-qr-wrap .hero-qr .hero-qr-cell { width: 6px; height: 6px; }
/* Hide companion on narrow screens (avoids overlapping content) */
@media (max-width: 1279px) {
  .scroll-ticket { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-ticket { display: none; }
}

/* Side notches */
.hero-ticket-notch {
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  border-radius: 50%;
  top: 56%;
}
.hero-ticket-notch-left { left: -18px; }
.hero-ticket-notch-right { right: -18px; }

.hero-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hero-ticket-brand {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.hero-ticket-vip {
  background: #121414;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  letter-spacing: 0.05em;
}

.hero-ticket-perf {
  border-top: 2px dashed rgba(0,0,0,0.2);
  margin: 0.75rem 0;
}

.hero-ticket-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-ticket-field { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-ticket-flabel {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(18,20,20,0.55);
}
.hero-ticket-fvalue {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.1;
  color: #121414;
}
.hero-ticket-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-ticket-fsmall {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.hero-ticket-faccent {
  color: var(--color-secondary-container);
  font-family: var(--font-mono);
}

.hero-ticket-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1rem;
}
.hero-ticket-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
}
.hero-ticket-barcode span {
  display: block;
  height: 30px;
  background: #121414;
}
.hero-ticket-num {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-secondary-container);
}

/* Back face elements */
.hero-ticket-vip--back {
  background: var(--color-secondary-container);
  color: #fff;
}
.hero-ticket-perf--back {
  border-top-color: rgba(255,255,255,0.15);
}
.hero-qr-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.hero-qr {
  background: #fff;
  padding: 12px;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 0 30px rgba(184,211,0,0.2);
}
.hero-qr-row {
  display: flex;
  line-height: 0;
}
.hero-qr-cell {
  width: 8px;
  height: 8px;
  background: transparent;
}
.hero-qr-cell.on {
  background: #121414;
}
.hero-ticket-foot--back {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-ticket-foot--back .hero-ticket-flabel {
  color: rgba(255,255,255,0.5);
}
.hero-ticket-num--back {
  color: var(--color-primary);
}

/* Light mode: ticket notch matches light bg */
html.theme-light .hero-ticket-notch {
  background: var(--color-surface);
}

/* ==========================================
   HERO — Typewriter + micro details
   ========================================== */
.hero-typewriter {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  min-height: 1.4em;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-tw-prefix {
  color: var(--color-secondary);
  font-weight: 700;
}
#hero-typewriter-text {
  color: var(--color-on-surface);
}
.hero-tw-cursor {
  color: var(--color-primary);
  animation: twBlink 1s step-end infinite;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-microdetails {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-on-surface-variant);
}
.hero-microdetails span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-micro-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(184,211,0,0.6);
}
@media (min-width: 1024px) {
  .hero-typewriter, .hero-microdetails { justify-content: flex-start; }
}
@media (max-width: 1023px) {
  .hero-typewriter, .hero-microdetails { justify-content: center; }
}

/* Partner band — full-width strip at the bottom of the hero */
.hero-partner-band {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--space-margin-mobile);
  border-top: 1px solid var(--color-white-10);
  background: rgba(18, 20, 20, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-partner-band {
    padding: 1rem var(--space-margin-desktop);
  }
}
html.theme-light .hero-partner-band {
  background: rgba(255, 255, 255, 0.55);
}

/* Partner marquee strip (legacy, kept for compat) */
.hero-partner-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background: rgba(30, 32, 32, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.hero-partner-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-outline);
  flex-shrink: 0;
}

.hero-partner-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-partner-track {
  display: flex;
  gap: 0.65rem;
  animation: partnerMarquee 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.hero-partner-item {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-on-surface-variant);
  transition: color 0.3s;
}

.hero-partner-sep {
  color: var(--color-outline-variant);
  font-size: 0.6rem;
}

@keyframes partnerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Rotating text in headline */
.hero-title-highlight {
  position: relative;
}
.hero-title-highlight.rotating-out {
  animation: rotateOut 0.4s ease forwards;
}
.hero-title-highlight.rotating-in {
  animation: rotateIn 0.4s ease forwards;
}
@keyframes rotateOut {
  0% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-20px); filter: blur(4px); }
}
@keyframes rotateIn {
  0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Light mode overrides for hero */
html.theme-light .hero-partner-strip {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================
   HOMEPAGE — SECTIONS
   ========================================== */
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-alt {
  background: var(--color-surface-container-low);
}

/* Section color tints — each section gets a distinct accent */
.section-tint-lime {
  background: linear-gradient(180deg,
    var(--color-surface) 0%,
    rgba(184, 211, 0, 0.03) 50%,
    var(--color-surface) 100%
  );
}
.section-tint-purple {
  background: linear-gradient(180deg,
    var(--color-surface) 0%,
    rgba(159, 103, 255, 0.04) 50%,
    var(--color-surface) 100%
  );
}
.section-tint-warm {
  background: linear-gradient(180deg,
    var(--color-surface) 0%,
    rgba(255, 180, 171, 0.03) 30%,
    rgba(184, 211, 0, 0.02) 70%,
    var(--color-surface) 100%
  );
}
.section-tint-cool {
  background: linear-gradient(180deg,
    var(--color-surface-container-low) 0%,
    rgba(159, 103, 255, 0.05) 40%,
    rgba(184, 211, 0, 0.02) 80%,
    var(--color-surface-container-low) 100%
  );
}
.section-tint-glow {
  background: radial-gradient(ellipse at 50% 30%, rgba(184, 211, 0, 0.06) 0%, transparent 60%),
              var(--color-surface);
}

@media (max-width: 767px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ==========================================
   HOMEPAGE — EVENTS GRID
   ========================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 639px) {
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-card {
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  background: var(--color-surface-container);
  height: 100%;
}

.event-card:hover {
  border-color: rgba(184,211,0,0.5);
  box-shadow: 0 0 28px rgba(184,211,0,0.18);
  transform: translateY(-2px);
}

.event-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.08);
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-surface) 0%, transparent 60%);
}

.event-card-date {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(30, 32, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-default);
  padding: 0.35rem 0.6rem;
  text-align: center;
  min-width: 52px;
  border: 1px solid rgba(255,255,255,0.08);
}

.event-card-month {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.event-card-day {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  color: var(--color-on-surface);
  line-height: 1;
}

.event-card-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-default);
  background: var(--color-secondary-container);
  color: var(--color-on-secondary);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.event-card-body {
  padding: 1rem;
}

.event-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  color: var(--color-on-surface);
}

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

.event-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-outline);
  font-size: 0.8rem;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-price {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1;
}

.event-card-spots {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-outline);
}

/* ==========================================
   HOMEPAGE — HOW IT WORKS (redesign)
   ========================================== */
.hiw-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .hiw-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}

.hiw-card {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-surface-container);
  border: 1px solid var(--color-white-10);
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.hiw-card:hover { transform: translateY(-8px); }
.hiw-card--lime:hover {
  border-color: rgba(184,211,0,0.4);
  box-shadow: 0 0 36px rgba(184,211,0,0.14);
}
.hiw-card--purple:hover {
  border-color: rgba(159,103,255,0.4);
  box-shadow: 0 0 36px rgba(124,58,237,0.18);
}

/* Oversized watermark index */
.hiw-index {
  position: absolute;
  top: -0.5rem;
  right: 0.75rem;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-white-05);
  pointer-events: none;
  z-index: 0;
}

.hiw-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-icon--lime {
  background: rgba(184,211,0,0.12);
  border: 1px solid rgba(184,211,0,0.3);
  color: var(--color-primary);
}
.hiw-icon--purple {
  background: rgba(159,103,255,0.12);
  border: 1px solid rgba(159,103,255,0.35);
  color: var(--color-secondary);
}

.hiw-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-headline);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--color-on-surface);
}
.hiw-card--lime .hiw-title { color: var(--color-primary); }
.hiw-card--purple .hiw-title { color: var(--color-secondary); }

.hiw-desc {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
  flex: 1;
}
.hiw-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-default);
  background: var(--color-white-05);
  border: 1px solid var(--color-white-10);
  color: var(--color-on-surface-variant);
}

/* Arrow-circle connector between steps */
.hiw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem;
}
.hiw-connector-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 0 20px rgba(184,211,0,0.35);
}
@media (max-width: 899px) {
  .hiw-connector { transform: rotate(90deg); }
}

/* ==========================================
   HOMEPAGE — STEPS (legacy, kept for compat)
   ========================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 1023px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 2.5rem;
  }
}

.steps-connector {
  display: none;
}
@media (min-width: 1024px) {
  .steps-connector {
    display: block;
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 3px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(to right,
      var(--color-primary) 0%,
      var(--color-primary) 25%,
      var(--color-secondary) 50%,
      var(--color-secondary) 75%,
      var(--color-primary) 100%
    );
    opacity: 0.5;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-card:hover {
  transform: translateY(-6px);
}
.step-card:hover .step-number {
  transform: scale(1.08);
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--step-glow, var(--color-primary));
  background: color-mix(in srgb, var(--step-glow, var(--color-primary)) 15%, transparent);
  border: 2px solid color-mix(in srgb, var(--step-glow, var(--color-primary)) 30%, transparent);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-number {
  box-shadow: 0 0 24px color-mix(in srgb, var(--step-glow, var(--color-primary)) 30%, transparent);
}

.step-arrow {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
  opacity: 0.5;
}
@media (min-width: 1024px) {
  .step-arrow { display: none; }
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--step-icon-bg, rgba(184,211,0,0.1));
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-outline);
  max-width: 280px;
}

/* ==========================================
   HOMEPAGE — METRICS
   ========================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (max-width: 767px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3rem;
  }
}

.metric-card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-white-10);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
  .metric-card {
    text-align: left;
  }
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 211, 0, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 18px rgba(184, 211, 0, 0.12);
}

.metric-value {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-outline);
}

/* ==========================================
   HOMEPAGE — FEATURE ROWS
   ========================================== */
.features {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 1023px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row--reverse .feature-visual {
    order: -1;
  }
}

.feature-text {
  max-width: 480px;
}

.feature-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-on-surface);
}

.feature-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-on-surface-variant);
  margin-bottom: 1.5rem;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
}

.feature-checklist svg {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Feature visual card */
.feature-visual {
  position: relative;
}

.feature-card {
  position: relative;
  z-index: 1;
  background: rgba(30, 32, 32, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.03);
}

.feature-card--primary {
  border: 1px solid rgba(184,211,0,0.15);
}
.feature-card--primary:hover {
  border-color: rgba(184,211,0,0.4);
  box-shadow: 0 0 30px rgba(184, 211, 0, 0.15), inset 0 0 30px rgba(184, 211, 0, 0.03);
}

.feature-card--secondary {
  border: 1px solid rgba(159, 103, 255,0.15);
}
.feature-card--secondary:hover {
  border-color: rgba(159, 103, 255,0.4);
  box-shadow: 0 0 30px rgba(159, 103, 255, 0.15), inset 0 0 30px rgba(159, 103, 255, 0.03);
}

.feature-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card-dollar {
  font-family: var(--font-headline);
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1;
}

.feature-card-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  text-transform: uppercase;
  font-style: italic;
  color: var(--color-on-surface);
}

.feature-card-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-on-surface);
  opacity: 0.8;
  margin-top: 0.25rem;
}

.feature-visual-glow {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  z-index: 0;
}

.feature-row--reverse .feature-visual-glow {
  right: auto;
  left: -12px;
}

/* ==========================================
   HOMEPAGE — TESTIMONIALS
   ========================================== */
.testimonials {
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .testimonial-card {
    width: 380px;
  }
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-on-surface);
  margin-bottom: 1.25rem;
  font-style: italic;
  opacity: 0.9;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-on-surface);
}

.testimonial-role {
  display: block;
  font-size: 0.75rem;
  color: var(--color-on-surface);
  opacity: 0.7;
}

/* Dots */
.testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-outline-variant);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonials-dot:hover {
  background: var(--color-outline);
  transform: scale(1.3);
}

.testimonials-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ==========================================
   HOMEPAGE — PARTNER
   ========================================== */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(30, 32, 32, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-white-10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(184, 211, 0, 0.25);
}

.partner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-default);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7C3AED, #9F67FF);
}

.partner-name {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-on-surface);
}

/* ==========================================
   HOMEPAGE — FAQ + CONTACT
   ========================================== */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 1023px) {
  .faq-contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-outline);
}

.faq-toggle[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

.faq-answer p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-on-surface-variant);
}

/* Contact form card */
.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .btn-primary {
  width: 100%;
}

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */
#mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}

#mobile-menu-btn .burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-on-surface);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#mobile-menu-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.is-open {
  max-height: 400px;
  opacity: 1;
}

/* Staggered menu item entrance */
#mobile-menu a,
#mobile-menu hr {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.is-open a,
#mobile-menu.is-open hr {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.is-open a:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu.is-open hr            { transition-delay: 0.15s; }
#mobile-menu.is-open a:nth-child(3) { transition-delay: 0.20s; }
#mobile-menu.is-open a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.is-open a:nth-child(5) { transition-delay: 0.30s; }

/* Navbar glass on scroll */
#navbar.scrolled {
  background: rgba(30, 32, 32, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   NAVBAR SEARCH
   ========================================== */
.nav-search {
  flex: 1;
  max-width: 420px;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-white-10);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav-search:focus-within {
  border-color: rgba(184, 211, 0, 0.5);
  box-shadow: 0 0 18px rgba(184, 211, 0, 0.15);
  background: rgba(255, 255, 255, 0.07);
}
.nav-search-icon {
  flex-shrink: 0;
  color: var(--color-outline);
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.nav-search-input::placeholder {
  color: var(--color-outline);
}
.nav-search-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-search-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(184, 211, 0, 0.4);
}
/* Mobile variant: full width inside the menu */
.nav-search--mobile {
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0 0 0.25rem;
}
html.theme-light .nav-search {
  background: rgba(0, 0, 0, 0.04);
}

/* Responsive: collapsible search on mobile/tablet — icon only, expands on demand.
   Outside the hamburger, sits between logo and menu button. Tapping the
   magnifier (or focusing) expands it to a full input; it collapses again
   when blurred empty. Saves horizontal space on small screens. */
@media (max-width: 1023px) {
  .nav-search {
    flex: none;
    width: 40px;
    max-width: 40px;
    margin: 0 0.5rem 0 auto;
    padding: 0;
    gap: 0;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.32s ease, background 0.3s ease, border-color 0.3s ease;
  }
  .nav-search .nav-search-input {
    width: 0;
    min-width: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .nav-search .nav-search-icon { width: 18px; height: 18px; }
  /* collapsed: hide the submit arrow, keep just the magnifier */
  .nav-search:not(.expanded) .nav-search-btn { display: none; }

  .nav-search.expanded {
    width: calc(100vw - 150px);
    max-width: 340px;
    flex: 1;
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
    gap: 0.45rem;
    cursor: auto;
  }
  .nav-search.expanded .nav-search-input {
    width: auto;
    flex: 1;
    opacity: 1;
    font-size: 0.8rem;
  }
  .nav-search.expanded .nav-search-btn { width: 28px; height: 28px; }
}

/* ==========================================
   UTILITY: text-center
   ========================================== */
.text-center { text-align: center; }

/* ==========================================
   LIGHT THEME (Phase 7-pre)
   Toggled by adding `theme-light` to <html>. The bulk of the UI is driven by
   the CSS custom properties below, so overriding them flips body, .card,
   .glass, .kpi-card, .table-admin, .btn-* and the form controls automatically.
   A handful of Tailwind utility classes (bg-carbon, text-white, …) set literal
   colors and are remapped here too. NOTE: views that hardcode hex colors in
   inline style="" attributes are not affected — light mode is intentionally
   minimal (see HANDOFF.md / Task 1).
   ========================================== */
html.theme-light {
  --color-surface: #f4f4ef;
  --color-surface-dim: #e8e8e2;
  --color-surface-bright: #ffffff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #fafaf6;
  --color-surface-container: #ffffff;
  --color-surface-container-high: #eeeee8;
  --color-surface-container-highest: #e4e4dd;
  --color-on-surface: #1a1c18;
  --color-on-surface-variant: #44483b;
  --color-outline: #75786a;
  --color-outline-variant: #c5c8b6;
  --color-white: #1a1c18;
  --color-white-10: rgba(0, 0, 0, 0.12);
  --color-white-05: rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

/* The fixed dark page background lives on body via --color-surface, but the
   noise overlay is tuned for dark — soften it on light. */
html.theme-light body::before { opacity: 0.02; }

/* Remap the most common literal-color Tailwind utilities. */
html.theme-light .bg-carbon,
html.theme-light .bg-carbon-DEFAULT { background-color: var(--color-surface) !important; }
html.theme-light .bg-carbon-surface { background-color: var(--color-surface-container) !important; }
html.theme-light .bg-carbon-high { background-color: var(--color-surface-container-high) !important; }
html.theme-light .bg-carbon-highest { background-color: var(--color-surface-container-highest) !important; }
html.theme-light .bg-carbon-dim { background-color: var(--color-surface-dim) !important; }
html.theme-light .text-white { color: var(--color-on-surface) !important; }
html.theme-light .text-white\/70,
html.theme-light .text-white\/60,
html.theme-light .text-white\/50 { color: var(--color-on-surface-variant) !important; }
html.theme-light .border-white\/10 { border-color: var(--color-white-10) !important; }

/* Ensure glass borders and backgrounds adapt in light mode */
html.theme-light .glass,
html.theme-light .glass-strong,
html.theme-light .glass-light {
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .glass {
  background: rgba(255, 255, 255, 0.75) !important;
}
html.theme-light .glass-strong {
  background: rgba(255, 255, 255, 0.9) !important;
}
html.theme-light .glass-light {
  background: rgba(0, 0, 0, 0.03) !important;
}

/* Feature cards in light mode */
html.theme-light .feature-card {
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Testimonial cards in light mode */
html.theme-light .testimonial-card.glass {
  background: rgba(255, 255, 255, 0.8) !important;
}

/* Partner badge in light mode */
html.theme-light .partner-badge {
  background: rgba(255, 255, 255, 0.8) !important;
}

/* Fix timeline/schedule dots in light mode */
html.theme-light .timeline-dot {
  border-color: var(--color-surface-container-high) !important;
}

/* Navbar scrolled light mode — was dark black on light bg */
html.theme-light #navbar.scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Hero stat labels more readable in light mode */
html.theme-light .hero-stat-label {
  color: #3d4036 !important;
}

/* Theme-toggle icon swap: moon in dark mode, sun in light mode. */
.theme-toggle-btn .theme-icon-sun { display: none; }
html.theme-light .theme-toggle-btn .theme-icon-moon { display: none; }
html.theme-light .theme-toggle-btn .theme-icon-sun { display: block; }

/* ==========================================
   AI Generate Button (Phase 7-pre)
   ========================================== */
.ai-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(184, 211, 0, 0.1);
  color: #b8d300;
  border: 1px solid rgba(184, 211, 0, 0.3);
  white-space: nowrap;
}
.ai-generate-btn:hover {
  background: rgba(184, 211, 0, 0.18);
  border-color: rgba(184, 211, 0, 0.5);
  transform: scale(1.04);
}
.ai-generate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================
   SIDEBAR COLLAPSE (desktop)
   ========================================== */
.dash-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -12px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1e2020;
  border: 1px solid rgba(255,255,255,0.15);
  color: #c6c9ab;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
}
.dash-collapse-btn:hover { color: #fff; background: #282a2b; }
.dash-collapse-btn.collapsed { transform: rotate(180deg); }

.dash-sidebar.collapsed { width: 64px !important; }
.dash-sidebar.collapsed .nav-link span,
.dash-sidebar.collapsed .sidebar-group-label,
.dash-sidebar.collapsed .sidebar-logo-text,
.dash-sidebar.collapsed .sidebar-cta-text,
.dash-sidebar.collapsed .org-badge,
.dash-sidebar.collapsed .btn-primary span,
.dash-sidebar.collapsed .btn-primary svg + span,
.dash-sidebar.collapsed [data-collapse-hide] { display: none !important; }
.dash-sidebar.collapsed .nav-link { justify-content: center; padding: 0.65rem; }
.dash-sidebar.collapsed .btn-primary { padding: 0.5rem !important; justify-content: center; }
.dash-sidebar.collapsed .btn-primary svg { margin: 0; }
.dash-main.sidebar-collapsed { margin-left: 64px !important; }

/* Mobile : sidebar toujours masquée ET main toujours full-width, même si collapsed */
@media (max-width: 1023px) {
  .dash-sidebar.collapsed {
    width: 240px !important;          /* restaurer largeur pour que translateX(-100%) = -240px */
    transform: translateX(-100%) !important;
    overflow: hidden;                 /* empêcher le contenu de déborder */
  }
  .dash-main.sidebar-collapsed { margin-left: 0 !important; }
}

.dash-sidebar { transition: width 0.25s ease; }
.dash-main { transition: margin-left 0.25s ease; }

/* Sidebar collapse tooltips */
.dash-sidebar.collapsed .nav-link { position: relative; }
.dash-sidebar.collapsed .nav-link::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: var(--color-surface-container-highest, #2a2c2a);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-on-surface);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.dash-sidebar.collapsed .nav-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}
.dash-sidebar.collapsed .nav-link.active::after {
  border-color: rgba(184,211,0,0.4);
}
.dash-sidebar.collapsed .btn-primary { position: relative; }
.dash-sidebar.collapsed .btn-primary::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: var(--color-surface-container-highest, #2a2c2a);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-on-surface);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.dash-sidebar.collapsed .btn-primary:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

@media (min-width: 1024px) {
  .dash-collapse-btn { display: flex; }
}

/* ==========================================
   Bottom navigation mobile (app-like)
   ========================================== */
.dash-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--color-surface-container);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.dash-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  min-width: 48px;
  color: var(--color-on-surface-variant);
  font-size: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dash-bottom-nav-item svg { width: 22px; height: 22px; }
.dash-bottom-nav-item.active { color: #b8d300; }

@media (max-width: 1023px) {
  .dash-main { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 32px); }
  /* Ne pas coller les filtres en mobile — prend trop de place au scroll */
  .sticky.top-16 { position: relative !important; top: auto !important; }
  /* Navbar publique: fond solide pour ne pas voir le contenu défiler derrière */
  #navbar { background: rgba(18,20,20,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  /* Light mode: reste blanc comme sur desktop */
  html.theme-light #navbar { background: rgba(255,255,255,0.92) !important; }
}
/* Filtre compact sur mobile */
@media (max-width: 640px) {
  .event-filters-collapsed .filter-extra { display: none; }
  .event-filters-collapsed .filter-toggle-btn { display: inline-flex; }
  .event-filter-row { flex-wrap: wrap; gap: 0.5rem; }
  .event-filter-row > * { flex: 1 1 auto; min-width: 0; }
  /* S'assurer que la navbar reste au-dessus des filtres */
  #navbar { z-index: 60 !important; }
  #event-filter-bar { z-index: 30 !important; }
}

/* ==========================================
   Profile tabs
   ========================================== */
.profile-tab-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.profile-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: var(--color-on-surface-variant);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.profile-tab:hover { color: #fff; }
.profile-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; }
.hover-lift {
  transition: transform 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER — link hover fix
   (inline styles override Tailwind hover classes,
    so we force lime on hover with !important)
   ========================================== */
footer ul a:hover,
footer a[style*="color: var(--color-on-surface-variant)"]:hover,
footer a[style*="color: var(--color-outline)"]:hover {
  color: #b8d300 !important;
}

/* --- Switch Premium Toggle (réutilisable) --- */
.switch-premium { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch-premium input { opacity: 0; width: 0; height: 0; }
.slider-premium { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,.12); border-radius: 24px; transition: all .25s cubic-bezier(.4,0,.2,1); }
.slider-premium::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: all .25s cubic-bezier(.4,0,.2,1); }
.switch-premium input:checked + .slider-premium { background: var(--color-primary, #b8d300); box-shadow: 0 0 12px rgba(184,211,0,.3); }
.switch-premium input:checked + .slider-premium::before { transform: translateX(20px); }
.switch-premium input:focus-visible + .slider-premium { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* --- V.2.1 — Design Vercel Minimaliste --- */

/* Bouton icône rond */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--color-on-surface-variant);
  cursor: pointer; transition: all .2s ease;
}
.btn-icon:hover {
  background: rgba(184,211,0,.1); border-color: rgba(184,211,0,.25);
  color: var(--color-primary);
}
.btn-icon.btn-icon-sm { width: 30px; height: 30px; border-radius: 6px; }
.btn-icon-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: transparent; border: 1px solid transparent;
  color: var(--color-on-surface-variant);
  cursor: pointer; transition: all .2s ease;
}
.btn-icon-sm:hover {
  background: rgba(184,211,0,.08); border-color: rgba(184,211,0,.2);
  color: var(--color-primary);
}

/* Barre de filtre rétractable */
.search-filter-bar .filter-collapsible {
  display: none;
  animation: filterExpand .2s ease;
}
.search-filter-bar.filters-open .filter-collapsible { display: block; }
@keyframes filterExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge de tendance */
.trend-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255,255,255,.04);
}

/* Widget card style Vercel */
.widget-card {
  transition: border-color .2s ease, transform .15s ease;
}
.widget-card:hover {
  border-color: rgba(255,255,255,.12);
}

/* Table actions icons row */
.action-icons {
  display: flex; align-items: center; gap: 4px;
}

/* --- Logo dark/light switching --- */
.logo-dark-mode { display: block; }
.logo-light-mode { display: none; }
html.theme-light .logo-dark-mode { display: none; }
html.theme-light .logo-light-mode { display: block; }
@media (prefers-color-scheme: light) {
  html:not(.theme-light):not(.theme-dark) .logo-dark-mode { display: none; }
  html:not(.theme-light):not(.theme-dark) .logo-light-mode { display: block; }
}

/* Sidebar collapsed: show icon only */
.dash-sidebar.collapsed .tixya-logo .logo-dark-mode,
.dash-sidebar.collapsed .tixya-logo .logo-light-mode { display: none; }
.dash-sidebar.collapsed .tixya-logo::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: url('/logo/icon.png') center/contain no-repeat;
}

/* ── Language Switcher ── */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-switcher-btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
    border-radius: 8px; border: 1px solid rgba(127,127,127,0.25);
    background: transparent; color: var(--color-on-surface);
    cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang-switcher-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(184,211,0,0.4); }
.lang-switcher-current { color: var(--color-on-surface); }
.lang-switcher-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 120px;
    border-radius: 10px; padding: 4px; z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
}
.lang-switcher-option {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 8px 12px; border-radius: 6px;
    border: none; background: transparent;
    color: var(--color-on-surface); cursor: pointer;
    font-family: inherit; transition: background .15s;
}
.lang-switcher-option:hover { background: rgba(255,255,255,0.08); }
.lang-switcher-option.lang-active { color: #b8d300; }
.lang-switcher-form { margin: 0; padding: 0; }
.lang-switcher-flag { font-size: 17px; line-height: 1; }

/* =============================================
   Organizer Mobile-First — Tab Bar & Shell
   ============================================= */

/* Padding bottom pour compenser la tab bar fixe */
@media (max-width: 767px) {
  .dash-main {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
  }
}

/* ---- Tab Bar ---- */
.org-tab-bar {
  display: none; /* caché par défaut (desktop) */
}

@media (max-width: 767px) {
  .org-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100; /* au-dessus de tout contenu */
    justify-content: space-around;
    align-items: flex-start;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    /* Light mode compatible : fond adaptatif avec blur */
    background: var(--color-surface-container);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--color-white-10, rgba(128,128,128,0.15));
    /* Scroll collapse */
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }

  .org-tab-bar.collapsed {
    transform: translateY(100%);
  }
}

/* ---- Tab Item ---- */
.org-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  max-width: 72px;
  padding: 3px 0;
  color: var(--color-on-surface-variant, #888);
  transition: color 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.org-tab-item.active {
  color: #b8d300;
}

.org-tab-icon {
  width: 40px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.org-tab-item.active .org-tab-icon {
  background: rgba(184, 211, 0, 0.12);
}

.org-tab-item svg {
  width: 18px;
  height: 18px;
}

.org-tab-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Bottom Sheet (Onglet Plus) ---- */
.org-plus-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.5);
}

.org-plus-overlay.open {
  display: block;
}

.org-plus-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 111;
  background: var(--color-surface-container, #1e2020);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  color: var(--color-on-surface);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
}

.org-plus-sheet.open {
  transform: translateY(0);
}

.org-plus-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-outline-variant, rgba(128,128,128,0.3));
  margin: 0 auto 16px;
}

.org-plus-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-white-05, rgba(128,128,128,0.1));
  text-decoration: none;
  color: var(--color-on-surface);
  font-size: 13px;
  transition: background 0.15s ease;
}

.org-plus-link:hover,
.org-plus-link:active {
  background: var(--color-white-05, rgba(128,128,128,0.08));
}

.org-plus-link svg.plus-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-on-surface-variant, #888);
}

.org-plus-link .plus-chevron {
  margin-left: auto;
  color: var(--color-outline, #888);
}

/* ---- CSS Bar Chart (mini charts sans Chart.js) ---- */
.org-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 4px 0;
}

.org-chart-bar {
  flex: 1;
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(184,211,0,0.8) 0%, rgba(184,211,0,0.2) 100%);
  transition: height 0.3s ease;
}

.org-chart-bar:first-child { background: linear-gradient(180deg, rgba(184,211,0,0.3) 0%, rgba(184,211,0,0.08) 100%); }
.org-chart-bar:last-child  { background: linear-gradient(180deg, #b8d300 0%, rgba(184,211,0,0.4) 100%); }

/* ---- Mobile Cards (events/tickets list) — light/dark compatible ---- */
@media (max-width: 767px) {
  .org-table-desktop { display: none; }
  .org-mobile-cards { display: flex; flex-direction: column; gap: 6px; }
}

@media (min-width: 768px) {
  .org-mobile-cards { display: none; }
  .org-table-desktop { display: block; }
}

.org-mobile-card {
  background: var(--color-surface-container, #1e2020);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-white-10, rgba(128,128,128,0.15));
  transition: border-color 0.2s;
  text-decoration: none;
  display: block;
}

.org-mobile-card:active {
  border-color: rgba(184, 211, 0, 0.3);
}

.org-mobile-card .card-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-on-surface, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-mobile-card .card-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-on-surface-variant, #888);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-mobile-card .card-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: var(--color-on-surface-variant, #888);
}

.org-mobile-card .card-progress {
  height: 3px;
  background: var(--color-white-05, rgba(128,128,128,0.1));
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.org-mobile-card .card-progress-bar {
  height: 100%;
  background: #b8d300;
  border-radius: 2px;
}

/* ---- Status Pills horizontaux scrollables ---- */
.org-status-pills {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.org-status-pills::-webkit-scrollbar { display: none; }

.org-status-pill {
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-white-05, rgba(128,128,128,0.08));
  color: var(--color-on-surface-variant, #888);
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.org-status-pill.active {
  background: rgba(184, 211, 0, 0.12);
  color: #b8d300;
}

/* ---- Quick Actions Row ---- */
.org-quick-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.org-quick-actions .btn-primary-mobile {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: #b8d300;
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  display: block;
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-quick-actions .btn-ghost-mobile {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--color-white-05, rgba(128,128,128,0.08));
  color: var(--color-on-surface, #fff);
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  display: block;
  border: 1px solid var(--color-white-10, rgba(128,128,128,0.15));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Bouton retour (light/dark compatible) ---- */
.org-back-btn {
  color: var(--color-on-surface-variant);
  border: 1px solid var(--color-white-10, rgba(128,128,128,0.15));
  transition: background 0.15s ease, border-color 0.15s ease;
}

.org-back-btn:hover {
  background: var(--color-white-05, rgba(128,128,128,0.08));
  border-color: var(--color-primary, #b8d300);
}

/* ---- Cache le burger sur mobile (la sidebar n'est plus utilisée) ---- */
@media (max-width: 767px) {
  #dash-burger,
  #dash-overlay {
    display: none !important;
  }
}

/* ---- Top bar integree (fixe sur mobile, normale sur desktop) ---- */
.org-topbar {
  /* desktop : comportement normal (dans le flux) */
}

@media (max-width: 767px) {
  .org-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 8px 12px;
    margin-bottom: 0;
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-white-10, rgba(128,128,128,0.15));
    min-height: 48px;
  }

  /* Compenser la hauteur de la top bar fixe */
  .dash-main {
    padding-top: 56px !important;
  }
}

/* ---- Notification dropdown centrage mobile ---- */
@media (max-width: 639px) {
  #notif-dropdown {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: 56px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 50vh !important;
  }
}

/* ---- Skeleton loading ---- */
.org-skeleton {
  background: linear-gradient(90deg,
    var(--color-white-05, rgba(128,128,128,0.08)) 25%,
    var(--color-white-10, rgba(128,128,128,0.15)) 50%,
    var(--color-white-05, rgba(128,128,128,0.08)) 75%
  );
  background-size: 200% 100%;
  animation: orgSkeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes orgSkeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.org-skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  width: 80%;
}

.org-skeleton-title {
  height: 18px;
  margin-bottom: 10px;
  width: 60%;
}

.org-skeleton-card {
  height: 80px;
  margin-bottom: 8px;
  width: 100%;
}

.org-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ---- Tab bar active renforcé (fond coloré visible) ---- */
.org-tab-item.active .org-tab-icon {
  background: rgba(184, 211, 0, 0.18);
  box-shadow: 0 0 12px rgba(184, 211, 0, 0.15);
}

.org-tab-item.active .org-tab-label {
  color: #b8d300;
  font-weight: 700;
}
