/* ═══════════════════════════════════════════════════════
   ZIVIX — Brand tokens
   Primary: Serious Black  |  Accent: Lime
═══════════════════════════════════════════════════════ */

/* ── Dark (default) ───────────────────────────────────── */
:root {
    --brand:          #c8f542;
    --brand-dim:      #a8d424;
    --brand-glow:     rgba(200,245,66,.18);
    --brand-tint:     rgba(200,245,66,.08);
    --text-on-brand:  #090a05;

    --bg:             #080809;
    --surface:        #101012;
    --surface-2:      #18181c;
    --surface-3:      #222228;
    --border:         #252528;
    --border-strong:  #38383f;
    --text:           #f0f0f3;
    --text-muted:     #72727e;
    --text-faint:     #3e3e46;

    --success:        #4ade80;
    --danger:         #f87171;
    --warning:        #fbbf24;
    --success-bg:     rgba(74,222,128,.1);
    --danger-bg:      rgba(248,113,113,.1);

    --radius:         14px;
    --radius-sm:      9px;
    --radius-xs:      6px;
    --shadow:         0 1px 3px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg:      0 8px 40px rgba(0,0,0,.6);
    --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
    --header-h:       60px;
    --ease:           .16s cubic-bezier(.4,0,.2,1);
}

/* ── Light ────────────────────────────────────────────── */
[data-theme="light"] {
    --brand:          #7ab80a;
    --brand-dim:      #5e9600;
    --brand-glow:     rgba(122,184,10,.18);
    --brand-tint:     rgba(122,184,10,.07);
    --text-on-brand:  #ffffff;

    --bg:             #f4f4f0;
    --surface:        #ffffff;
    --surface-2:      #f0f0ec;
    --surface-3:      #e8e8e4;
    --border:         #deded8;
    --border-strong:  #c8c8c0;
    --text:           #0a0a0e;
    --text-muted:     #5a5a68;
    --text-faint:     #b0b0bc;

    --success:        #16a34a;
    --danger:         #dc2626;
    --warning:        #d97706;
    --success-bg:     rgba(22,163,74,.08);
    --danger-bg:      rgba(220,38,38,.08);

    --shadow:         0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg:      0 8px 32px rgba(0,0,0,.1);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex; flex-direction: column;
    line-height: 1.6;
    transition: background var(--ease), color var(--ease);
}

/* ── Layout ───────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 200;
    transition: background var(--ease), border-color var(--ease);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--text);
}
.logo-mark {
    width: 32px; height: 32px; flex-shrink: 0;
}
.logo-wordmark {
    font-size: 1.15rem; font-weight: 900; letter-spacing: .06em;
    color: var(--text); line-height: 1;
    text-transform: uppercase;
}
.logo-wordmark span { color: var(--brand); }

/* Nav */
.site-header nav { display: flex; align-items: center; gap: .35rem; }
.site-header nav a {
    color: var(--text-muted); text-decoration: none; font-size: .84rem;
    font-weight: 500; padding: .42rem .9rem; border-radius: var(--radius-xs);
    transition: color var(--ease), background var(--ease);
}
.site-header nav a:hover { background: var(--surface-2); color: var(--text); }

/* Theme toggle */
.theme-toggle {
    width: 34px; height: 34px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-xs); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color var(--ease), background var(--ease);
    color: var(--text-muted);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* ══════════════════════════════════════════════════════
   MAIN / FOOTER
══════════════════════════════════════════════════════ */
.main-content { flex: 1; padding: 2.5rem 0 3.5rem; }

.site-footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 1.25rem 0; text-align: center;
    font-size: .78rem; color: var(--text-faint);
    letter-spacing: .04em; text-transform: uppercase;
    transition: background var(--ease), border-color var(--ease);
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.footer-dot {
    width: 5px; height: 5px; background: var(--brand); border-radius: 50%; display: inline-block;
}

