/* GlamDesk - Premium Stylesheet (Royal Gold Theme) */


*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
    --primary: #9A7A00;
    --primary-deep: #7A5E00;
    --primary-soft: #FBF4DC;
    --primary-mid: #D4AF37;
    --secondary: #B8860B;
    --accent: #A4354E;
    --success: #20cc83;
    --warning: #ffae35;
    --danger: #f2445b;
    --info: #48a8ed;
    --dark: #201709;
    --light: #F7F3EA;
    --text: #221A0C;
    --muted: #6B5D40;              /* 4.5:1+ on white and on --light */
    --border: #EAE0C6;
    --shadow: 0 16px 36px rgba(43, 32, 8, .08);
    --shadow-hover: 0 22px 48px rgba(43, 32, 8, .14);
    --shadow-sm: 0 8px 20px rgba(43, 32, 8, .06);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --sidebar-w: 258px;
    --sidebar-w-collapsed: 72px;
    --navbar-h: 56px;

    /* Text/background pairs that pass WCAG AA (4.5:1) */
    --success-ink: #0B6B40;  --success-strong: #0B7A4B;
    --warning-ink: #7A4300;  --warning-strong: #F2A93B;
    --danger-ink: #A81D33;   --danger-strong: #C8243D;
    --info-ink: #1B559E;     --info-strong: #1F6FB8;
    --pending-ink: #5B4A12;  --pending-bg: #F3EBD2;

    --input-bg: #F3EFE2;
    --gold-line: rgba(212, 175, 55, .4);
    --on-dark: #F5E7B8;
    --radius-sm: 8px;
    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem;
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", "Segoe UI", Arial, sans-serif; background: var(--light); color: var(--text); line-height: 1.5; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; right: 0; left: var(--sidebar-w); z-index: 100;
    height: var(--navbar-h); display: flex; align-items: center; justify-content: flex-end;
    padding: 0 1.25rem; background: var(--light); gap: 0.75rem;
    transition: left .25s ease;
}
.navbar-menu { display: flex; align-items: center; gap: 0.5rem; }
.nav-icon, .nav-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    height: 36px; padding: 0 0.85rem; border-radius: var(--radius-pill);
    background: #fff; color: var(--primary); font-weight: 700; font-size: .85rem;
    box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.nav-icon:hover, .nav-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.user-welcome { font-size: .85rem; color: var(--text); display: flex; align-items: center; gap: 0.35rem; }
.user-welcome small { color: var(--muted); font-weight: 700; }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; top: 0; left: 0; z-index: 110;
    width: var(--sidebar-w); height: 100vh;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #2B2009 0%, #1C1405 100%);
    border-radius: 0 0 34px 0;
    box-shadow: 20px 0 42px rgba(28, 19, 5, .28);
    transition: width .25s ease;
    overflow: hidden;
}
.sidebar::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-mid), var(--primary), transparent);
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1rem; min-height: var(--navbar-h); flex-shrink: 0;
}
.sidebar-brand {
    display: flex; align-items: center; gap: .75rem; color: #F5E7B8;
    font-weight: 900; font-size: 1.2rem; white-space: nowrap; overflow: hidden;
    font-family: "Playfair Display", Georgia, serif;
}
.sidebar-brand span:last-child { white-space: nowrap; overflow: hidden; max-width: 200px; transition: max-width .22s ease, opacity .22s ease; }
.brand-mark { width: 42px; height: 50px; flex-shrink: 0; border-radius: 14px; padding: 4px; background: #fff; border: 1px solid var(--primary-mid); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-toggle {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,.15); color: #fff;
    cursor: pointer; font-size: .9rem; transition: background .2s ease; flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.28); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-brand span:last-child { max-width: 0; opacity: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 .75rem .75rem; }
