﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MR. BARBER 2.0 â€” Glassmorphism UI
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  --red: #DC2626;
  --red-light: #EF4444;
  --red-dark: #B91C1C;
  --red-glow: rgba(220, 38, 38, 0.3);
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --dark: #111827;
  --darker: #0D1117;

  --text-primary: rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.4);

  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-hover: rgba(255,255,255,0.10);
  --glass-blur: blur(24px) saturate(180%);

  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.25);

  --orange: #F97316;
  --green: #22C55E;
  --blue: #3B82F6;
  --yellow: #EAB308;
}

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

html { font-size: 15px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--darker);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* â”€â”€ DIAGONAL STRIPES BACKGROUND â”€â”€ */
#bgPattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--darker);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(180, 20, 20, 0.22),
    rgba(180, 20, 20, 0.22) 1px,
    transparent 1px,
    transparent 24px
  );
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #0D1117 18%, #0D1117 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #0D1117 18%, #0D1117 82%, transparent);
}

/* â”€â”€ LOADING SCREEN â”€â”€ */
@keyframes lsBarShine {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(400%) skewX(-20deg); }
}
@keyframes lsIconSpin {
  0%   { transform: rotate(-10deg) scale(1); }
  50%  { transform: rotate(10deg) scale(1.08); }
  100% { transform: rotate(-10deg) scale(1); }
}
@keyframes lsFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lsOut {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darker);
  transition: opacity 0.6s ease;
}
#loadingScreen.ls-hiding {
  animation: lsOut 0.65s ease forwards;
}
#loadingScreen.ls-hidden {
  display: none;
}

.ls-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(180, 20, 20, 0.22),
    rgba(180, 20, 20, 0.22) 1px,
    transparent 1px,
    transparent 24px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #0D1117 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #0D1117 30%, transparent 80%);
}

.ls-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: lsFadeIn 0.7s ease both;
}

.ls-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  display: block;
  animation: lsIconSpin 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px var(--red-glow));
}

.ls-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.ls-welcome {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  letter-spacing: 0.03em;
  animation: lsFadeIn 0.7s 0.2s ease both;
}
.ls-welcome span {
  color: var(--red-light);
  font-weight: 700;
}

.ls-bar-wrap {
  width: 280px;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.ls-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #F87171);
  border-radius: 99px;
  transition: width 0.08s linear;
  position: relative;
  box-shadow: 0 0 12px var(--red-glow), 0 0 4px rgba(255,100,100,0.5);
}
.ls-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: rgba(255,255,255,0.35);
  border-radius: 99px;
  animation: lsBarShine 1.4s ease-in-out infinite;
}

.ls-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: lsFadeIn 0.7s 0.35s ease both;
}

