:root {
  --background: #050505;
  --foreground: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  /* Dashboard — anthracite / charcoal (ref. premium dark UI) */
  --sf-dash-bg: #050505;
  --sf-dash-bg-mid: #070707;
  --sf-dash-sidebar: #0a0a0a;
  --sf-dash-surface: #121212;
  --sf-dash-surface-hover: #161616;
  --sf-dash-accent-glow: rgba(16, 185, 129, 0.06);
}

html.dark,
.dark {
  color-scheme: dark;
}

body {
  background: var(--background);
  color: var(--foreground);
}

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

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

.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-left {
  animation: slide-in-left 0.3s ease-out forwards;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

#sf-sidebar.sf-sidebar-collapsed {
  width: 72px !important;
}

#sf-main.sf-main-collapsed {
  padding-left: 72px !important;
}

/* --- Dashboard shell (FINBRO-style : noir profond, cartes gris charbon) --- */
body:has(#sf-sidebar) {
  background-color: var(--sf-dash-bg);
}

#sf-sidebar {
  background-color: var(--sf-dash-sidebar);
  border-right-color: rgba(255, 255, 255, 0.05);
}

#sf-main {
  background-color: var(--sf-dash-bg);
  background-image:
    radial-gradient(ellipse 100% 65% at 88% -8%, var(--sf-dash-accent-glow), transparent 52%),
    radial-gradient(ellipse 70% 55% at -8% 105%, rgba(255, 255, 255, 0.028), transparent 48%),
    radial-gradient(ellipse 50% 40% at 50% 120%, rgba(255, 255, 255, 0.02), transparent 55%),
    linear-gradient(168deg, #040404 0%, var(--sf-dash-bg-mid) 42%, #050505 100%);
  background-attachment: fixed;
}

.sf-dash-surface {
  background-color: var(--sf-dash-surface);
}

.sf-user-card.sf-dash-user {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Page Acheter — fonds 100 % sombres (évite le blanc système des <button> si Tailwind CDN ne voit pas les classes dynamiques) */
.sf-buy-card {
  background-color: var(--sf-dash-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f4f4f5;
}
.sf-buy-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.sf-buy-card.is-selected {
  background-color: #161616;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sf-buy-popular-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-buy-hour {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
}
.sf-buy-hour:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.sf-buy-hour.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sf-buy-purchase {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.sf-buy-purchase:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}
.sf-buy-purchase:disabled {
  opacity: 0.55;
}
