/* ═══════════════════════════════════════════════════════════════
   Orchid Booking — Design System v4.1
   Mobile-First App-like UI | Minimalist Modern Icons
   EN/VI Bilingual | Push Notifications | Drag-Drop Calendar
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

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

:root {
    --primary:    #1a56db;
    --primary-d:  #1340a8;
    --primary-l:  #5b8dee;
    --secondary:  #7c3aed;
    --accent:     #e02424;
    --success:    #10b981;
    --warning:    #f59e0b;
    --danger:     #ef4444;
    --info:       #3b82f6;
    --light:      #f8faff;
    --dark:       #0f172a;
    --muted:      #64748b;
    --gray:       #94a3b8;
    --border:     #e2e8f0;
    --bg:         #f4f6fb;
    --surface:    #ffffff;
    --radius:     14px;
    --radius-sm:  8px;
    --radius-lg:  22px;
    --radius-xl:  32px;
    --shadow:     0 1px 3px rgba(26,86,219,.06), 0 4px 16px rgba(26,86,219,.05);
    --shadow-md:  0 4px 24px rgba(26,86,219,.10);
    --shadow-lg:  0 12px 48px rgba(26,86,219,.15);
    --gradient:   linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
    --gradient-r: linear-gradient(135deg, #7c3aed 0%, #1a56db 100%);
    --gradient-w: linear-gradient(135deg, #1a56db 0%, #7c3aed 50%, #e02424 100%);
    --font:       'DM Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --safe-top:   env(safe-area-inset-top, 0px);
    --safe-bot:   env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Chặn pull-to-refresh trên Chrome Android */
    overscroll-behavior-y: none;
}
body {
    overflow-x: hidden;
    /* Chặn pull-to-refresh trên iOS Safari + Android */
    overscroll-behavior-y: none;
    /* Chặn elastic bounce scroll iOS */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: none;
}
/* Prevent accidental text selection on mobile taps */
button, .btn, .tab-item, .date-chip, .dt-chip, .cal-slot, .cal-booking,
.opt-card, .nd-item, .nd-biz-row, .g-card, .svc-row, .t-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

h1,h2,h3,h4,h5 { font-family: var(--font); font-weight: 700; line-height: 1.25; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-l); border-radius: 10px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR — App-style top bar
══════════════════════════════════════════════════════════ */
.navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 300;
    padding-top: var(--safe-top);
}
.navbar-brand {
    font-size: 1.15rem; font-weight: 800;
    color: var(--primary);
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; letter-spacing: -.4px;
}
.navbar-brand img { width: 30px; height: 30px; border-radius: 8px; }
.navbar-brand:hover { text-decoration: none; opacity: .85; }
.navbar-links { display: flex; gap: 6px; align-items: center; }
.navbar-links a {
    color: var(--muted); font-size: .875rem; font-weight: 500;
    padding: 7px 12px; border-radius: 10px;
    display: flex; align-items: center; gap: 5px;
    transition: all .18s;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--primary); background: rgba(79,70,229,.08); text-decoration: none; }
.navbar-links .btn { padding: 8px 16px; font-size: .82rem; }

/* ── Mobile nav */