/* â”€â”€ SIDEBAR â”€â”€ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px var(--red-glow);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-mr {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-barber {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo-version {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.nav-item:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(220, 38, 38, 0.1));
  color: var(--text-primary);
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--red-light);
  border-radius: 0 3px 3px 0;
}
.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-label { font-weight: 500; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), #7C3AED);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.user-info { display: flex; flex-direction: column; flex: 1; }
.user-name { font-size: 0.875rem; font-weight: 600; }
.user-role { font-size: 0.75rem; color: var(--text-muted); }

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.theme-toggle:hover { background: var(--glass-hover); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LIGHT THEME
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
[data-theme="light"] {
  --text-primary:   rgba(12, 18, 28, 0.92);
  --text-secondary: rgba(12, 18, 28, 0.60);
  --text-muted:     rgba(12, 18, 28, 0.38);
  --glass-bg:       rgba(255, 255, 255, 0.75);
  --glass-border:   rgba(0, 0, 0, 0.09);
  --glass-hover:    rgba(0, 0, 0, 0.05);
  --shadow:         0 8px 32px rgba(0,0,0,0.12);
  --shadow-sm:      0 4px 16px rgba(0,0,0,0.08);
  --darker:         #eef1f6;
  background: #eef1f6;
  color: rgba(12, 18, 28, 0.92);
}

[data-theme="light"] #bgPattern {
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px,
    transparent 1px, transparent 24px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .topbar {
  background: #ffffff;
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .glass-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .glass-input,
[data-theme="light"] .glass-select {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: rgba(12,18,28,0.92);
}
[data-theme="light"] .glass-input::placeholder { color: rgba(12,18,28,0.35); }
[data-theme="light"] .glass-input:focus,
[data-theme="light"] .glass-select:focus { border-color: var(--red); }

[data-theme="light"] .data-table th {
  background: rgba(0,0,0,0.04);
  color: rgba(12,18,28,0.55);
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .data-table td { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .data-table tr:hover td { background: rgba(0,0,0,0.03); }

[data-theme="light"] .kpi-card { background: rgba(255,255,255,0.85); }
[data-theme="light"] .nav-item { color: rgba(12,18,28,0.6); }
[data-theme="light"] .nav-item:hover { background: rgba(0,0,0,0.05); color: rgba(12,18,28,0.9); }
[data-theme="light"] .nav-item.active { color: rgba(12,18,28,0.95); }
[data-theme="light"] .sidebar-logo { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .export-btn { color: rgba(12,18,28,0.65); }
[data-theme="light"] .export-btn:hover { background: rgba(0,0,0,0.05); color: rgba(12,18,28,0.9); }

[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.35); }
[data-theme="light"] .modal,
[data-theme="light"] .modal-box {
  background: rgba(245,247,252,0.98) !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: rgba(12,18,28,0.92);
}
[data-theme="light"] .modal-header { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .modal-footer,
[data-theme="light"] .modal-actions { border-top-color: rgba(0,0,0,0.08); }

[data-theme="light"] .cs-wrap .cs-trigger {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: rgba(12,18,28,0.88);
}
[data-theme="light"] .cs-dropdown {
  background: rgba(245,247,252,0.98);
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .cs-option:hover { background: rgba(0,0,0,0.05); }

[data-theme="light"] .cal-cell { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .cal-cell.is-today { border-color: var(--red); }
[data-theme="light"] .cal-grid-header { color: rgba(12,18,28,0.5); }

[data-theme="light"] .pin-key { background: rgba(0,0,0,0.07); color: rgba(12,18,28,0.9); }
[data-theme="light"] #pinScreen { background: #eef1f6; }
[data-theme="light"] .pin-dot { border-color: rgba(12,18,28,0.25); }
[data-theme="light"] .pin-dot.filled { background: rgba(12,18,28,0.85); border-color: rgba(12,18,28,0.85); }

[data-theme="light"] .topbar-greeting { color: rgba(12,18,28,0.5); }
[data-theme="light"] .btn-ghost { color: rgba(12,18,28,0.75); border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.06); }

/* Gradient text → solid en mode clair */
[data-theme="light"] .page-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: rgba(12,18,28,0.92);
  background-clip: unset;
  color: rgba(12,18,28,0.92);
}
[data-theme="light"] .ls-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: rgba(12,18,28,0.9);
  background-clip: unset;
}