/* ══════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════ */
.alert {
    padding: .85rem 1.25rem; border-radius: var(--radius-sm);
    margin-bottom: 1.25rem; font-size: .88rem; font-weight: 500;
    border: 1px solid; display: flex; align-items: center; gap: .65rem;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(74,222,128,.25); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(248,113,113,.25); }

/* ══════════════════════════════════════════════════════
   BOOKING PAGE — Calendly layout
══════════════════════════════════════════════════════ */
.booking-layout {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 540px;
    transition: background var(--ease), border-color var(--ease);
}

/* ── Info panel ───────────────────────────────────────── */
.booking-info {
    padding: 2.25rem 1.75rem;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 1rem;
    transition: border-color var(--ease);
}

.booking-org {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .25rem;
}
.org-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--brand-tint); border: 1px solid rgba(200,245,66,.2);
    border-radius: var(--radius-xs); padding: .28rem .65rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .07em;
    color: var(--brand); text-transform: uppercase;
}
[data-theme="light"] .org-badge { border-color: rgba(122,184,10,.25); }

.booking-avatar {
    width: 52px; height: 52px; background: var(--surface-2);
    border: 1px solid var(--border-strong); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); flex-shrink: 0;
}

.booking-title {
    font-size: 1.3rem; font-weight: 800; line-height: 1.2; color: var(--text);
}
.booking-meta { display: flex; flex-direction: column; gap: .55rem; }
.meta-item {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; color: var(--text-muted); font-weight: 500;
}
.meta-item svg { color: var(--brand); flex-shrink: 0; }
.meta-divider {
    height: 1px; background: var(--border); margin: .25rem 0;
}
.booking-desc {
    font-size: .82rem; color: var(--text-muted); line-height: 1.6;
}
.booking-desc strong { color: var(--brand); }

/* ── Calendar panel ───────────────────────────────────── */
.calendar-panel {
    padding: 2rem 1.75rem 1.75rem;
    border-right: 1px solid var(--border);
    min-width: 0;
    transition: border-color var(--ease);
}

.cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.cal-month-label {
    font-size: .95rem; font-weight: 700; color: var(--text);
    letter-spacing: .02em;
}
.cal-nav {
    width: 32px; height: 32px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-xs); cursor: pointer;
    color: var(--text-muted); display: flex;
    align-items: center; justify-content: center;
    transition: all var(--ease);
}
.cal-nav:hover:not(:disabled) {
    border-color: var(--brand); color: var(--brand); background: var(--brand-tint);
}
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: .6rem;
}
.cal-weekdays span {
    text-align: center; font-size: .67rem; font-weight: 700;
    color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em;
    padding: .2rem 0;
}

.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}