/* iOS zoom fix: prevent auto-zoom on input focus */
input, select, textarea { font-size: max(16px, 1em); }
@media (max-width: 640px) { input, select, textarea { font-size: 16px; } }
@media (max-width: 640px) {
    .navbar-links .nav-text { display: none; }
    .navbar-links a { padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════
   BOTTOM TAB BAR — App-style (mobile)
══════════════════════════════════════════════════════════ */
.app-tabbar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + var(--safe-bot));
    z-index: 400;
    gap: 0;
}
.app-tabbar .tab-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; padding: 4px 8px;
    color: var(--gray); font-size: .68rem; font-weight: 500;
    border-radius: 12px;
    cursor: pointer; transition: all .2s;
    text-decoration: none;
    position: relative;
}
.app-tabbar .tab-item.active { color: var(--primary); }
.app-tabbar .tab-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.app-tabbar .tab-item.active svg { stroke-width: 2.3; }
.tab-badge {
    position: absolute; top: 2px; right: calc(50% - 14px);
    background: var(--danger); color: #fff;
    border-radius: 10px; min-width: 16px; height: 16px;
    font-size: .6rem; font-weight: 700; line-height: 16px;
    text-align: center; padding: 0 4px;
    border: 2px solid #fff;
}
@media (max-width: 768px) {
    .app-tabbar { display: flex; }
    body.has-tabbar { padding-bottom: calc(68px + var(--safe-bot)); }
}

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.main-content { min-height: calc(100vh - 60px - 70px); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
@media (max-width: 640px) { .container { padding: 0 14px; } .section { padding: 24px 0; } }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 50px;
    border: none; cursor: pointer; font-size: .875rem;
    font-weight: 600; font-family: var(--font);
    transition: all .2s cubic-bezier(.4,0,.2,1);
    text-decoration: none; white-space: nowrap;
    letter-spacing: .01em; position: relative;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(79,70,229,.45); color: #fff; opacity: .95; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: .9; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(79,70,229,.06); color: var(--primary); }
.btn-ghost { background: rgba(79,70,229,.07); color: var(--primary); border: none; }
.btn-ghost:hover { background: rgba(79,70,229,.13); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; display: flex; justify-content: center; border-radius: var(--radius); }
.btn-icon { padding: 9px; border-radius: 12px; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: #fafaff; }

/* ══════════════════════════════════════════════════════════
   FORMS — App-style inputs
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase; }
.form-control {
    width: 100%; padding: 11px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); background: #fafbff;
    font-size: .9rem; font-family: var(--font); color: var(--dark);
    transition: all .18s;
    -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════ */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 14px; text-align: left; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid #f4f4f9; font-size: .88rem; vertical-align: middle; }
.table tbody tr:hover { background: rgba(79,70,229,.025); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ══════════════════════════════════════════════════════════
   BADGES & STATUS
══════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.badge-pending  { background: #fff8e6; color: #d97706; }
.badge-confirmed { background: #eff6ff; color: var(--primary); }
.badge-completed { background: #d1fae5; color: #059669; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-gray    { background: #f3f4f6; color: #6b7280; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: 12px; font-size: .88rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }

/* ══════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius); padding: 18px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--dark); }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat-change { font-size: .75rem; font-weight: 600; margin-top: 2px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,14,26,.55);
    z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 640px) { .modal-overlay { align-items: center; } }
.modal-box {
    background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 24px calc(24px + var(--safe-bot));
    width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 640px) { .modal-box { border-radius: var(--radius-lg); padding: 28px; max-height: 85vh; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 4px; margin: -8px auto 20px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 16px; height: 16px; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════════ */
#toast-container { position: fixed; top: 70px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (max-width: 640px) { #toast-container { right: 12px; left: 12px; top: auto; bottom: calc(80px + var(--safe-bot)); } }
.toast {
    background: #1a1a2e; color: #fff; border-radius: 14px;
    padding: 13px 18px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25); pointer-events: auto;
    min-width: 280px; max-width: 380px;
    animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.1); }
.toast-icon svg { width: 16px; height: 16px; }
.toast-title { font-size: .88rem; font-weight: 700; }
.toast-body { font-size: .78rem; opacity: .75; margin-top: 2px; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ══════════════════════════════════════════════════════════
   PUSH NOTIFICATION BELL
══════════════════════════════════════════════════════════ */
.notif-bell-btn {
    position: relative; width: 38px; height: 38px;
    border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--surface); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all .2s;
}
.notif-bell-btn:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.notif-bell-btn svg { width: 18px; height: 18px; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--danger); color: #fff;
    font-size: .65rem; font-weight: 800; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
}
.notif-panel {
    position: absolute; top: 48px; right: 0;
    width: 340px; background: var(--surface);
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 500;
    overflow: hidden; display: none;
}
.notif-panel.open { display: block; animation: toastIn .2s ease; }
.notif-panel-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.notif-panel-header h4 { font-size: .9rem; font-weight: 700; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid #f5f5fb; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: background .15s; }
.notif-item:hover { background: #f8f8ff; }
.notif-item.unread { background: #f0f0ff; }
.notif-item.unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }
.notif-item-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-item-icon svg { width: 18px; height: 18px; }
.notif-item-title { font-size: .84rem; font-weight: 600; margin-bottom: 2px; }
.notif-item-body { font-size: .77rem; color: var(--muted); }
.notif-item-time { font-size: .7rem; color: var(--gray); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   SALON CARDS — Customer marketplace
══════════════════════════════════════════════════════════ */
.salon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
@media (max-width: 640px) { .salon-grid { grid-template-columns: 1fr; gap: 12px; } }
.salon-card {
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform .22s, box-shadow .22s;
    cursor: pointer; box-shadow: var(--shadow);
}
.salon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.salon-thumb { width: 100%; height: 180px; object-fit: cover; background: var(--bg); display: block; }
.salon-card img:not(.salon-thumb) { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--bg); }
.salon-card-body { padding: 14px 16px 16px; }
.salon-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.salon-card-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.salon-card-meta svg { width: 13px; height: 13px; }
.salon-rating { display: inline-flex; align-items: center; gap: 3px; color: #f59e0b; font-weight: 700; font-size: .82rem; }
.salon-category-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; background: rgba(79,70,229,.08); color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════════════════ */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 52px; height: 52px; }
.avatar-xl { width: 72px; height: 72px; }
.avatar-placeholder {
    background: var(--gradient);
    color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   PARTNER LAYOUT — Sidebar + Main
══════════════════════════════════════════════════════════ */
.partner-body { background: var(--bg); }
.partner-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 240px; min-width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 250; overflow-y: auto;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand {
    padding: 20px 18px 16px;
    font-size: 1.05rem; font-weight: 800;
    color: var(--primary); letter-spacing: -.3px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-brand img { width: 30px; height: 30px; border-radius: 8px; }
.sidebar-menu { padding: 12px 10px; flex: 1; }
.sidebar-section { font-size: .68rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .1em; padding: 10px 8px 6px; }
.sidebar-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 11px;
    color: var(--muted); font-size: .875rem; font-weight: 500;
    text-decoration: none; transition: all .18s;
    margin-bottom: 2px;
}
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; }
.sidebar-item:hover { background: rgba(79,70,229,.07); color: var(--primary); text-decoration: none; }
.sidebar-item.active { background: rgba(79,70,229,.1); color: var(--primary); font-weight: 600; }
.sidebar-item.active svg { stroke-width: 2.2; }
.sidebar-badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 20px; padding: 1px 8px; font-size: .7rem; font-weight: 700; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid var(--border); font-size: .82rem; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .74rem; color: var(--muted); }

/* Main content */
.partner-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.partner-topbar {
    height: 58px; background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px; display: flex; align-items: center;
    justify-content: space-between; position: sticky; top: 0; z-index: 200;
}
.page-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.partner-content { flex: 1; padding: 24px; }

/* Mobile sidebar overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 249; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: none; }
    .sidebar-overlay.open { display: block; }
    .partner-main { margin-left: 0; }
    .partner-content { padding: 16px; }
    .partner-topbar { padding: 0 14px; }
}
@media (max-width: 640px) {
    .partner-content { padding: 12px; }
}

/* ── Hamburger menu btn */
.btn-hamburger {
    width: 38px; height: 38px; border-radius: 11px;
    border: 1.5px solid var(--border); background: var(--surface);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}
.btn-hamburger svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════
   HERO / HOMEPAGE
══════════════════════════════════════════════════════════ */
.hero {
    background: var(--gradient-w);
    padding: 64px 0 80px;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 14px; letter-spacing: -.03em; }
.hero p { font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .88; max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 13px 28px; border-radius: 50px; font-size: .95rem; font-weight: 700; }
.btn-hero-white { background: #fff; color: var(--primary); box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.btn-hero-white:hover { color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Hero search box */
.hero-search {
    max-width: 540px; margin: 0 auto 20px;
    background: rgba(255,255,255,.15); border-radius: 50px;
    border: 2px solid rgba(255,255,255,.3);
    display: flex; overflow: hidden; backdrop-filter: blur(8px);
}
.hero-search input {
    flex: 1; padding: 14px 20px; background: transparent;
    border: none; color: #fff; font-size: .95rem; font-family: var(--font);
}
.hero-search input::placeholder { color: rgba(255,255,255,.6); }
.hero-search input:focus { outline: none; }
.hero-search button { padding: 10px 22px; border-radius: 0 50px 50px 0; margin: 4px; border: none; background: #fff; color: var(--primary); font-weight: 700; cursor: pointer; font-size: .9rem; font-family: var(--font); }

/* ══════════════════════════════════════════════════════════
   CATEGORY ICONS — Homepage
══════════════════════════════════════════════════════════ */
.category-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; text-decoration: none; flex-shrink: 0;
    min-width: 72px;
}
.category-icon {
    width: 60px; height: 60px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.category-icon img { width: 32px; height: 32px; }
.category-item:hover .category-icon { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-item span { font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; }

/* ══════════════════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════════════════ */
.search-bar {
    display: flex; gap: 8px; align-items: center;
    background: var(--surface); border-radius: var(--radius);
    border: 1.5px solid var(--border); padding: 8px 14px;
    box-shadow: var(--shadow);
}
.search-bar input { flex: 1; border: none; background: transparent; font-size: .9rem; font-family: var(--font); color: var(--dark); }
.search-bar input:focus { outline: none; }
.search-bar svg { width: 18px; height: 18px; color: var(--gray); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   BOOKING FLOW
══════════════════════════════════════════════════════════ */
.booking-steps { display: flex; gap: 0; margin-bottom: 28px; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-item::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.step-item:first-child::before { display: none; }
.step-item.done::before { background: var(--primary); }
.step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); background: var(--surface); font-size: .78rem; font-weight: 700; color: var(--muted); z-index: 1; }
.step-item.done .step-circle { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-item.active .step-circle { border-color: var(--primary); color: var(--primary); }
.step-label { font-size: .72rem; margin-top: 6px; color: var(--muted); text-align: center; }
.step-item.active .step-label { color: var(--primary); font-weight: 600; }

/* Time slots */
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.time-slot {
    padding: 9px 6px; text-align: center; border-radius: 10px;
    border: 1.5px solid var(--border); cursor: pointer;
    font-size: .82rem; font-weight: 600; color: var(--dark);
    transition: all .18s; background: var(--surface);
    -webkit-tap-highlight-color: transparent;
}
.time-slot:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,.04); }
.time-slot.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.time-slot.unavailable { opacity: .38; cursor: not-allowed; background: var(--bg); }

/* ══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════════════════════════ */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
    padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--border);
    background: transparent; cursor: pointer; font-size: .75rem; font-weight: 700;
    color: var(--muted); transition: all .18s; font-family: var(--font);
}
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════════════════════ */
#app-loading {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--gradient-w);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px;
    transition: opacity .4s, visibility .4s;
}
#app-loading.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
    width: 72px; height: 72px; border-radius: 20px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    animation: pulse-logo 1.6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,.2); overflow: hidden;
}
.loading-brand { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.loading-bar-wrap { width: 160px; height: 3px; background: rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; }
.loading-bar { height: 100%; background: #fff; border-radius: 10px; animation: load-bar 1.4s ease-in-out forwards; }
@keyframes load-bar { from { width: 0; } to { width: 100%; } }
@keyframes pulse-logo { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ══════════════════════════════════════════════════════════
   PWA INSTALL PROMPT
══════════════════════════════════════════════════════════ */
.pwa-install-banner {
    position: fixed; bottom: 80px; left: 16px; right: 16px;
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    padding: 16px; display: flex; align-items: center; gap: 14px;
    z-index: 800; animation: slideUp .3s ease;
}
@media (min-width: 641px) { .pwa-install-banner { max-width: 400px; left: auto; right: 20px; bottom: 20px; } }
.pwa-install-banner .pwa-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.pwa-install-info { flex: 1; }
.pwa-install-info h4 { font-size: .88rem; font-weight: 700; }
.pwa-install-info p { font-size: .75rem; color: var(--muted); }
.pwa-install-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
    background: var(--dark); color: rgba(255,255,255,.65);
    padding: 40px 0 24px; font-size: .85rem;
}
/* Ẩn footer trên mobile khi có bottom tabbar */
@media (max-width: 767px) {
    body.has-tabbar footer { display: none; }
}
footer a { color: rgba(255,255,255,.55); }
footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px; margin-bottom: 32px; }
.footer-brand h3 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.footer-col h4 { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .72rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 50%; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.hidden { display: none; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ══════════════════════════════════════════════════════════
   SALON PAGE — Hero + Layout
══════════════════════════════════════════════════════════ */
.salon-hero {
    width: 100%; height: 240px; border-radius: var(--radius-lg);
    overflow: hidden; position: relative; background: var(--bg);
    margin-bottom: 24px;
}
@media (max-width: 640px) { .salon-hero { height: 200px; border-radius: var(--radius); margin-bottom: 16px; } }
.salon-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
}
.salon-hero-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 20px 16px; color: #fff;
}
.btn-white {
    background: #fff; color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { opacity: .92; color: var(--primary); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Salon detail two-col layout */
.salon-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .salon-detail-grid { grid-template-columns: 1fr; }
}

/* Cart/booking box */
.cart-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    position: sticky; top: 70px;
}
.cart-box-header { padding: 14px 16px; background: var(--gradient); color: #fff; }
.cart-box-header h3 { font-size: .95rem; font-weight: 700; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); gap: 10px; }
.cart-item-row:last-child { border: none; }

/* Service card in salon */
.svc-item {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 14px 0; border-bottom: 1px solid #f5f5fb;
}
.svc-item:last-child { border: none; }
.svc-info { flex: 1; min-width: 0; }
.svc-name { font-weight: 700; font-size: .9rem; margin-bottom: 3px; }
.svc-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; margin-bottom: 5px; }
.svc-meta { display: flex; gap: 10px; font-size: .76rem; color: var(--muted); }
.svc-price { font-weight: 800; color: var(--primary); font-size: .95rem; white-space: nowrap; }
.svc-select-btn {
    padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--primary);
    color: var(--primary); background: transparent; font-weight: 700;
    font-size: .8rem; cursor: pointer; transition: all .18s; white-space: nowrap;
    font-family: var(--font);
}
.svc-select-btn.selected {
    background: var(--primary); color: #fff;
}
.svc-select-btn:hover:not(.selected) { background: rgba(79,70,229,.07); }

