/* ================================================================
   ANVOS — Unified Premium Design System
   Theme: Dark Luxury + Warm Golden Accents + Glassmorphism
   Reference: Clean dark dashboard with gold/amber highlights,
              icon rail sidebar, stat cards, hover effects
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* ── Core Backgrounds ── */
  --bg-main:            hsl(224, 25%, 7%);
  --bg-surface:         hsla(222, 22%, 12%, 0.80);
  --bg-surface-solid:   hsl(222, 22%, 12%);
  --bg-surface-2:       hsl(222, 22%, 16%);
  --bg-hover:           hsla(222, 22%, 20%, 0.90);
  --bg-sidebar:         hsl(224, 28%, 9%);

  /* ── Brand Colors ── */
  --color-primary:        hsl(239, 84%, 67%);   /* Neon Indigo */
  --color-primary-dark:   hsl(239, 84%, 55%);
  --color-primary-glow:   hsla(239, 84%, 67%, 0.15);
  --color-secondary:      hsl(258, 90%, 66%);   /* Vivid Violet */

  /* ── Gold Accent (from reference image) ── */
  --color-gold:           hsl(43, 96%, 56%);    /* Warm Gold */
  --color-gold-light:     hsl(43, 96%, 75%);
  --color-gold-glow:      hsla(43, 96%, 56%, 0.18);
  --color-gold-dim:       hsla(43, 96%, 56%, 0.08);

  --color-accent:         hsl(330, 81%, 60%);   /* Hot Pink */
  --color-accent-glow:    hsla(330, 81%, 60%, 0.15);

  /* ── Semantic Colors ── */
  --color-success:   hsl(162, 76%, 41%);
  --color-warning:   hsl(38, 92%, 50%);
  --color-danger:    hsl(360, 84%, 60%);
  --color-info:      hsl(200, 90%, 55%);

  --color-success-glow: hsla(162, 76%, 41%, 0.15);
  --color-warning-glow: hsla(38, 92%, 50%, 0.15);
  --color-danger-glow:  hsla(360, 84%, 60%, 0.15);

  /* ── Typography ── */
  --text-main:   hsl(210, 40%, 97%);
  --text-muted:  hsl(215, 16%, 60%);
  --text-dim:    hsl(215, 16%, 40%);
  --text-dark:   hsl(224, 25%, 6%);

  /* ── Borders ── */
  --border-color:       hsla(217, 10%, 30%, 0.40);
  --border-color-light: hsla(217, 10%, 50%, 0.15);
  --border-color-glow:  hsla(239, 84%, 67%, 0.35);
  --border-gold:        hsla(43, 96%, 56%, 0.40);

  /* ── Spacing & Shape ── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast:   0.18s ease;
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Effects ── */
  --glass-blur:     blur(14px);
  --shadow-sm:      0 2px 8px 0 rgba(0,0,0,0.25);
  --shadow-main:    0 8px 32px 0 rgba(0,0,0,0.40);
  --shadow-lg:      0 16px 48px 0 rgba(0,0,0,0.55);
  --shadow-glow:    0 0 24px 0 hsla(239, 84%, 67%, 0.30);
  --shadow-gold:    0 0 24px 0 hsla(43, 96%, 56%, 0.25);

  /* ── Sidebar ── */
  --sidebar-width:      240px;
  --sidebar-collapsed:  70px;
}

/* ── Light Mode Theme Override ── */
[data-theme="light"] {
  /* Core Backgrounds — clean white/grey */
  --bg-main:            #f4f5f7;
  --bg-surface:         rgba(255, 255, 255, 0.90);
  --bg-surface-solid:   #ffffff;
  --bg-surface-2:       #f0f1f3;
  --bg-hover:           #e8e9ec;
  --bg-sidebar:         #ffffff;

  /* Typography — dark text on light bg */
  --text-main:          #1a1c23;
  --text-muted:         #5f6775;
  --text-dim:           #8a919d;
  --text-dark:          #0d0e12;

  /* Borders — visible but subtle */
  --border-color:       rgba(0, 0, 0, 0.10);
  --border-color-light: rgba(0, 0, 0, 0.06);
  --border-color-glow:  hsla(239, 84%, 67%, 0.20);
  --border-gold:        hsla(43, 96%, 50%, 0.25);

  /* Shadows — much softer */
  --glass-blur:         blur(10px);
  --shadow-sm:          0 1px 4px 0 rgba(0,0,0,0.05);
  --shadow-main:        0 4px 16px 0 rgba(0,0,0,0.06);
  --shadow-lg:          0 8px 32px 0 rgba(0,0,0,0.08);
  --shadow-glow:        0 0 16px 0 hsla(239, 84%, 67%, 0.10);
  --shadow-gold:        0 0 16px 0 hsla(43, 96%, 56%, 0.10);

  /* Brand colors — slightly adjusted for light bg contrast */
  --color-primary:      hsl(239, 70%, 55%);
  --color-primary-dark: hsl(239, 70%, 45%);
  --color-primary-glow: hsla(239, 70%, 55%, 0.12);
  --color-gold:         hsl(38, 90%, 48%);
  --color-gold-light:   hsl(38, 80%, 60%);
  --color-gold-glow:    hsla(38, 90%, 48%, 0.12);
  --color-gold-dim:     hsla(38, 90%, 48%, 0.06);
}

/* ═══════════════════════════════════════════════════
   LIGHT MODE — Component-level overrides
   ═══════════════════════════════════════════════════ */