/* Dropdown portal en mode clair */
[data-theme="light"] .cs-portal-list {
  background: rgba(245,247,252,0.99);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .cs-item { color: rgba(12,18,28,0.88); }
[data-theme="light"] .cs-item:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .cs-item.cs-placeholder { color: rgba(12,18,28,0.40); }

/* Badges plus visibles sur fond clair */
[data-theme="light"] .badge-green { background: rgba(22,163,74,0.12); color: #15803D; border-color: rgba(22,163,74,0.3); }
[data-theme="light"] .badge-orange { background: rgba(234,88,12,0.12); color: #C2410C; border-color: rgba(234,88,12,0.3); }
[data-theme="light"] .badge-red { background: rgba(220,38,38,0.10); color: #B91C1C; border-color: rgba(220,38,38,0.3); }
[data-theme="light"] .badge-blue { background: rgba(37,99,235,0.10); color: #1D4ED8; border-color: rgba(37,99,235,0.3); }

/* Month picker */
[data-theme="light"] .month-picker-dropdown {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}
[data-theme="light"] .mp-nav {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: rgba(12,18,28,0.7);
}
[data-theme="light"] .mp-nav:hover {
  background: rgba(0,0,0,0.09);
  color: rgba(12,18,28,0.92);
}
[data-theme="light"] .mp-month {
  color: rgba(12,18,28,0.70);
}
[data-theme="light"] .mp-month:hover {
  background: rgba(0,0,0,0.05);
  color: rgba(12,18,28,0.92);
  border-color: rgba(0,0,0,0.10);
}

/* Checkboxes */
[data-theme="light"] .checkmark {
  border-color: rgba(0,0,0,0.30);
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .custom-checkbox:hover .checkmark {
  border-color: rgba(0,0,0,0.55);
}

/* Toasts */
[data-theme="light"] .toast { background: rgba(30,35,50,0.95); color: #fff; }

/* Tables */
[data-theme="light"] .data-table td { color: rgba(12,18,28,0.85); }

/* Chart toggle buttons */
[data-theme="light"] .chart-toggle button,
[data-theme="light"] .periode-switcher button { color: rgba(12,18,28,0.65); background: rgba(0,0,0,0.05); }
[data-theme="light"] .chart-toggle button.active,
[data-theme="light"] .periode-switcher button.active { background: var(--red); color: #fff; }

.export-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.export-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.2);
}
.export-btn-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* â”€â”€ MAIN CONTENT â”€â”€ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* â”€â”€ TOPBAR â”€â”€ */
.topbar {
  height: var(--topbar-h);
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}
.topbar-greeting {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}
.topbar-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* â”€â”€ PAGES â”€â”€ */
.page {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
.page.active { display: block; }

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* â”€â”€ GLASS CARD â”€â”€ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* â”€â”€ KPI GRID â”€â”€ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.kpi-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}
.kpi-glow {
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
}
.kpi-glow.red { background: var(--red); }
.kpi-glow.orange { background: var(--orange); }
.kpi-glow.green { background: var(--green); }
.kpi-glow.blue { background: var(--blue); }

/* â”€â”€ DASHBOARD GRID â”€â”€ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.chart-card { min-height: 340px; }
.chart-container { height: 260px; position: relative; }

.reactiver-card { overflow: hidden; }
.reactiver-list {
  overflow-y: auto;
  max-height: 280px;
}

.reactiver-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--glass-border);
  gap: 0.75rem;
}
.reactiver-item:last-child { border-bottom: none; }
.reactiver-info { flex: 1; min-width: 0; }
.reactiver-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reactiver-phone {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.reactiver-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* â”€â”€ BADGES â”€â”€ */
.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-green { background: rgba(34, 197, 94, 0.15); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-red { background: rgba(220, 38, 38, 0.15); color: #F87171; border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-gray { background: rgba(156, 163, 175, 0.1); color: var(--text-muted); border: 1px solid rgba(156, 163, 175, 0.2); }

/* â”€â”€ CARD HEADER â”€â”€ */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* â”€â”€ CALENDRIER â”€â”€ */
.cal-wrap { padding: 1.5rem; }
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.cal-month-label { font-size: 1.2rem; font-weight: 700; text-transform: capitalize; }
.cal-nav-btn { font-size: 1.4rem; padding: 0.2rem 0.6rem; line-height: 1; }
.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 2px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  min-height: 95px;
  padding: 0.5rem;
  transition: background 0.15s;
}
.cal-cell.other-month { opacity: 0.35; }
.cal-cell.today { border-color: var(--red); background: rgba(220,38,38,0.07); }
.cal-day-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1;
}
.cal-cell.today .cal-day-num { color: var(--red); }
.cal-event {
  background: rgba(220,38,38,0.15);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cal-event:hover { background: rgba(220,38,38,0.28); }
.cal-event-time { font-size: 0.75rem; color: var(--red); font-weight: 700; margin-bottom: 0.1rem; }
.cal-event-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-service { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; }

/* â”€â”€ Vue toggle â”€â”€ */
.cal-view-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.cal-view-toggle .toggle-btn {
  border-radius: 7px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* â”€â”€ Vue Semaine â”€â”€ */
.cal-grid--week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-week-col {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
}
.cal-week-col.today { border-color: var(--red); }
.cal-week-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.25rem 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  gap: 2px;
}
.cal-week-day-name {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.cal-week-day-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.cal-week-day-num.is-today {
  background: var(--red);
  color: white;
  box-shadow: 0 0 10px var(--red-glow);
}
.cal-week-day-events {
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-empty-day {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem 0;
  opacity: 0.5;
}

/* â”€â”€ Vue Jour â”€â”€ */
.cal-grid--day {
  display: flex;
  flex-direction: column;
}
.cal-day-slot {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.cal-day-slot:hover { background: rgba(255,255,255,0.02); }
.cal-day-slot--now { background: rgba(220,38,38,0.05); }
.cal-day-slot--now .cal-day-time { color: var(--red); font-weight: 700; }
.cal-day-time {
  font-size: 0.73rem;
  color: var(--text-muted);
  padding: 0.85rem 0.75rem 0 0;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.07);
  line-height: 1;
  flex-shrink: 0;
}
.cal-day-time--label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-day-events {
  padding: 0.4rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* â”€â”€ TOGGLE BUTTONS â”€â”€ */
.chart-toggle, .periode-switcher { display: flex; gap: 0.5rem; align-items: center; }
.toggle-btn {
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn:hover { background: var(--glass-hover); color: var(--text-primary); }
.toggle-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 0 12px var(--red-glow);
}
.month-picker-wrap { position: relative; }
.month-picker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.month-picker-backdrop.open { display: block; }
.month-picker-dropdown {
  display: none;
  position: fixed;
  z-index: 500;
  background: rgba(15, 20, 35, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  width: 260px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  animation: fadeIn 0.15s ease;
}
.month-picker-dropdown.open { display: block; }
.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
#mpYear {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.mp-nav {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.mp-nav:hover { background: var(--glass-hover); color: var(--text-primary); }
.mp-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.mp-month {
  padding: 0.45rem 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.mp-month:hover { background: var(--glass-hover); color: var(--text-primary); border-color: var(--glass-border); }
.mp-month.selected { background: var(--red); color: white; border-color: var(--red); box-shadow: 0 0 10px var(--red-glow); font-weight: 600; }

.periode-switcher.glass-card {
  padding: 0.875rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.total-badge {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.total-badge strong {
  color: var(--green);
  font-weight: 700;
}

/* â”€â”€ BUTTONS â”€â”€ */
.btn-primary {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--red-glow);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--red-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--text-primary); }

.btn-danger {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #DC2626, #991B1B);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.btn-danger:hover { opacity: 0.85; }

.btn-icon {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  color: var(--text-secondary);
}
.btn-icon:hover { background: var(--glass-hover); color: var(--text-primary); }
.btn-icon.red:hover { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.3); color: #F87171; }
.btn-icon.green:hover { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #4ADE80; }

/* â”€â”€ SEARCH BAR â”€â”€ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.search-icon { font-size: 1rem; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.search-input::placeholder { color: var(--text-muted); }

/* â”€â”€ TABLES â”€â”€ */
.table-card { padding: 0; overflow: hidden; }
.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2);
  white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text-secondary); }
.sort-icon { opacity: 0.4; margin-left: 0.25rem; }

.data-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.td-name { font-weight: 600; color: var(--text-primary); }
.td-actions { display: flex; gap: 0.4rem; align-items: center; }
.loading-cell {
  text-align: center;
  padding: 2rem !important;
  color: var(--text-muted);
}

/* â”€â”€ FORMS â”€â”€ */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glass-input, .glass-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}
.glass-input:focus, .glass-select:focus {
  border-color: var(--red-light);
  background: rgba(255,255,255,0.09);
}
.glass-input::placeholder { color: var(--text-muted); }
textarea.glass-input { resize: vertical; min-height: 80px; }
.glass-select option { background: #1a1f2e; color: #fff; }

/* â”€â”€ MODALS â”€â”€ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
#transactionModal.open { z-index: 300; }

.modal,
.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.95) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ── CLIENTS CARDS (mobile) ─────────────────────── */
.clients-cards {
  display: none;
}
.client-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: background 0.15s;
}
.client-card:last-child { border-bottom: none; }
.client-card:active { background: rgba(220,38,38,0.06); }
.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.client-card-body { flex: 1; min-width: 0; }
.client-card-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-card-rev {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
  white-space: nowrap;
}
.client-card-chevron {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-left: 0.25rem;
  line-height: 1;
}

/* Actions rapides dans modal profil */
.profil-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.profil-action-btn {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}

/* Label de section dans modal profil */
.profil-section-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* Stat pill dans modal profil */
.stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.stat-pill strong { color: var(--text-primary); }

/* Ligne client cliquable */
.data-table tr.client-row { cursor: pointer; }
.data-table tr.client-row:hover td { background: rgba(220,38,38,0.06); }

/* â”€â”€ SMS SECTION â”€â”€ */
.sms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.sms-left-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.send-section { display: flex; flex-direction: column; gap: 1rem; }

.sms-preview {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.preview-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.twilio-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  line-height: 1.5;
}

.template-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.template-item:hover { border-color: rgba(220,38,38,0.3); }
.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.template-name { font-weight: 700; font-size: 0.875rem; }
.template-textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.template-textarea:focus { border-color: var(--red-light); }

.mass-result {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-height: 150px;
  overflow-y: auto;
}
.mass-result-item {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* â”€â”€ STATUS BADGES â”€â”€ */
.status-envoye { color: var(--green); }
.status-simule { color: var(--yellow); }
.status-erreur { color: #F87171; }

/* â”€â”€ RDV CLIENT NAME â”€â”€ */
.rdv-client-name {
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
}

/* â”€â”€ LOADING SPINNER â”€â”€ */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* â”€â”€ TOAST â”€â”€ */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  animation: slideIn 0.3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}
.toast-success { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.4); color: #4ADE80; }
.toast-error { background: rgba(220,38,38,0.2); border: 1px solid rgba(220,38,38,0.4); color: #F87171; }
.toast-info { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4); color: #60A5FA; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* â”€â”€ HEADER ACTIONS â”€â”€ */
.header-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .menu-toggle { display: block; }
  .sms-grid { grid-template-columns: 1fr; }
  .page { padding: 1.25rem; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .kpi-value { font-size: 1.5rem; }
  .topbar { padding: 0 1.25rem; }
}

@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* â”€â”€ TAX SUMMARY â”€â”€ */
.tax-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.tax-summary-grid.tax-3col {
  grid-template-columns: repeat(3, 1fr);
}
.tax-summary-grid.tax-2col {
  grid-template-columns: repeat(2, 1fr);
}

.tax-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.tax-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Rouge â€” revenus */
.tax-hero-red {
  background: linear-gradient(135deg, rgba(220,38,38,0.2) 0%, rgba(220,38,38,0.06) 100%);
  border-color: rgba(220,38,38,0.3);
}
.tax-hero-red::before {
  background: radial-gradient(circle at 70% 20%, rgba(220,38,38,0.25) 0%, transparent 60%);
}
.tax-hero-red .tax-hero-label { color: var(--red-light); }

/* Orange â€” TPS / TVQ */
.tax-hero-orange {
  background: linear-gradient(135deg, rgba(249,115,22,0.18) 0%, rgba(249,115,22,0.05) 100%);
  border-color: rgba(249,115,22,0.3);
}
.tax-hero-orange::before {
  background: radial-gradient(circle at 70% 20%, rgba(249,115,22,0.2) 0%, transparent 60%);
}
.tax-hero-orange .tax-hero-label { color: #FB923C; }
.tax-hero-orange .tax-hero-amount { color: #FB923C; }

/* Vert â€” TTC */
.tax-hero-green {
  background: linear-gradient(135deg, rgba(34,197,94,0.18) 0%, rgba(34,197,94,0.05) 100%);
  border-color: rgba(34,197,94,0.3);
}
.tax-hero-green::before {
  background: radial-gradient(circle at 70% 20%, rgba(34,197,94,0.2) 0%, transparent 60%);
}
.tax-hero-green .tax-hero-label { color: #4ADE80; }
.tax-hero-green .tax-hero-amount { color: #4ADE80; }

.tax-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  position: relative;
}
.tax-hero-month {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  font-weight: 500;
  position: relative;
}
.tax-hero-amount {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.45rem;
  position: relative;
}
.tax-hero-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

@media (max-width: 1100px) {
  .tax-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tax-summary-grid { grid-template-columns: 1fr 1fr; }
  .tax-hero-amount { font-size: 1.5rem; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PIN SCREEN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

#pinScreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#pinScreen.pin-out {
  opacity: 0;
  pointer-events: none;
}
#pinScreen.pin-hidden { display: none; }

.pin-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pin-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(220,38,38,0.6));
}
.pin-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
  margin: 0 0 0.25rem;
}
.pin-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
}

/* Dots */
.pin-dots {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 0.6rem;
}
.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pin-dot.filled {
  background: #fff;
  border-color: #fff;
  transform: scale(1.1);
}
.pin-dot.error {
  background: var(--red-light);
  border-color: var(--red-light);
}
.pin-dot.success {
  background: #22c55e;
  border-color: #22c55e;
}

/* Error message */
.pin-error {
  font-size: 0.8rem;
  color: var(--red-light);
  margin: 0 0 1.5rem;
  opacity: 0;
  transition: opacity 0.2s;
  height: 1rem;
}
.pin-error.visible { opacity: 1; }

/* Shake animation */
@keyframes pinShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.pin-dots.shake { animation: pinShake 0.45s ease; }

/* Numpad */
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(4, 72px);
  gap: 10px;
}
.pin-key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-key:active {
  background: rgba(255,255,255,0.28);
  transform: scale(0.93);
}
.pin-key--del {
  background: transparent;
  border-color: transparent;
  font-size: 1.3rem;
}
.pin-key.error {
  background: rgba(220, 38, 38, 0.35);
  color: var(--red-light);
}
.pin-key.success {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE RESPONSIVE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Sidebar backdrop â”€â”€ */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 149;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-backdrop.visible { display: block; }

@media (max-width: 900px) {
  .sidebar { z-index: 150; }
  /* Close sidebar when nav item tapped (handled in JS) */
}

@media (max-width: 768px) {
  /* â”€â”€ Layout â”€â”€ */
  .page { padding: 1rem 0.9rem; }
  .topbar { padding: 0 1rem; gap: 0.6rem; }
  .topbar-date { display: none; }

  /* â”€â”€ Page header â”€â”€ */
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; }
  .page-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }

  /* â”€â”€ Modals â†’ bottom sheet â”€â”€ */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay > .modal-box,
  .modal-overlay > .modal {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .modal-footer .btn-primary,
  .modal-footer .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* â”€â”€ Inputs â€” empÃªche le zoom iOS â”€â”€ */
  .glass-input, .glass-select, input, textarea, select {
    font-size: 16px !important;
  }

  /* â”€â”€ KPI â”€â”€ */
  .kpi-card { padding: 1rem; }
  .kpi-value { font-size: 1.55rem; }

  /* â”€â”€ Tables â”€â”€ */
  .data-table { font-size: 0.78rem; }
  .data-table th, .data-table td { padding: 0.85rem 0.6rem; }
  .btn-icon { width: 30px; height: 30px; font-size: 0.8rem; }

  /* â”€â”€ Clients : cartes au lieu du tableau â”€â”€ */
  #clientsTableCard { display: none; }
  #clientsCards {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
  }
  [data-theme=”light”] #clientsCards {
    background: rgba(255,255,255,0.92);
    border-color: rgba(0,0,0,0.08);
  }
  [data-theme=”light”] .client-card { border-bottom-color: rgba(0,0,0,0.07); }
  [data-theme=”light”] .client-card:active { background: rgba(220,38,38,0.05); }
  [data-theme=”light”] .client-card-name { color: rgba(12,18,28,0.9); }
  [data-theme=”light”] .client-card-chevron { color: rgba(12,18,28,0.25); }

  /* â”€â”€ Calendrier â”€â”€ */
  .cal-wrap { padding: 1rem 0.9rem; }
  .cal-nav { flex-wrap: wrap; row-gap: 0.5rem; }
  .cal-view-toggle { margin-left: 0 !important; order: 3; width: 100%; }
  .cal-view-toggle .toggle-btn { flex: 1; text-align: center; }
  .cal-month-label { font-size: 1rem; }
  .cal-cell { min-height: 50px; padding: 0.25rem; }
  .cal-day-num { font-size: 0.7rem; margin-bottom: 0.15rem; }
  .cal-event { padding: 0.15rem 0.25rem; margin-bottom: 0.1rem; }
  .cal-event-name { font-size: 0.7rem; }
  .cal-event-time { font-size: 0.62rem; }
  .cal-event-service { display: none; }
  .cal-grid-header { font-size: 0.65rem; letter-spacing: 0; }

  /* Week view â†’ liste verticale sur mobile */
  .cal-grid--week {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .cal-week-col {
    min-height: unset;
    display: grid;
    grid-template-columns: 72px 1fr;
    border-radius: 8px;
  }
  .cal-week-day-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
    padding: 0.5rem 0.25rem;
    gap: 2px;
  }
  .cal-week-day-events { padding: 0.4rem 0.5rem; }

  /* Day view */
  .cal-day-slot { grid-template-columns: 50px 1fr; min-height: 46px; }
  .cal-day-time { font-size: 0.65rem; padding: 0.6rem 0.35rem 0 0; }
  .cal-day-events { padding: 0.3rem 0.5rem; }

  /* â”€â”€ Revenus â”€â”€ */
  .tax-summary-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
  .tax-hero-amount { font-size: 1.4rem; }
  .periode-switcher { flex-wrap: wrap; }

  /* â”€â”€ SMS â”€â”€ */
  .sms-grid { grid-template-columns: 1fr; }

  /* â”€â”€ NouveautÃ©s â”€â”€ */
  .nouv-grid { grid-template-columns: 1fr; }
  .nouv-card-actions { opacity: 1; }

  /* â”€â”€ RÃ©activation â”€â”€ */
  .reactiv-row { flex-wrap: wrap; gap: 0.5rem; }
  .reactiv-right { width: 100%; justify-content: flex-end; }
  .btn-sms-send { flex: 1; text-align: center; justify-content: center; }

  /* â”€â”€ Sidebar footer export btns â”€â”€ */
  .export-btn { padding: 0.5rem 0.6rem; }

  /* â”€â”€ Dashboard â”€â”€ */
  .dashboard-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .page { padding: 0.85rem 0.75rem; }
  .topbar-greeting { font-size: 0.85rem; }
  .page-title { font-size: 1.25rem; }

  /* â”€â”€ KPI 1 colonne â”€â”€ */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  /* â”€â”€ Taxes â”€â”€ */
  .tax-summary-grid { grid-template-columns: 1fr !important; }

  /* â”€â”€ Cal cells encore plus petites â”€â”€ */
  .cal-cell { min-height: 42px; }
  .cal-grid-header div { font-size: 0.58rem; }

  /* â”€â”€ Suggestions table â€” masquer colonnes moins utiles â”€â”€ */
  .data-table .col-hide-mobile { display: none; }

  /* â”€â”€ Form rows â†’ 1 col â”€â”€ */
  .form-row { grid-template-columns: 1fr; }
}

/* â”€â”€ BULK SELECTION BAR â”€â”€ */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  animation: fadeIn 0.2s ease;
  flex-wrap: wrap;
}
.bulk-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-light);
  white-space: nowrap;
}
.bulk-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* â”€â”€ CUSTOM CHECKBOX â”€â”€ */
.th-check { width: 44px; padding-left: 1.25rem !important; }
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.checkmark {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.custom-checkbox input:checked ~ .checkmark {
  background: var(--red);
  border-color: var(--red);
}
.custom-checkbox input:checked ~ .checkmark::after {
  content: '';
  width: 4px; height: 8px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.custom-checkbox:hover .checkmark {
  border-color: rgba(255,255,255,0.5);
}

/* Row selected highlight */
.data-table tr.row-selected td {
  background: rgba(220, 38, 38, 0.07) !important;
}
.data-table tr.row-selected:hover td {
  background: rgba(220, 38, 38, 0.11) !important;
}

/* â”€â”€ EMPTY STATE â”€â”€ */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state-text { font-size: 0.875rem; }

/* â”€â”€ ACCORDÃ‰ON â”€â”€ */
.accordion-header {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease;
}
.accordion-header:hover { opacity: 0.85; }

.accordion-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
}
.accordion-arrow.open { transform: rotate(90deg); }

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.25s ease;
  opacity: 0;
}
.accordion-body.open {
  max-height: 1200px;
  opacity: 1;
}

/* AccordÃ©on compact â€” juste le header quand fermÃ© */
.accordion-card {
  padding: 0;
}
.accordion-card .accordion-header {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
}
.accordion-body {
  padding: 0 1.5rem;
}
.accordion-body.open {
  padding-top: 0.25rem;
  padding-bottom: 1rem;
}

/* â”€â”€ TOTAL REÃ‡U â”€â”€ */
.total-recu-display {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ADE80;
  letter-spacing: -0.02em;
  height: 42px;
  display: flex;
  align-items: center;
}

/* â”€â”€ SEUIL SELECT â”€â”€ */
.seuil-select select { width: auto; padding: 0.3rem 0.6rem; font-size: 0.8rem; }

/* â”€â”€ CUSTOM SELECT â”€â”€ */
.cs-wrap {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}
.cs-trigger {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.cs-wrap:hover .cs-trigger,
.cs-wrap.cs-open .cs-trigger {
  border-color: var(--red-light);
  background: rgba(255,255,255,0.09);
}
.cs-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.cs-wrap.cs-open .cs-chevron { transform: rotate(180deg); }
.cs-placeholder { color: var(--text-muted); }
.cs-portal-list {
  display: none;
  position: fixed;
  background: rgba(13, 17, 30, 0.98);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  z-index: 600;
  overflow-y: auto;
  max-height: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  min-width: 160px;
}
.cs-portal-list.cs-open { display: block; animation: fadeIn 0.15s ease; }
.cs-item {
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.cs-item:hover { background: rgba(255,255,255,0.08); }
.cs-item.cs-active { color: var(--red-light); background: rgba(220,38,38,0.1); font-weight: 600; }

/* â”€â”€ MODAL RÃ‰ACTIVATION â”€â”€ */
.reactiv-select-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--glass-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 0;
}
.reactiv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
  transition: background 0.15s;
}
.reactiv-row:last-child { border-bottom: none; }
.reactiv-row:hover { background: rgba(255,255,255,0.04); }
.reactiv-info { display: flex; flex-direction: column; gap: 0.15rem; }
.reactiv-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.reactiv-phone { font-size: 0.8rem; color: var(--text-muted); }
.reactiv-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.btn-sms-send {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: var(--radius-sm);
  color: #60A5FA;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-sms-send:hover {
  background: rgba(59,130,246,0.28);
  border-color: rgba(59,130,246,0.6);
}

/* â”€â”€ SUGGESTIONS â”€â”€ */
/* â”€â”€ NOUVEAUTÃ‰S â”€â”€ */
.nouv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.nouv-card {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nouv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.nouv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nouv-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.nouv-badge-new {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--red), #F87171);
  color: white;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  box-shadow: 0 0 10px var(--red-glow);
}
.nouv-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nouv-card-actions {
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.nouv-card:hover .nouv-card-actions { opacity: 1; }
.nouv-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}
.nouv-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

.sugg-resolu td { opacity: 0.45; text-decoration: line-through; }
.sugg-resolu td:last-child,
.sugg-resolu td:nth-last-child(2) { text-decoration: none; opacity: 1; }

.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #DC2626, #991B1B);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.btn-danger-sm:hover { opacity: 0.85; }