.cal-cell {
    aspect-ratio: 1; border: 1px solid transparent; background: none;
    border-radius: var(--radius-xs); font-size: .86rem; font-weight: 500;
    cursor: pointer; color: var(--text-faint);
    transition: all var(--ease);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.cal-cell.empty { cursor: default; }
.cal-cell.disabled { color: var(--text-faint); opacity: .4; cursor: not-allowed; }
.cal-cell.available {
    color: var(--text); font-weight: 600;
}
.cal-cell.available::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.cal-cell.available:hover {
    background: var(--brand-tint); border-color: var(--brand); color: var(--brand);
}
.cal-cell.today {
    border-color: var(--border-strong);
    color: var(--text); font-weight: 700;
}
.cal-cell.selected {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: var(--text-on-brand) !important;
    font-weight: 800;
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.cal-cell.selected::after { background: var(--text-on-brand); }

.no-slots-month {
    text-align: center; padding: 2rem 0;
    font-size: .84rem; color: var(--text-muted);
}

/* ── Time slots panel ─────────────────────────────────── */
.slots-panel {
    width: 220px; flex-shrink: 0;
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; gap: 1.1rem;
}
.slots-panel-header {
    display: flex; align-items: flex-start; gap: .75rem;
}
.back-to-cal {
    width: 30px; height: 30px; flex-shrink: 0; margin-top: .1rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-xs); cursor: pointer;
    color: var(--text-muted); display: flex;
    align-items: center; justify-content: center;
    transition: all var(--ease);
}
.back-to-cal:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.slots-date-label {
    font-size: .88rem; font-weight: 800; color: var(--text); line-height: 1.3;
}
.slots-sub { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; font-weight: 500; }
.tz-label  { font-size: .72rem; color: var(--text-muted); padding: .35rem .5rem; margin: .25rem 0 .5rem; letter-spacing: .01em; }
.tz-badge  { font-size: .72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.slots-list {
    display: flex; flex-direction: column; gap: .5rem;
    overflow-y: auto; max-height: 380px; padding-right: 2px;
}
.slots-list::-webkit-scrollbar { width: 3px; }
.slots-list::-webkit-scrollbar-track { background: transparent; }
.slots-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.time-slot-btn {
    display: flex; align-items: center; justify-content: space-between;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .95rem 1.1rem; text-decoration: none;
    background: transparent;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    gap: .6rem;
}
.time-slot-btn:hover {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.slot-time-txt {
    font-size: .95rem; font-weight: 700; color: var(--text);
    letter-spacing: .01em; flex: 1;
    transition: color .16s ease;
}
.time-slot-btn:hover .slot-time-txt { color: var(--brand); }
.slot-select-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--brand); color: var(--text-on-brand);
    font-size: .7rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; padding: .28rem .7rem;
    border-radius: 99px; white-space: nowrap;
    opacity: 0; transform: translateX(8px);
    transition: opacity .16s ease, transform .16s ease;
}
.time-slot-btn:hover .slot-select-pill {
    opacity: 1; transform: translateX(0);
}

/* ══════════════════════════════════════════════════════
   BOOKING FORM
══════════════════════════════════════════════════════ */
.page-header { margin-bottom: 2rem; }
.back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--text-muted); text-decoration: none; font-size: .84rem;
    font-weight: 500; margin-bottom: .85rem;
    transition: color var(--ease); padding: .3rem 0;
}
.back-link svg { transition: transform var(--ease); }
.back-link:hover { color: var(--brand); }
.back-link:hover svg { transform: translateX(-3px); }
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }

.slot-info-chip {
    display: inline-flex; align-items: center; gap: .75rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-xs); padding: .55rem 1rem;
    font-size: .84rem; font-weight: 600; color: var(--text);
}
.slot-info-chip svg { color: var(--brand); }
.chip-divider { width: 1px; height: 14px; background: var(--border-strong); }

.form-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 2rem 2.25rem; max-width: 520px;
    transition: background var(--ease), border-color var(--ease);
}

/* ── Inputs ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block; font-size: .82rem; font-weight: 700;
    color: var(--text-muted); margin-bottom: .5rem;
    text-transform: uppercase; letter-spacing: .05em;
}
.required { color: var(--brand); }
.optional  { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="date"],
input[type="time"], input[type="password"], textarea {
    width: 100%; padding: .8rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .92rem;
    color: var(--text); background: var(--surface-2);
    transition: border-color var(--ease), box-shadow var(--ease),
                background var(--ease), color var(--ease);
    outline: none;
}
input:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
    background: var(--surface);
}
textarea { resize: vertical; min-height: 100px; }

/* Color scheme for native date/time pickers */
::-webkit-calendar-picker-indicator { filter: invert(0.7); }
[data-theme="light"] ::-webkit-calendar-picker-indicator { filter: none; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .45rem; padding: .75rem 1.5rem; font-size: .88rem;
    font-weight: 700; border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--ease);
    border: 1px solid transparent; text-decoration: none;
    font-family: var(--font); letter-spacing: .02em;
}
.btn-primary {
    background: var(--brand); color: var(--text-on-brand);
    border-color: var(--brand);
}
.btn-primary:hover {
    background: var(--brand-dim); border-color: var(--brand-dim);
    transform: translateY(-1px); box-shadow: 0 4px 16px var(--brand-glow);
}
.btn-primary:disabled {
    opacity: .75; cursor: not-allowed; transform: none; box-shadow: none;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
.btn-spinner {
    animation: btn-spin .8s linear infinite;
    flex-shrink: 0;
}
.btn-outline {
    background: transparent; color: var(--text-muted);
    border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-danger {
    background: transparent; color: var(--danger); border-color: rgba(248,113,113,.3);
}
.btn-danger:hover { background: var(--danger-bg); }
.btn-full { width: 100%; }
.btn-sm   { padding: .35rem .75rem; font-size: .78rem; border-radius: var(--radius-xs); }

/* ══════════════════════════════════════════════════════
   CONFIRMATION
══════════════════════════════════════════════════════ */
.confirmation-wrapper { display: flex; justify-content: center; padding: 1rem 0; }
.confirmation-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem; max-width: 480px; width: 100%; text-align: center;
    transition: background var(--ease), border-color var(--ease);
}

.check-icon-wrap {
    width: 68px; height: 68px; margin: 0 auto 1.5rem;
    background: var(--brand); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px var(--brand-glow);
}
.check-icon-wrap svg { color: var(--text-on-brand); }

.confirmation-card h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: .4rem; letter-spacing: -.02em; }
.confirmation-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }

.booking-details { text-align: left; margin-bottom: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.detail-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .9rem 1.1rem; border-bottom: 1px solid var(--border);
    transition: background var(--ease);
}
.detail-row:last-child { border-bottom: none; }
.detail-row:hover { background: var(--surface-2); }
.detail-icon-wrap {
    width: 34px; height: 34px; flex-shrink: 0;
    background: var(--brand-tint); border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.detail-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.detail-value { font-size: .92rem; font-weight: 600; margin-top: .1rem; }

.meet-section { margin-bottom: 1.75rem; }
.meet-section h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.meet-section p  { color: var(--text-muted); font-size: .84rem; margin-bottom: .85rem; }

.meet-actions { display: flex; gap: .6rem; align-items: stretch; }

.meet-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    background: var(--brand); color: var(--text-on-brand);
    padding: .75rem 1.25rem; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 700; font-size: .88rem;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    border: 1px solid var(--brand);
}
.meet-btn:hover { background: var(--brand-dim); border-color: var(--brand-dim); transform: translateY(-1px); box-shadow: 0 4px 16px var(--brand-glow); }

.copy-link-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface-2);
    color: var(--text-muted); font-family: var(--font); font-size: .84rem;
    font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: all var(--ease);
}
.copy-link-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.copy-link-btn.copied { border-color: var(--success); color: var(--success); background: var(--success-bg); }

/* ══════════════════════════════════════════════════════
   ERROR PAGES
══════════════════════════════════════════════════════ */
.error-page {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 5rem 1rem; gap: 1rem;
}
.error-code {
    font-size: 6rem; font-weight: 900; line-height: 1;
    color: var(--brand); letter-spacing: -.04em;
}
.error-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.error-desc  { color: var(--text-muted); font-size: .95rem; margin: 0 0 .5rem; }

/* ══════════════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════════════ */
.auth-wrapper { display: flex; justify-content: center; padding: 3rem 0; }
.auth-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem; max-width: 400px; width: 100%;
    transition: background var(--ease), border-color var(--ease);
}
.auth-logo { margin-bottom: 1.75rem; display: flex; justify-content: center; }
.auth-card h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: .3rem; letter-spacing: -.01em; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: .85rem; }
.auth-card .form-group { text-align: left; }
.auth-security-note {
    display: flex; align-items: center; gap: .5rem;
    margin-top: 1rem; font-size: .75rem; color: var(--text-faint);
    justify-content: center;
}

/* ══════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════ */
.admin-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem;
}
.admin-header-left h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; }
.admin-subtitle { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }
.admin-stats { display: flex; gap: .75rem; }