/* ── App Shell ── */
[data-theme="light"] .admin-shell {
  background: #eaecf0 !important;
}
[data-theme="light"] .admin-sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .admin-sidebar .menu-item {
  color: #6b7280 !important;
}
[data-theme="light"] .admin-sidebar .menu-item:hover {
  background: #f3f4f6 !important;
  color: var(--color-primary) !important;
}
[data-theme="light"] .admin-sidebar .menu-item.active {
  background: #f0f0ff !important;
  color: var(--color-primary) !important;
}
[data-theme="light"] .admin-sidebar .sidebar-footer {
  border-top-color: rgba(0,0,0,0.06) !important;
}

/* ── Global Header ── */
[data-theme="light"] .global-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .header-logo-text {
  color: #1a1c23 !important;
}

/* ── Top Bar ── */
[data-theme="light"] .admin-main-container {
  background: #f4f5f7 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .admin-top-bar .search-wrapper input {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #1a1c23 !important;
}
[data-theme="light"] .admin-top-bar .search-wrapper input::placeholder {
  color: #9ca3af !important;
}
[data-theme="light"] .admin-top-bar .search-wrapper i {
  color: #9ca3af !important;
}
[data-theme="light"] .admin-top-bar .top-bar-actions .notification-bell {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* ── Dashboard Cards ── */
[data-theme="light"] .card-dark {
  background: #1e293b !important;
  color: #f8fafc !important;
}
[data-theme="light"] .card-dark .card-title,
[data-theme="light"] .card-dark .legend-item,
[data-theme="light"] .card-dark .update-title {
  color: #f8fafc !important;
}
[data-theme="light"] .card-light {
  background: #ffffff !important;
  color: #1a1c23 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

/* ── Overview Dashboard ── */
[data-theme="light"] .overview-title {
  color: #111827 !important;
}
[data-theme="light"] .overview-subtitle {
  color: #6b7280 !important;
}
[data-theme="light"] .overview-tab {
  color: #6b7280;
}
[data-theme="light"] .overview-tab.active {
  background: #ffffff;
  color: #111827;
}

/* ── Calendar mini (inside dark card) — keep light text ── */
[data-theme="light"] .calendar-day.current-month {
  color: #f8fafc;
}
[data-theme="light"] .calendar-day.prev-month,
[data-theme="light"] .calendar-day.next-month {
  color: #64748b;
}
[data-theme="light"] .calendar-weekdays {
  color: #94a3b8;
}
[data-theme="light"] .update-period {
  color: #94a3b8;
}

/* ── Table & Data inside light cards ── */
[data-theme="light"] .card-light .card-title {
  color: #111827 !important;
}
[data-theme="light"] .client-info-cell strong {
  color: #111827;
}
[data-theme="light"] .client-info-cell span {
  color: #6b7280;
}
[data-theme="light"] .date-info-cell span {
  color: #6b7280;
}
[data-theme="light"] .amount-tag {
  color: #059669 !important;
}

/* ── Forms & Inputs ── */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #1a1c23 !important;
}
[data-theme="light"] .form-input::placeholder {
  color: #9ca3af !important;
}
[data-theme="light"] .form-label {
  color: #4b5563 !important;
}
[data-theme="light"] .form-select option {
  background: #ffffff !important;
  color: #1a1c23 !important;
}

/* ── Buttons ── */
[data-theme="light"] .btn-ghost {
  color: #4b5563;
}
[data-theme="light"] .btn-ghost:hover {
  background: #f3f4f6;
}

/* ── Modals ── */
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .wizard-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .pin-login-modal {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #1a1c23 !important;
}

/* ── Gateway / Landing ── */
[data-theme="light"] .gateway-container {
  background: linear-gradient(160deg, #f0f2f5 0%, #e4e7ed 50%, #f5f3ef 100%) !important;
}
[data-theme="light"] .gateway-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .gateway-card h3 {
  color: #111827 !important;
}
[data-theme="light"] .gateway-card p {
  color: #6b7280 !important;
}

/* ── Billing / Invoice Print ── */
[data-theme="light"] .billing-totals {
  color: #1a1c23;
}
[data-theme="light"] .billing-row-total {
  color: #111827 !important;
}

/* ── AI Copilot ── */
[data-theme="light"] .ai-copilot-panel {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}
[data-theme="light"] .ai-msg-bot {
  background: #f3f4f6 !important;
  color: #1a1c23 !important;
}
[data-theme="light"] .ai-copilot-input-area input {
  background: #f9fafb !important;
  color: #1a1c23 !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* ── Tables ── */
[data-theme="light"] table th {
  color: #6b7280;
}
[data-theme="light"] table td {
  color: #374151;
  border-bottom-color: rgba(0,0,0,0.04);
}

/* ── Status Pills ── */
[data-theme="light"] .status-pill {
  font-weight: 700;
}

/* ── Audit / Activity Trail ── */
[data-theme="light"] .card-light p,
[data-theme="light"] .card-light span {
  color: #374151;
}

/* ── Search Dropdown ── */
[data-theme="light"] .search-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}

/* ── Notifications Dropdown ── */
[data-theme="light"] .notification-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}
[data-theme="light"] .notification-dropdown .notification-item {
  border-bottom-color: rgba(0,0,0,0.04);
}

/* ── Customer Portal ── */
[data-theme="light"] .service-card,
[data-theme="light"] .portal-booking-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: #1a1c23 !important;
}
[data-theme="light"] .global-switcher-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .global-switcher-header .switcher-logo {
  color: #1a1c23 !important;
}
[data-theme="light"] .customer-portal {
  background: #f4f5f7;
  color: #1a1c23;
}
[data-theme="light"] .customer-portal h2,
[data-theme="light"] .customer-portal h3,
[data-theme="light"] .customer-portal h4 {
  color: #111827 !important;
}
[data-theme="light"] .service-card h4 {
  color: #111827 !important;
}
[data-theme="light"] .service-card p,
[data-theme="light"] .service-card span {
  color: #4b5563 !important;
}
[data-theme="light"] .cat-filter-btn {
  background: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .cat-filter-btn.active-filter {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

/* ── Gateway Page Light Mode ── */
[data-theme="light"] .gateway-wrap::before {
  background: rgba(240, 242, 245, 0.92) !important;
}
[data-theme="light"] .gateway-title {
  background: linear-gradient(135deg, #4338ca 0%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-theme="light"] .gateway-subtitle {
  color: #6b7280 !important;
}
[data-theme="light"] .gateway-logo-badge {
  background: rgba(67, 56, 202, 0.08) !important;
  color: #4338ca !important;
  border-color: rgba(67, 56, 202, 0.15) !important;
}
[data-theme="light"] .gateway-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .gateway-card h2 {
  color: #111827 !important;
}
[data-theme="light"] .gateway-card p {
  color: #6b7280 !important;
}
[data-theme="light"] .gateway-icon {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .continue-session-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #1a1c23 !important;
}
[data-theme="light"] .continue-session-card div {
  color: #374151 !important;
}
[data-theme="light"] .gateway-footer {
  color: #9ca3af !important;
}
[data-theme="light"] .orb {
  opacity: 0.3;
}

/* ── PIN Login Modal Light Mode ── */
[data-theme="light"] .pin-backdrop,
[data-theme="light"] .pin-login-backdrop {
  background: rgba(0,0,0,0.35) !important;
}
[data-theme="light"] .pin-modal,
[data-theme="light"] .pin-login-modal {
  background: #ffffff !important;
  color: #1a1c23 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .pin-modal h3,
[data-theme="light"] .pin-login-modal h3 {
  color: #111827 !important;
}
[data-theme="light"] .pin-digit-box,
[data-theme="light"] .pin-input-box {
  background: #f9fafb !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #1a1c23 !important;
}

/* ── Sign-In Form Light Mode ── */
[data-theme="light"] .signin-card,
[data-theme="light"] .customer-signin-card {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #1a1c23 !important;
}

/* ── General Form Inputs Light Mode ── */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff !important;
  color: #1a1c23 !important;
  border-color: rgba(0,0,0,0.12) !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #9ca3af !important;
}
[data-theme="light"] select option {
  background: #ffffff !important;
  color: #1a1c23 !important;
}
[data-theme="light"] label {
  color: #374151 !important;
}

/* ── Cards General Light Mode ── */
[data-theme="light"] .card,
[data-theme="light"] [class*="card"] {
  color: #1a1c23;
}

/* ── Tabs & Badges Light Mode ── */
[data-theme="light"] .btn-secondary {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .btn-secondary:hover {
  background: #e5e7eb !important;
  color: #1f2937 !important;
}

/* ── Inventory & Staff Modules ── */
[data-theme="light"] .inventory-card,
[data-theme="light"] .staff-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: #1a1c23 !important;
}

/* ── Calendar Module ── */
[data-theme="light"] .calendar-time-slot {
  background: #ffffff;
  border-color: rgba(0,0,0,0.04);
}
[data-theme="light"] .calendar-header {
  color: #111827;
}

/* ═══════════════════════════════════════════════════
   DARK MODE — Ensure proper contrast on dark cards
   ═══════════════════════════════════════════════════ */
[data-theme="dark"] .overview-title {
  color: #111 !important;
}
[data-theme="dark"] .overview-subtitle {
  color: #6a7380 !important;
}

/* Theme toggle button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gold);
  font-size: 15px;
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}
[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(0,0,0,0.10);
  color: #6366f1;
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse at 0% 0%,   hsla(239, 84%, 67%, 0.07) 0, transparent 55%),
    radial-gradient(ellipse at 100% 100%, hsla(43, 96%, 56%, 0.05) 0, transparent 55%);
  background-attachment: fixed;
}

/* ── Scrollbars ── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Selection ── */
::selection { background: var(--color-primary-glow); color: var(--text-main); }

/* ----------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 6px 0 hsla(239,84%,67%,0.2); }
  50%      { box-shadow: 0 0 20px 6px hsla(239,84%,67%,0.45); }
}
@keyframes pulseGoldGlow {
  0%,100% { box-shadow: 0 0 6px 0 hsla(43,96%,56%,0.2); }
  50%      { box-shadow: 0 0 20px 6px hsla(43,96%,56%,0.45); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -20px) scale(1.05); }
  66%      { transform: translate(-15px, 15px) scale(0.97); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.fade-in         { animation: fadeIn var(--transition-smooth) forwards; }
.fade-in-scale   { animation: fadeInScale var(--transition-smooth) forwards; }
.slide-in-right  { animation: slideInRight var(--transition-smooth) forwards; }
.shake           { animation: shake 0.4s ease; }

/* ----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.text-primary   { color: var(--color-primary); }
.text-gold      { color: var(--color-gold); }
.text-accent    { color: var(--color-accent); }
.text-success   { color: var(--color-success); }
.text-warning   { color: var(--color-warning); }
.text-danger    { color: var(--color-danger); }
.text-muted     { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-gold-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 16px hsla(239, 84%, 67%, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(239, 84%, 67%, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), hsl(38,96%,48%));
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px hsla(43, 96%, 56%, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-color-glow);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--border-gold);
}
.btn-outline-gold:hover {
  background: var(--color-gold-dim);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-danger  { background: var(--color-danger);  color: #fff; }
.btn-danger:hover  { filter: brightness(1.1); transform: translateY(-1px); }

.btn-warning { background: var(--color-warning); color: var(--text-dark); font-weight: 700; }
.btn-warning:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text-main); border-color: var(--border-color); }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------
   CARDS & GLASSMORPHISM
   ---------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover { border-color: var(--border-color-glow); }

.card-gold {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-surface), var(--color-gold-dim));
}
.card-gold:hover { box-shadow: var(--shadow-gold); }

.card-interactive {
  cursor: pointer;
  transition: var(--transition-smooth);
}
.card-interactive:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-glow);
}

/* ----------------------------------------------------------------
   FORMS & INPUTS
   ---------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group select option {
  background: var(--bg-surface-solid);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Input error state */
.input-error { border-color: var(--color-danger) !important; }
.form-error-msg {
  font-size: 11px;
  color: var(--color-danger);
  margin-top: 2px;
}

/* ── PIN Input (4 digit boxes) ── */
.pin-input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}
.pin-box {
  width: 54px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  caret-color: var(--color-gold);
  transition: var(--transition-fast);
  font-family: inherit;
  letter-spacing: 0;
}
.pin-box:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
  background: var(--bg-surface-2);
}
.pin-box.filled {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ----------------------------------------------------------------
   MODALS & OVERLAYS
   ---------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInScale var(--transition-smooth) forwards;
  position: relative;
}
.modal-content-wide { max-width: 700px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-fast);
  border-radius: var(--radius-xs);
}
.modal-close:hover { color: var(--text-main); background: var(--bg-surface-2); }
.modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ----------------------------------------------------------------
   STATUS PILLS & BADGES
   ---------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.status-approved, .status-present, .status-settled {
  background: hsla(162,76%,41%,0.15);
  color: var(--color-success);
  border: 1px solid hsla(162,76%,41%,0.3);
}
.status-pending {
  background: hsla(38,92%,50%,0.15);
  color: var(--color-warning);
  border: 1px solid hsla(38,92%,50%,0.3);
}
.status-cancelled, .status-absent, .status-rejected, .status-voided {
  background: hsla(360,84%,60%,0.12);
  color: var(--color-danger);
  border: 1px solid hsla(360,84%,60%,0.25);
}
.status-completed {
  background: hsla(239,84%,67%,0.12);
  color: var(--color-primary);
  border: 1px solid hsla(239,84%,67%,0.25);
}
.status-checkedin {
  background: hsla(200,90%,55%,0.12);
  color: var(--color-info);
  border: 1px solid hsla(200,90%,55%,0.25);
}
.status-auto-resolved {
  background: hsla(258,90%,66%,0.12);
  color: var(--color-secondary);
  border: 1px solid hsla(258,90%,66%,0.25);
}
.status-simulated {
  background: hsla(215,16%,60%,0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ── Loyalty Tier Badges ── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.tier-bronze   { background: hsla(30,60%,40%,0.20);  color: hsl(30,70%,65%);  border: 1px solid hsla(30,60%,50%,0.35); }
.tier-silver   { background: hsla(0,0%,70%,0.15);    color: hsl(0,0%,80%);    border: 1px solid hsla(0,0%,70%,0.30); }
.tier-gold     { background: hsla(43,96%,56%,0.18);  color: var(--color-gold); border: 1px solid var(--border-gold); }
.tier-platinum { background: hsla(258,90%,80%,0.15); color: hsl(258,90%,80%); border: 1px solid hsla(258,90%,80%,0.30); }

/* ── Expiry Status Badges ── */
.expiry-safe     { background: hsla(162,76%,41%,0.15); color: var(--color-success); border: 1px solid hsla(162,76%,41%,0.3); }
.expiry-soon     { background: hsla(38,92%,50%,0.15);  color: var(--color-warning); border: 1px solid hsla(38,92%,50%,0.3); }
.expiry-critical { background: hsla(25,90%,55%,0.15);  color: hsl(25,90%,65%);      border: 1px solid hsla(25,90%,55%,0.3); }
.expiry-expired  { background: hsla(360,84%,60%,0.15); color: var(--color-danger);  border: 1px solid hsla(360,84%,60%,0.3); }

/* ── Notification Badge ── */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-danger);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
}

