/* =========================================================================
   salon.1po.in — Mobile-First Modern Salon Booking UI (v2.0)
   ========================================================================= */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef2ff;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content { flex: 1; }
.section { padding: 28px 0 44px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* =========================================================================
   Navbar + Mobile Hamburger Drawer
   ========================================================================= */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 60;
}
.nav-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.12rem;
    color: var(--text);
    text-decoration: none !important;
    flex-shrink: 0;
}
.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.brand-text strong { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
}
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-logout { color: var(--muted) !important; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.93rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
    font-family: inherit;
    white-space: nowrap;
}
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 0.86rem; }
.btn-xs { padding: 6px 10px; min-height: 32px; font-size: 0.78rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: #f1f5f9; }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef2ff; }

.btn-done { background: var(--green); color: #fff; }
.btn-done:hover { background: #15803d; }

.btn-success-soft { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #fecaca; }
.btn-danger-ghost:hover { background: var(--danger-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.justify-center { justify-content: center; }

/* Horizontal Scroll Rows for Pills & Tabs on Mobile */
.scroll-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Badges & Pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-xs { padding: 2px 8px; font-size: 0.72rem; }
.badge-soft { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: #f1f5f9; color: var(--muted); }
.badge-geo { background: #ecfeff; color: #0e7490; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
}
.alert-success { background: var(--green-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 60%, #fdf2f8 100%);
    padding: 36px 0 30px;
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid #c7d2fe;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.55rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 720px;
}
.hero-sub {
    margin-top: 10px;
    color: var(--muted);
    max-width: 620px;
    font-size: 0.97rem;
}

.search-bar {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    max-width: 780px;
}
.search-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px 11px 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 16px;
    font-family: inherit;
}
.search-input-wrap input:focus { outline: 2px solid #c7d2fe; border-color: var(--primary); }

.category-pills {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

/* Cards & Grids */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: 1.35rem; }
.link-muted { color: var(--muted); font-size: 0.9rem; }

.salon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}
.salon-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.salon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.salon-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.salon-status-group { display: flex; gap: 6px; flex-wrap: wrap; }
.salon-title { font-size: 1.12rem; margin-bottom: 4px; }
.salon-title a { color: var(--text); text-decoration: none; }
.salon-title a:hover { color: var(--primary); }
.salon-loc { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }

.salon-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.metric-chip {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
}
.metric-served { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

.queue-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.dot-live, .dot-free {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-live { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.dot-free { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.salon-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.price-tag { font-size: 1.1rem; font-weight: 800; color: var(--text); }

/* Owner CTA */
.owner-cta-section { padding: 8px 0 48px; }
.owner-cta-box {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-radius: 18px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.owner-cta-box p { opacity: 0.92; max-width: 580px; margin-top: 6px; font-size: 0.95rem; }

/* Showcase & Dashboard Headers */
.showcase-header, .dash-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.back-link { display: inline-block; font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.showcase-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    align-items: start;
}
.showcase-header h1, .dash-header h1 { font-size: clamp(1.4rem, 4vw, 2.05rem); margin-bottom: 6px; line-height: 1.22; }
.showcase-address { font-weight: 500; margin-bottom: 4px; font-size: 0.94rem; }
.showcase-meta { color: var(--muted); font-size: 0.88rem; }
.showcase-desc { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dash-header .stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
}
.stat-highlight { background: #fff7ed; border-color: #fed7aa; }
.stat-num { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.77rem; color: var(--muted); margin-top: 2px; }

.showcase-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: start;
}
.sticky-card { position: sticky; top: 80px; }

/* Services Picker */
.step-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.service-select-list { display: flex; flex-direction: column; gap: 10px; }
.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.service-option:hover { border-color: #a5b4fc; background: #fafbff; }
.service-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.service-option input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.service-option-body { flex: 1; min-width: 0; }
.service-option-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.service-option-price { font-weight: 800; font-size: 1rem; white-space: nowrap; }

.booking-summary-bar {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

/* Slot Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}
.slot-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px;
    min-height: 52px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: inherit;
    transition: all 0.15s ease;
}
.slot-btn span { font-weight: 600; font-size: 0.86rem; color: var(--text); }
.slot-btn small { font-size: 0.72rem; color: var(--green); }
.slot-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.slot-btn.selected { background: var(--primary); border-color: var(--primary); }
.slot-btn.selected span, .slot-btn.selected small { color: #fff; }
.slot-btn.disabled, .slot-btn:disabled { opacity: 0.42; cursor: not-allowed; background: #f8fafc; }
.slot-btn.disabled small { color: var(--muted); }

.pay-at-salon-box {
    background: var(--amber-soft);
    color: #78350f;
    border: 1px solid #fde68a;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
}

/* Live Queue */
.live-title { display: flex; align-items: center; gap: 8px; }
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}
.queue-in_progress { background: #eff6ff; border-color: #bfdbfe; }
.queue-token {
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.queue-info { flex: 1; min-width: 0; }
.queue-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-empty { text-align: center; padding: 24px 12px; }
.queue-empty-icon { font-size: 2rem; margin-bottom: 6px; }
.queue-footer-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

/* Reviews */
.rating-pill {
    background: #fef9c3;
    color: #854d0e;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
}
.review-form {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.95rem; }
.review-text { margin-top: 4px; font-size: 0.93rem; color: #334155; }

/* Forms (16px font-size prevents iOS Safari zoom) */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #334155; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.form-group textarea { min-height: 76px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid #c7d2fe;
    border-color: var(--primary);
}
.form-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flex-end { display: flex; align-items: flex-end; }

.geo-capture-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
}

/* Auth & Ticket */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-wide { max-width: 720px; }
.auth-head { margin-bottom: 20px; }
.auth-head h1 { font-size: 1.55rem; margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 0.9rem; }
.demo-hint {
    background: #f8fafc;
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    text-align: center;
}

.ticket-wrap { max-width: 560px; margin: 0 auto; }
.ticket-header { text-align: center; margin-bottom: 20px; }
.ticket-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ticket-cancelled { background: var(--danger-soft); color: var(--danger); }
.token-banner {
    background: var(--primary-soft);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.token-big { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.code-big { font-size: 1.08rem; font-weight: 700; font-family: monospace; }
.ticket-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.detail-row > *:last-child { text-align: right; }
.detail-row:last-child { border-bottom: none; }
.ticket-actions { display: flex; flex-direction: column; gap: 10px; }

/* Dashboard */
.dash-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.dash-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--border);
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.dash-tab:hover { background: #f1f5f9; color: var(--text); }
.dash-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.walkin-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 0.7fr auto;
    gap: 10px;
}
.walkin-form input {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
}

.queue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.inline-date-form input {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
}

.booking-manage-list { display: flex; flex-direction: column; gap: 12px; }
.booking-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.booking-manage-item.status-in_progress { background: #eff6ff; border-color: #93c5fd; }
.booking-manage-item.status-done { opacity: 0.85; background: #f8fafc; }
.bm-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.bm-body { flex: 1; min-width: 0; }
.bm-token {
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bm-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bm-sub { font-size: 0.92rem; margin: 3px 0; word-break: break-word; }
.bm-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bm-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Services Management */
.service-add-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 1fr;
    gap: 10px;
}
.service-manage-list { display: flex; flex-direction: column; gap: 10px; }
.service-manage-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.service-edit-inline {
    flex: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.7fr 0.7fr auto auto;
    gap: 8px;
    align-items: center;
}
.service-edit-inline input, .service-edit-inline select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    width: 100%;
}
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; white-space: nowrap; }
.check-inline input { width: 18px !important; height: 18px; min-height: auto !important; accent-color: var(--primary); }

/* WhatsApp Setup Tab */
.wa-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.wa-info-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
}
.wa-toggles { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    cursor: pointer;
}
.toggle-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.wa-bubble {
    background: #dcfce7;
    color: #14532d;
    padding: 12px 14px;
    border-radius: 12px 12px 12px 2px;
    font-size: 0.86rem;
    line-height: 1.5;
    border: 1px solid #bbf7d0;
}

/* Share & QR */
.share-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.qr-poster-box {
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 22px 14px;
    background: #fafbff;
}
.qr-shop-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.qr-img { border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 8px; max-width: 100%; height: auto; }
.qr-caption { font-weight: 600; margin-top: 12px; }
.qr-url { font-size: 0.78rem; color: var(--muted); word-break: break-all; margin-top: 4px; }

/* Empty States & Footer */
.empty-state { text-align: center; padding: 42px 20px; }
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.empty-inline { text-align: center; padding: 26px 12px; }

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: auto;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; font-size: 0.88rem; flex-wrap: wrap; }

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 16px);
    background: #0f172a;
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
    max-width: calc(100vw - 32px);
    text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   Responsive Breakpoints (Tablet & Mobile Alignment Fixes)
   ========================================================================= */
@media (max-width: 900px) {
    .showcase-hero-grid,
    .showcase-layout,
    .share-grid,
    .wa-grid {
        grid-template-columns: 1fr;
    }
    .sticky-card { position: static; }
    .dash-header .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .walkin-form { grid-template-columns: repeat(2, 1fr); }
    .walkin-form button { grid-column: 1 / -1; }
    .service-add-grid { grid-template-columns: repeat(2, 1fr); }
    .service-add-grid .flex-end { grid-column: 1 / -1; }
    .form-row-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    /* Mobile Hamburger Navigation */
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: -16px;
        right: -16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px 18px;
        gap: 10px;
        z-index: 70;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 10px 12px;
        border-radius: 10px;
        text-align: center;
        background: #f8fafc;
    }
    .nav-links a.nav-cta {
        background: var(--primary);
        color: #fff !important;
        width: 100%;
    }

    /* Homepage Search Bar: Full-width input + 50/50 buttons below */
    .search-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .search-input-wrap { grid-column: 1 / -1; }
    .search-bar .btn { width: 100%; padding: 11px 10px; }

    /* Cards & Padding */
    .card { padding: 16px; }
    .section { padding: 20px 0 36px; }
    .salon-grid { grid-template-columns: 1fr; }

    /* Booking Queue Cards: Clean Full-Width Thumb Actions */
    .booking-manage-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .bm-actions {
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    .bm-actions form { flex: 1; }
    .bm-actions form .btn,
    .bm-actions > .btn { width: 100%; }

    /* Services Manage Rows on Mobile */
    .service-manage-row {
        flex-direction: column;
        align-items: stretch;
    }
    .service-edit-inline {
        grid-template-columns: 1fr 1fr;
    }
    .service-edit-inline .svc-name-input { grid-column: 1 / -1; }
    .svc-del-form .btn { width: 100%; }

    /* Slot Grid: Clean 3-column grid on mobile */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Scrollable filter rows */
    .scroll-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .scroll-row::-webkit-scrollbar { display: none; }

    .dash-top-actions { width: 100%; }
    .dash-top-actions > *,
    .dash-top-actions form button { flex: 1; }

    .form-row-2,
    .walkin-form,
    .service-add-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .detail-row > *:last-child { text-align: left; }
}

/* Professionals / Staff Showcase & Dashboard */
.mt-6 { margin-top: 6px; }
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.pro-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafbff;
}
.pro-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pro-info { flex: 1; min-width: 0; }
.pro-head-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pro-specialty { font-size: 0.82rem; color: var(--primary); font-weight: 500; margin-top: 4px; }

.staff-add-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.7fr 1.2fr;
    gap: 10px;
}
.staff-add-grid .staff-bio-col { grid-column: 1 / 4; }
.staff-manage-list { display: flex; flex-direction: column; gap: 10px; }
.staff-edit-inline {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 0.55fr 1.2fr 1.4fr auto auto;
    gap: 8px;
    align-items: center;
}
.staff-edit-inline input {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    width: 100%;
}

@media (max-width: 900px) {
    .staff-add-grid { grid-template-columns: 1fr 1fr; }
    .staff-add-grid .staff-bio-col { grid-column: 1 / -1; }
    .staff-add-grid .flex-end { grid-column: 1 / -1; }
    .staff-edit-inline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .staff-add-grid { grid-template-columns: 1fr; }
    .pro-grid { grid-template-columns: 1fr; }
}

/* Offer Banners, Gallery, My Bookings Lookup & Admin Search */
.offer-chip {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.offer-banner-box {
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin: 10px 0 12px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.gallery-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.gallery-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}
.gallery-card-foot {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.lookup-wrap { max-width: 760px; margin: 0 auto; }
.lookup-form {
    display: flex;
    gap: 10px;
}
.lookup-form input {
    flex: 1;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}
.admin-search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-search-form input {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}
.quick-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.template-pill { cursor: pointer; font-family: inherit; }

@media (max-width: 720px) {
    .lookup-form { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-card img { height: 135px; }
}

.btn-community {
    background: #16a34a;
    color: #fff !important;
    border-color: #15803d;
}
.btn-community:hover { background: #15803d; }
.community-card {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-color: #bbf7d0;
}

/* Super Admin Cards & Reports Table */
.admin-salon-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.admin-salon-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-controls-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.admin-inline-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-inline-form select,
.admin-inline-form input {
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: inherit;
    background: #fff;
}
.report-table-wrap { overflow-x: auto; }
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.report-table th, .report-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}
.report-table th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }

@media (max-width: 900px) {
    .admin-controls-grid { grid-template-columns: 1fr; }
}

/* Loyalty Stamp Card, Wait Estimate, Assign Staff, Slides, Ads & CMS Article */
.loyalty-banner-box {
    background: linear-gradient(135deg, #eef2ff, #fdf4ff);
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin: 8px 0 12px;
}
.wait-estimate-box {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    text-align: center;
}
.loyalty-card-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 14px;
}
.loyalty-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.stamp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stamp-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px dashed #c084fc;
    color: #9333ea;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.stamp-dot.filled {
    background: #9333ea;
    border-style: solid;
    color: #fff;
}
.assign-select {
    min-height: 36px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: inherit;
    background: #fff;
    max-width: 150px;
}
.slides-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.slide-card {
    min-width: 280px;
    flex: 1;
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.slide-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.slide-body { padding: 16px; }
.ad-slot { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.ad-box { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; text-align: center; }
.ad-img { width: 100%; height: auto; max-height: 220px; object-fit: cover; display: block; }
.cms-article { max-width: 820px; margin: 0 auto; }
.cms-body { font-size: 1rem; line-height: 1.75; color: #1e293b; }

@media print {
    .navbar, .dash-header, .footer, .btn-row, .share-grid > .card:last-child { display: none !important; }
    .share-grid { grid-template-columns: 1fr; }
    .card { border: none; box-shadow: none; }
}
