/* ============================================================
   LUMENS HAIR STUDIO - Main Stylesheet
   Dark premium barber shop theme | Mobile-first responsive
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Background — Light */
  --bg-darkest: #ffffff;
  --bg-card: #f5f5f5;
  --bg-elevated: #eeeeee;
  --bg-input: #f0f0f0;

  /* Metallic Accent */
  --gold: #2a2a2a;
  --gold-hover: #111111;
  --gold-light: rgba(0, 0, 0, 0.05);
  --gold-glow: rgba(0, 0, 0, 0.1);

  /* Text — Dark Metallic */
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  /* Semantic */
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;

  /* Borders */
  --border: #e0e0e0;
  --border-light: #d0d0d0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(0, 0, 0, 0.08);

  /* Metallic gradient */
  --metallic: linear-gradient(135deg, #000000, #888888, #1a1a1a, #aaaaaa, #000000);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --header-height: 64px;
  --container-max: 1200px;
  --sidebar-width: 260px;
}

/* Metallic shimmer animation */
@keyframes metallic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.metallic-text {
  background: var(--metallic);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shift 6s ease infinite;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

::selection {
  background-color: var(--text-primary);
  color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   Layout Containers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--space-lg) 0;
}

.section {
  padding: var(--space-xl) 0;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.services-section,
#services {
  scroll-margin-top: 100px;
  padding: 80px 0;
  background: var(--bg-light, #f8f9fa);
  color: #09090b;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #09090b !important;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* Shimmer pada judul section (mis. "Layanan Kami") — samakan dengan "Siap Tampil Beda" */
.services-section .section-header h2,
#services .section-header h2 {
  background: var(--metallic);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shift 6s ease infinite;
}

.section-header p {
  font-size: 1rem;
  color: #52525b !important;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #09090b !important;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.92rem;
  color: #71717a !important;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
}

.service-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.service-card-meta span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #09090b !important;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  height: auto;
  padding: 16px 20px 0;
  z-index: 100;
}

.header.header-light,
body:not(:has(.hero-section)) .header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
}

.header.header-compact {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 10px 24px !important;
  height: 64px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  z-index: 100 !important;
}

.header.header-compact .logo-img {
  height: 44px !important;
  width: auto !important;
}

.header-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #09090b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-back-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-2px);
}

body:not(:has(.hero-section)) main:not(.admin-main),
main.page-main,
.cek-main {
  padding-top: 110px !important;
}

body:not(:has(.hero-section)) main.booking-page,
.booking-page {
  padding-top: 8px !important;
  max-width: 1000px;
  margin: 0 auto;
}

.wizard-steps {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

body:not(:has(.hero-section)) .page-hero,
.page-hero {
  padding-top: 10px;
}

body:not(:has(.hero-section)) .article-content,
.article-content {
  padding-top: 10px;
}

body:not(:has(.hero-section)) .header .nav,
.header.header-light .nav {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(:has(.hero-section)) .nav-indicator,
.header.header-light .nav-indicator {
  background: #09090b;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body:not(:has(.hero-section)) .header .nav a,
.header.header-light .nav a {
  color: #18181b;
  text-shadow: none;
}

body:not(:has(.hero-section)) .header .nav a.active,
body:not(:has(.hero-section)) .header .nav a:hover,
.header.header-light .nav a.active,
.header.header-light .nav a:hover {
  color: #ffffff;
  text-shadow: none;
}

.header .container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  justify-content: space-between;
  height: auto;
  min-height: 60px;
  position: relative;
  z-index: 101;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 8px 20px;
  box-shadow: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-img-sm {
  height: 48px;
}

.logo-img-login {
  height: 90px;
}

/* Desktop nav */
.header .nav {
  display: none;
}

@media (min-width: 768px) {
  .header .nav {
    display: flex;
    position: relative;
    margin-left: 0;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  }
}

.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}

.header .nav a {
  position: relative;
  z-index: 2;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
  background: transparent !important;
  box-shadow: none !important;
}

.header .nav a.active,
.header .nav a:hover {
  background: #ffffff;
  color: #09090b;
  text-shadow: none;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

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

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

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

/* Mobile menu — glassmorphism matching the hero */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.82), rgba(10,10,12,0.9));
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  z-index: 99;
  padding: 104px 20px 40px;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu.open {
  display: flex;
  animation: menuFadeIn 0.3s ease both;
}

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

.mobile-menu a {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: translateY(12px);
  opacity: 0;
  animation: menuItemUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mobile-menu a::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.10s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.20s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.30s; }
.mobile-menu.open a:nth-child(7) { animation-delay: 0.35s; }

@keyframes menuItemUp {
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.95);
  color: #09090b;
  border-color: transparent;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mobile-menu a:hover::after,
.mobile-menu a.active::after {
  opacity: 1;
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open,
  .mobile-menu a { animation: none; opacity: 1; transform: none; }
}

/* Keep header controls readable over the open glass menu */
.header:has(.mobile-menu.open) .logo-img {
  filter: brightness(0) invert(1);
}

.header:has(.mobile-menu.open) .nav-toggle span {
  background-color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

#cta-header {
  display: none;
}

@media (min-width: 768px) {
  #cta-header {
    display: inline-flex;
  }
}