/* ----------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.custom-table thead tr {
  background: var(--bg-surface-2);
}
.custom-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-main);
  vertical-align: middle;
}
.custom-table tbody tr {
  transition: background var(--transition-fast);
}
.custom-table tbody tr:hover {
  background: hsla(239, 84%, 67%, 0.04);
}
.custom-table tbody tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------------------------------
   SECTION HEADERS (Module titles)
   ---------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}
.section-title-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.icon-bg-primary { background: var(--color-primary-glow); color: var(--color-primary); }
.icon-bg-gold    { background: var(--color-gold-dim);     color: var(--color-gold); }
.icon-bg-accent  { background: var(--color-accent-glow);  color: var(--color-accent); }
.icon-bg-success { background: var(--color-success-glow); color: var(--color-success); }
.icon-bg-warning { background: var(--color-warning-glow); color: var(--color-warning); }
.icon-bg-danger  { background: var(--color-danger-glow);  color: var(--color-danger); }

/* ----------------------------------------------------------------
   LANDING GATEWAY
   ---------------------------------------------------------------- */
.gateway-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
  background: url("golden_salon_interior_no_text_1781611241962.png") center/cover no-repeat fixed;
}
.gateway-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 22, 0.85); /* dark overlay for readability */
  z-index: 0;
}

