/* ══════════════════════════════════════════════════════════════════════════
   BarberBook Enterprise design system
   Loaded after Bootstrap 5 by every layout. Tokens → base → Bootstrap theme →
   app shell (console + customer) → components → pages.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink: #0f172a;            /* brand navy / sidebar */
  --ink-2: #1e293b;
  --ink-3: #334155;
  --accent: #f59e0b;         /* brand amber */
  --accent-600: #d97706;
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --brand-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #3b2a0b 130%);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --success: #059669; --success-50: #ecfdf5;
  --info: #2563eb;    --info-50: #eff6ff;
  --warning: #b45309; --warning-50: #fffbeb;
  --danger: #dc2626;  --danger-50: #fef2f2;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .25);
  --shadow-accent: 0 6px 16px -6px rgba(245, 158, 11, .55);
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Bootstrap variables */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-primary: #0f172a; --bs-primary-rgb: 15, 23, 42;
  --bs-warning: #f59e0b; --bs-warning-rgb: 245, 158, 11;
  --bs-link-color: #b45309; --bs-link-color-rgb: 180, 83, 9;
  --bs-link-hover-color: #92400e;
}

/* ── base ───────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 14.5px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .82rem; }
a { text-decoration: none; }
::selection { background: var(--accent-100); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 3px solid rgba(245, 158, 11, .45); outline-offset: 2px; }

/* ── Bootstrap theme ────────────────────────────────────────────────────── */
.card { border: 1px solid var(--line) !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-xs) !important; background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-footer { background: var(--line-2); border-top: 1px solid var(--line); }