/* ============================================================
   Hero Section (Landing)
   ============================================================ */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

/* Primary */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-darkest);
  border-color: var(--text-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary:active {
  background: #fff;
  color: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-light);
}

/* Danger */
.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: var(--error);
}

/* Outline / Ghost */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Sizes */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* ============================================================
   Service Cards (Grid Layout)
   ============================================================ */
.services-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

@media (min-width: 480px) {
  .services-grid { gap: var(--space-md); }
  .service-card { padding: var(--space-lg); }
}

.service-card:hover {
  border-color: var(--border-light);
}

.service-card.selected {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.service-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.service-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================================
   Booking - Category Tabs & Compact Rows
   ============================================================ */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.cat-tab.active {
  background: var(--text-primary);
  color: var(--bg-darkest);
  border-color: var(--text-primary);
}

.svc-group-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 6px 12px 1px;
}

.svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  min-height: 34px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* Selected: accent bar + bg tanpa menggeser teks (pakai inset shadow) */
.svc-row.selected {
  box-shadow: inset 4px 0 0 var(--text-primary);
  background: var(--bg-elevated);
}

.svc-row-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.svc-row-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.svc-row-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   Steps (How It Works)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: var(--space-lg);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* ============================================================
   Booking Wizard
   ============================================================ */
.booking-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: 7px;
}

.booking-page-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.booking-page-title h1 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.booking-page-title p {
  font-size: 0.9rem;
}

/* Steps indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 0;
  gap: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.wizard-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}

.wizard-step-label {
  display: none;
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Connector line between steps */
.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
  z-index: 1;
}

/* Active step */
.wizard-step.active .wizard-step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
}

.wizard-step.active .wizard-step-label {
  color: var(--gold);
}

/* Completed step */
.wizard-step.completed .wizard-step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
}

.wizard-step.completed::after {
  background: var(--gold);
}

.wizard-step.completed .wizard-step-label {
  color: var(--text-secondary);
}

/* Step panels */
.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel-header {
  margin-bottom: 2px;
}

.wizard-panel-header h2 {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.wizard-panel-header p {
  font-size: 0.9rem;
}

/* Wizard navigation buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-top: 1px solid var(--border);
}

.wizard-nav .btn {
  flex: 1;
  max-width: 200px;
}

/* ============================================================
   Barber Selection Cards
   ============================================================ */
.barber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.barber-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.barber-card:hover {
  border-color: var(--border-light);
}

.barber-card.selected {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.barber-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.barber-card.selected .barber-avatar {
  border-color: var(--gold);
}

.barber-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.barber-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.barber-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.barber-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================================
   Time Slot Grid
   ============================================================ */
.date-picker-section {
  margin-bottom: var(--space-lg);
}

.date-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-scroll::-webkit-scrollbar {
  display: none;
}

.date-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 64px;
}

.date-item:hover {
  border-color: var(--gold);
}

.date-item.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
}