/* Floating background orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}
.orb-1 {
  width: 450px; height: 450px;
  top: -100px; left: -150px;
  background: hsla(239, 84%, 67%, 0.10);
  animation-delay: 0s;
}
.orb-2 {
  width: 350px; height: 350px;
  bottom: -80px; right: -100px;
  background: hsla(43, 96%, 56%, 0.08);
  animation-delay: -4s;
}
.orb-3 {
  width: 250px; height: 250px;
  top: 40%; left: 50%;
  background: hsla(330, 81%, 60%, 0.07);
  animation-delay: -8s;
}

.gateway-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.gateway-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: var(--glass-blur);
  letter-spacing: 0.04em;
}
.gateway-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--color-gold) 50%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.gateway-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.6;
  font-weight: 300;
}

.gateway-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.gateway-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.gateway-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.02));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.gateway-card:hover::before { opacity: 1; }
.gateway-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.gateway-card-customer:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px hsla(239, 84%, 67%, 0.25);
}
.gateway-card-admin:hover {
  border-color: var(--color-gold);
  box-shadow: 0 20px 60px hsla(43, 96%, 56%, 0.22);
}

.gateway-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  transition: transform var(--transition-bounce);
}
.gateway-card:hover .gateway-icon { transform: scale(1.12) rotate(-4deg); }
.gateway-icon-customer {
  background: var(--color-primary-glow);
  color: var(--color-primary);
}
.gateway-icon-admin {
  background: var(--color-gold-dim);
  color: var(--color-gold);
}
.gateway-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.gateway-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  text-align: center;
}
.gateway-card .btn { width: 100%; }

/* Continue Session Card */
.continue-session-card {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  max-width: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn var(--transition-smooth) forwards;
  transition: box-shadow var(--transition-fast);
}
.continue-session-card:hover {
  box-shadow: var(--shadow-gold);
}
.continue-session-info { display: flex; align-items: center; gap: 14px; }
.continue-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-gold-dim);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 700;
}
.continue-session-actions { display: flex; align-items: center; gap: 10px; }