/* ── Search page ─────────────────────────────────────── */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
    padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border);
    background: var(--surface); font-size: .8rem; font-weight: 600;
    color: var(--muted); white-space: nowrap; cursor: pointer;
    text-decoration: none; transition: all .18s; flex-shrink: 0;
}
.filter-chip.active, .filter-chip:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(79,70,229,.06); text-decoration: none;
}
.filter-chip.active { background: var(--primary); color: #fff; }

/* ── Mobile tap states ───────────────────────────────── */
@media (hover: none) {
    .btn:active        { transform: scale(.96); opacity: .9; }
    .salon-card:active { transform: scale(.98); }
    .time-slot:active  { transform: scale(.95); }
}

/* ══════════════════════════════════════════════
   Dark Mode v3.5 — CSS custom properties override
   Applied via html.dark-mode class
══════════════════════════════════════════════ */
html.dark-mode {
    --primary:    #5b8dee;
    --primary-d:  #1a56db;
    --primary-l:  #93b4f5;
    --secondary:  #a78bfa;
    --accent:     #f87171;
    --success:    #34d399;
    --warning:    #fbbf24;
    --danger:     #f87171;
    --info:       #60a5fa;
    --light:      #1e293b;
    --dark:       #f1f5f9;
    --muted:      #94a3b8;
    --gray:       #64748b;
    --border:     rgba(255,255,255,.1);
    --bg:         #0f172a;
    --surface:    #1e293b;
    --gradient:   linear-gradient(135deg,#1a56db,#7c3aed);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
    --shadow-md:  0 4px 20px rgba(0,0,0,.5);
}
html.dark-mode body { background: #0a0a1a; color: #e2e8f0; }
html.dark-mode .card { background: #1a1a2e; border-color: rgba(255,255,255,.08); }
html.dark-mode .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #e2e8f0; }
html.dark-mode .form-control::placeholder { color: rgba(255,255,255,.3); }
html.dark-mode .btn-outline { border-color: rgba(255,255,255,.2); color: #e2e8f0; }
html.dark-mode .btn-ghost  { color: #a5b4fc; }
html.dark-mode .table th   { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
html.dark-mode .table td   { border-color: rgba(255,255,255,.06); color: #c7d2fe; }
html.dark-mode .table tbody tr:hover { background: rgba(255,255,255,.03); }
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select { background: rgba(255,255,255,.07); color: #e2e8f0; border-color: rgba(255,255,255,.15); }
html.dark-mode footer { background: #0f0e1a; }
html.dark-mode .app-tabbar { background: rgba(26,26,46,.97); border-color: rgba(255,255,255,.08); }
html.dark-mode .tab-item { color: rgba(255,255,255,.45); }
html.dark-mode .tab-item.active { color: var(--primary); }
html.dark-mode .sidebar { background: #0f172a; border-color: rgba(255,255,255,.06); }
html.dark-mode .modal-bg > div { background: #1a1a2e; }
html.dark-mode .quick-action { color: #e2e8f0; }
html.dark-mode .quick-action:active { background: rgba(255,255,255,.04); }
html.dark-mode .prof-field input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #e2e8f0; }
html.dark-mode .alert { border: 1px solid rgba(255,255,255,.1); }
html.dark-mode .date-chip { background: #1a1a2e; border-color: rgba(255,255,255,.12); color: #e2e8f0; }
html.dark-mode .date-chip .dc-day,
html.dark-mode .date-chip .dc-num,
html.dark-mode .date-chip .dc-mon { color: #e2e8f0; }
html.dark-mode .time-slot { background: #1a1a2e; border-color: rgba(255,255,255,.12); color: #e2e8f0; }
html.dark-mode .search-bar { background: #1a1a2e; border-color: rgba(255,255,255,.12); }
html.dark-mode .search-bar input { color: #e2e8f0; }

/* ══════════════════════════════════════════════
   CUSTOMER PAGES — Missing utility classes
   Fix: .name, .rating, .cat-pill, .tab-bar,
        salon-card img, overscroll, desktop layout
══════════════════════════════════════════════ */

/* Alias classes used in index.php + search.php */
.name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.rating { display: inline-flex; align-items: center; gap: 3px; color: #f59e0b; font-weight: 700; font-size: .82rem; }

/* Salon card image (index.php uses plain <img> inside .salon-card) */
.salon-card > div > img,
.salon-card > a > div > img { width: 100%; height: 190px; object-fit: cover; display: block; }

/* Category pills */
.cat-pills {
    display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    align-items: center; flex-wrap: wrap;
}
.cat-pills::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .cat-pills { flex-wrap: nowrap; } }

.cat-pill {
    padding: 5px 12px 5px 6px;
    border-radius: 20px; border: 1.5px solid var(--border);
    background: var(--surface); font-size: .8rem; font-weight: 600;
    color: var(--muted); white-space: nowrap; cursor: pointer;
    text-decoration: none; transition: all .15s; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    -webkit-tap-highlight-color: transparent; line-height: 1;
}
.cat-pill .cp-icon {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(26,86,219,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.cat-pill .cp-icon svg {
    width: 13px; height: 13px; display: block;
    stroke: var(--primary); flex-shrink: 0;
}
.cat-pill .cp-label { font-size: .79rem; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,86,219,.03); }
.cat-pill.active {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,86,219,.22);
}
.cat-pill.active .cp-icon { background: rgba(255,255,255,.2); }
.cat-pill.active .cp-icon svg { stroke: #fff; }

html.dark-mode .cat-pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
html.dark-mode .cat-pill .cp-icon { background: rgba(255,255,255,.1); }
html.dark-mode .cat-pill .cp-icon svg { stroke: #a5b4fc; }
html.dark-mode .cat-pill:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
html.dark-mode .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
html.dark-mode .cat-pill.active .cp-icon svg { stroke: #fff; }

/* tab-bar alias (history.php uses this class) */
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); display: none;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 9999px) { .tab-bar { display: flex; } }
.tab-bar .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px; font-size: .65rem; font-weight: 600; color: var(--muted);
    text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .15s; }
.tab-bar .tab-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.tab-bar .tab-item.active { color: var(--primary); }
.tab-bar .tab-item.active svg { stroke-width: 2.3; }
html.dark-mode .tab-bar { background: rgba(26,26,46,.97); border-color: rgba(255,255,255,.08); }

/* Desktop constraint for mobile-first pages */
@media (min-width: 768px) {
    .mb-wrap { max-width: 720px; }
    .mb-hero { padding: 40px 0 90px; }
}


/* Triangle artifact fix — triangle-shaped background elements */
.triangle-bg { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   main.css additions v5.0 — Mobile-first enhancements
═══════════════════════════════════════════════════════════════ */

/* ── Hero responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 28px 0 24px !important; border-radius: 0 0 24px 24px !important; }
    .hero h1 { font-size: 1.8rem !important; }
    .hero p  { font-size: .95rem !important; }
    .hero-search { border-radius: 14px !important; }
    .hero-search input  { font-size: 14px !important; padding: 13px 16px !important; }
    .hero-search button { padding: 13px 16px !important; font-size: .85rem !important; }
}

/* ── Category pills scrollable ───────────────────────────────── */
.cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; }

/* ── Section title on mobile ─────────────────────────────────── */
@media (max-width: 640px) {
    .section { padding: 20px 0 !important; }
    .section h2 { font-size: 1.1rem !important; }
    .container { padding: 0 var(--mob-px, 16px) !important; }
}

/* ── Booking confirm page ────────────────────────────────────── */
.booking-confirm-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}
@media (max-width: 640px) {
    .booking-confirm-wrap { padding: 16px 12px; }
}

/* ── My bookings card ─────────────────────────────────────────── */
.my-booking-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .15s;
}
.my-booking-card:active { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.my-booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}
.my-booking-body { padding: 12px 16px; }
.my-booking-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
.my-booking-footer .btn { flex: 1; height: 40px; font-size: .82rem; justify-content: center; }

/* ── Partner content paddings ────────────────────────────────── */
@media (max-width: 768px) {
    .partner-content > .container,
    .partner-content > .page-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .card { border-radius: 16px; }
    .card-header { padding: 14px 16px; }
    .card-body   { padding: 14px 16px; }
}

/* ── Topbar hamburger ────────────────────────────────────────── */
.btn-hamburger {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--dark);
    flex-shrink: 0;
}
.btn-hamburger svg { width: 20px; height: 20px; }
@media (min-width: 769px) {
    .btn-hamburger { display: none !important; }
}

/* ── Responsive tables ───────────────────────────────────────── */
@media (max-width: 640px) {
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive table { min-width: 480px; }
    .table th, .table td { padding: 10px 10px; font-size: .82rem; }
}

/* ── Toast — mobile position ─────────────────────────────────── */
@media (max-width: 640px) {
    #toast-container {
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .toast { border-radius: 14px !important; }
}

/* ── Partner topbar height fix ───────────────────────────────── */
.partner-topbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* ── Loading screen — hide after load ────────────────────────── */
#app-loading { transition: opacity .4s, visibility .4s; }
#app-loading.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state-mob {
    text-align: center;
    padding: 48px 24px;
}
.empty-state-mob .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.empty-state-mob h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.empty-state-mob p  { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }

/* ── Scroll to top button ────────────────────────────────────── */
#scroll-top-btn {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(26,86,219,.3);
    cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    z-index: 200;
}
#scroll-top-btn.visible { opacity: 1; pointer-events: all; }