.date-item .day-name {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.date-item .day-number {
  font-size: 1.15rem;
  font-weight: 700;
}

.date-item.selected .day-name,
.date-item.selected .day-number {
  color: var(--text-inverse);
}

.date-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Stylist grid (2 columns) */
#barber-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stylist-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
}

.stylist-cell.selected {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.stylist-cell.selected .stylist-name,
.stylist-cell.selected .stylist-spec {
  color: var(--bg-darkest);
}

.stylist-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stylist-spec {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Date grid (4 columns) */
#date-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.date-month-label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 10px 0 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
  text-transform: capitalize;
}

.date-month-label:first-child {
  padding-top: 0;
}

.date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.date-cell.selected {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.date-cell.selected .date-cell-day,
.date-cell.selected .date-cell-num {
  color: var(--bg-darkest);
}

.date-cell-day {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.date-cell-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Time slots */
.time-slots-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.time-slot {
  padding: 0.65rem var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.time-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Available */
.time-slot.available {
  border-color: var(--border);
}

/* Selected */
.time-slot.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
}

/* Unavailable */
.time-slot.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
  color: var(--text-muted);
}

.time-slot.on-break {
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #f59e0b;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.75;
  font-size: 0.72rem;
  gap: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Forms (Dark Theme)
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%236a6a80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: var(--space-xs);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Form row (side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================================
   Success Animation
   ============================================================ */
/* ============================================================
   Success Page
   ============================================================ */
.success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 12px;
  opacity: 0;
  animation: successFadeIn 0.5s ease 0.1s forwards;
}

@keyframes successFadeIn {
  to { opacity: 1; }
}

.success-checkmark {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.success-header-compact {
  padding-bottom: 8px;
  padding-top: 12px;
}
.success-checkmark-sm {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}
.success-checkmark-sm .checkmark-svg {
  width: 56px;
  height: 56px;
}

.checkmark-svg {
  width: 64px;
  height: 64px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success);
  animation: checkStroke 0.6s ease 0.3s forwards;
}

.checkmark-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  animation: checkStroke 0.4s ease 0.7s forwards;
}

@keyframes checkStroke {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
  opacity: 0;
  animation: successFadeIn 0.4s ease 0.9s forwards;
}

.success-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0;
  animation: successFadeIn 0.4s ease 1.05s forwards;
}

.success-slide-up {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUpIn 0.5s ease 1.1s forwards;
}

@keyframes slideUpIn {
  to { opacity: 1; transform: translateY(0); }
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 420px;
  margin: 0 auto 20px;
  overflow: hidden;
  word-break: break-word;
}

.success-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.success-id-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.success-id-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.success-status-row {
  text-align: center;
  margin: 16px 0;
}

.late-policy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
  text-align: left;
}
.late-policy-notice i {
  color: var(--warning);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.late-policy-notice p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #78350f;
  margin: 0;
}
.late-policy-notice strong { color: #92400e; }

.late-policy-notice-compact {
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 9px 12px;
  gap: 8px;
}
.late-policy-notice-compact i { font-size: 0.85rem; margin-top: 1px; }
.late-policy-notice-compact p { font-size: 0.74rem; line-height: 1.4; }

/* ============================================================
   Ticket — kartu booking sukses bergaya tiket sobek
   ============================================================ */
.ticket-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 440px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.ticket-brand {
  background: var(--gold);
  color: var(--text-inverse);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 19px 19px 0 0;
}
.ticket-brand-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ticket-brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.ticket-main {
  padding: 22px 22px 18px;
}

.ticket-service {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  word-break: break-word;
  line-height: 1.2;
}

.ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.ticket-meta span { display: flex; align-items: center; gap: 10px; }
.ticket-meta i {
  color: var(--gold);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.ticket-tear {
  position: relative;
  border-top: 2px dashed var(--border-light);
  margin-top: 4px;
}
.ticket-notch {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--bg-darkest);
  border-radius: 50%;
}
.ticket-notch.left { left: -15px; }
.ticket-notch.right { right: -15px; }

.ticket-stub {
  padding: 16px 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 0 0 19px 19px;
}

.ticket-id { display: flex; flex-direction: column; gap: 3px; }
.ticket-id-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ticket-id-value {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.ticket-stub .badge { font-size: 0.78rem; padding: 7px 12px; }

.success-card-actions {
  max-width: 440px;
  margin: 0 auto;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-wa:hover {
  background: #1ebe59;
  transform: translateY(-1px);
}

.success-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success-actions-secondary .btn {
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
}

/* ============================================================
   Booking Confirmation Card
   ============================================================ */
.confirmation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.75rem;
  color: var(--success);
}

.confirmation-card h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.confirmation-card > p {
  margin-bottom: var(--space-xl);
}

.confirmation-details {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: left;
  margin-bottom: var(--space-xl);
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.confirmation-row:last-child {
  border-bottom: none;
}

.confirmation-row .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.confirmation-row .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.confirmation-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--gold);
}

.confirmation-total .label {
  font-weight: 700;
  color: var(--text-primary);
}

.confirmation-total .value {
  font-weight: 800;
  color: var(--gold);
  font-size: 1.15rem;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Booking summary sidebar / inline */
.booking-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.booking-summary h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.booking-summary-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
}

.booking-summary-item .label {
  color: var(--text-muted);
}

.booking-summary-item .value {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 20px;
  background: var(--bg-darkest);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) 20px;
  width: 100%;
  max-width: 420px;
}