.gateway-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PIN Login Modal specific */
.pin-modal-step { animation: fadeIn 0.25s forwards; }
.staff-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.staff-select-btn {
  background: var(--bg-surface-2);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.staff-select-btn:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-dim);
  color: var(--color-gold);
}
.staff-select-btn.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-dim);
  color: var(--color-gold);
}
.staff-select-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   GLOBAL ROLE SWITCHER HEADER (sticky across admin views)
   ---------------------------------------------------------------- */
.global-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: hsla(224, 28%, 9%, 0.80);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.header-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}
.header-logo-text {
  background: linear-gradient(135deg, var(--text-main), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.header-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
}
.header-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: blink 2.5s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   ADMIN SHELL (Sidebar + Main)
   ---------------------------------------------------------------- */
.admin-shell {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* ── Sidebar ── */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 12px;
  margin: 16px 0 8px;
}
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.menu-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.menu-item:hover {
  background: var(--color-primary-glow);
  color: var(--text-main);
}
.menu-item.active {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  font-weight: 600;
}
.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}
.menu-item.active-gold {
  background: var(--color-gold-dim);
  color: var(--color-gold);
  font-weight: 600;
}
.menu-item.active-gold::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--color-gold);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-version {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px;
}

/* ── Main Content Area ── */
.admin-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-top-bar {
  background: var(--bg-surface-solid);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
}

/* ── Search ── */
.search-wrapper {
  position: relative;
  width: 300px;
}
.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}
.search-wrapper input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 40px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}
.search-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.search-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-sm);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.search-section-title {
  padding: 6px 14px;
  background: var(--bg-surface-2);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.search-result-row {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}
.search-result-row:hover { background: var(--color-primary-glow); }

/* ── Header Actions ── */
.top-bar-actions { display: flex; align-items: center; gap: 14px; }
.notification-bell {
  position: relative;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition-fast);
  background: var(--bg-surface-2);
}
.notification-bell:hover {
  background: var(--color-primary-glow);
  color: var(--text-main);
}
.notification-bell .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
}
.notifications-dropdown {
  position: absolute;
  top: 56px;
  right: 24px;
  width: 340px;
  z-index: 1100;
  animation: fadeIn 0.2s forwards;
}
.notif-item {
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  border-left: 3px solid transparent;
  transition: background var(--transition-fast);
  margin-bottom: 6px;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { border-left-color: var(--color-primary); background: var(--color-primary-glow); }

/* ── Admin Content ── */
.admin-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* ----------------------------------------------------------------
   DASHBOARD OVERVIEW — KPI STAT CARDS
   ---------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.02));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.stat-card:hover::after { opacity: 1; }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card:hover.stat-gold { border-color: var(--color-gold); box-shadow: var(--shadow-gold); }
