:root {
    /* Light BookZED — matches the bookZED.html test template. */
    --bg: #f3f4f6;          /* gray-100 */
    --bg-soft: #ffffff;     /* card / header-pop */
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border: #e5e7eb;      /* gray-200 */
    --text: #111827;        /* gray-900 */
    --text-muted: #6b7280;  /* gray-500 */

    --yellow: #facc15;      /* yellow-400 */
    --yellow-dark: #ca8a04; /* yellow-600 */
    --yellow-soft: #fefce8; /* yellow-50 */

    --green: #16a34a;       /* green-600 */
    --green-soft: #dcfce7;  /* green-100 */
    --green-text: #166534;  /* green-800 */
    --red: #dc2626;
    --red-bright: #dc2626;
    --blue: #2563eb;

    --radius: 16px;         /* rounded-2xl */
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Legacy alias so blades referencing --gold hit the accent colour. */
    --gold: var(--yellow);
    --gold-dark: var(--yellow-dark);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; }

a { color: var(--yellow-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(960px, 92%); margin: 0 auto; }

.page { flex: 1; padding: 32px 0 60px; }

/* ---------- header ---------- */
.site-header {
    background: #000000;
    color: #ffffff;
    border-bottom: 1px solid #000000;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 10px; color: #ffffff; font-weight: 900; font-size: 1.25rem; letter-spacing: 0.5px; }
.brand:hover { text-decoration: none; color: #ffffff; }
.brand-mark { font-size: 1.4rem; color: var(--yellow); font-weight: 900; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #d1d5db; font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: #ffffff; text-decoration: none; }
.nav a.active { color: var(--yellow); }

.site-header .btn-cta {
    background: var(--yellow);
    color: #000000;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
}
.site-header .btn-cta:hover { background: #eab308; color: #000000; text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid #4b5563; color: #ffffff; font-size: 1.2rem; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

.inline-form { display: inline; }
.link-btn { background: none; border: none; color: #ffffff; font-weight: 600; font-size: 0.92rem; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--yellow); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 36px 0 78px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer strong { color: var(--yellow-dark); }
.site-footer p { color: var(--text-muted); margin: 6px 0 0; font-size: 0.92rem; }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }

/* ---------- bottom navigation (bookZED.html template) ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 10px;
    z-index: 60;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px;
    line-height: 1.1;
}
.bottom-nav a:hover { text-decoration: none; color: var(--text); background: #f3f4f6; }
.bottom-nav a.active { color: #000000; font-weight: 800; }
.bottom-nav .bn-icon { font-size: 1.25rem; }

/* ---------- typography / hero ---------- */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; }

.hero {
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.25), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(250, 204, 21, 0.18), transparent 45%),
        var(--bg);
}

.hero h1 { font-size: 2.3rem; font-weight: 900; color: var(--text); }
.hero h1 .gold-text { color: var(--yellow-dark); }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 24px; }

.lead { font-size: 1.1rem; color: var(--text-muted); }

.gold-text { color: var(--yellow-dark); }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 0.96rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; color: #000000; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--yellow); color: #000000; }
.btn-gold:hover { background: #eab308; color: #000000; }

.btn-outline { background: transparent; color: var(--yellow-dark); border: 1px solid var(--yellow-dark); }
.btn-outline:hover { background: var(--yellow); color: #000000; border-color: var(--yellow); }

.btn-dark { background: #000000; color: #ffffff; border: 1px solid #000000; }
.btn-dark:hover { background: #1f2937; color: #ffffff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #ef4444; color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid #f3f4f6;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.section { margin: 40px 0; }
.section-title { font-size: 1.35rem; font-weight: 800; border-bottom: 2px solid var(--yellow); display: inline-block; padding-bottom: 6px; margin-bottom: 20px; }

.service-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.service-card h3 { margin: 0; }
.service-card .desc { color: var(--text-muted); font-size: 0.92rem; }
.service-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.service-price { color: var(--text); font-weight: 800; font-size: 1.15rem; }
.service-duration { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full, .full { grid-column: 1 / -1; }

label { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="time"], input[type="search"],
select, textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.96rem;
    font-family: inherit;
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25); }
textarea { resize: vertical; min-height: 90px; }

.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.field-error { color: var(--red); font-size: 0.85rem; }

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

/* ---------- alerts / badges ---------- */
.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: var(--green-soft); border: 1px solid #bbf7d0; color: var(--green-text); }
.alert-danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-pending { background: var(--yellow-soft); color: #854d0e; }
.badge-confirmed, .badge-online { background: var(--green-soft); color: var(--green-text); }
.badge-completed, .badge-paid { background: var(--green-soft); color: var(--green-text); }
.badge-cancelled { background: #f3f4f6; color: var(--text-muted); }
.badge-no_show { background: #fee2e2; color: #991b1b; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }
.badge-at_appointment { background: var(--yellow-soft); color: #854d0e; }
.badge-featured { background: var(--gold); color: #451a03; }

.brand-logo { object-fit: cover; background: var(--bg); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--bg-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; }
tbody tr:hover { background: #f9fafb; }

/* ---------- time slot picker ---------- */
.slots-title { margin: 18px 0 8px; font-weight: 700; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slot-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--yellow); background: var(--yellow-soft); }
.slot-btn.selected { background: var(--yellow); color: #000000; border-color: var(--yellow); font-weight: 700; }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.slot-empty, .slot-open-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- checkout / steps ---------- */
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--text); border-bottom: none; border-top: 2px solid var(--yellow-dark); margin-top: 8px; }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pill { background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--text-muted); }
.pill.active { border-color: var(--yellow-dark); color: var(--yellow-dark); font-weight: 700; background: var(--yellow-soft); }

/* ---------- admin ---------- */
.admin-body { flex-direction: row; }

.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    padding: 22px 18px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.admin-brand { color: var(--text); font-weight: 900; font-size: 1.15rem; }
.admin-sub { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 18px; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 600; }
.admin-nav a:hover { background: #f3f4f6; color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--yellow-soft); color: #854d0e; font-weight: 700; }

.admin-user { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); font-size: 0.9rem; }
.admin-user a, .admin-user .link-btn { color: var(--yellow-dark); }
.admin-user .link-btn:hover { color: var(--text); }

.admin-main { flex: 1; padding: 30px 0 60px; }

.admin-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.admin-tools form { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.stat-card { text-align: center; }
.stat-card .stat-value { font-size: 2rem; font-weight: 900; color: var(--text); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }

.pagination { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; background: var(--bg-soft); }
.pagination a:hover { border-color: var(--yellow-dark); color: var(--yellow-dark); text-decoration: none; }
.pagination .active { background: var(--yellow); color: #000000; border-color: var(--yellow); font-weight: 700; }

/* ---------- confirmation ---------- */
.ticket { border: 2px solid var(--yellow); border-radius: 16px; padding: 26px; max-width: 560px; margin: 0 auto; background: var(--bg-soft); }
.ticket .ref { letter-spacing: 2px; font-weight: 800; color: var(--yellow-dark); }

.center { text-align: center; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.muted { color: var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-bottom: 1px solid #1f2937;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 6%;
        gap: 12px;
    }
    .nav.open { display: flex; }
    .nav-toggle { display: inline-block; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-body { flex-direction: column; }
    .admin-sidebar { width: 100%; min-height: 0; position: static; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .hero h1 { font-size: 1.7rem; }
}

@media (max-width: 520px) {
    .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* ---------- owner agenda — week grid ---------- */
.week-grid { table-layout: fixed; min-width: 720px; }
.week-grid th, .week-grid td { border: 1px solid var(--border); vertical-align: top; padding: 8px 10px; }
.week-grid td { height: 64px; }
.week-grid tbody tr.wg-today { background: var(--yellow-soft); }
.week-grid tbody tr.wg-closed td { opacity: 0.55; }
.wg-day { display: inline-block; color: var(--text); }
.wg-day:hover { color: var(--yellow-dark); text-decoration: none; }
.wg-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.wg-empty { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.wg-chip {
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    padding: 5px 7px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wg-chip:hover { border-color: var(--yellow); text-decoration: none; }
.wg-chip .wg-time { font-weight: 700; margin-right: 4px; }
.wg-chip .badge { vertical-align: middle; margin-left: 4px; }

/* ---------- signup: who-are-you cards ---------- */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 34px 22px;
    min-height: 210px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    font-family: inherit;
    color: var(--text);
}
.role-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.role-card:focus-visible { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35); }
.role-emoji { font-size: 3rem; line-height: 1; }
.role-title { font-weight: 700; font-size: 1.05rem; }
.role-sub { color: var(--text-muted); font-size: 0.85rem; }