.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .9rem 1.25rem;
    min-width: 100px; box-shadow: var(--shadow);
    transition: background var(--ease), border-color var(--ease);
}
.stat-card:hover { border-color: var(--brand); }
.stat-num { display: block; font-size: 1.65rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat-lbl {
    display: block; font-size: .68rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .07em; margin-top: .3rem; font-weight: 600;
}

.admin-grid {
    display: grid; grid-template-columns: 310px 1fr;
    gap: 1.5rem; align-items: start;
}
.admin-left-col { display: flex; flex-direction: column; gap: 1.5rem; }
.panel-desc { font-size: .8rem; color: var(--text-muted); margin: -.5rem 0 1rem; line-height: 1.5; }

/* ── Day picker ───────────────────────────────────────── */
.day-picker { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .25rem; }
.day-chip {
    padding: .35rem .65rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface-2);
    color: var(--text-muted); font-family: var(--font); font-size: .78rem;
    font-weight: 700; cursor: pointer; letter-spacing: .04em;
    transition: all var(--ease);
}
.day-chip:hover  { border-color: var(--brand); color: var(--brand); }
.day-chip.active { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }

/* ── Time entries ─────────────────────────────────────── */
.time-entry {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.time-entry input[type="time"] { flex: 1; }
.remove-time-btn {
    display: flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; flex-shrink: 0;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text-muted); cursor: pointer;
    transition: all var(--ease);
}
.remove-time-btn:hover { border-color: #e55; color: #e55; background: rgba(220,50,50,.08); }
.admin-panel {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: background var(--ease), border-color var(--ease);
}
.panel-title {
    font-size: .8rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted);
    margin-bottom: 1.25rem; padding-bottom: .85rem;
    border-bottom: 1px solid var(--border);
}
.add-slot-form .form-group { margin-bottom: 1rem; }
.panel-wide { overflow: hidden; }

/* ── Table ────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th {
    text-align: left; padding: .7rem 1rem; font-size: .7rem;
    font-weight: 800; color: var(--text-faint); text-transform: uppercase;
    letter-spacing: .07em; border-bottom: 1px solid var(--border);
    background: var(--surface-2); white-space: nowrap;
}
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }
.row-booked td { opacity: .55; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .22rem .7rem; border-radius: var(--radius-xs);
    font-size: .7rem; font-weight: 700; white-space: nowrap; letter-spacing: .04em;
}
.badge-booked { background: rgba(251,191,36,.1); color: var(--warning); border: 1px solid rgba(251,191,36,.2); }
.badge-free   { background: var(--brand-tint); color: var(--brand); border: 1px solid rgba(200,245,66,.2); }
[data-theme="light"] .badge-free { border-color: rgba(122,184,10,.25); }

.notes-cell { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions-cell { white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.muted { color: var(--text-faint); }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; padding: 1rem; backdrop-filter: blur(4px);
}
.modal-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 2rem; max-width: 400px; width: 100%;
    transition: background var(--ease);
}
.modal-title {
    font-size: 1rem; font-weight: 800; margin-bottom: 1.25rem;
    letter-spacing: -.01em;
}
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ── Empty state ──────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 3rem 2rem;
    background: var(--surface); border-radius: var(--radius);
    border: 1px dashed var(--border);
}
.empty-state.small { padding: 2rem 1.5rem; }
.empty-icon-wrap {
    width: 52px; height: 52px; margin: 0 auto 1rem;
    background: var(--surface-2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint);
}
.empty-state h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.empty-state p  { color: var(--text-muted); font-size: .88rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .booking-info   { border-right: none; border-bottom: 1px solid var(--border); padding: 1.75rem 1.5rem; }
    .calendar-panel { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; }
    .slots-panel    { width: 100%; padding: 1.5rem; }
}
@media (max-width: 768px) {
    .main-content  { padding: 1.5rem 0 2.5rem; }
    .admin-grid    { grid-template-columns: 1fr; }
    .admin-header  { flex-direction: column; }
    .form-card     { padding: 1.5rem 1.1rem; }
    .confirmation-card { padding: 2rem 1.25rem; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; }
    .actions-cell  { flex-wrap: wrap; }
    .admin-stats   { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .container     { padding: 0 1rem; }
    .site-header nav a { display: none; }
    .site-header nav a:last-of-type { display: flex; }
    .cal-cell      { font-size: .78rem; }
    .cal-weekdays span { font-size: .6rem; }
}