.stat-card:hover.stat-primary { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.stat-card:hover.stat-accent  { border-color: var(--color-accent); }
.stat-card:hover.stat-success { border-color: var(--color-success); }

.stat-info h4 { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.stat-info .stat-value { font-size: 30px; font-weight: 800; line-height: 1; }
.stat-info .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-gold    .stat-icon { background: var(--color-gold-dim);     color: var(--color-gold); }
.stat-primary .stat-icon { background: var(--color-primary-glow); color: var(--color-primary); }
.stat-accent  .stat-icon { background: var(--color-accent-glow);  color: var(--color-accent); }
.stat-success .stat-icon { background: var(--color-success-glow); color: var(--color-success); }
.stat-warning .stat-icon { background: var(--color-warning-glow); color: var(--color-warning); }
.stat-danger  .stat-icon { background: var(--color-danger-glow);  color: var(--color-danger); }

/* ── Two-column layout for overview ── */
.overview-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
.col-stack { display: flex; flex-direction: column; gap: 20px; }

/* ----------------------------------------------------------------
   APPOINTMENTS CALENDAR
   ---------------------------------------------------------------- */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.calendar-nav-date { font-size: 18px; font-weight: 700; }
.calendar-grid-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.calendar-staff-header {
  display: grid;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}
.calendar-staff-col {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-right: 1px solid var(--border-color);
}
.calendar-body { max-height: 560px; overflow-y: auto; }
.calendar-row {
  display: grid;
  border-bottom: 1px solid var(--border-color-light);
  min-height: 60px;
}
.calendar-time-cell {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-surface-2);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 70px;
}
.calendar-slot {
  border-right: 1px solid var(--border-color-light);
  padding: 6px;
  transition: background var(--transition-fast);
}
.calendar-slot:hover { background: hsla(239,84%,67%,0.03); }
.appt-block {
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-fast);
  overflow: hidden;
  line-height: 1.3;
}
.appt-block:hover { transform: scale(1.02); box-shadow: var(--shadow-sm); }
.appt-approved { background: hsla(162,76%,41%,0.18); border-left: 3px solid var(--color-success); color: var(--color-success); }
.appt-pending  { background: hsla(38,92%,50%,0.18);  border-left: 3px solid var(--color-warning); color: var(--color-warning); }
.appt-cancelled{ background: hsla(360,84%,60%,0.10); border-left: 3px solid var(--color-danger);  color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.appt-completed{ background: hsla(239,84%,67%,0.15); border-left: 3px solid var(--color-primary); color: var(--color-primary); }

/* Approval queue side panel */
.approval-panel { display: flex; flex-direction: column; gap: 12px; }
.approval-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 14px;
  background: var(--bg-surface);
  transition: var(--transition-fast);
}
.approval-item:hover { border-color: var(--color-warning); background: var(--bg-hover); }
.approval-item-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ----------------------------------------------------------------
   BILLING POS
   ---------------------------------------------------------------- */
.billing-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 22px;
  align-items: start;
}
.pos-cart {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}
.cart-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto 36px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color-light);
  font-size: 13px;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: rgba(255,255,255,0.01); }
.remove-item-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.remove-item-btn:hover { background: var(--color-danger-glow); color: var(--color-danger); }

.billing-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.summary-row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-gold);
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--border-color);
}
.summary-row.discount { color: var(--color-success); }

/* Payment method selector */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.payment-btn {
  padding: 10px 8px;
  background: var(--bg-surface-2);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.payment-btn:hover { border-color: var(--color-gold); color: var(--color-gold); background: var(--color-gold-dim); }
.payment-btn.selected { border-color: var(--color-gold); color: var(--color-gold); background: var(--color-gold-dim); }

/* ----------------------------------------------------------------
   CUSTOMER PORTAL
   ---------------------------------------------------------------- */
.customer-portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
}
.customer-hero {
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    hsla(239,84%,67%,0.12) 0%,
    hsla(43,96%,56%,0.08) 100%);
  border: 1px solid var(--border-color);
}
.customer-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: hsla(43,96%,56%,0.08);
  border-radius: 50%;
  filter: blur(40px);
}
.portal-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-2);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  width: fit-content;
}
.portal-tab {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: inherit;
}
.portal-tab:hover { color: var(--text-main); }
.portal-tab.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}
.service-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}
.service-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.service-price { font-size: 22px; font-weight: 800; color: var(--color-gold); }
.service-duration { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Category filter pills */
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-filter-btn {
  padding: 6px 16px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}
.cat-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cat-filter-btn.active {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ----------------------------------------------------------------
   CRM PROFILES
   ---------------------------------------------------------------- */
.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-glow);
  border: 1.5px solid var(--border-color-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   INVENTORY
   ---------------------------------------------------------------- */
.stock-bar-wrap { background: var(--bg-main); border-radius: var(--radius-full); height: 6px; overflow: hidden; width: 100px; }
.stock-bar { height: 100%; border-radius: var(--radius-full); transition: width 0.5s ease; }
.stock-high   { background: var(--color-success); }
.stock-medium { background: var(--color-warning); }
.stock-low    { background: var(--color-danger); animation: pulseGlow 1.5s infinite; }

/* ----------------------------------------------------------------
   ACTIVITY TRAIL
   ---------------------------------------------------------------- */
.trail-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color-light);
  transition: background var(--transition-fast);
}
.trail-item:hover { background: rgba(255,255,255,0.01); }
.trail-item:last-child { border-bottom: none; }
.trail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.trail-connector {
  width: 1px;
  background: var(--border-color);
  flex-shrink: 0;
  margin: 0 4px;
}
.trail-module-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* ----------------------------------------------------------------
   AI COPILOT
   ---------------------------------------------------------------- */
.ai-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 1400;
  transition: var(--transition-bounce);
  border: none;
}
.ai-fab:hover { transform: scale(1.12) rotate(10deg); box-shadow: 0 0 32px hsla(239,84%,67%,0.55); }

.ai-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 370px;
  height: 480px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1400;
  animation: fadeInScale 0.25s forwards;
}
.ai-panel-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-panel-header h4 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  animation: fadeIn 0.2s forwards;
}
.ai-msg-bot { background: var(--bg-surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg-user { background: var(--color-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.ai-chip {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}
.ai-chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-glow); }

.ai-input-row {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}
.ai-input-row input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}
.ai-input-row input:focus { border-color: var(--color-primary); }
.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.ai-send-btn:hover { background: var(--color-primary-dark); transform: scale(1.08); }

/* ----------------------------------------------------------------
   STAFF PERFORMANCE
   ---------------------------------------------------------------- */
.staff-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.staff-card:hover { border-color: var(--color-primary); background: var(--bg-hover); }
.staff-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--color-primary-glow);
  color: var(--color-primary);
}
.working-day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-surface-2);
  color: var(--text-dim);
  transition: var(--transition-fast);
}
.working-day-pill.active { background: var(--color-success-glow); color: var(--color-success); }