.sidebar-title {
    padding: .85rem .85rem .45rem; font-size: .7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(245, 231, 184, .55); white-space: nowrap;
    max-height: 60px; overflow: hidden;
    transition: opacity .2s ease, max-height .2s ease, padding .2s ease;
}
.sidebar.collapsed .sidebar-title { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.sidebar-link, .sidebar-parent {
    display: flex; align-items: center; gap: .85rem; min-height: 44px;
    padding: .55rem .85rem; margin: 2px 0;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    color: rgba(245, 231, 184, .78); font-weight: 700; font-size: .88rem;
    transition: all .15s ease; white-space: nowrap; overflow: hidden;
    width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit;
}
.sidebar-link:hover, .sidebar-link.active, .sidebar-parent:hover { color: var(--primary-deep); background: #fff; box-shadow: 0 10px 24px rgba(43,32,8,.12); }
.sidebar-parent.has-active { color: rgba(255,255,255,.95); background: rgba(255,255,255,.12); }
.sidebar-link .icon, .sidebar-parent .icon { width: 28px; flex-shrink: 0; text-align: center; font-size: 1.1rem; transition: font-size .22s ease; }
.sidebar-link > span:not(.icon), .sidebar-parent > span:not(.icon) {
    white-space: nowrap; overflow: hidden; max-width: 200px; opacity: 1;
    transition: max-width .22s ease, opacity .22s ease;
}
.sidebar-parent .chevron { margin-left: auto; font-size: .75rem; transition: transform .2s ease, opacity .2s ease; opacity: .7; flex-shrink: 0; }
.sidebar-group.is-open .sidebar-parent .chevron { transform: rotate(180deg); }
.sidebar-children { display: none; overflow: hidden; }
.sidebar-group.is-open .sidebar-children { display: block; }
.sidebar-children .sidebar-link { padding-left: 2.5rem; min-height: 38px; font-size: .83rem; margin: 1px 0; border-radius: 999px 0 0 999px; }
.sidebar-children .sidebar-link .icon { width: 20px; font-size: .75rem; opacity: .7; }
.sidebar.collapsed .sidebar-link > span:not(.icon),
.sidebar.collapsed .sidebar-parent > span:not(.icon) { max-width: 0; opacity: 0; }
.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .sidebar-parent { justify-content: flex-start; padding: .55rem 14px; border-radius: var(--radius-pill); margin: 2px 8px; }
.sidebar.collapsed .sidebar-link .icon,
.sidebar.collapsed .sidebar-parent .icon { margin: 0; font-size: 1.2rem; }
.sidebar.collapsed .sidebar-parent .chevron { opacity: 0; }
.sidebar.collapsed .sidebar-children { display: none; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: var(--radius-pill); }

/* ===== MAIN CONTENT ===== */
.container-main { display: flex; min-height: 100vh; padding-top: var(--navbar-h); }
.main-content { flex: 1; margin-left: var(--sidebar-w); padding: 1rem 1.25rem 1.5rem; background: var(--light); transition: margin-left .25s ease; min-width: 0; }
body.sidebar-collapsed .navbar { left: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .main-content { margin-left: var(--sidebar-w-collapsed); }

.page-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    padding: .85rem 1.1rem; margin-bottom: 1rem;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.page-header h1 { font-size: 1.25rem; color: var(--primary); font-weight: 800; }
.page-header p { font-size: .83rem; color: var(--muted); font-weight: 600; }

/* ===== DASHBOARD CARDS ===== */
.dashboard-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: .85rem; margin-bottom: 1.25rem;
}
.dashboard-card {
    padding: .9rem 1rem; border-radius: var(--radius); color: #fff;
    box-shadow: 0 10px 24px rgba(43, 32, 8, .12);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.dashboard-card:nth-child(5n+1) { background: linear-gradient(135deg, var(--primary-deep), #9A7A00); }
.dashboard-card:nth-child(5n+2) { background: linear-gradient(135deg, var(--info-ink), var(--info-strong)); }
.dashboard-card:nth-child(5n+3) { background: linear-gradient(135deg, var(--success-ink), var(--success-strong)); }
.dashboard-card:nth-child(5n+4) { background: linear-gradient(135deg, #8A2A40, var(--accent)); }
.dashboard-card:nth-child(5n) { background: linear-gradient(135deg, #8A4B00, #B86900); }
.card-icon { font-size: 1.4rem; margin-bottom: .35rem; opacity: .85; }
.card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-bottom: .15rem; }
.card-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.card-description { font-size: .75rem; opacity: .7; margin-top: .2rem; }

/* ===== STAT CARDS (customer dashboard) ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.stat-card { padding: 1rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.stat-card .stat-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: .2rem; }

/* ===== ACTION GRID ===== */
.action-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: .75rem; margin-top: 1rem;
}
.action-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem; min-height: 72px;
    border-radius: var(--radius); background: #fff;
    box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action-card i {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--primary-soft); color: var(--primary);
}
.action-card h3 { font-size: .88rem; font-weight: 800; margin: 0 0 .15rem !important; color: var(--text) !important; }
.action-card p { font-size: .75rem; color: var(--muted) !important; font-weight: 600; margin: 0; }

/* ===== TABLES ===== */
.table-container { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; scrollbar-width: thin; }
.table-container::-webkit-scrollbar { height: 6px; }
.table-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
.table-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    padding: .75rem 1rem; background: var(--primary-deep);
}
.table-header h2 { font-size: 1rem; color: #fff; font-weight: 800; }
.table-header .btn-primary { background: #fff; color: var(--primary-deep); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; top: 0; z-index: 5; }
thead tr { background: #FBF7EA; border-bottom: 2px solid var(--border); }
th { padding: .6rem .75rem; text-align: left; font-weight: 700; color: var(--primary-deep); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; white-space: nowrap; }
td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: middle; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #FBF7EA; }
tbody tr:last-child td { border-bottom: 0; }
.text-center { text-align: center; }

/* ===== FORMS ===== */
.form-container { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .85rem; }
.form-group { margin-bottom: .85rem; }
label { display: block; margin-bottom: .3rem; font-weight: 700; color: var(--primary-deep); font-size: .83rem; }
input, textarea, select {
    width: 100%; padding: .5rem .7rem; font-family: inherit; font-size: .88rem;
    border: 0; border-radius: 10px; background: #F3EFE2;
    box-shadow: inset 0 0 0 1px var(--border);
    transition: box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--primary); }
textarea { resize: vertical; min-height: 70px; }
select { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: auto; box-shadow: none; accent-color: var(--primary); }

/* ===== BUTTONS ===== */
.btn, a.btn, button:not(.navbar-burger):not(.sidebar-toggle):not(.sidebar-parent):not(.modal-close):not(.service-picker-option):not(.gender-filter button):not(.qty-stepper button):not(.pay-methods button):not(.pos-discount-chips button):not(.customer-option):not(.customer-picker-clear):not(.filter-pill):not([class*="pos-"]) {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1.1rem; min-height: 36px;
    border: 0; border-radius: var(--radius-pill);
    font-family: inherit; font-size: .85rem; font-weight: 800;
    cursor: pointer; text-decoration: none; text-align: center;
    transition: all .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: #5E4800; }
.btn-secondary { background: var(--primary-soft); color: var(--primary-deep); }
.btn-secondary:hover { background: #F3E6B8; }
.btn-success { background: var(--success-strong); color: #fff; }
.btn-success:hover { background: var(--success-ink); }
.btn-warning { background: var(--warning-strong); color: #2B1B00; }
.btn-warning:hover { background: #E0951F; }
.btn-danger { background: var(--danger-strong); color: #fff; }
.btn-danger:hover { background: var(--danger-ink); }
.btn-info { background: var(--info-strong); color: #fff; }
.btn-info:hover { background: var(--info-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; margin: -.5em 0 0 -.5em;
    border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-warning.is-loading::after { border-color: rgba(122,94,0,.35); border-top-color: var(--primary-deep); }
@media (hover: none) { .btn:hover, .nav-icon:hover, .nav-link:hover { transform: none; } }
.btn-sm { padding: .35rem .75rem; min-height: 32px; font-size: .78rem; }
.btn-block { width: 100%; }

/* ===== ALERTS ===== */
.alert {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: .85rem;
    border-left: 4px solid; font-size: .85rem; font-weight: 600;
    animation: slideIn .25s ease;
}
.alert > span { flex: 1; }
.alert a { text-decoration: underline; font-weight: 800; }
.alert.is-leaving, .app-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
.alert-close {
    margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: inherit; cursor: pointer; opacity: .7; display: inline-flex; align-items: center; justify-content: center;
}
.alert-close:hover { opacity: 1; background: rgba(0,0,0,.06); }
/* Flash messages after a redirect: fixed under the navbar so every page layout shows them */
.flash-stack { position: fixed; top: calc(var(--navbar-h) + .5rem); right: 1rem; z-index: 900; width: min(440px, calc(100vw - 2rem)); display: grid; gap: .5rem; }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow); }
/* Toasts (window.toast) */
.toast-region { position: fixed; bottom: 1rem; right: 1rem; z-index: 1100; width: min(420px, calc(100vw - 2rem)); display: grid; gap: .5rem; }
.app-toast {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--radius);
    background: #fff; border-left: 4px solid var(--info-strong); box-shadow: var(--shadow-hover);
    font-size: .86rem; font-weight: 600; color: var(--text); animation: slideIn .2s ease;
}
.app-toast > span { flex: 1; }
.app-toast a { font-weight: 800; color: var(--primary-deep); text-decoration: underline; }
.app-toast-success { border-left-color: var(--success-strong); } .app-toast-success i:first-child { color: var(--success-strong); }
.app-toast-danger { border-left-color: var(--danger-strong); } .app-toast-danger i:first-child { color: var(--danger-strong); }
.app-toast-warning { border-left-color: var(--warning-strong); } .app-toast-warning i:first-child { color: var(--warning-ink); }
.app-toast-info i:first-child { color: var(--info-strong); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: #e9fbf0; color: var(--success-ink); border-left-color: var(--success-strong); }
.alert-danger { background: #ffedf0; color: var(--danger-ink); border-left-color: var(--danger-strong); }
.alert-warning { background: #fff5df; color: var(--warning-ink); border-left-color: var(--warning-strong); }
.alert-info { background: #eaf1ff; color: var(--info-ink); border-left-color: var(--info-strong); }

/* ===== BADGES ===== */
.badge {
    display: inline-block; padding: .25rem .6rem; border-radius: var(--radius-pill);
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2;
}
.badge-success { background: #e9fbf0; color: var(--success-ink); }
.badge-warning { background: #fff5df; color: var(--warning-ink); }
.badge-danger { background: #ffedf0; color: var(--danger-ink); }
.badge-info { background: #eaf1ff; color: var(--info-ink); }
.badge-primary { background: var(--primary-soft); color: var(--primary-deep); }
.badge-pending { background: var(--pending-bg); color: var(--pending-ink); }
.badge-secondary { background: #EFEAE0; color: var(--muted); }

/* ===== MODAL ===== */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    background: rgba(28, 19, 5, .55); backdrop-filter: blur(4px); padding: 1rem;
}
.modal.show { display: flex; }
body.modal-open { overflow: hidden; }
.confirm-modal { z-index: 1200; }
.confirm-content { max-width: 420px; }
.confirm-title { font-size: 1.1rem; color: var(--text); margin-bottom: .5rem; }
.confirm-message { color: var(--text); font-size: .92rem; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.modal-content {
    width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    padding: 1.5rem; border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow-hover);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h2 { font-size: 1.15rem; color: var(--primary); font-weight: 800; }
.modal-close {
    font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); transition: color .2s, background .2s;
    min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent;
}
.modal-close:hover { color: var(--danger); }

/* ===== FOOTER ===== */
.footer {
    margin-left: var(--sidebar-w); padding: .65rem 1.25rem;
    background: var(--light); text-align: center; font-size: .78rem; color: var(--muted);
    transition: margin-left .25s ease;
}
body.sidebar-collapsed .footer { margin-left: var(--sidebar-w-collapsed); }
.footer-actions { display: flex; justify-content: center; gap: 1rem; margin-top: .35rem; }
.footer-actions a { color: var(--primary); font-weight: 700; font-size: .78rem; }
.footer-actions a:hover { text-decoration: underline; }

/* ===== SERVICE PICKER (booking flow) ===== */
.service-picker { position: relative; z-index: 20; }
.service-picker-control {
    width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .65rem .85rem; border: 0; border-radius: 10px;
    background: #F3EFE2; color: var(--text); text-align: left;
    box-shadow: inset 0 0 0 1px var(--border); cursor: pointer;
}
.service-picker-control:hover, .service-picker.is-open .service-picker-control {
    background: #fff; box-shadow: inset 0 0 0 2px var(--primary), 0 10px 24px rgba(43,32,8,.12);
}
.service-picker-control strong { display: block; font-size: .9rem; line-height: 1.2; color: var(--text); }
.service-picker-control small { display: block; margin-top: .2rem; color: var(--muted); font-size: .8rem; font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-picker-control.has-selection small { color: var(--primary-deep); }
.service-picker-control i { color: var(--primary-deep); transition: transform .2s ease; }
.service-picker.is-open .service-picker-control i { transform: rotate(180deg); }
.service-picker-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    max-height: 280px; overflow-y: auto; display: none;
    padding: .35rem; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; box-shadow: 0 20px 44px rgba(43,32,8,.14);
}
.service-picker.is-open .service-picker-menu, .service-picker:focus-within .service-picker-menu { display: grid; gap: .15rem; }
.service-picker-option {
    width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .65rem;
    padding: .5rem .65rem; border: 0; border-radius: 8px; background: transparent; color: #2B2009; text-align: left; cursor: pointer;
}
.service-picker-option:hover, .service-picker-option:focus { background: var(--primary-soft); color: var(--primary-deep); }
.service-picker-option.is-selected { background: var(--primary-soft); color: var(--primary-deep); }
.service-option-check {
    width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); background: #F3EFE2; color: transparent; box-shadow: inset 0 0 0 1px var(--border);
}
.service-picker-option.is-selected .service-option-check { background: var(--primary-deep); color: #fff; box-shadow: none; }
.service-option-copy { min-width: 0; }
.service-option-copy strong { display: block; color: inherit; font-size: .88rem; line-height: 1.25; }
.service-option-copy small { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.native-service-select { display: none; }
.service-selection-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(240px, 340px); align-items: start; gap: .85rem; }
.booking-progress { display: grid; gap: .5rem; margin-bottom: 1rem; }
.booking-progress strong { display: block; color: var(--primary); font-size: .9rem; }
.progress-track { height: 8px; border-radius: var(--radius-pill); background: #EFE7D2; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-mid)); transition: width .25s ease; }
.booking-step { display: none; animation: fadeIn .2s ease; }
.booking-step.active { display: block; }
.booking-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.selected-services, .booking-summary { display: grid; gap: .5rem; }
.service-chip, .booking-summary p { margin: 0; padding: .6rem .85rem; border-radius: 8px; background: #FBF6E3; border: 1px solid #EADFB8; font-weight: 700; font-size: .85rem; }
.service-amount-panel { padding: .85rem; border: 1px solid #EADFB8; border-radius: var(--radius); background: linear-gradient(180deg, #fff, #FDFAF0); box-shadow: var(--shadow-sm); }
.service-amount-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .7rem; }
.service-amount-header span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.service-amount-header strong { color: var(--primary); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; }
.service-amount-items { display: grid; gap: .4rem; }
.service-amount-item, .service-amount-line { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: .85rem; }
.service-amount-item span, .service-amount-line span { min-width: 0; color: #2B2009; font-weight: 700; }
.service-amount-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-amount-item strong, .service-amount-line strong { color: var(--text); font-size: .85rem; white-space: nowrap; }
.service-amount-empty { margin: 0; color: var(--muted); font-size: .85rem; }
.service-amount-divider { height: 1px; margin: .7rem 0; background: #EFE7D2; }
.service-amount-discount span, .service-amount-discount strong { color: #18805f; }
.service-amount-discount[hidden] { display: none; }
.service-amount-duration { display: inline-flex; align-items: center; gap: .4rem; margin-top: .65rem; padding: .35rem .55rem; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 800; }
.slot-legend { display: flex; flex-wrap: wrap; gap: .65rem; color: var(--muted); font-size: .82rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== PROFILE PAGE ===== */
.profile-container { max-width: 900px; margin: 0 auto; }
.profile-header { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); flex-shrink: 0; }
.loyalty-summary { padding: .75rem 0; }
.tier-progress { margin: .5rem 0; }
.password-toggle { border: 0; background: transparent; cursor: pointer; padding: .25rem; color: var(--muted); display: inline-flex; align-items: center; }
.password-toggle:hover { color: var(--primary); }
.custom-key, .custom-value { font-family: monospace; font-size: .85rem; }
.btn-text { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.auth-submit { min-height: 46px; }

/* ===== MISC UTILITIES ===== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.gap-1 { gap: .35rem; }
.gap-2 { gap: .65rem; }
.mb-2 { margin-bottom: .65rem; }
.mb-3 { margin-bottom: 1rem; }
.hidden { display: none; }
a { color: var(--primary); }
.text-muted { color: var(--muted); }
.print-area { background: #fff; color: #222; padding: 1.5rem; border-radius: var(--radius-lg); }
.bill-header { align-items: flex-start; }
.bill-company { display: flex; gap: 1rem; align-items: center; }
.bill-logo { width: 64px; height: 64px; object-fit: contain; }
.bill-company h2 { margin: 0; font-size: 1.15rem; color: #222; }
.bill-company p { margin: .15rem 0; font-size: .85rem; color: #555; }
@media print {
    .navbar, .sidebar, .page-header, .no-print, .footer { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .print-area { box-shadow: none; padding: 0; }
}

/* ===== BOOKING FLOW (customer) ===== */
.gender-filter { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.gender-filter button, .gender-filter a {
    border: 1px solid var(--border); background: #fff; color: #4A3C22;
    border-radius: var(--radius-pill); padding: .5rem .85rem; cursor: pointer; font-weight: 700; font-size: .82rem; text-decoration: none;
}
.gender-filter .active { background: var(--primary-deep); color: #fff; border-color: var(--primary-deep); }

/* ===== FILTER PANEL & PILLS (admin lists) ===== */
.filter-panel { padding: 1rem 1.25rem .25rem; border-bottom: 1px solid var(--border); background: #fff; }
.filter-panel .form-grid { gap: .75rem; }
.filter-panel .form-group { margin-bottom: .75rem; }
.filter-actions { display: flex; gap: .5rem; margin-bottom: .85rem; }
.filter-pills { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding: .85rem 1.25rem; background: #fff; border-bottom: 1px solid var(--border); }
.filter-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid var(--border); background: #fff; color: #4A3C22;
    border-radius: var(--radius-pill); padding: .4rem .8rem; cursor: pointer;
    font-weight: 700; font-size: .8rem; text-decoration: none; transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill .pill-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 .35rem; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-size: .72rem;
}
.filter-pill.active { background: var(--primary-deep); color: #fff; border-color: var(--primary-deep); }
.filter-pill.active .pill-count { background: rgba(255,255,255,.22); color: #fff; }
.filter-clear { color: var(--danger); font-size: .8rem; font-weight: 700; text-decoration: none; margin-left: .35rem; }
.filter-clear:hover { text-decoration: underline; }
.icon-title { display: inline-flex; align-items: center; gap: .45rem; }
.service-thumb { width: 48px; height: 36px; border-radius: 6px; object-fit: cover; background: #F3EFE2; }
.service-thumb-placeholder { width: 48px; height: 36px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: #F3EFE2; }
.service-card-image { width: 100%; aspect-ratio: 16/10; border-radius: 8px; object-fit: cover; margin-bottom: .75rem; }
.option-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.info-panel { padding: .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: #FDFAF0; }
.stat-list { display: grid; gap: .65rem; color: #2B2009; }
.stat-list p { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
.stat-list p:last-child { border-bottom: 0; padding-bottom: 0; }

/* ===== AUTH PAGES (login/register/OTP) ===== */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-layout {
    width: min(1040px, 100%); min-height: 680px;
    display: grid; grid-template-columns: minmax(320px,.92fr) minmax(390px,1fr);
    border-radius: 24px; overflow: hidden; background: #fff;
    box-shadow: 0 28px 80px rgba(43, 32, 8, .20);
}
.auth-layout-register { grid-template-columns: minmax(320px,.82fr) minmax(520px,1.18fr); }
.auth-showcase {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 680px; padding: 2rem; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, rgba(33, 24, 7, .92), rgba(74, 56, 12, .94)), url('https://images.unsplash.com/photo-1522337660859-02fbefca4702?auto=format&fit=crop&w=1100&q=80') center/cover;
}
.auth-showcase::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, #F5E7B8, var(--primary-mid), transparent);
}
.auth-showcase::after {
    content: ""; position: absolute; right: -34%; bottom: -18%;
    width: 88%; height: 56%; background: rgba(212, 175, 55, .10); border-radius: 52% 0 0 0;
}
.auth-showcase > * { position: relative; z-index: 1; }
.auth-brand { display: inline-flex; align-items: center; gap: .85rem; color: #F5E7B8; font-weight: 900; font-size: 1.35rem; text-decoration: none; font-family: "Playfair Display", Georgia, serif; }
.auth-brand-logo { width: 44px; border-radius: 10px; }
.showcase-copy { margin: 1.5rem 0; max-width: 480px; }
.showcase-copy h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; margin-bottom: .8rem; }
.showcase-copy p { font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.85); }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
.showcase-item { padding: .7rem; border-radius: 10px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.showcase-item i { font-size: 1rem; margin-bottom: .3rem; }
.showcase-item strong { display: block; font-size: .78rem; margin-bottom: .15rem; }
.showcase-item small { font-size: .7rem; opacity: .7; }
.auth-panel { padding: 2.25rem; display: flex; flex-direction: column; }
.auth-kicker { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .15rem; }
.auth-heading { margin-bottom: 1.2rem; }
.auth-heading h2 { font-size: 1.5rem; font-weight: 800; color: #050505; }
.auth-heading .muted { color: #5E5240; font-size: .88rem; margin-top: .25rem; }
.auth-panel label { color: #050505; font-size: .82rem; }
.auth-panel input:not([type="checkbox"]):not([type="radio"]) { background: #F3EFE2; border: 0; box-shadow: inset 0 0 0 1px var(--border); border-radius: 10px; padding: .65rem .85rem; }
.auth-panel .btn-primary { background: var(--primary-deep); color: #fff; border-radius: var(--radius-pill); padding: .7rem 1.25rem; }
.auth-panel .btn-primary:hover { background: var(--primary-deep); }
.auth-panel .btn-secondary { background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-pill); padding: .7rem 1.25rem; }
.auth-panel .btn-secondary:hover { background: #F3E6B8; }
.auth-link { font-size: .83rem; color: #5E5240; margin-top: .3rem; }
.auth-link a { color: var(--primary-deep); font-weight: 900; }
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .5rem 0 .75rem; }
.role-option { position: relative; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option span {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .65rem; border-radius: 10px; background: #F3EFE2; color: #5E5240;
    font-size: .75rem; font-weight: 800; cursor: pointer; transition: all .2s;
}
.role-option input:checked + span { background: var(--primary-soft); color: var(--primary-deep); }
.role-option span i { font-size: 1.2rem; }
.icon-field { display: flex; align-items: center; gap: .65rem; border-radius: 10px; background: #F3EFE2; padding: .1rem .85rem; box-shadow: inset 0 0 0 1px var(--border); }
.icon-field i { color: var(--muted); font-size: .95rem; }
.icon-field input { flex: 1; background: transparent !important; box-shadow: none !important; padding: .65rem 0 !important; }
.auth-footer { margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--muted); }

/* OTP form */
.otp-form { display: grid; gap: .75rem; }
.otp-form .form-group { margin-bottom: 0; }
.otp-actions { display: flex; gap: .65rem; align-items: stretch; justify-content: space-between; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.otp-actions form { flex: 1; }
.otp-actions .btn { width: 100%; min-height: 44px; border-radius: 10px; white-space: nowrap; }
.otp-actions form:first-child .btn { border: 1px solid var(--border); background: #fff; color: var(--primary-deep); }
.otp-actions form:first-child .btn:hover { border-color: var(--primary); background: #FDF8E7; }
.otp-actions form:last-child .btn { border: 1px solid var(--primary); background: var(--primary-soft); color: var(--primary-deep); }
.otp-actions form:last-child .btn:hover { background: #F3E6B8; }

.auth-back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; color: var(--primary); font-weight: 900; font-size: .88rem; text-decoration: none; }
.auth-back-link:hover { text-decoration: underline; }
.captcha-image { display: block; width: 180px; max-width: 100%; height: auto; border-radius: 8px; user-select: none; }
.captcha-refresh { border: 0; background: transparent; cursor: pointer; padding: .35rem; }
.captcha-refresh i { color: var(--primary); font-size: 1rem; }
.captcha-refresh.is-spinning i { animation: spin .35s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAVBAR BURGER (base first; media queries below override for mobile) ===== */
.navbar-burger {
    display: none; width: 40px; height: 40px; margin-right: auto; flex-shrink: 0;
    align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill);
    background: #fff; color: var(--primary); box-shadow: var(--shadow-sm);
    cursor: pointer; font-size: 1.05rem; transition: all .2s ease;
}
.navbar-burger:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .action-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 1024px) {
    .sidebar:not(.pinned) { width: var(--sidebar-w-collapsed); }
    .sidebar:not(.pinned) .sidebar-brand span:last-child { max-width: 0; opacity: 0; }
    .sidebar:not(.pinned) .sidebar-title { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
    .sidebar:not(.pinned) .sidebar-link > span:not(.icon),
    .sidebar:not(.pinned) .sidebar-parent > span:not(.icon) { max-width: 0; opacity: 0; }
    .sidebar:not(.pinned) .sidebar-link,
    .sidebar:not(.pinned) .sidebar-parent { justify-content: flex-start; padding: .55rem 14px; border-radius: var(--radius-pill); margin: 2px 8px; }
    .sidebar:not(.pinned) .sidebar-link .icon,
    .sidebar:not(.pinned) .sidebar-parent .icon { margin: 0; font-size: 1.2rem; }
    .sidebar:not(.pinned) .sidebar-parent .chevron { opacity: 0; }
    /* A pinned sidebar is expanded over the page (see toggleSubmenu in main.js) */
    .sidebar.pinned { width: var(--sidebar-w); z-index: 210; }
    .sidebar:not(.pinned) .sidebar-children { display: none; }
    .navbar { left: var(--sidebar-w-collapsed); }
    .main-content { margin-left: var(--sidebar-w-collapsed); }
    .footer { margin-left: var(--sidebar-w-collapsed); }
}
@media (max-width: 900px) {
    .navbar { left: 0; }
    .navbar-burger { display: inline-flex; }
    .sidebar, .sidebar:not(.pinned), .sidebar.collapsed {
        position: fixed; top: 0; left: 0; z-index: 200;
        width: min(300px, 84vw); height: 100dvh; border-radius: 0 24px 24px 0;
        transform: translateX(-102%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        box-shadow: none;
    }
    .sidebar.mobile-open { transform: translateX(0); box-shadow: 24px 0 60px rgba(28, 19, 5, .35); }
    .sidebar-nav { display: block; flex: 1; overflow-y: auto; padding: 0 .75rem .75rem; }
    .sidebar-title { display: block; }
    .sidebar-link { border-radius: var(--radius-pill) 0 0 var(--radius-pill); padding: .55rem .85rem; min-height: 44px; font-size: .88rem; }
    .sidebar-link .icon { width: 28px; font-size: 1.1rem; }
    .sidebar-header { min-height: var(--navbar-h); padding: .85rem 1rem; }
    .sidebar-brand { font-size: 1.2rem; }
    .brand-mark { width: 42px; height: 50px; }
    .sidebar-toggle { display: none; }
    .sidebar.collapsed { width: min(300px, 84vw); }
    .sidebar.collapsed .sidebar-brand span:last-child,
    .sidebar.collapsed .sidebar-title,
    .sidebar.collapsed .sidebar-link > span:not(.icon),
    .sidebar.collapsed .sidebar-parent > span:not(.icon) { max-width: 200px; opacity: 1; }
    .sidebar.collapsed .sidebar-link,
    .sidebar.collapsed .sidebar-parent { padding: .55rem .85rem; border-radius: var(--radius-pill) 0 0 var(--radius-pill); margin: 2px 0; }
    .sidebar.collapsed .sidebar-link .icon,
    .sidebar.collapsed .sidebar-parent .icon { margin: 0; font-size: 1.1rem; }
    .sidebar.collapsed .sidebar-parent { pointer-events: auto; }
    .sidebar.collapsed .sidebar-parent .chevron { opacity: .7; }
    .sidebar.collapsed .sidebar-group.is-open .sidebar-children { display: block; }
.main-content { margin-left: 0 !important; }
    .footer { margin-left: 0 !important; }
    body.sidebar-collapsed .navbar { left: 0; }
    .service-selection-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .65rem; }
    .dashboard-card { padding: .75rem; }
    .card-value { font-size: 1.2rem; }
    .card-icon { font-size: 1.1rem; }
    .action-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
    .action-card { padding: .65rem; min-height: 60px; }
    .action-card i { width: 30px; height: 30px; font-size: .85rem; }
    .form-grid { grid-template-columns: 1fr; }
    .page-header { padding: .65rem .85rem; }
    .page-header h1 { font-size: 1.1rem; }
    .main-content { padding: .75rem .85rem 1rem; }
    .table-container { border-radius: var(--radius); }
    .table-header { padding: .55rem .75rem; }
    th, td { padding: .4rem .5rem; font-size: .8rem; }
    .modal-content { margin: .5rem; padding: 1rem; }
}
@media (max-width: 640px) {
    .auth-layout, .auth-layout-register { grid-template-columns: 1fr; min-height: auto; }
    .auth-showcase { min-height: 260px; padding: 1.25rem; }
    .auth-panel { padding: 1.5rem; }
    .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
    .user-welcome small { display: none; }
    .auth-panel { padding: 1.25rem; }
    .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-selector { grid-template-columns: 1fr; }
    .otp-actions { flex-direction: column; }
}
@media (max-width: 480px) {
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .dashboard-card { padding: .6rem; }
    .card-value { font-size: 1.1rem; }
    .action-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 .65rem; }
    .nav-icon, .nav-link { padding: 0 .6rem; font-size: .8rem; }
    .user-welcome { font-size: .78rem; }
}

/* ===== NAVBAR BURGER + MOBILE DRAWER BACKDROP ===== */
.sidebar-backdrop {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(28, 19, 5, .5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ===== TABS (segmented control) ===== */
.tabs {
    display: inline-flex; align-items: center; gap: .2rem; max-width: 100%;
    padding: .25rem; background: #F3EFE2; border-radius: var(--radius-pill);
    box-shadow: inset 0 0 0 1px var(--border);
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border: 0; background: transparent; font-family: inherit;
    padding: .45rem 1rem; min-height: 36px; border-radius: var(--radius-pill);
    font-size: .83rem; font-weight: 800; color: var(--muted);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: all .18s ease;
}
.tab-btn:hover { color: var(--primary-deep); background: rgba(154, 122, 0, .08); }
.tab-btn.active { background: var(--primary-deep); color: #fff; box-shadow: var(--shadow-sm); }
.tab-btn.active:hover { background: var(--primary-deep); color: #fff; }
.tab-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; }
.role-selector-two { grid-template-columns: repeat(2, 1fr); }

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 3px solid var(--primary-mid); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 2000; padding: .6rem 1rem; border-radius: var(--radius); background: var(--primary-deep); color: #fff; font-weight: 800; transition: top .15s ease; }
.skip-link:focus { top: .5rem; }
.main-content:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Service filter fixes */
.service-picker-menu::-webkit-scrollbar { width: 4px; }
.service-picker-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
.field-message { display: block; margin-top: .25rem; color: #d93025; font-size: .78rem; }
.field-message:empty { display: none; }
.field-message[data-type="ok"] { color: #188038; }

/* ===== POS (Quick Bill) ===== */
/* ===== POS (fit-to-viewport billing; top navbar hidden on desktop, see below) ===== */
.pos-main {
    height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    padding: .6rem 1.25rem .75rem;
}
.pos-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0; padding-bottom: .6rem; border-bottom: 1px solid rgba(212,175,55,.35); margin-bottom: .7rem; }
.pos-header h1 { font-size: 1.3rem; font-weight: 700; }
.pos-header h1 i { color: var(--primary); }
.pos-header-right { display: flex; align-items: center; gap: .6rem; }
.pos-clock {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .75rem; border-radius: var(--radius-pill);
    background: linear-gradient(120deg, #FBF4DC, #F7EED0); color: var(--primary-deep);
    border: 1px solid rgba(212,175,55,.45); font-weight: 800; font-size: .78rem;
    box-shadow: var(--shadow-sm); white-space: nowrap;
}

.pos-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 400px; gap: .9rem; }
.pos-layout > * { min-width: 0; }

/* Catalog: toolbar fixed, grid scrolls internally */
.pos-catalog { display: flex; flex-direction: column; min-height: 0; }
.pos-catalog-toolbar { flex-shrink: 0; margin-bottom: .6rem; }
.pos-cats { flex-shrink: 0; margin-bottom: .6rem; }

/* Catalog */
.pos-catalog-toolbar { margin-bottom: .75rem; }
.pos-search {
    display: flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius-pill);
    padding: .32rem .4rem .32rem .95rem; box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}
.pos-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pos-search i { color: var(--primary); }
.pos-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: .9rem; min-width: 0; background: transparent; }
.pos-search input::placeholder { color: var(--muted); }
.pos-search-clear {
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: var(--light); color: var(--muted); cursor: pointer;
    transition: all .15s ease;
}
.pos-search-clear:hover { background: var(--danger); color: #fff; }

.pos-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pos-cats .filter-pill { border: 1px solid rgba(212,175,55,.35); background: #fff; }
.pos-cats .filter-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pos-cats .filter-pill.active { background: linear-gradient(120deg, #9A7A00, #C9A227); border-color: transparent; box-shadow: 0 8px 18px rgba(154,122,0,.28); }
.pos-cats .filter-pill.active .pill-count { background: rgba(255,255,255,.22); color: #fff; }

.pos-grid { display: grid; flex: 1; min-height: 0; overflow-y: auto; padding-right: .2rem; grid-template-columns: repeat(auto-fill, 140px); gap: .5rem; }
.pos-service-card {
    position: relative;
    display: flex; flex-direction: column; gap: .3rem; text-align: left;
    padding: .7rem; height: 84px; overflow: hidden;
    background: #fff; border: 1px solid rgba(212,175,55,.3); border-radius: 14px;
    cursor: pointer; font-family: inherit; transition: all .2s ease;
}
.pos-service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary-mid); }
.pos-service-card.in-cart { border-color: var(--success); background: #f3fdf7; }
.pos-svc-name { font-weight: 700; font-size: .8rem; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pos-svc-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; }
.pos-svc-price { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: .95rem; color: var(--primary); }
.pos-svc-duration { display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; font-weight: 700; color: var(--muted); }
.pos-svc-add {
    position: absolute; top: .4rem; right: .4rem;
    width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); background: linear-gradient(135deg, #9A7A00, #C9A227); color: #fff;
    font-size: .7rem; box-shadow: 0 4px 10px rgba(154,122,0,.3);
}
.pos-service-card.in-cart .pos-svc-add { background: var(--success); box-shadow: none; }
.pos-svc-qty {
    position: absolute; top: -.35rem; right: -.35rem; min-width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem;
    border-radius: var(--radius-pill); background: linear-gradient(135deg, #9A7A00, #C9A227); color: #fff;
    font-size: .75rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.pos-empty {
    padding: 2rem 1rem; text-align: center; color: var(--muted);
    background: #fff; border: 1px dashed rgba(212,175,55,.5); border-radius: var(--radius-lg);
}
.pos-empty i { font-size: 1.5rem; margin-bottom: .5rem; color: rgba(212,175,55,.4); }

/* Cart panel: full-height, body scrolls, totals+charge pinned */
.pos-cart {
    position: static;
    background: #FFFDF6; border: 1px solid rgba(212,175,55,.4); border-radius: 16px;
    box-shadow: 0 20px 44px rgba(43,32,8,.12); overflow: hidden;
    display: flex; flex-direction: column; min-height: 0;
}
.pos-cart::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 1;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}
.pos-cart-head {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    flex-shrink: 0;
    padding: .5rem .8rem; border-bottom: 1px solid rgba(212,175,55,.3);
    background: linear-gradient(120deg, #2B2009, #4A380A); color: #F5E7B8;
}
.pos-cart-head h3 { font-size: .98rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.pos-cart-head .btn { background: rgba(212,175,55,.16); color: #F5E7B8; border: 1px solid rgba(212,175,55,.4); }
.pos-cart-head .btn:hover { background: rgba(212,175,55,.3); color: #F5E7B8; }
.pos-cart-count {
    min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .35rem; border-radius: var(--radius-pill); background: linear-gradient(135deg, #D4AF37, #9A7A00); color: #fff;
    font-size: .72rem; font-weight: 900;
}
.pos-cart-form { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* Compact top bar: customer + staff in one row, out of the scroll area */
.pos-cart-top {
    flex-shrink: 0; display: flex; align-items: stretch; gap: .5rem;
    padding: .55rem .8rem 0;
}
.pos-cart-customer { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: .45rem; }
.pos-cart-customer .customer-picker { flex: 1; min-width: 0; }
.pos-cart-customer:has(#posCustomerSelected:not([hidden])) .customer-picker-input { display: none; }
.pos-cart-top.editing .customer-picker-input { display: flex !important; }
.pos-cart-top.editing .pos-customer-selected { display: none; }
.pos-staff-inline {
    flex-shrink: 0; display: flex; align-items: center; gap: .35rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    padding: .05rem .5rem .05rem .6rem; transition: all .15s ease;
}
.pos-staff-inline i { color: var(--muted); font-size: .8rem; }
.pos-staff-inline select {
    border: 0; outline: 0; background: transparent; font: inherit; font-size: .82rem;
    font-weight: 700; color: var(--text); cursor: pointer; max-width: 108px; padding: .5rem 0;
}
.pos-staff-inline:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.pos-cart-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .4rem .8rem .8rem; }
.pos-cart-body > .pos-section:first-of-type { flex: 1; min-height: 0; }
.pos-cart-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: .45rem; padding: .55rem .8rem .6rem; border-top: 1px solid rgba(212,175,55,.4); background: linear-gradient(120deg, #2B2009, #3A2D0A); }
.pos-cart-foot .pos-label { color: #E8C96A; }
.pos-cart-foot .pos-totals { border: 0; padding: 0; }
.pos-cart-foot .pay-methods button { background: rgba(255,255,255,.08); color: #F5E7B8; border: 1px solid rgba(212,175,55,.4); }
.pos-cart-foot .pay-methods button:hover { border-color: #D4AF37; color: #fff; background: rgba(212,175,55,.18); }
.pos-cart-foot .pay-methods button.active { background: linear-gradient(120deg, #9A7A00, #C9A227); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(154,122,0,.35); }
.pos-section { display: flex; flex-direction: column; gap: .4rem; }
.pos-label { font-size: .75rem; font-weight: 800; color: var(--primary-deep); text-transform: uppercase; letter-spacing: .05em; }
.pos-req { color: var(--danger); }

.pos-customer-row { display: flex; align-items: stretch; gap: .5rem; }
.pos-customer-row .customer-picker { flex: 1; min-width: 0; }
.pos-new-customer-btn { flex-shrink: 0; align-self: stretch; white-space: nowrap; }

.pos-cart-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding-right: .2rem; }
.pos-cart-empty { padding: .9rem .5rem; text-align: center; color: var(--muted); }
.pos-cart-empty i { font-size: 1.2rem; color: rgba(212,175,55,.4); margin-bottom: .25rem; }
.pos-cart-empty p { font-size: .78rem; }
.pos-cart-line {
    display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .55rem;
    padding: .18rem .3rem; border-bottom: 1px dashed rgba(212,175,55,.2);
    transition: background .15s ease;
}
.pos-cart-line:last-child { border-bottom: 0; }
.pos-cart-line:hover { background: rgba(212,175,55,.07); }
.pos-line-name {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 800; font-size: .76rem; line-height: 1.25;
}
.pos-line-remove { opacity: 0; pointer-events: none; }
.pos-cart-line:hover .pos-line-remove,
.pos-cart-line:focus-within .pos-line-remove,
.pos-line-remove:focus-visible { opacity: 1; pointer-events: auto; }

.qty-stepper { display: inline-flex; align-items: center; gap: .05rem; }
.qty-stepper button {
    width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--primary);
    cursor: pointer; transition: all .15s ease; font-size: .62rem;
}
.qty-stepper button:hover { background: var(--primary-deep); color: #fff; }
.qty-stepper span { min-width: 16px; text-align: center; font-weight: 800; font-size: .74rem; }
.pos-line-total { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: .78rem; color: var(--primary); white-space: nowrap; }
.pos-line-remove {

    width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: var(--light); color: var(--muted);
    cursor: pointer; transition: all .15s ease; font-size: .58rem;
}
.pos-line-remove:hover { background: var(--danger); color: #fff; }

/* Extras (collapsible: discount, gift card, loyalty, notes) */
.pos-extras-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    width: 100%; padding: .38rem .65rem;
    border: 1px dashed rgba(212,175,55,.55); border-radius: 12px; background: #FFF9EA;
    color: #8a6100; font-size: .78rem; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: all .15s ease;
}
.pos-extras-toggle:hover { background: #FFF3D6; border-color: #D4AF37; }
.pos-extras-toggle .pos-extras-chevron { transition: transform .18s ease; font-size: .7rem; }
.pos-extras-toggle.open .pos-extras-chevron { transform: rotate(180deg); }
.pos-extras-panel {
    display: flex; flex-direction: column; gap: .5rem;
    padding: .5rem .65rem; border: 1px dashed rgba(212,175,55,.45); border-radius: 12px;
    background: #FFFDF6;
}

/* Extras */
.pos-extras { display: flex; flex-direction: column; gap: .45rem; }
.pos-extra-row {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center; gap: .45rem;
}
.pos-extra-row input[type="number"], .pos-gift-row input, .pos-cart-body textarea {
    width: 100%; padding: .45rem .7rem; font: inherit; font-size: .88rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; outline: none;
    transition: all .15s ease;
}
.pos-extra-row input:focus, .pos-gift-row input:focus, .pos-cart-body textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.pos-cart-body textarea { resize: vertical; min-height: 34px; }
.pos-discount-chips { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.pos-discount-chips button {
    padding: .3rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: #fff; color: var(--muted); font-family: inherit; font-size: .75rem; font-weight: 800;
    cursor: pointer; transition: all .15s ease;
}
.pos-discount-chips button:hover { border-color: var(--primary); color: var(--primary); }
.pos-discount-chips button.active { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.pos-gift-row { display: flex; gap: .4rem; }
.pos-gift-row input { flex: 1; text-transform: uppercase; }
.pos-gift-msg { font-size: .78rem; grid-column: 1 / -1; }
.pos-gift-msg .ok { color: var(--success); font-weight: 700; }
.pos-gift-msg .err { color: var(--danger); font-weight: 700; }
.pos-gift-msg:empty, .pos-redeem-msg:empty, .pos-earn-hint:empty { display: none; }

/* Totals */
.pos-totals {
    border-top: 1px dashed rgba(212,175,55,.55); padding-top: .45rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: .28rem 1.1rem;
}
.pos-total-row { display: flex; align-items: center; justify-content: space-between; font-size: .73rem; color: var(--muted); font-weight: 600; }
.pos-total-row[hidden] { display: none; }
.pos-total-row span:last-child { font-weight: 800; color: var(--text); }
.pos-cart-foot .pos-total-row { color: rgba(245,231,184,.75); }
.pos-cart-foot .pos-total-row span:last-child { color: #F5E7B8; }
.pos-amount-negative { color: var(--success) !important; }
.pos-cart-foot .pos-amount-negative { color: #7ED6A5 !important; }
.pos-total-final {
    grid-column: 1 / -1;
    margin-top: .1rem; padding: .38rem .8rem; border-radius: var(--radius-lg);
    background: rgba(255,255,255,.07); border: 1px solid rgba(212,175,55,.45);
    color: #F5E7B8;
    display: flex; align-items: center; justify-content: space-between;
}
.pos-total-final span:first-child { color: #F5E7B8; }
.pos-total-final span:last-child { font-family: "Playfair Display", Georgia, serif; font-size: 1.22rem; font-weight: 700; color: #E8C96A; }

/* Payment methods */
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.pay-methods button {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    padding: .42rem .3rem; border: 1px solid rgba(212,175,55,.35); border-radius: var(--radius-lg);
    background: #fff; color: var(--muted); font-family: inherit; font-size: .68rem; font-weight: 800;
    cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.pay-methods button i { font-size: .8rem; }
.pay-methods button:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pay-methods button.active { background: linear-gradient(120deg, #9A7A00, #C9A227); border-color: transparent; color: #fff; box-shadow: 0 10px 22px rgba(154,122,0,.3); }

/* Charge */
.pos-charge-row { display: flex; align-items: center; gap: .6rem; }
.pos-charge-row .charge-btn { flex: 1; margin: 0; }
.charge-btn {
    min-height: 46px !important; font-size: 1rem; font-weight: 700;
    font-family: "Playfair Display", Georgia, serif !important; letter-spacing: .02em;
    background: linear-gradient(120deg, #9A7A00, #D4AF37) !important;
    border: 0 !important; box-shadow: 0 14px 30px rgba(154,122,0,.35) !important;
}
.charge-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(154,122,0,.45) !important; }
.charge-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none !important; }
.pos-charge-hint { font-size: .68rem; color: rgba(245,231,184,.65); max-width: 128px; line-height: 1.3; }

/* Customer picker */
.customer-picker { position: relative; }
.customer-picker-input {
    display: flex; align-items: center; gap: .5rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    padding: .15rem .4rem .15rem .8rem; transition: all .15s ease;
}
.customer-picker-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.customer-picker-input i { color: var(--muted); }
.customer-picker-input input { flex: 1; border: 0; outline: 0; font: inherit; font-size: .88rem; padding: .45rem 0; min-width: 0; background: transparent; }
.customer-picker-clear {
    width: 26px; height: 26px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: var(--light); color: var(--muted); cursor: pointer;
}
.customer-picker-clear:hover { background: var(--danger); color: #fff; }
.customer-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
}
.customer-option {
    width: 100%; display: flex; flex-direction: column; gap: .1rem; text-align: left;
    padding: .5rem .75rem; border: 0; border-bottom: 1px solid var(--border);
    background: #fff; font-family: inherit; cursor: pointer; transition: all .12s ease;
}
.customer-option:last-child { border-bottom: 0; }
.customer-option:hover, .customer-option.active { background: var(--primary-soft); }
.co-name { font-weight: 800; font-size: .85rem; }
.co-sub { font-size: .75rem; color: var(--muted); }
.customer-dropdown-empty { padding: .7rem; text-align: center; font-size: .8rem; color: var(--muted); }
.pos-customer-selected {
    display: flex; align-items: center; gap: .4rem;
    white-space: nowrap; overflow: hidden;
    padding: .38rem .7rem; border-radius: var(--radius);
    background: #eefaf4; border: 1px solid #cdeee0; color: #0c7a48;
    font-weight: 800; font-size: .85rem;
    cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.pos-customer-selected:hover { background: #e2f5ea; border-color: #a9e0c9; }
.pos-customer-selected i { color: var(--success); flex-shrink: 0; }
.pos-customer-selected span { font-weight: 600; color: #0c7a48; opacity: .8; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pos-customer-selected .pos-pts { flex: 0 0 auto; background: var(--warning); color: var(--dark); border-radius: var(--radius-pill); padding: .1rem .5rem; font-size: .72rem; font-weight: 900; opacity: 1; }
.pos-customer-selected .loyalty-tier-badge { flex: 0 0 auto; }
.pos-customer-chip-clear {
    flex: 0 0 auto; width: 22px; height: 22px; margin-left: auto;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(12,122,72,.14); color: #0c7a48;
    cursor: pointer; transition: all .15s ease; font-size: .62rem;
}
.pos-customer-chip-clear:hover { background: var(--danger); color: #fff; }
.pos-customer-chip-clear i { color: inherit; }

/* Toast */
.toast {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
    max-width: 380px; padding: .9rem 1.1rem; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #2B2009, #3A2D0A); color: #fff; font-size: .85rem;
    box-shadow: var(--shadow-hover); border: 1px solid rgba(212,175,55,.45);
    transform: translateY(20px); opacity: 0; transition: all .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); border-color: transparent; }
.toast a { color: #fff; text-decoration: underline; font-weight: 800; }

/* Packages */
.pos-package-card { border-color: rgba(212,175,55,.6); }
.pos-package-card:hover { border-color: #D4AF37; }
.pos-save-badge {
    position: absolute; bottom: .45rem; right: .45rem;
    display: inline-flex; align-items: center; gap: .2rem;
    padding: .15rem .5rem; border-radius: var(--radius-pill);
    background: linear-gradient(120deg, #FFF3D6, #FFE9B8); color: #9A6100; font-size: .7rem; font-weight: 800;
}
.pos-pkg-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .2rem; }
.pos-pkg-chip {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem .6rem; border: 1px dashed #D4AF37; border-radius: var(--radius);
    background: #FFF9EA; font-size: .78rem; font-weight: 700; color: #8a6100;
}
.pos-pkg-chip .pos-pkg-save { margin-left: auto; color: var(--success); font-weight: 900; }

/* Loyalty panel */
.pos-loyalty {
    display: flex; flex-direction: column; gap: .3rem;
    padding: .5rem .65rem; border: 1px solid #E5D5A3; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #FFFDF6, #FBF4DC);
}
.pos-loyalty-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pos-loyalty-tier { font-weight: 900; font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }
.loyalty-tier-badge { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .78rem; }
.pos-loyalty-bal { font-weight: 800; font-size: .8rem; color: var(--muted); }
.pos-redeem-row { display: flex; gap: .4rem; }
.pos-redeem-row input {
    flex: 1; min-width: 0; padding: .4rem .65rem; font: inherit; font-size: .85rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; outline: none;
}
.pos-redeem-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pos-redeem-msg { font-size: .78rem; }
.pos-redeem-msg .ok { color: var(--success); font-weight: 700; }
.pos-redeem-msg .err { color: var(--danger); font-weight: 700; }
.pos-earn-hint { font-size: .75rem; color: var(--primary); font-weight: 800; }

/* Split payments */
.pos-split-list { display: flex; flex-direction: column; gap: .4rem; }
.pos-split-empty { text-align: center; font-size: .72rem; color: rgba(245,231,184,.6); padding: .1rem 0 .2rem; }
.pos-split-row { display: flex; align-items: center; gap: .5rem; }
.pos-split-method { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; color: #F5E7B8; min-width: 92px; }
.pos-split-method i { color: #E8C96A; }
.pos-split-amtwrap {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: .1rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(212,175,55,.4);
    border-radius: var(--radius); padding: 0 .4rem 0 .55rem; transition: all .15s ease;
}
.pos-split-amtwrap:focus-within { border-color: #D4AF37; box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.pos-split-cur { color: #E8C96A; font-weight: 800; font-size: .8rem; }
.pos-split-amount {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: #fff; font: inherit; font-size: .9rem; font-weight: 800; padding: .32rem 0;
}
.pos-split-amount::-webkit-inner-spin-button, .pos-split-amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pos-split-remove {
    width: 26px; height: 26px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,.1); color: #E5C96A; cursor: pointer;
    transition: all .15s ease; font-size: .68rem;
}
.pos-split-remove:hover { background: var(--danger); color: #fff; }
.pos-split-summary {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    font-size: .75rem; color: rgba(245,231,184,.75); margin-top: .1rem;
}
.pos-split-summary strong { color: #F5E7B8; font-family: "Playfair Display", Georgia, serif; font-size: .92rem; }
.pos-split-remain { font-weight: 800; }
.pos-split-remain.ok { color: #7ED6A5; }
.pos-split-remain.warn { color: #FFC861; }
.pos-split-remain.over { color: #FF8A8A; }
.pos-split-inputs { display: none; }

/* Cart head actions / drawer close */
.pos-cart-head-actions { display: flex; align-items: center; gap: .45rem; }
.pos-cart-close {
    display: none; width: 30px; height: 30px; align-items: center; justify-content: center;
    border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius-pill);
    background: rgba(212,175,55,.16); color: #F5E7B8; cursor: pointer; transition: all .15s ease; font-size: .72rem;
}
.pos-cart-close:hover { background: var(--danger); color: #fff; border-color: transparent; }

/* Floating cart bar + overlay (visible only up to tablet) */
.pos-cart-bar {
    display: none; align-items: center; gap: .6rem;
    position: fixed; right: 1rem; bottom: 1rem; z-index: 235;
    min-height: 48px; padding: .4rem 1.05rem;
    background: linear-gradient(120deg, #9A7A00, #C9A227); color: #fff;
    border: 0; border-radius: var(--radius-pill); font-family: inherit;
    font-weight: 800; font-size: .85rem; cursor: pointer; white-space: nowrap;
    box-shadow: 0 16px 38px rgba(154,122,0,.45); transition: transform .2s ease;
}
.pos-cart-bar:hover { transform: translateY(-2px); }
.pos-cart-bar.hide { display: none !important; }
.pos-cartbar-count { display: inline-flex; align-items: center; gap: .35rem; }
.pos-cartbar-count b {
    min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.25); border-radius: var(--radius-pill); font-size: .75rem; padding: 0 .32rem;
}
.pos-cartbar-total { font-family: "Playfair Display", Georgia, serif; font-size: 1.02rem; }
.pos-cartbar-chevron { font-size: .7rem; opacity: .8; transition: transform .2s ease; }
.pos-cart-bar.active .pos-cartbar-chevron { transform: rotate(180deg); }
.pos-overlay { display: none; }

/* Soft-UI polish: visible focus rings for keyboard users */
.pos-page button:focus-visible, .pos-page input:focus-visible, .pos-page select:focus-visible,
.pos-page textarea:focus-visible, .pos-page a:focus-visible { outline: 2px solid rgba(154,74,0,.6); outline-offset: 2px; }
.pos-service-card:active, .pay-methods button:active, .pos-cats .filter-pill:active { transform: scale(.98); }

@media (max-width: 1200px) {
    .pos-main { height: auto; overflow: visible; padding-bottom: 5.75rem; }
    .pos-layout { grid-template-columns: 1fr; }
    .pos-catalog { min-height: 50vh; }

    /* cart becomes a slide-in drawer */
    .pos-cart {
        position: fixed; top: 0; right: 0; z-index: 240;
        width: min(440px, 94vw); height: 100vh; height: 100dvh;
        border-radius: 18px 0 0 18px;
        transform: translateX(106%);
        transition: transform .3s cubic-bezier(.32,.72,.24,1);
        box-shadow: -22px 0 60px rgba(0,0,0,.35);
    }
    .pos-cart.open { transform: translateX(0); }
    .pos-cart-close { display: inline-flex; }

    .pos-overlay {
        display: block; position: fixed; inset: 0; z-index: 230;
        background: rgba(20,16,5,.55);
        opacity: 0; pointer-events: none; transition: opacity .25s ease;
    }
    .pos-overlay.show { opacity: 1; pointer-events: auto; }

    .pos-cart-bar { display: flex; }
}

/* Mobile: cart becomes a full-width bottom sheet */
@media (max-width: 640px) {
    .pos-cart {
        top: auto; bottom: 0; left: 0; right: 0; width: 100%;
        height: 88vh; height: 88dvh;
        border-radius: 22px 22px 0 0;
        transform: translateY(106%);
        box-shadow: 0 -18px 50px rgba(0,0,0,.4);
    }
    .pos-cart.open { transform: translateY(0); }
    .pos-cart-bar {
        left: .75rem; right: .75rem; bottom: .75rem; width: auto;
        justify-content: space-between; border-radius: var(--radius-pill);
        min-height: 54px; padding: .5rem 1rem; font-size: .9rem;
    }
    .pos-split-row { gap: .4rem; }
    .pos-split-method { min-width: 76px; }
    .pos-split-remove { width: 34px; height: 34px; }
    .pos-split-amount { padding: .5rem 0; }
    .pos-line-remove { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .pos-cart, .pos-overlay, .pos-cart-bar, .pos-service-card, .toast, .pay-methods button, .pos-cats .filter-pill { transition: none !important; }
}
@media (max-width: 560px) {
    .pay-methods { grid-template-columns: repeat(2, 1fr); }
    .pos-grid { grid-template-columns: repeat(auto-fill, 130px); }
    .pos-header { flex-direction: column; align-items: flex-start; }
    .pos-customer-row { flex-direction: column; }
    .pos-new-customer-btn { align-self: stretch; }
    .pos-cart-top { flex-wrap: wrap; }
    .pos-staff-inline { flex: 1 1 auto; }
    .pos-staff-inline select { max-width: none; width: 100%; }
    .pos-totals { grid-template-columns: 1fr; }
    .pos-charge-row { flex-direction: column; align-items: stretch; gap: .3rem; }
    .pos-charge-hint { max-width: none; text-align: center; }
}

/* POS page: hide global copyright footer so the billing viewport stays scroll-free */
body.pos-page .footer { display: none; }

/* POS page (desktop): hide top navbar too so billing uses full viewport height */
@media (min-width: 1201px) {
    body.pos-page .navbar { display: none; }
    body.pos-page .container-main { padding-top: 0; }
    body.pos-page .pos-main { padding: 0; }
    body.pos-page .pos-catalog { padding: .6rem 0 .75rem 1.25rem; }
    body.pos-page .pos-cart { border-radius: 0 0 16px 16px; }
}

/* ===== MOBILE TOUCH + SHEET LAYOUT (kept at end so it wins source order) ===== */
@media (max-width: 640px) {
    .btn, a.btn { min-height: 44px; padding: .55rem 1rem; }
    .btn-sm { min-height: 40px; }
    .nav-icon, .nav-link { width: 40px; height: 40px; padding: 0; }
    .filter-pill { min-height: 40px; padding: .45rem .85rem; }
    .pos-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
    .pos-cats::-webkit-scrollbar { height: 4px; }
    .pos-cats::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
    .pos-cats .filter-pill { flex-shrink: 0; }
.qty-stepper button { width: 32px; height: 32px; }
    .pos-line-remove { width: 32px; height: 32px; }
    .pos-customer-chip-clear { width: 32px; height: 32px; }
    .pos-search-clear, .customer-picker-clear { width: 34px; height: 34px; }
    .pos-svc-add { width: 28px; height: 28px; }
    .pay-methods button { min-height: 52px; }
    .pos-discount-chips button { min-height: 40px; }
    .tabs { width: 100%; border-radius: var(--radius); }
    .tab-btn { flex: 1; min-height: 44px; }
    .modal { align-items: flex-end; padding: 0; }
    .modal-content { width: 100%; max-width: 100%; max-height: 92vh; margin: 0; border-radius: 20px 20px 0 0; padding: 1.25rem; }
    .modal-close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
    .toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
    .profile-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .page-header { gap: .65rem; }
    .page-header .btn { min-height: 42px; }
    .footer-actions { flex-wrap: wrap; }
}

.demo-banner { background: #FDE7B0; color: #5A3A00; text-align: center; padding: .4rem 1rem; font-size: .8rem; font-weight: 700; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; border-top: 1px solid #F2C765; }
body:has(.demo-banner) .footer { padding-bottom: 2.4rem; }

/* ===== WALK-IN QUEUE (admin/queue.php) ===== */
.queue-header-stats { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.queue-stat {
    display: flex; align-items: center; gap: .55rem;
    background: var(--light); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .4rem .75rem;
}
.queue-stat i { color: var(--primary); font-size: .95rem; width: 1.15rem; text-align: center; }
.queue-stat b { display: block; font-size: 1.05rem; color: var(--text); font-weight: 800; line-height: 1.1; }
.queue-stat small { display: block; font-size: .64rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.queue-issue { padding: 1rem 1.1rem; }
.queue-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.queue-panel-head h3 { font-size: .95rem; margin: 0; color: var(--primary-deep); display: flex; align-items: center; gap: .45rem; }
.queue-panel-head h3 i { color: var(--primary); }
.queue-form { gap: .6rem; }
.queue-form .form-group { margin-bottom: 0; }
.queue-form label { font-size: .75rem; }
.queue-form-actions { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }

.queue-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 800; color: var(--primary-deep);
    background: var(--primary-soft); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: .28rem .65rem; white-space: nowrap;
}
.queue-chip-muted { color: var(--muted); background: var(--light); }

.queue-phone-match { margin-top: .45rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; }

.queue-board { margin-top: .9rem; }
.queue-table-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
    padding: .7rem 1rem; background: #fff;
    border-bottom: 2px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.queue-table-head h2 { font-size: .95rem; color: var(--primary-deep); font-weight: 800; margin: 0; display: flex; align-items: center; gap: .45rem; }
.queue-table-head h2 i { color: var(--primary); }
.queue-table-head .queue-date { font-size: .75rem; color: var(--muted); font-weight: 600; margin-left: .3rem; }

.queue-token { font-size: .92rem; }
.queue-actions { white-space: nowrap; }
.queue-ibtn { width: 30px; padding: .3rem 0; }
.queue-ibtn + .queue-ibtn { margin-left: .3rem; }
.queue-board td { padding: .5rem .7rem; font-size: .85rem; }

.queue-finished { border-top: 1px dashed var(--border); }
.queue-finished summary {
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem 1rem; cursor: pointer;
    font-size: .8rem; font-weight: 800; color: var(--muted);
    list-style: none; user-select: none;
    transition: color .2s ease;
}
.queue-finished summary:hover { color: var(--primary-deep); }
.queue-finished summary::-webkit-details-marker { display: none; }
.queue-finished summary::before { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .7rem; transition: transform .2s ease; }
.queue-finished[open] summary::before { transform: rotate(180deg); }
.queue-finished[open] { padding-bottom: .35rem; }

.queue-board .badge { cursor: default; }
.queue-board .badge.queue-token { cursor: default; }

@media (max-width: 640px) {
    .queue-header-stats { width: 100%; }
    .queue-stat { flex: 1 1 30%; justify-content: center; }
    .queue-ibtn { width: 36px; height: 36px; }
    .queue-board { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .queue-finished summary::before, .btn, a.btn, .queue-stat { transition: none; }
}


/* ===== SHARED UTILITIES (UI polish) ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.text-sm { font-size: .82rem; }
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.check-row { display: flex; gap: .5rem; align-items: center; font-weight: 500; color: var(--text); margin: .2rem 0; cursor: pointer; }
.check-row input { flex-shrink: 0; }
.inline-form { display: inline; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 1rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.table-compact th, .table-compact td { padding: .45rem .6rem; font-size: .83rem; }
th.num, td.num { text-align: right; white-space: nowrap; }
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--primary-mid); display: block; margin-bottom: .5rem; }
.empty-state p { margin-bottom: .75rem; font-weight: 600; }
td .empty-state { padding: 1.25rem .5rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 1rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pager-links { display: flex; gap: .3rem; flex-wrap: wrap; }
.pager .btn-sm { min-width: 34px; justify-content: center; }
.sort-link { color: inherit; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
.sort-link i { opacity: .6; font-size: .75em; }
.quick-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.is-invalid { box-shadow: inset 0 0 0 2px var(--danger-strong) !important; }
.field-message[data-type="error"] { color: var(--danger-ink); }
.field-message[data-type="ok"] { color: var(--success-ink); }
.loading-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(28, 19, 5, .35); display: flex; align-items: center; justify-content: center; }
.loading-box { background: #fff; padding: 1.5rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); text-align: center; font-weight: 700; color: var(--text); }
.ui-spinner { display: block; width: 36px; height: 36px; margin: 0 auto .75rem; border: 4px solid var(--primary-soft); border-top-color: var(--primary-deep); border-radius: 50%; animation: spin .8s linear infinite; }
/* Close button: only when the sidebar is an open drawer (phone) or expanded over the page (tablet) */
.sidebar .sidebar-close { display: none !important; margin-left: auto; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--on-dark); font-size: 1.1rem; cursor: pointer; box-shadow: none; }
.sidebar.mobile-open .sidebar-close, .sidebar.pinned .sidebar-close { display: inline-flex !important; align-items: center; justify-content: center; }
.action-buttons { display: flex; gap: .35rem; flex-wrap: wrap; }

/* Phones: 16px inputs stop iOS from zooming the page on focus */
@media (max-width: 640px) {
    input, select, textarea { font-size: 16px !important; }
    .flash-stack { left: 1rem; right: 1rem; width: auto; }
}

/* ===== CUSTOMER JOURNEY (UI polish) ===== */
.req { color: var(--danger-strong); margin-left: .1rem; }
.label-text { display: block; margin-bottom: .3rem; font-weight: 700; color: var(--primary-deep); font-size: .83rem; }
.ui-spinner.spinner-inline { display: inline-block; width: 1em; height: 1em; margin: 0 .35rem 0 0; border-width: 2px; vertical-align: -.15em; }
.text-center { text-align: center; }

/* Wizard progress */
.step-dots { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; font-size: .72rem; font-weight: 700; color: var(--muted); }
.step-dots li { flex: 1; text-align: center; padding-top: .15rem; }
.step-dots li.is-done { color: var(--primary-deep); }
@media (max-width: 520px) { .step-dots { display: none; } }
.booking-step h3 { margin-bottom: .85rem; }
.booking-step h3:focus { outline: none; }

/* Service picker: search + gender groups */
.service-picker-search { position: sticky; top: 0; display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; background: #fff; border-bottom: 1px solid var(--border); z-index: 1; }
.service-picker-search input { box-shadow: none; background: var(--input-bg); }
.service-picker-group-title { margin: .5rem .6rem .2rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Time slots as tappable buttons */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.slot-grid .slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    min-height: 52px; padding: .45rem; border-radius: var(--radius); border: 2px solid var(--border);
    background: #fff; color: var(--text); font-weight: 800; font-size: .9rem; cursor: pointer; box-shadow: none;
}
.slot-grid .slot small { font-size: .7rem; font-weight: 700; color: var(--muted); }
.slot-grid .slot.is-open { border-color: #BFE3CD; }
.slot-grid .slot.is-few { border-color: #F2C765; }
.slot-grid .slot.is-booked { background: #F4F1EA; color: #8F846F; cursor: not-allowed; text-decoration: line-through; }
.slot-grid .slot.is-selected { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.slot-grid .slot.is-selected small { color: #F5E7B8; }
.slot-empty { grid-column: 1 / -1; color: var(--muted); font-weight: 600; padding: .75rem 0; }
.slot-legend { margin-top: .6rem; }
.slot-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.slot-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid; }
.slot-dot-open { border-color: #BFE3CD; } .slot-dot-few { border-color: #F2C765; } .slot-dot-booked { background: #F4F1EA; border-color: var(--border); }

/* Details + promo */
.booking-contact { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.booking-contact > div { display: grid; }
.booking-contact .btn { margin-left: auto; }
.promo-row { display: flex; gap: .5rem; }
.promo-row input { flex: 1; text-transform: uppercase; }

/* Review */
.booking-review { display: grid; gap: .5rem; margin: 0 0 1rem; }
.booking-review > div { display: grid; grid-template-columns: 110px 1fr auto; gap: .75rem; align-items: baseline; padding: .6rem .85rem; border-radius: var(--radius); background: #FBF6E3; border: 1px solid #EADFB8; }
.booking-review dt { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.booking-review dd { margin: 0; font-weight: 700; }
.review-edit { color: var(--primary-deep); font-weight: 800; font-size: .82rem; text-decoration: underline; }
@media (max-width: 520px) { .booking-review > div { grid-template-columns: 1fr auto; } .booking-review dt { grid-column: 1 / -1; } }
.booking-total { display: grid; gap: .3rem; margin-bottom: 1rem; padding: .75rem .85rem; border-radius: var(--radius); border: 1px dashed var(--border); }
.booking-total > div { display: flex; justify-content: space-between; font-weight: 600; }
.booking-total-discount { color: var(--success-ink); }
.booking-total-grand { font-size: 1.15rem; font-weight: 800 !important; color: var(--primary-deep); padding-top: .3rem; border-top: 1px solid var(--border); }

/* Confirmation */
.booking-confirmation { text-align: center; max-width: 620px; margin: 0 auto; }
.booking-confirmation:focus { outline: none; }
.booking-confirmation-icon { font-size: 3rem; color: var(--success-strong); }
.booking-confirmation h2 { margin: .25rem 0 .35rem; font-size: 1.6rem; }
.booking-confirmation-details { display: grid; gap: .4rem; margin: 1.25rem 0; text-align: left; }
.booking-confirmation-details > div { display: grid; grid-template-columns: 100px 1fr; gap: .75rem; padding: .55rem .8rem; border-radius: var(--radius); background: #FBF8F0; }
.booking-confirmation-details dt { font-weight: 800; color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.booking-confirmation-details dd { margin: 0; font-weight: 700; }
.booking-confirmation-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* Gift cards (customer) */
.gift-card-tile { text-align: center; border-top: 4px solid var(--primary-mid); }
.gift-card-tile.is-inactive { opacity: .7; border-top-color: var(--border); }
.gift-card-code { font-family: Consolas, monospace; font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; margin-top: .75rem; }
.gift-card-balance { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 800; color: var(--primary-deep); margin: .25rem 0; }

/* My Appointments cards */
.appt-list { display: grid; gap: .75rem; }
.appt-card { display: flex; gap: 1rem; padding: 1rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.appt-when { flex-shrink: 0; width: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .5rem; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-deep); text-align: center; }
.appt-day { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.appt-month { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.appt-body { flex: 1; min-width: 0; }
.appt-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.appt-top h3 { font-size: 1.05rem; }
.appt-services { font-weight: 700; margin: .25rem 0; }
.appt-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.appt-meta i { margin-right: .25rem; }
.appt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }
@media (max-width: 480px) { .appt-card { flex-direction: column; } .appt-when { flex-direction: row; gap: .5rem; width: auto; justify-content: flex-start; } }
.status-help summary { cursor: pointer; font-weight: 800; color: var(--primary-deep); }
.status-help dl { display: grid; gap: .5rem; margin-top: .75rem; }
.status-help dl > div { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: .75rem; align-items: center; }
.status-help dd { margin: 0; font-size: .88rem; }
@media (max-width: 520px) { .status-help dl > div { grid-template-columns: 1fr; gap: .2rem; } }
.page-header h1 + p { margin-top: .15rem; }

/* Customer dashboard: next visit */
.next-visit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, #2B2009, #4A3810); color: #fff; box-shadow: var(--shadow); }
.next-visit-date { width: 64px; height: 64px; border-radius: var(--radius); background: rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; font-size: .72rem; color: var(--on-dark); }
.next-visit-date span { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; line-height: 1; color: #fff; }
.next-visit-body { flex: 1; min-width: 200px; }
.next-visit-eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-mid); }
.next-visit h2 { font-size: 1.25rem; margin: .15rem 0; color: #fff; }
.next-visit p { color: rgba(255,255,255,.85); font-size: .88rem; }
.next-visit .btn-secondary { background: #fff; color: var(--primary-deep); }
.next-visit-empty { background: linear-gradient(120deg, var(--primary-soft), #fff); color: var(--text); }
.next-visit-empty h2 { color: var(--text); }
.next-visit-empty .next-visit-eyebrow { color: var(--primary-deep); }

/* Feedback */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mb-3 { margin-bottom: 1rem; }
fieldset.star-rating { border: 0; padding: 0; margin: 0 0 1rem; }
.star-rating-row { display: flex; align-items: center; gap: .25rem; }
.star-rating-row label { margin: 0; font-size: 1.9rem; color: #D8D0BE; cursor: pointer; line-height: 1; padding: .1rem; border-radius: 6px; }
.star-rating-row label.is-on { color: #C98A00; }
.star-rating-row input:focus-visible + label { outline: 3px solid var(--primary-mid); outline-offset: 2px; }
.star-rating-word { margin-left: .5rem; font-weight: 800; color: var(--primary-deep); }
.feedback-history { display: grid; gap: .75rem; padding: 1rem; }
.feedback-item { padding: 1rem 1.1rem; border-radius: var(--radius); background: #FBF8F0; border-left: 3px solid var(--primary-mid); }
.feedback-item-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.feedback-stars { color: #C98A00; white-space: nowrap; }
.feedback-item p { margin-top: .4rem; }

/* ===== STAFF PANEL (UI polish) ===== */
a.dashboard-card { display: block; color: #fff; text-decoration: none; }
a.dashboard-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
a.dashboard-card:focus-visible { outline-offset: 3px; }
.tel-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--info-ink); white-space: nowrap; }
.tel-link:hover { text-decoration: underline; }
.appt-status-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.appt-status-actions:empty::after { content: "—"; color: var(--muted); }
.staff-next { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--radius-lg); background: #fff; border-left: 5px solid var(--primary-deep); box-shadow: var(--shadow); }
.staff-next-time { min-width: 84px; text-align: center; padding: .5rem; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-deep); font-weight: 800; font-size: .8rem; }
.staff-next-time span { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; line-height: 1; }
.staff-next-time small { display: block; font-size: .7rem; margin-top: .2rem; }
.staff-next-body { flex: 1; min-width: 220px; }
.staff-next-body h2 { font-size: 1.3rem; margin: .1rem 0; }
.staff-next .next-visit-eyebrow { color: var(--primary-deep); }
.staff-next-contact { margin-top: .3rem; }
.staff-next-notes { margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.staff-next .appt-status-actions .btn { min-height: 40px; padding: .5rem 1rem; font-size: .85rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filter-row .form-group { margin: 0; flex: 1; min-width: 160px; }
.filter-row .filter-actions { flex: 0 0 auto; display: flex; gap: .5rem; }
/* Bill receipt modal */
.receipt-modal { max-width: 520px; }
.receipt-summary { text-align: center; margin-bottom: 1rem; }
.receipt-amount { font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; font-weight: 800; color: var(--success-ink); }
.receipt-modal th.num, .receipt-modal td.num { text-align: right; }
.receipt-totals { text-align: right; border-top: 1px solid var(--border); padding-top: .5rem; font-size: .88rem; }
.receipt-final { font-size: 1.05rem; color: var(--primary-deep); }
.appt-detail-list { display: grid; gap: .35rem; margin: 0 0 1rem; }
.appt-detail-list > div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; padding: .35rem .25rem; border-bottom: 1px solid #F1EBDC; }
.appt-detail-list dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.appt-detail-list dd { margin: 0; }
#apptModal .appt-status-actions { justify-content: center; }
.sidebar-count { margin-left: auto; font-size: .65rem; padding: .15rem .45rem; }

/* ===== ADMIN DAILY WORK (UI polish) ===== */
.select-compact { padding: .3rem .5rem; min-height: 34px; font-size: .82rem; max-width: 170px; }
.btn-whatsapp { background: #1E8E4E; color: #fff; }
.btn-whatsapp:hover { background: #17733F; color: #fff; }
.filter-panel .quick-filters { margin-bottom: .75rem; }
td .action-buttons { align-items: center; }
.cal-more { display: block; margin-top: .15rem; font-size: .72rem; font-weight: 800; color: var(--primary-deep); text-decoration: underline; }
.mb-2 { margin-bottom: .5rem; }
.service-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .5rem; margin-top: .4rem; }
.service-check { display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem; background: #FBF8F0; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--text); margin: 0; }
.service-check small { display: block; color: var(--muted); font-weight: 600; }
.service-check:has(input:checked) { border-color: var(--primary-deep); background: var(--primary-soft); }
/* POS additions */
.pos-change { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; padding: .5rem .6rem; border-radius: var(--radius); background: #FBF8F0; border: 1px dashed var(--border); }
.pos-change label { margin: 0; font-size: .8rem; }
.pos-change input { width: 120px; min-height: 36px; }
.pos-change-due { font-weight: 800; font-size: .88rem; }
.pos-change-due.ok { color: var(--success-ink); }
.pos-change-due.warn { color: var(--danger-ink); }
.pos-last-sale { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .75rem; margin-bottom: .75rem; border-radius: var(--radius); background: #e9fbf0; color: var(--success-ink); font-weight: 700; font-size: .88rem; }
.pos-last-sale-actions { display: flex; gap: .35rem; }
.customer-option.is-highlighted { background: var(--primary-soft); outline: 2px solid var(--primary-mid); }
.queue-updated { font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: .5rem; }
.queue-wait { color: var(--muted); font-weight: 700; font-size: .75rem; }
.queue-wait.is-long { color: var(--danger-ink); }
#bill-form { scroll-margin-top: calc(var(--navbar-h) + 1rem); }
.text-danger { color: var(--danger-ink); } .text-success { color: var(--success-ink); font-weight: 700; }
/* Calendar month grid: equal columns that never push the page wider than the screen */
.main-content .cal-month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.main-content .cal-appt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 600px) {
    .main-content .cal-appt .cal-staff { display: none; }
    .main-content .cal-dow { font-size: .65rem; overflow: hidden; }
    .main-content .cal-day { min-height: 64px; padding: .2rem; }
}