.login-card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-card-header .logo {
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.login-card-header h1 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.login-card-header p {
  font-size: 0.9rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   Admin Dashboard
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.admin-sidebar {
  display: none;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: var(--space-lg) 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 var(--space-md);
  margin-bottom: var(--space-lg);
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--gold-light);
  color: var(--gold);
}

.sidebar-link .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--gold);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Main admin content area */
.admin-content {
  flex: 1;
  padding: var(--space-lg) var(--space-md);
  min-width: 0;
}

.admin-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.admin-page-header h1 {
  font-size: 1.5rem;
}

.admin-page-header p {
  font-size: 0.9rem;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-light);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-card-icon.gold {
  background: var(--gold-light);
  color: var(--gold);
}

.stat-card-icon.green {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.stat-card-icon.blue {
  background: rgba(96, 165, 250, 0.12);
  color: var(--info);
}

.stat-card-icon.red {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
}

.stat-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-card-trend.up {
  color: var(--success);
}

.stat-card-trend.down {
  color: var(--error);
}

.stat-card-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   Charts Container
   ============================================================ */
.charts-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.chart-card-header h3 {
  font-size: 1rem;
}

.chart-card-header .chart-filter {
  display: flex;
  gap: var(--space-xs);
}

.chart-filter-btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-filter-btn:hover {
  color: var(--text-secondary);
}

.chart-filter-btn.active {
  background: var(--gold-light);
  color: var(--gold);
  border-color: rgba(192, 192, 192, 0.2);
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

/* ============================================================
   Data Tables (Responsive)
   ============================================================ */
.table-section {
  margin-bottom: var(--space-xl);
}

.table-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.table-header h3 {
  font-size: 1.05rem;
}

.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.table-search {
  flex: 1;
  min-width: 200px;
}

.table-search .form-input {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg-elevated);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: var(--space-xs);
}

/* Table pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  gap: var(--space-xs);
}

.pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-inverse);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   Status Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-confirmed {
  background: rgba(96, 165, 250, 0.12);
  color: var(--info);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.badge-completed {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.badge-cancelled {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.badge-no_show {
  background: rgba(106, 106, 128, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(106, 106, 128, 0.25);
}

/* ============================================================
   Modal / Overlay
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 1.15rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 380px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Toast variants */
.toast-success::before { background: var(--success); }
.toast-success .toast-icon { color: var(--success); }

.toast-error::before { background: var(--error); }
.toast-error .toast-icon { color: var(--error); }

.toast-warning::before { background: var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-info::before { background: var(--info); }
.toast-info .toast-icon { color: var(--info); }

/* Toast exit */
.toast.closing {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  font-size: 0.85rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-info-item i {
  width: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
  padding: 0;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  text-align: center;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Loading Spinner
   ============================================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 3000;
}

.loading-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.loading-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  gap: var(--space-md);
}

.loading-inline p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-card) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-heading {
  height: 24px;
  width: 50%;
  margin-bottom: var(--space-md);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

/* ============================================================
   Keyframes (functional only)
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================================
   Utility Classes
   ============================================================ */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text styles */
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-normal { font-weight: 400; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.5px; }

/* Text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-md); }
.m-2 { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-1 { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.my-2 { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-md); }
.p-2 { padding: var(--space-xl); }

.pt-1 { padding-top: var(--space-md); }
.pb-1 { padding-bottom: var(--space-md); }
.px-1 { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-1 { padding-top: var(--space-md); padding-bottom: var(--space-md); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 960px; }

/* Border */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Background */
.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }
.bg-gold-light { background: var(--gold-light); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* Card generic */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 360px;
  margin: 0 auto var(--space-lg);
}

/* Avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 64px; height: 64px; }

/* Tag / Chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Small phones (up to 374px) */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Phones landscape / small tablets (480px+) */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .time-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .barber-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .confirmation-actions {
    flex-direction: row;
    justify-content: center;
  }

  .footer-info {
    flex-direction: row;
    gap: var(--space-xl);
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  :root {
    --header-height: 72px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }

  .logo-img {
    height: 76px;
  }

  .container {
    padding: 0 var(--space-xl);
  }

  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: none;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: var(--space-3xl) 0;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .barber-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .charts-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-page {
    padding: var(--space-xl);
  }

  .wizard-step-label {
    font-size: 0.72rem;
  }

  .table-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-page-actions {
    margin-top: 0;
  }


  .toast-container {
    width: auto;
  }

  .stat-card-number {
    font-size: 1.75rem;
  }
}

/* Desktops (1024px+) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-sidebar {
    display: block;
  }

  .admin-content {
    padding: var(--space-xl) var(--space-2xl);
  }

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

  .chart-container {
    min-height: 300px;
  }
}

/* Large desktops (1280px+) */
@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .barber-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .time-slots-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .header,
  .footer,
  .admin-sidebar,
  .nav-toggle,
  .mobile-menu,
  .toast-container,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  .main-content,
  .admin-content {
    padding: 0;
  }

  .card,
  .stat-card,
  .chart-card,
  .table-wrapper,
  .service-card,
  .confirmation-card,
  .login-card {
    border: 1px solid #ddd;
    box-shadow: none;
    background: #fff;
  }

  .data-table th,
  .data-table td {
    border-color: #ddd;
    color: #000;
  }

  .badge {
    border: 1px solid currentColor;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ============================================================
   Blog & Legal content pages
   ============================================================ */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}
.page-hero h1 {
  margin-bottom: var(--space-sm);
}
.page-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-3xl);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.blog-card-read {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-content,
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) 0 var(--space-3xl);
  line-height: 1.75;
  color: var(--text-secondary);
}
.article-content h1,
.legal-content h1 {
  color: var(--text-primary);
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}
.article-content .article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}
.article-content h2,
.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-sm);
}
.article-content p,
.legal-content p {
  margin-bottom: var(--space-md);
}
.article-content ul,
.article-content ol,
.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--space-md) var(--space-lg);
}
.article-content li,
.legal-content li {
  margin-bottom: var(--space-xs);
}
.legal-content .legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

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

  .spinner {
    animation: spin 1.5s linear infinite !important;
  }
}