/* ----------------------------------------------------------------
   SETUP WIZARD
   ---------------------------------------------------------------- */
.wizard-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.wizard-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.wizard-steps-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.wizard-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.wizard-step-item.done::after  { background: var(--color-primary); }
.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  transition: var(--transition-fast);
}
.wizard-step-item.active .wizard-step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}
.wizard-step-item.done .wizard-step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.wizard-step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.04em;
}
.wizard-step-item.active .wizard-step-label { color: var(--color-primary); }
.wizard-step-item.done  .wizard-step-label  { color: var(--text-muted); }

.wizard-body { animation: fadeIn 0.3s forwards; }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ── Repeatable entry rows (wizard) ── */
.repeatable-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color var(--transition-fast);
}
.repeatable-item:hover { border-color: var(--border-color-glow); }
.repeatable-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}
.repeatable-remove:hover { color: var(--color-danger); }

/* ── Standalone form element classes (for wizard use outside .form-group) ── */
.form-input,
.form-select {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.form-input::placeholder { color: var(--text-dim); }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-select option { background: var(--bg-surface-solid); color: var(--text-main); }

/* ── Wizard card scroll + responsive ── */
.wizard-card { max-height: 90vh; overflow-y: auto; }
.wizard-card::-webkit-scrollbar { width: 6px; }
.wizard-card::-webkit-scrollbar-track { background: transparent; }
.wizard-card::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 9999px; }
.wizard-card::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

@media (max-width: 680px) {
  .wizard-card { padding: 24px 16px; }
  .wizard-step-label { display: none; }
}

/* ----------------------------------------------------------------
   PRINT STYLES — Invoice
   ---------------------------------------------------------------- */
@media print {
  body * { visibility: hidden; }
  #print-invoice-area,
  #print-invoice-area * { visibility: visible; }
  #print-invoice-area {
    position: absolute;
    left: 0; top: 0; width: 100%;
    background: #fff !important;
    color: #000 !important;
    padding: 30px !important;
  }
  .print-hide { display: none !important; }
}
.invoice-print-wrapper {
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  padding: 32px;
  border: 1px solid #e0e0e0;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
}
.invoice-print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #222;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.invoice-print-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.invoice-print-table th {
  border-bottom: 1px solid #555;
  padding: 8px;
  text-align: left;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.invoice-print-table td {
  border-bottom: 1px solid #eee;
  padding: 9px 8px;
  color: #333;
  font-size: 13px;
}
.invoice-print-totals { text-align: right; margin-top: 12px; }
.invoice-print-grand { font-size: 18px; font-weight: 800; color: #111; }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .overview-grid { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 200px; }
  .billing-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .sidebar-menu { flex-direction: row; }
  .menu-item { padding: 8px 12px; font-size: 12px; }
  .gateway-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .search-wrapper { width: 180px; }
}

/* ----------------------------------------------------------------
   UTILITY HELPERS
   ---------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-0  { padding: 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border-color); margin: 16px 0; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--text-muted);
  text-align: center;
}
.empty-state i { font-size: 40px; opacity: 0.4; }
.empty-state p  { font-size: 14px; max-width: 280px; line-height: 1.6; }

/* ----------------------------------------------------------------
   POS DASHBOARD - REFERENCE DESIGN REPLICA (Light grey + Dark/Light card grid + gold)
   ---------------------------------------------------------------- */

/* Outer Shell layout override */
.admin-shell {
  background: #0d0e10 !important; /* Pure dark/black background for the app bezel */
  height: calc(100vh - 56px);
}

/* Redefine sidebar width variables for narrow rail sidebar */
:root {
  --sidebar-width: 80px !important;
}

/* Sleek vertical Rail sidebar styles */
.admin-sidebar {
  background: #0a0b0d !important;
  border-right: none !important;
  padding: 24px 0 !important;
  align-items: center;
  gap: 16px;
  overflow: visible !important;
  z-index: 100 !important;
}

.admin-sidebar > div,
.admin-sidebar .sidebar-menu {
  overflow: visible !important;
}

.admin-sidebar .sidebar-section-label,
.admin-sidebar .sidebar-version {
  display: none !important;
}

.admin-sidebar .sidebar-menu {
  width: 100%;
  align-items: center;
}

.admin-sidebar .menu-item {
  font-size: 0 !important; /* Hide label text */
  justify-content: center !important;
  padding: 0 !important;
  width: 48px !important;
  height: 48px !important;
  margin: 6px auto !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #555c66 !important;
  transition: all var(--transition-fast) !important;
}

.admin-sidebar .menu-item i {
  font-size: 19px !important;
  margin: 0 !important;
}

.admin-sidebar .menu-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--color-gold) !important;
}

.admin-sidebar .menu-item.active {
  background: #191b1f !important;
  color: var(--color-gold) !important;
}

.admin-sidebar .menu-item.active::before {
  display: none !important; /* Remove sidebar line indicator */
}

.admin-sidebar .sidebar-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: auto;
  padding-top: 16px !important;
}