.btn { font-weight: 600; border-radius: var(--radius); padding: .55rem 1rem; font-size: .9rem; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .38rem .75rem; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn-accent, .btn-warning { background: var(--accent); border: 1px solid var(--accent); color: #fff !important; box-shadow: var(--shadow-accent); }
.btn-accent:hover, .btn-warning:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-primary, .btn-dark { background: var(--ink); border: 1px solid var(--ink); color: #fff; box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .5); }
.btn-primary:hover, .btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-outline-accent { border: 1.5px solid var(--accent); color: var(--accent-600); background: #fff; }
.btn-outline-accent:hover { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-600); }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .btn-light { border: 1.5px solid var(--line); color: var(--text-2); background: #fff; }
.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-dark:hover, .btn-light:hover { background: var(--line-2); color: var(--text); border-color: #cbd5e1; }
.btn-outline-danger { border: 1.5px solid #fecaca; color: var(--danger); background: #fff; }
.btn-outline-danger:hover { background: var(--danger-50); color: #b91c1c; border-color: #fca5a5; }
.btn-danger { background: var(--danger); border-color: var(--danger); box-shadow: 0 4px 10px -4px rgba(220, 38, 38, .5); }
.btn-success { background: var(--success); border-color: var(--success); box-shadow: 0 4px 10px -4px rgba(5, 150, 105, .5); }
.btn-outline-success { border: 1.5px solid #a7f3d0; color: var(--success); background: #fff; }
.btn-outline-success:hover { background: var(--success-50); color: #047857; }
.btn-link { color: var(--accent-600); font-weight: 600; }

.form-label, label.form-label { font-size: .78rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: var(--radius); padding: .6rem .85rem; font-size: .92rem; background-color: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.form-control-lg, .form-select-lg { padding: .75rem 1rem; font-size: 1rem; border-radius: 14px; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); border-color: var(--accent); }
.form-text { color: var(--muted); }
.input-group-text { background: var(--line-2); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.invalid-feedback, .field_with_errors .form-control { color: var(--danger); }
.field_with_errors .form-control { border-color: #fca5a5; }

.table { --bs-table-bg: transparent; margin-bottom: 0; color: var(--text-2); }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--line-2); vertical-align: middle; }
.table th, .table thead th { font-size: .72rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) !important; background: #f8fafc; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table-hover tbody tr:hover > *, .table tbody tr:hover > * { background: #fafbfd; }
.table td { font-size: .9rem; }
.table-responsive { border-radius: var(--radius-lg); }
.card > .table-responsive:first-child, .card > .table:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .38em .75em; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending, .status-pending { background: var(--warning-50) !important; color: var(--warning) !important; box-shadow: inset 0 0 0 1px #fde68a; }
.badge-confirmed, .status-confirmed { background: var(--info-50) !important; color: var(--info) !important; box-shadow: inset 0 0 0 1px #bfdbfe; }
.badge-completed, .status-completed { background: var(--success-50) !important; color: var(--success) !important; box-shadow: inset 0 0 0 1px #a7f3d0; }
.badge-cancelled, .status-cancelled { background: var(--danger-50) !important; color: var(--danger) !important; box-shadow: inset 0 0 0 1px #fecaca; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }

.alert { border: 1px solid transparent; border-radius: var(--radius); font-size: .9rem; display: flex; align-items: flex-start; gap: .6rem; box-shadow: var(--shadow-xs); }
.alert-success { background: var(--success-50); border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-50); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--info-50); border-color: #bfdbfe; color: #1e40af; }
.alert .btn-close { margin-left: auto; padding: .9rem; }

.nav-pills .nav-link { border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: .85rem; }
.nav-pills .nav-link.active { background: var(--ink); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; font-size: .9rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; color: var(--text-2); display: flex; align-items: center; gap: .55rem; }
.dropdown-item:hover { background: var(--line-2); color: var(--text); }
.dropdown-item i { width: 16px; color: var(--muted); }
.modal-content { border: 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.pagination .page-link { border-radius: 10px !important; margin: 0 2px; border: 1px solid var(--line); color: var(--text-2); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); }
.list-group-item { border-color: var(--line-2); }
.progress { border-radius: 999px; background: var(--line-2); }
.progress-bar { background: var(--accent); }
.rating-stars, .text-warning { color: #f59e0b !important; }
hr { border-color: var(--line); opacity: 1; }

/* ── console shell (admin / barber / organization) ──────────────────────── */
.console { min-height: 100vh; }
.c-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--ink); color: #cbd5e1; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.c-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff; }
.c-brand:hover { color: #fff; }
.c-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #f59e0b, #d97706); display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: var(--shadow-accent); flex-shrink: 0; }
.c-brand b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.c-brand b span { color: var(--accent); }
.c-brand small { display: block; font-size: .72rem; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.c-nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; }
.c-section { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; padding: 1rem .75rem .4rem; }
.c-link { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; margin: 2px 0; border-radius: 10px; color: #cbd5e1; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; position: relative; }
.c-link i { width: 18px; text-align: center; color: #94a3b8; font-size: .95rem; transition: color .15s; }
.c-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.c-link:hover i { color: #e2e8f0; }
.c-link.active { background: rgba(245, 158, 11, .14); color: #fff; font-weight: 600; }
.c-link.active i { color: var(--accent); }
.c-link.active::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.c-user { padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: .7rem; }
.c-user .avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(245, 158, 11, .18); color: var(--accent); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.c-user b { display: block; color: #fff; font-size: .85rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.c-user small { color: #94a3b8; font-size: .72rem; }
.c-user .signout { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #94a3b8; background: rgba(255, 255, 255, .05); }
.c-user .signout:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.c-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.c-topbar { height: var(--topbar-h); position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem; }
.c-topbar .menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.c-crumbs { display: flex; flex-direction: column; min-width: 0; }
.c-crumbs small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.c-crumbs h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.c-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line-2); color: var(--text-2); border: 1px solid var(--line); }
.c-chip.role { background: var(--accent-50); color: var(--accent-600); border-color: #fde68a; }
.c-iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text-2); display: grid; place-items: center; }
.c-iconbtn:hover { background: var(--line-2); color: var(--text); }
.c-profile { display: flex; align-items: center; gap: .55rem; padding: .25rem .35rem .25rem .25rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.c-profile .avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.c-profile span { font-size: .85rem; font-weight: 600; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-content { padding: 1.75rem; flex: 1; width: 100%; max-width: 1440px; }
.c-footer { padding: 1rem 1.75rem 1.5rem; color: var(--muted-2); font-size: .75rem; }
.c-backdrop { display: none; }

@media (max-width: 991.98px) {
  .c-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .console.nav-open .c-sidebar { transform: none; }
  .console.nav-open .c-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1030; }
  .c-main { margin-left: 0; }
  .c-topbar { padding: 0 1rem; }
  .c-topbar .menu-btn { display: grid; place-items: center; }
  .c-content { padding: 1.1rem; }
  .c-profile span, .c-chip.hide-sm { display: none; }
}

/* ── page header & building blocks ──────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h2 { font-size: 1.5rem; margin: 0; }
.page-head p { color: var(--muted); margin: .25rem 0 0; font-size: .9rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem 1.2rem; box-shadow: var(--shadow-xs); height: 100%; display: flex; gap: 1rem; align-items: flex-start; transition: box-shadow .15s, transform .15s; }
.kpi:hover { box-shadow: var(--shadow-md); }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.kpi .kpi-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.kpi .kpi-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.15; margin-top: .15rem; }
.kpi .kpi-sub { font-size: .75rem; color: var(--muted-2); margin-top: .2rem; }
.tone-amber { background: var(--accent-50); color: var(--accent-600); }
.tone-blue { background: var(--info-50); color: var(--info); }
.tone-green { background: var(--success-50); color: var(--success); }
.tone-red { background: var(--danger-50); color: var(--danger); }
.tone-slate { background: var(--line-2); color: var(--ink-3); }
.tone-violet { background: #f5f3ff; color: #7c3aed; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 1rem; margin: 0; }
.panel-head p { margin: 0; font-size: .8rem; color: var(--muted); }
.panel-body { padding: 1.25rem; }
.panel .table th { background: #f8fafc; }

.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: .85rem; }
.toolbar .search input { padding-left: 2.2rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state .icon { width: 64px; height: 64px; border-radius: 18px; background: var(--line-2); color: var(--muted-2); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.empty-state h4 { font-size: 1rem; color: var(--text); margin-bottom: .35rem; }

.avatar-sm, .avatar-md, .avatar-circle { border-radius: 12px !important; display: grid !important; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar-md, .avatar-circle { width: 44px !important; height: 44px !important; font-size: 1rem !important; }
.salon-avatar { border-radius: 18px !important; box-shadow: var(--shadow-sm); }
.person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.person b { display: block; font-size: .88rem; color: var(--text); font-weight: 600; }
.person small { color: var(--muted); }

.stepper { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.stepper .step { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.stepper .step.done { background: var(--accent); }

.time-slot-btn { border: 1.5px solid var(--line) !important; border-radius: 10px !important; padding: .55rem .9rem !important; font-weight: 600; font-size: .85rem !important; background: #fff; color: var(--text-2); transition: all .15s; }
.time-slot-btn:hover { border-color: var(--accent) !important; color: var(--accent-600); background: var(--accent-50) !important; }
.time-slot-btn.selected, .btn-check:checked + .time-slot-btn { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; box-shadow: var(--shadow-accent); }

.section-title { font-size: 1.5rem !important; font-weight: 800 !important; letter-spacing: -.03em; }

/* ── customer app ───────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { height: 68px; display: flex; align-items: center; gap: 1.5rem; }
.site-brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.site-brand:hover { color: var(--text); }
.site-brand .c-logo { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
.site-brand span { color: var(--accent); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { padding: .45rem .8rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.site-nav a:hover { background: var(--line-2); color: var(--text); }
.site-nav a.active { color: var(--accent-600); background: var(--accent-50); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.site-main { min-height: calc(100vh - 68px - 220px); }
.site-footer { background: var(--ink); color: #94a3b8; margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .88rem; }
.site-footer h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer a { color: #cbd5e1; display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .78rem; }
.bottom-tabs { display: none; }
@media (max-width: 767.98px) {
  .site-nav, .site-actions .hide-sm { display: none !important; }
  .site-header .inner { height: 60px; }
  .bottom-tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
  .bottom-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted-2); padding: .25rem 0; }
  .bottom-tabs a i { font-size: 1.1rem; }
  .bottom-tabs a.active { color: var(--accent-600); }
  body.has-tabs { padding-bottom: 72px; }
  .site-footer { margin-bottom: 0; }
}

.hero { background: var(--brand-grad) !important; padding: 72px 0 !important; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .28), transparent 65%); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem) !important; font-weight: 800 !important; letter-spacing: -.04em; color: #fff; }
.hero .accent { color: var(--accent) !important; }
.salon-card { transition: transform .18s, box-shadow .18s, border-color .18s !important; }
.salon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; border-color: #cbd5e1 !important; }
.chip-service { display: inline-flex; align-items: center; gap: .35rem; background: var(--line-2); color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .72rem; font-weight: 600; margin: 0 .25rem .35rem 0; }

/* ── auth (split screen) ────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-brand { background: var(--brand-grad); color: #fff; padding: 3.5rem 4rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; width: 560px; height: 560px; right: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .3), transparent 65%); }
.auth-brand h2 { color: #fff; font-size: 2.4rem; line-height: 1.12; letter-spacing: -.04em; max-width: 470px; margin: 0 0 1rem; }
.auth-brand p.lead { color: #cbd5e1; font-size: 1rem; max-width: 460px; }
.auth-feature { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.15rem; max-width: 440px; position: relative; z-index: 1; }
.auth-feature i { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.auth-feature b { display: block; color: #fff; font-size: .95rem; }
.auth-feature span { color: #94a3b8; font-size: .85rem; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 3rem max(2.5rem, calc((100% - 420px) / 2)); }
.auth-form h1 { font-size: 1.8rem; letter-spacing: -.03em; margin-bottom: .35rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-form .divider { display: flex; align-items: center; gap: .75rem; color: var(--muted-2); font-size: .78rem; margin: 1.5rem 0; }
.auth-form .divider::before, .auth-form .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { background: var(--line-2); border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: .9rem 1rem; font-size: .8rem; color: var(--text-2); }
.demo-box button { border: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font-size: .75rem; font-weight: 600; color: var(--text-2); margin: .25rem .25rem 0 0; }
.demo-box button:hover { border-color: var(--accent); color: var(--accent-600); }
@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 2rem 1.5rem; }
  .auth-brand h2 { font-size: 1.6rem; }
  .auth-brand .auth-feature, .auth-brand .lead-extra { display: none; }
  .auth-form { padding: 2rem 1.5rem 3rem; }
}

/* ── utilities ──────────────────────────────────────────────────────────── */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.text-accent { color: var(--accent-600) !important; }
.bg-ink { background: var(--ink) !important; color: #fff; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.gap-tight { gap: .4rem; }
.fade-up { animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { transform: translateY(6px); } to { transform: none; } }

/* role picker on sign up */
.role-option { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all .15s; height: 100%; }
.role-option i { color: var(--muted); font-size: 1.1rem; margin-bottom: .2rem; }
.role-option b { font-size: .92rem; }
.role-option small { color: var(--muted); font-size: .76rem; }
.btn-check:checked + .role-option { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.btn-check:checked + .role-option i { color: var(--accent-600); }

/* Devise default views inside the auth frame */
.devise-default h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.devise-default .field { margin-bottom: 1rem; }
.devise-default label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.devise-default input[type=email], .devise-default input[type=password], .devise-default input[type=text] { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; font-size: .95rem; }
.devise-default input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.devise-default input[type=submit] { width: 100%; background: var(--ink); color: #fff; border: 0; border-radius: 14px; padding: .8rem; font-weight: 600; margin-top: .5rem; }
.devise-default a { display: inline-block; margin: .75rem .75rem 0 0; font-size: .85rem; font-weight: 600; color: var(--accent-600); }
.devise-default #error_explanation { background: var(--danger-50); border: 1px solid #fecaca; color: #991b1b; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .85rem; }
.devise-default #error_explanation h2 { font-size: .9rem; margin: 0 0 .35rem; }

/* ── fixes after first review ───────────────────────────────────────────── */
.site-brand { gap: .55rem; }
.site-brand .word { display: inline; }
.site-brand .word em { font-style: normal; color: var(--accent); }
.salon-avatar { width: 64px !important; height: 64px !important; min-width: 64px; display: grid !important; place-items: center; color: #fff; font-size: 1.6rem !important; font-weight: 800; }
.stat-card { border-left: 3px solid var(--accent) !important; }
@media (max-width: 991.98px) {
  .auth-brand { padding: 1.1rem 1.5rem; min-height: 0; }
  .auth-brand h2, .auth-brand > small { display: none; }
  .auth-brand > div { display: none; }
}

/* ── bar chart (pure CSS) ───────────────────────────────────────────────── */
.bar-chart { display: flex; align-items: flex-end; gap: .75rem; height: 220px; padding: 1.5rem .25rem 0; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .4rem; min-width: 0; }
.bar { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #fcd34d, #f59e0b); opacity: .55; transition: opacity .15s; }
.bar-col.is-last .bar, .bar-col:hover .bar { opacity: 1; }
.bar-val { font-size: .72rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.bar-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.min-w-0 { min-width: 0; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .35rem; }

/* ── schedule timeline ──────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .85rem; position: relative; }
.timeline .time { width: 52px; flex-shrink: 0; text-align: right; font-size: .78rem; font-weight: 700; color: var(--text-2); padding-top: .7rem; }
.timeline li::after { content: ""; position: absolute; left: 57px; top: .95rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline .slot-card { flex: 1; margin-left: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; position: relative; transition: box-shadow .15s, border-color .15s; }
.timeline .slot-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.timeline .slot-card b { font-size: .9rem; }
.quick-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-2); font-weight: 600; font-size: .88rem; transition: all .15s; }
.quick-link i:first-child { width: 30px; height: 30px; border-radius: 9px; background: var(--line-2); color: var(--ink-3); display: grid; place-items: center; font-size: .85rem; }
.quick-link:hover { border-color: #fde68a; background: var(--accent-50); color: var(--text); }
.quick-link:hover i:first-child { background: #fff; color: var(--accent-600); }
.quick-link .fa-chevron-right { color: var(--muted-2); }

/* ── salon search ───────────────────────────────────────────────────────── */
.search-band { background: var(--brand-grad); padding: 2.75rem 0 2.25rem; position: relative; overflow: hidden; }
.search-band::after { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .25), transparent 65%); }
.search-band .container { position: relative; z-index: 1; }
.search-band h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .35rem 0 .5rem; letter-spacing: -.03em; }
.search-band p { color: #cbd5e1; margin-bottom: 1.25rem; }
.search-box { display: flex; gap: .5rem; background: #fff; border-radius: 16px; padding: .5rem; box-shadow: var(--shadow-lg); max-width: 860px; }
.search-box .field { display: flex; align-items: center; gap: .55rem; padding: 0 .85rem; border-radius: 12px; min-width: 0; }
.search-box .field.grow { flex: 1; }
.search-box .field + .field { border-left: 1px solid var(--line); }
.search-box .field i { color: var(--muted-2); }
.search-box input, .search-box select { border: 0; outline: 0; background: transparent; font-size: .95rem; padding: .65rem 0; min-width: 0; width: 100%; color: var(--text); }
.search-box select { padding-right: 1.5rem; cursor: pointer; }
.city-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.city-chips a { padding: .35rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #cbd5e1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.city-chips a:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.city-chips a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 767.98px) {
  .search-box { flex-direction: column; }
  .search-box .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .search-box .btn span { display: inline; }
}
.salon-cover { height: 86px; position: relative; }
.rating-pill { position: absolute; top: .75rem; right: .75rem; background: rgba(255, 255, 255, .95); color: var(--text); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .25rem .6rem; display: inline-flex; align-items: center; gap: .3rem; }
.rating-pill i { color: #f59e0b; }
.rating-pill small { color: var(--muted); font-weight: 500; }
.salon-avatar-float { margin-top: -32px; margin-bottom: .75rem; border: 3px solid #fff; position: relative; }

/* ── salon page ─────────────────────────────────────────────────────────── */
.salon-hero { background: linear-gradient(135deg, var(--ink) 0%, #1e293b 60%, color-mix(in srgb, var(--salon, #f59e0b) 55%, #0f172a) 140%); padding: 1.75rem 0 2rem; }
.salon-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.hero-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #e2e8f0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
a.hero-chip:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; margin-right: .5rem; vertical-align: 1px; }
.service-list { display: flex; flex-direction: column; }
.service-row { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.25rem; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; text-align: left; transition: background .12s; width: 100%; }
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: #fafbfd; }
.service-row b { font-size: .95rem; color: var(--text); }
.service-row .price { font-weight: 800; font-size: 1rem; color: var(--text); white-space: nowrap; }
.service-row .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; position: relative; transition: border-color .12s; }
.service-row.selected { background: var(--accent-50); }
.service-row.selected .radio { border-color: var(--accent); }
.service-row.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.review { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line-2); }
.review:first-child { padding-top: 0; }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review .stars i { font-size: .72rem; }
.booking-card { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.35rem; box-shadow: var(--shadow-md); }
.summary-row { display: flex; gap: .75rem; align-items: center; padding: .75rem .9rem; border-radius: var(--radius); background: var(--line-2); font-size: .88rem; }
.summary-row > i { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--accent-600); display: grid; place-items: center; flex-shrink: 0; }
.date-strip { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-pill { flex: 0 0 auto; width: 58px; padding: .45rem 0; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; line-height: 1.2; }
.date-pill small { font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.date-pill b { font-size: 1.15rem; }
.date-pill:hover { border-color: var(--accent); }
.date-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.date-pill.active small { color: #cbd5e1; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.slot-grid .time-slot-btn { width: 100%; padding: .55rem 0 !important; }
.booking-total { border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .85rem; display: grid; gap: .25rem; }
.booking-total b { font-size: 1.25rem; }
.btn.disabled { opacity: .45; box-shadow: none; pointer-events: none; }
@media (max-width: 991.98px) { .booking-card { position: static; } }

/* ── my bookings ────────────────────────────────────────────────────────── */
.booking-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; box-shadow: var(--shadow-xs); transition: box-shadow .15s; }
.booking-item:hover { box-shadow: var(--shadow-md); }
.date-tile { width: 56px; flex-shrink: 0; text-align: center; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); padding: .4rem 0; line-height: 1.15; display: flex; flex-direction: column; }
.date-tile b { font-size: 1.3rem; color: var(--text); }
.date-tile small { font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.date-tile.muted { background: var(--line-2); color: var(--muted); }
@media (max-width: 575.98px) { .booking-item { flex-wrap: wrap; } .booking-item > .d-flex.gap-2 { width: 100%; } .booking-item > .d-flex.gap-2 .btn { flex: 1; } }
.site-brand .word { color: var(--text); }
.site-footer .site-brand .word, .auth-brand .site-brand .word { color: #fff; }
/* sign-out is a DELETE form (button_to) */
.c-user form { margin-left: auto; }
.c-user .signout { margin-left: 0; cursor: pointer; }
.dropdown-menu form { margin: 0; }
.dropdown-menu form .dropdown-item { width: 100%; background: none; border: 0; text-align: left; }