/* Framed light-grey content area */
.admin-main-container {
  background: #e4e7eb !important; /* Soft grey background exactly like the image */
  margin: 12px 12px 12px 0 !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.admin-top-bar {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0 16px 0 !important;
  min-height: auto !important;
}

.admin-top-bar .search-wrapper input {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #111 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.admin-top-bar .search-wrapper input::placeholder {
  color: #8c96a3 !important;
}

.admin-top-bar .search-wrapper i {
  color: #8c96a3 !important;
}

.admin-top-bar .top-bar-actions .notification-bell {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

/* Global header dark mode contrast adjustment */
.global-header {
  background: #090a0c !important;
  border-bottom: 1px solid #141619 !important;
}

/* Dashboard replica layout grid */
.overview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.overview-title {
  font-size: 26px;
  font-weight: 800;
  color: #111 !important;
  letter-spacing: -0.02em;
}

.overview-subtitle {
  font-size: 13px;
  color: #6a7380 !important;
  margin-top: 2px;
}

.overview-tabs {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 10px;
}

.overview-tab {
  font-size: 12.5px;
  font-weight: 600;
  color: #6a7380;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.overview-tab.active {
  background: #ffffff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.overview-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 20px;
  align-items: start;
}

/* Card overrides for the new dashboard grid */
.card-dark {
  background: #151718 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  border-radius: 20px !important;
  padding: 20px !important;
}

.card-light {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  border-radius: 20px !important;
  padding: 20px !important;
}

/* Column 1 (Left) items */
.overview-col-1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.update-card {
  position: relative;
  overflow: hidden;
}

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

.update-tag {
  background: var(--color-gold-glow);
  color: var(--color-gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  letter-spacing: 0.05em;
}

.arrow-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: #FFF;
}

.arrow-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.arrow-icon.dark {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

.arrow-icon.dark:hover {
  background: rgba(0, 0, 0, 0.08);
}

.update-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  text-align: center;
}

.update-illustration {
  margin-bottom: 15px;
}

.update-text {
  width: 100%;
  text-align: left;
}

.update-period {
  font-size: 11px;
  color: #8c96a3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.update-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.4;
}

/* Calendar Card specific styling */
.calendar-card {
  display: flex;
  flex-direction: column;
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-card-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.calendar-add-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #8c96a3;
  margin-bottom: 8px;
  font-weight: 600;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
  text-align: center;
}

.calendar-day {
  font-size: 11.5px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-day.prev-month,
.calendar-day.next-month {
  color: #555c66;
}

.calendar-day.current-month {
  color: #ffffff;
}

.calendar-day.active-today {
  background: var(--color-gold);
  color: #111 !important;
  font-weight: 800;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  margin: 0 auto;
}

/* Column 2 (Middle) items */
.overview-col-2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grooming-card {
  min-height: 500px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.card-subtitle {
  font-size: 11.5px;
  color: #6a7380;
  margin-top: 2px;
}

.card-header-actions {
  display: flex;
  gap: 8px;
}

.time-filter {
  font-size: 11px;
  font-weight: 700;
  color: #6a7380;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.time-filter.active {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

.grooming-table-container {
  overflow-x: auto;
}

.grooming-table {
  width: 100%;
  border-collapse: collapse;
}

.grooming-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: #8c96a3;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.grooming-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  vertical-align: middle;
}

.client-info-cell {
  display: flex;
  flex-direction: column;
}

.client-info-cell strong {
  font-size: 13.5px;
  color: #111;
}

.client-info-cell span {
  font-size: 10.5px;
  color: #8c96a3;
  margin-top: 1px;
}

.date-info-cell {
  display: flex;
  flex-direction: column;
}

.date-info-cell span:first-child {
  font-size: 12.5px;
  color: #111;
  font-weight: 500;
}

.date-info-cell span:last-child {
  font-size: 10.5px;
  color: #8c96a3;
}

.glow-up-tag {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #111;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amount-tag {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
}

/* Column 3 (Right) items */
.overview-col-3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.performance-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.perf-stat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.perf-stat:last-child {
  border-right: none;
}

.perf-stat strong {
  font-size: 15px;
  font-weight: 800;
  color: #111;
}

.perf-stat span {
  font-size: 9px;
  color: #8c96a3;
  text-transform: uppercase;
  margin-top: 2px;
}

.expenses-chart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.expenses-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8c96a3;
}

.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-item .dot.gold { background: var(--color-gold); }
.legend-item .dot.gold-light { background: var(--color-gold-light); }
.legend-item .dot.dark { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 1200px) {
  .overview-layout-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    width: 100% !important;
    height: auto !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px !important;
  }
  .admin-sidebar .sidebar-menu {
    flex-direction: row !important;
    justify-content: center !important;
    width: auto !important;
  }
  .admin-sidebar .menu-item {
    margin: 0 4px !important;
  }
  .admin-main-container {
    margin: 12px !important;
  }
}

/* Header contrast safeguards for other admin modules */
.admin-main-container h2,
.admin-main-container > div > h2,
.admin-main-container .admin-content > h2,
.admin-main-container .admin-content > div > h2,
.admin-main-container .admin-content > div > div > h2 {
  color: #111111 !important;
}
.admin-main-container h2 i,
.admin-main-container > div > h2 i,
.admin-main-container .admin-content > h2 i {
  color: var(--color-gold) !important; /* Force icons in headers to use gold accent to match landing page wallpaper aesthetics */
}

/* ── Background & Tooltip overrides ── */
body.customer-portal-active,
body.gateway-active {
  background: url("golden_salon_interior_no_text_1781611241962.png") center/cover no-repeat fixed !important;
  position: relative;
}

body.customer-portal-active::before,
body.gateway-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 22, 0.88) !important; /* Premium dark luxury overlay */
  z-index: -1;
}

/* Tooltip styling for sidebar rail items */
.admin-sidebar .menu-item {
  position: relative !important;
}

.admin-sidebar .menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 68px; /* Position to the right of the rail item */
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  background: #151718;
  color: #ffffff;
  font-size: 11px !important;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 99999;
}

.admin-sidebar .menu-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}


