/* ==========================================================================
   My Cham Salon — Customer Site
   Design tokens
   Red / Black / White palette: pure editorial contrast — jet black for
   structure & type, crimson-red for CTAs & energy, white for clean space.
   Type: Fraunces (display, warm serif) + Manrope (body, quiet workhorse)
   Fonts are loaded via <link rel="preload"/stylesheet"> in includes/header.php
   (not @import here) so they don't block this stylesheet's own download.
   ========================================================================== */

:root {
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-primary: #0B0B0B;
    --color-primary-light: #262626;
    --color-accent: #E30613;
    --color-accent-dark: #B40510;
    --color-accent-soft: #FCE3E5;
    --color-blush: #FF4D57;
    --color-text: #0B0B0B;
    --color-text-muted: #63636A;
    --color-border: #E8E8E8;
    --color-success: #1E8449;
    --color-warning: #B8860B;
    --color-danger: #E30613;

    --gradient-hero: linear-gradient(135deg, #0B0B0B 0%, #1E1E1E 55%, #E30613 180%);
    --gradient-cta: linear-gradient(120deg, #E30613 0%, #B40510 100%);
    --gradient-dark: linear-gradient(160deg, #0B0B0B 0%, #1E1E1E 100%);

    --font-display: 'Fraunces', serif;
    --font-body: 'Poppins', sans-serif;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --max-content: 1120px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* App-native feel on mobile: no elastic bounce past the top/bottom of
       the page, no rubber-band overscroll — makes the whole site behave
       like a real installed app rather than a browser tab. */
    overscroll-behavior-y: none;
    -webkit-text-size-adjust: 100%;
}
body {
    overscroll-behavior-y: none;
    /* No blue/grey flash on tap for links & buttons — native apps don't
       show a browser tap-highlight. */
    -webkit-tap-highlight-color: transparent;
}
/* Standalone (installed) mode gets extra native touches: no text
   selection callouts on long-press, no drag-ghost on images/links. */
@media (display-mode: standalone) {
    body { -webkit-user-select: none; user-select: none; }
    input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
    img, a { -webkit-touch-callout: none; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* --- Ambient site-wide background: soft crimson glows + fine grain over the
   editorial black/red/white theme. Fixed so it stays put while content
   scrolls above it; kept subtle enough that panels/cards still read as
   crisp white surfaces on top. --- */
body.app-shell:not(.admin-body)::before,
body.app-shell:not(.admin-body)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
body.app-shell:not(.admin-body)::before {
    background:
        radial-gradient(700px circle at 8% -6%, rgba(227, 6, 19, 0.10), transparent 55%),
        radial-gradient(620px circle at 108% 12%, rgba(227, 6, 19, 0.08), transparent 50%),
        radial-gradient(900px circle at 50% 118%, rgba(11, 11, 11, 0.06), transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, #FDFBFB 40%, #FBF6F2 100%);
}
body.app-shell:not(.admin-body)::after {
    opacity: 0.5;
    background-image: radial-gradient(rgba(11, 11, 11, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
}
/* Lift in-flow content above the fixed ambient background layer without
   touching elements that already manage their own position (header uses
   position:sticky, the mobile bottom nav uses position:fixed). */
body.app-shell:not(.admin-body) > main,
body.app-shell:not(.admin-body) > .site-footer,
body.app-shell:not(.admin-body) > footer { position: relative; z-index: 1; }

[data-theme="dark"] body.app-shell:not(.admin-body)::before {
    background:
        radial-gradient(700px circle at 8% -6%, rgba(227, 6, 19, 0.16), transparent 55%),
        radial-gradient(620px circle at 108% 10%, rgba(227, 6, 19, 0.10), transparent 50%),
        radial-gradient(900px circle at 50% 120%, rgba(227, 6, 19, 0.05), transparent 55%),
        linear-gradient(180deg, #0B0B0B 0%, #101014 45%, #0B0B0B 100%);
}
[data-theme="dark"] body.app-shell:not(.admin-body)::after { opacity: 0.35; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); }

@media (max-width: 600px) {
    body.app-shell:not(.admin-body)::before {
        background:
            radial-gradient(420px circle at 10% -4%, rgba(227, 6, 19, 0.12), transparent 55%),
            radial-gradient(380px circle at 100% 10%, rgba(227, 6, 19, 0.08), transparent 50%),
            linear-gradient(180deg, #FFFFFF 0%, #FDFBFB 45%, #FBF6F2 100%);
    }
}

/* --- App-shell mobile polish: safe-area padding for notches/home indicator --- */
.app-shell { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 600px) {
    .app-shell .site-header { padding-top: env(safe-area-inset-top); }
    .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
}
button, .btn, a { -webkit-tap-highlight-color: transparent; }
* { -webkit-touch-callout: none; }
input, textarea { -webkit-touch-callout: default; -webkit-user-select: text; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.12;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 600; font-style: normal; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; font-style: normal; }
.accent-italic { font-style: italic; font-weight: 500; color: var(--color-accent); }

p { margin: 0 0 var(--space-2); max-width: 62ch; }

a { color: var(--color-accent); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* --- Top nav --- */
.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    max-width: var(--max-content);
    margin: 0 auto;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: normal;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo img.logo-image { height: 52px; width: auto; border-radius: 8px; flex-shrink: 0; }
.logo .logo-mark { flex-shrink: 0; }
.nav-links {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    margin: 0 0 0 var(--space-4);
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 10px; bottom: 1px;
    width: 0; height: 2px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--color-accent); background: rgba(227,6,19,0.08); }
.nav-links a:hover::after { width: calc(100% - 20px); }
.nav-links a.is-active { color: var(--color-accent); background: rgba(227,6,19,0.08); }
.nav-links a.is-active::after { width: calc(100% - 20px); }
.branch-switch-link { display: inline-flex; align-items: center; gap: 4px; }
.branch-pin-icon { flex-shrink: 0; color: var(--color-accent); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.wallet-chip {
    background: var(--color-primary);
    color: #fff;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.wallet-chip small { opacity: 0.75; font-weight: 500; margin-left: 4px; }
.nav-avatar-link { display: inline-flex; text-decoration: none; }
.nav-avatar-img {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}
.nav-avatar-initial {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-accent); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gradient-cta); color: #fff; box-shadow: 0 6px 18px rgba(227, 6, 19, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227, 6, 19, 0.42); }
.btn-accent { background: var(--color-primary); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Hero --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) 0 var(--space-4);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(227,6,19,0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero > div, .hero > svg { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--space-2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.3);
}
.hero-visual { position: relative; justify-self: stretch; width: 100%; }
.hero-flower {
    width: 100%;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.12));
    animation: hero-breathe 7s ease-in-out infinite;
    transform-origin: center;
}
.hero-video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 20px 45px rgba(0,0,0,0.22);
    border: 4px solid #fff;
    background: #000;
}
[data-theme="dark"] .hero-video { border-color: var(--color-surface); }
@keyframes hero-breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.035) rotate(2.5deg); }
}
.hero-rating-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: hero-float 4.5s ease-in-out infinite;
    z-index: 2;
}
.hero-rating-badge .stars { color: var(--color-accent); font-size: 0.95rem; letter-spacing: 1px; }
.hero-rating-badge .rating-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.hero-rating-badge .rating-label { font-size: 0.68rem; color: var(--color-text-muted); font-weight: 600; }
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    max-width: 460px;
}
.hero-social-proof .avatars { display: flex; }
.hero-social-proof .avatars span {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -8px;
}
.hero-social-proof .avatars span:first-child { margin-left: 0; }
.hero-social-proof p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }
.hero-social-proof strong { color: var(--color-text); }

/* --- Full-width photo hero (customer/home-image.php): header floats over the image --- */
.page-hero-overlay .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom-color: transparent;
}
.page-hero-overlay .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--color-border);
}
.page-hero-overlay .site-header:not(.is-scrolled) .logo,
.page-hero-overlay .site-header:not(.is-scrolled) .nav-links a,
.page-hero-overlay .site-header:not(.is-scrolled) .nav-actions > a:not(.btn),
.page-hero-overlay .site-header:not(.is-scrolled) .theme-toggle,
.page-hero-overlay .site-header:not(.is-scrolled) .cart-link,
.page-hero-overlay .site-header:not(.is-scrolled) .nav-toggle,
.page-hero-overlay .site-header:not(.is-scrolled) .notif-bell {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.page-hero-overlay .site-header:not(.is-scrolled) .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.75);
}
.page-hero-overlay .site-header:not(.is-scrolled) .btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.page-hero-overlay .site-header:not(.is-scrolled) .nav-links.is-open a { color: var(--color-text); text-shadow: none; }
.page-hero-overlay main { display: block; }
.page-hero-overlay .hero-full-wrap { margin-top: 0; }

/* --- Full-width photo hero (customer/home-image.php) --- */
.hero-full-wrap {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: var(--space-5);
}
.hero-full-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-full-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,11,11,0.72) 0%, rgba(11,11,11,0.45) 45%, rgba(11,11,11,0.12) 100%);
    z-index: 1;
}
.hero-full-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: var(--space-5) 0;
    color: #fff;
}
.hero-full-content .hero-eyebrow { background: var(--color-primary); }
.hero-full-content h1 { color: #fff; }
.hero-full-content p { color: rgba(255,255,255,0.88); }
.hero-full-content .hero-social-proof { border-top-color: rgba(255,255,255,0.25); }
.hero-full-content .hero-social-proof p { color: rgba(255,255,255,0.75); }
.hero-full-content .hero-social-proof strong { color: #fff; }
.hero-full-rating-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    box-shadow: 0 16px 34px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-full-rating-badge .stars { color: var(--color-accent); font-size: 0.95rem; letter-spacing: 1px; }
.hero-full-rating-badge .rating-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.hero-full-rating-badge .rating-label { font-size: 0.68rem; color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 860px) {
    .hero-full-wrap { min-height: 460px; }
    .hero-full-content { max-width: 100%; padding: var(--space-4) var(--space-2); }
    .hero-full-wrap::after { background: linear-gradient(180deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0.78) 75%); }
}

/* --- Stats strip (editorial, not cards) --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.stat-block {
    text-align: center;
    padding: 0 var(--space-2);
    border-right: 1px solid var(--color-border);
}
.stat-block:last-child { border-right: none; }
.stat-block .stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}
.stat-block .stat-num .accent { color: var(--color-accent); }
.stat-block .stat-label {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Testimonial pull-quote strip --- */
.testimonial-strip {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-5) 0;
    position: relative;
    overflow: hidden;
}
.testimonial-strip::before {
    content: '\201C';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 320px;
    line-height: 1;
    color: rgba(255,255,255,0.05);
    pointer-events: none;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}
.testimonial-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 500;
    color: #fff;
    max-width: 46ch;
    line-height: 1.5;
}
.testimonial-quote .quote-author { font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 600; }
.testimonial-quote .quote-author strong { color: #fff; }
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-2); }
.testimonial-avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-accent);
    color: #0B0B0B;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.25);
}
.testimonial-stars { color: var(--color-accent); font-size: 0.8rem; letter-spacing: 1px; margin-top: 2px; }

/* --- Placeholder tile for services without an uploaded photo --- */
.media-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary);
    color: #fff;
}
.media-img-placeholder span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.2rem;
}

/* --- Button shine-sweep hover --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }

/* --- Sections --- */
.section { padding: var(--space-5) 0; }
.section-alt { background: #FAFAFA; }
.section-head { max-width: 620px; margin-bottom: var(--space-4); }
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

/* --- Reveal-on-scroll (progressive enhancement) --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --- Cards / grids --- */
.grid {
    display: grid;
    gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 18px 38px rgba(0,0,0,0.14); border-color: var(--color-primary); }
.media-frame { overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--color-accent-soft); }
/* Base rule: applies wherever .media-img is used, inside a .media-frame or not. */
.media-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-accent-soft);
}
.media-frame .media-img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.card:hover .media-frame .media-img { transform: scale(1.1); }
.gallery-item.card { padding: 0; overflow: hidden; cursor: pointer; border: none; display: block; text-align: left; position: relative; }
.gallery-item .media-frame { margin-bottom: 0; border-radius: var(--radius-md); height: 100%; }
.gallery-item:hover .media-frame .media-img { transform: scale(1.12); }
.gallery-item::after {
    content: '\26F6';
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,11,11,0.55);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.service-card { border-top: 3px solid var(--color-primary); text-decoration: none; }
.service-card:hover { border-top-color: var(--color-accent); }
.service-card .price { color: var(--color-accent); font-weight: 800; font-size: 1.1rem; }
.service-card .meta { color: var(--color-text-muted); font-size: 0.85rem; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}
.badge-lock { background: #EFEFEF; color: var(--color-primary); }
.badge-success { background: #DCEADF; color: var(--color-success); }

/* --- Why-us strip --- */
.why-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
}
.why-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    position: relative;
    padding-top: calc(var(--space-3) + 8px);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.why-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.08); }
.why-item::before {
    content: '';
    position: absolute;
    top: -14px; left: var(--space-3);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gradient-cta);
    box-shadow: 0 4px 10px rgba(227,6,19,0.35);
}
.why-item h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 800; color: var(--color-text); margin-bottom: 4px; }
.why-item p { font-size: 0.87rem; color: var(--color-text-muted); margin-bottom: 0; }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-2); }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}
.auth-box {
    max-width: 420px;
    margin: var(--space-5) auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

/* --- Booking stepper --- */
.stepper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
.stepper li {
    padding: var(--space-2) var(--space-2) var(--space-2) 0;
    margin-right: var(--space-3);
    font-weight: 700;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
}
.stepper li.active { color: var(--color-primary); border-color: var(--color-accent); }

/* --- Wallet page --- */
.wallet-balance-row { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.balance-tile {
    flex: 1;
    background: var(--gradient-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.balance-tile.locked { background: var(--gradient-cta); box-shadow: 0 14px 30px rgba(227,6,19,0.28); }
.balance-tile .amount { font-family: var(--font-display); font-size: 1.9rem; }

/* --- Table --- */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
th { color: #fff; font-weight: 700; background: var(--color-primary); }

/* --- Queue token --- */
.token-display {
    text-align: center;
    padding: var(--space-5);
    background: var(--gradient-dark);
    color: #fff;
    border-radius: var(--radius-lg);
}
.token-display .token-number { font-family: var(--font-display); font-size: 4rem; color: var(--color-accent); }

/* --- Footer --- */
.site-footer {
    background: var(--color-primary);
    color: #D9D9D9;
    padding: var(--space-5) 0 var(--space-3);
    margin-top: var(--space-5);
    border-top: 3px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    bottom: -180px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(227,6,19,0.22), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: #D9D9D9; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1.1fr; gap: var(--space-3); }
.footer-brand-col p { margin-bottom: 0; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-2); }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: var(--color-accent); background: rgba(227,6,19,0.12); color: var(--color-accent); }
.footer-branch-list { list-style: none; margin: 0; padding: 0; }
.footer-branch-list li { margin-bottom: var(--space-2); }
.footer-branch-list li:last-child { margin-bottom: 0; }
.footer-branch-list strong { display: block; color: #fff; font-size: 0.88rem; }
.footer-branch-list span { display: block; font-size: 0.78rem; opacity: 0.75; margin-top: 2px; }
.footer-branch-list a { display: block; font-size: 0.78rem; margin-top: 2px; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-2); }
.footer-newsletter-form input {
    padding: 9px 12px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.85rem;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--color-accent); }
.footer-newsletter-form .btn { align-self: flex-start; }
.footer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-payments-label { font-size: 0.78rem; opacity: 0.7; margin-right: 4px; }
.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #D9D9D9;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.payment-badge svg { flex-shrink: 0; color: var(--color-accent); }
.payment-badge:hover { transform: translateY(-2px); }

/* Footer brand logo (image logo, or the SVG mark fallback) */
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.footer-logo img.logo-image { height: 40px; width: auto; border-radius: 8px; }
.footer-logo .logo-mark { flex-shrink: 0; }

/* "Install App" button — hidden until the browser confirms the site is
   installable (via beforeinstallprompt in main.js), so it never shows on
   browsers/devices that don't support PWA install. */
.footer-install-btn {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
}
.footer-install-btn:hover { border-color: var(--color-accent); background: rgba(227,6,19,0.12); }
.footer-install-btn.is-visible { display: inline-flex; }
.payment-badge:hover { border-color: var(--color-accent); background: rgba(227,6,19,0.12); color: #fff; }
.footer-bottom {
    text-align: center;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-credit { font-size: 0.75rem; opacity: 0.85; }
.footer-credit a { text-decoration: underline; }

/* --- Utility --- */
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: var(--space-2); }
.justify-between { justify-content: space-between; }

/* --- Floating "Book Now" action button (mobile) --- */
.fab-book {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 90;
    background: var(--gradient-cta);
    color: #fff;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(227,6,19,0.42);
    text-decoration: none;
    font-size: 1.4rem;
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    right: 18px; bottom: 84px;
    z-index: 90;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    font-size: 1.1rem;
}
.back-to-top.visible, .fab-book.visible { display: flex; }

/* --- Toast notifications --- */
.toast-stack {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    border-left: 4px solid var(--color-accent);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(0); }

/* --- Sticky mobile bottom nav --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav ul {
    list-style: none;
    margin: 0; padding: 6px 4px;
    display: flex;
    justify-content: space-around;
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 4px 10px;
}
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--color-accent); }
.mobile-bottom-nav .dot {
    width: 32px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.mobile-bottom-nav .dot svg { width: 21px; height: 21px; display: block; }
.mobile-bottom-nav a.active .dot {
    background: rgba(227, 6, 19, 0.12);
    transform: translateY(-1px);
}
[data-theme="dark"] .mobile-bottom-nav a.active .dot { background: rgba(227, 6, 19, 0.22); }

/* --- Responsive --- */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { max-width: 100%; order: -1; }
    .hero-rating-badge { padding: 8px 12px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
    .why-strip { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-newsletter-col { grid-column: 1 / -1; }
    .stats-strip { grid-template-columns: 1fr 1fr; row-gap: var(--space-3); }
    .stat-block:nth-child(2) { border-right: none; }
    .testimonial-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}
@media (max-width: 600px) {
    .nav-row { flex-wrap: wrap; position: relative; }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        order: 3;
        margin: var(--space-2) 0 0 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        max-height: 60vh;
        overflow-y: auto;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--color-border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 14px 4px; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: block; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .why-strip { grid-template-columns: 1fr; }
    .wallet-balance-row { flex-direction: column; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 64px; }
    .fab-book { bottom: 74px; }
    .back-to-top { bottom: 140px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card:hover, .btn-primary:hover, .btn-outline:hover, .why-item:hover { transform: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-flower, .hero-rating-badge { animation: none; }
    .btn-primary::after { display: none; }
}

/* ==========================================================================
   Dark mode — toggled via <html data-theme="dark">, persisted in localStorage
   ========================================================================== */
[data-theme="dark"] {
    --color-bg: #101014;
    --color-surface: #1A1A20;
    --color-text: #F1F1F3;
    --color-text-muted: #9A9AA5;
    --color-border: #2C2C34;
    --color-accent-soft: #3A1418;
}
[data-theme="dark"] body { background: var(--color-bg); color: var(--color-text); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(16,16,20,0.9); border-bottom-color: var(--color-border); }
[data-theme="dark"] .logo, [data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #F1F1F3; }
[data-theme="dark"] .nav-links a { color: var(--color-text); }
[data-theme="dark"] .section-alt { background: #16161C; }
[data-theme="dark"] .card, [data-theme="dark"] .why-item, [data-theme="dark"] .auth-box { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] table { background: var(--color-surface); }
[data-theme="dark"] th, [data-theme="dark"] td { border-color: var(--color-border); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: #22222A; border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .mobile-bottom-nav { background: var(--color-surface); border-top-color: var(--color-border); }
[data-theme="dark"] .btn-outline { color: #F1F1F3; border-color: #F1F1F3; }
[data-theme="dark"] .btn-outline:hover { background: #F1F1F3; color: #101014; }

.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .hero-rating-badge { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .stats-strip { border-color: var(--color-border); }
[data-theme="dark"] .stat-block { border-color: var(--color-border); }
[data-theme="dark"] .stat-block .stat-num { color: #F1F1F3; }
[data-theme="dark"] .hero-social-proof { border-color: var(--color-border); }
[data-theme="dark"] .testimonial-strip { background: #050505; }
.theme-toggle:hover { border-color: var(--color-accent); }

/* --- Cart page --- */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-row {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}
.cart-row-img {
    width: 64px; height: 64px;
    border-radius: 8px;
    background-color: var(--color-accent-soft);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.cart-row-info h4 { margin: 0 0 2px; font-size: 0.95rem; }
.cart-row-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.qty-btn:hover { border-color: var(--color-accent); }
.cart-row-total { font-weight: 700; min-width: 70px; text-align: right; }
.cart-row-remove {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}
.cart-row-remove:hover { color: var(--color-accent); }
.cart-summary {
    max-width: 320px;
    margin-left: auto;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; }
@media (max-width: 640px) {
    .cart-row { grid-template-columns: 48px 1fr; grid-template-areas: "img info" "img qty" "img total"; row-gap: 6px; }
    .cart-row-img { grid-area: img; width: 48px; height: 48px; }
    .cart-row-info { grid-area: info; }
    .cart-row-qty { grid-area: qty; }
    .cart-row-total { grid-area: total; text-align: left; }
    .cart-row-remove { position: absolute; margin-left: 8px; }
}

/* --- Cart icon --- */
.cart-link {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}
.cart-link:hover { border-color: var(--color-accent); }
.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--color-bg);
}

/* --- Notification bell --- */
.notif-bell-wrap { position: relative; }
.notif-bell {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.notif-bell:hover { border-color: var(--color-accent); }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--color-bg);
}
.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 88vw;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 44px rgba(0,0,0,0.16);
    z-index: 300;
    display: none;
    overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
}
.notif-panel-head h4 { margin: 0; font-size: 0.95rem; }
.notif-panel-head button {
    background: none; border: none; color: var(--color-accent);
    font-size: 0.78rem; font-weight: 700; cursor: pointer; padding: 0;
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--color-accent-soft); }
.notif-item.unread { background: rgba(227,6,19,0.05); }
.notif-item .notif-title { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.notif-item.unread .notif-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.notif-item .notif-msg { color: var(--color-text-muted); margin-top: 2px; }
.notif-item .notif-time { color: var(--color-text-muted); font-size: 0.72rem; margin-top: 4px; display: block; }
.notif-empty { padding: 28px 14px; text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }

/* --- Gallery lightbox --- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(11,11,11,0.92);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-3);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: min(92vw, 900px);
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    transform: scale(0.94);
    transition: transform 0.25s ease;
    background: #111;
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 18px; right: 18px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-caption {
    position: absolute;
    bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 0.85rem; opacity: 0.75;
    background: rgba(0,0,0,0.35);
    padding: 4px 14px; border-radius: 999px;
}
@media (max-width: 600px) {
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

/* ==========================================================================
   Homepage additions: Quick Booking, Offers, Stylists, Before/After slider,
   FAQ accordion, Location & Contact, Instagram feed
   ========================================================================== */

/* --- Quick Booking widget --- */
.quick-booking {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-3);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.quick-booking::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(500px circle at 90% -10%, rgba(227,6,19,0.35), transparent 60%);
    pointer-events: none;
}
.quick-booking-head { position: relative; margin-bottom: var(--space-3); }
.quick-booking-head h2 { color: #fff; margin-bottom: 4px; }
.quick-booking-head p { color: rgba(255,255,255,0.7); margin: 0; }
.quick-booking-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: var(--space-2);
    align-items: end;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}
.quick-booking-form .form-group { margin-bottom: 0; }
.quick-booking-form label { color: rgba(255,255,255,0.75); font-size: 0.8rem; margin-bottom: 4px; display: block; }
.quick-booking-form select,
.quick-booking-form input[type="date"],
.quick-booking-form input[type="time"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    width: 100%;
    font-family: var(--font-body);
}
.quick-booking-form select option { color: #0B0B0B; }
.quick-booking-form .btn-accent { white-space: nowrap; }
.quick-booking-alt { position: relative; margin-top: var(--space-2); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.quick-booking-alt a { color: rgba(255,255,255,0.85); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.quick-booking-alt a:hover { color: #fff; }

/* --- Offers & Packages --- */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.offer-card {
    border-radius: var(--radius-md);
    padding: var(--space-3);
    background: linear-gradient(150deg, #FFF7F0 0%, #FCE3E5 100%);
    border: 1px solid var(--color-accent-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.offer-card.offer-first-visit { background: var(--gradient-dark); color: #fff; border: none; }
.offer-card.offer-first-visit p { color: rgba(255,255,255,0.75); }
.offer-badge {
    align-self: flex-start;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.offer-card h4 { margin: 4px 0 0; font-size: 1.05rem; }
.offer-card p { margin: 0; font-size: 0.87rem; color: var(--color-text-muted); }
.offer-code-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.offer-code {
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(11,11,11,0.06);
    border: 1px dashed rgba(11,11,11,0.25);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.85rem;
}
.offer-card.offer-first-visit .offer-code { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }
.offer-copy-btn {
    border: none; background: none; cursor: pointer;
    color: var(--color-accent); font-size: 0.78rem; font-weight: 700;
}
.offer-card.offer-first-visit .offer-copy-btn { color: #FF8087; }

/* --- Stylists --- */
.stylist-card { text-align: center; padding: var(--space-3) var(--space-2); }
.stylist-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-dark);
    color: #fff; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
}
.stylist-card h4 { margin: 0 0 2px; font-size: 1.02rem; }
.stylist-card .stylist-role { color: var(--color-accent); font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.stylist-card .stylist-stars { color: var(--color-warning); font-size: 0.85rem; }

/* --- Before / After interactive slider --- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.ba-slider {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-primary);
    user-select: none;
}
.ba-slider .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider .ba-img-after { clip-path: inset(0 0 0 50%); }
.ba-slider .ba-handle {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 3px; background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
    pointer-events: none;
}
.ba-slider .ba-handle::after {
    content: "⇔";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ba-slider input[type="range"] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: ew-resize;
    -webkit-appearance: none;
}
.ba-label { position: absolute; top: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.45); padding: 3px 9px; border-radius: 999px; }
.ba-label.ba-label-before { left: 10px; }
.ba-label.ba-label-after { right: 10px; }
.ba-caption { text-align: center; font-size: 0.82rem; color: var(--color-text-muted); margin-top: 8px; }

/* --- FAQ accordion --- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 4px var(--space-2);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 14px; color: var(--color-text-muted); font-size: 0.92rem; }

/* --- Location & Contact --- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: stretch; }
.contact-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); min-height: 320px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contact-details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); }
.contact-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .contact-icon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-accent-soft); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
}
.contact-row h5 { margin: 0 0 2px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.contact-row p, .contact-row a { margin: 0; font-size: 0.95rem; color: var(--color-text); text-decoration: none; }
.contact-row a:hover { color: var(--color-accent); }
.contact-cta-row { display: flex; gap: 10px; margin-top: var(--space-2); flex-wrap: wrap; }

/* --- Instagram feed --- */
.instagram-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-2); }
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.instagram-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.instagram-tile .media-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.instagram-tile:hover .media-img { transform: scale(1.08); }
.instagram-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(11,11,11,0); transition: background 0.2s ease;
}
.instagram-tile:hover::after { background: rgba(11,11,11,0.25); }

@media (max-width: 900px) {
    .quick-booking-form { grid-template-columns: 1fr 1fr; }
    .offers-grid { grid-template-columns: 1fr 1fr; }
    .ba-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .quick-booking-form { grid-template-columns: 1fr; }
    .offers-grid { grid-template-columns: 1fr; }
    .ba-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

[data-theme="dark"] .offer-card:not(.offer-first-visit) { background: linear-gradient(150deg, #201517 0%, #1A1416 100%); border-color: var(--color-border); }
[data-theme="dark"] .offer-code { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }
[data-theme="dark"] .faq-item { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .contact-details { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .contact-map { border-color: var(--color-border); }

/* ==========================================================================
   App-style splash screen — shown briefly on first load per browser tab,
   mainly so opening the site on mobile feels like launching a native app.
   Hidden entirely on desktop widths since it's a mobile-app touch.
   ========================================================================== */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.app-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-splash-inner { text-align: center; animation: app-splash-pop 0.6s ease; }
.app-splash-logo {
    width: 84px; height: 84px; object-fit: contain; border-radius: 20px;
    margin-bottom: 18px; box-shadow: 0 14px 32px rgba(0,0,0,0.45);
    background: #fff;
}
.app-splash-mark { margin-bottom: 18px; filter: drop-shadow(0 10px 20px rgba(227,6,19,0.4)); }
.app-splash-name {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
    color: #fff; letter-spacing: 0.01em; margin-bottom: 24px;
}
.app-splash-loader { display: flex; gap: 8px; justify-content: center; }
.app-splash-loader span {
    width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent);
    animation: app-splash-bounce 1s infinite ease-in-out;
}
.app-splash-loader span:nth-child(2) { animation-delay: 0.15s; }
.app-splash-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes app-splash-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
@keyframes app-splash-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
/* Desktop: skip the splash entirely — this is a mobile "opening the app" touch */
@media (min-width: 861px) {
    .app-splash { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .app-splash-inner { animation: none; }
    .app-splash-loader span { animation: none; opacity: 1; }
}

/* ==========================================================================
   Mobile: buttons look like small elevated cards (app-style), not flat pills.
   Scoped to customer-facing pages only — body:not(.admin-body) keeps the
   admin dashboard's existing button style untouched.
   ========================================================================== */
@media (max-width: 600px) {
    body:not(.admin-body) .btn {
        border-radius: var(--radius-md);
        padding: 14px 22px;
        border: none;
        box-shadow: 0 10px 22px rgba(11, 11, 11, 0.14);
        transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
    }
    body:not(.admin-body) .btn-primary { box-shadow: 0 10px 24px rgba(227, 6, 19, 0.32); }
    body:not(.admin-body) .btn-primary:hover { transform: none; }
    body:not(.admin-body) .btn-accent { box-shadow: 0 10px 24px rgba(11, 11, 11, 0.28); }
    body:not(.admin-body) .btn-outline {
        background: var(--color-surface);
        color: var(--color-primary);
        border: 1px solid var(--color-border);
        box-shadow: 0 8px 18px rgba(11, 11, 11, 0.08);
    }
    body:not(.admin-body) .btn-outline:hover { transform: none; background: var(--color-surface); color: var(--color-primary); }
    body:not(.admin-body) .btn-danger { box-shadow: 0 10px 22px rgba(193, 18, 31, 0.3); }
    body:not(.admin-body) .btn-sm { border-radius: 10px; padding: 9px 16px; box-shadow: 0 6px 14px rgba(11, 11, 11, 0.12); }
    body:not(.admin-body) .btn-block { box-shadow: 0 12px 26px rgba(11, 11, 11, 0.16); }
    /* Tactile tap feedback, like pressing a real app button/card */
    body:not(.admin-body) .btn:active {
        transform: scale(0.96);
        box-shadow: 0 4px 10px rgba(11, 11, 11, 0.14);
    }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    body:not(.admin-body) .btn:active { transform: none; }
}

/* ==========================================================================
   Shared "app-like" mobile components — quick-action tiles, chip scroller,
   list-tiles (icon + text + chevron), and a wallet-style hero balance card.
   Used on Home / Services / Wallet / Profile. Customer-side only.
   ========================================================================== */

/* Quick-action icon grid (mobile home screen launcher) */
.quick-actions { display: none; }
@media (max-width: 600px) {
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin: 16px 0 28px;
    }
    .qa-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: var(--color-primary);
        font-size: 0.7rem;
        font-weight: 700;
        text-align: center;
    }
    .qa-tile .qa-icon {
        width: 52px; height: 52px;
        display: flex; align-items: center; justify-content: center;
        background: var(--color-surface);
        border-radius: var(--radius-md);
        box-shadow: 0 8px 18px rgba(11,11,11,0.1);
        color: var(--color-accent);
        transition: transform 0.15s ease;
    }
    .qa-tile:active .qa-icon { transform: scale(0.92); }
    .qa-tile .qa-icon svg { width: 24px; height: 24px; }
}

/* Horizontal scrollable chip row (category filters) */
.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 8px;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.chip:active { transform: scale(0.96); }
.chip.chip-active, .chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* App-style list row: icon left, text middle, chevron/value right */
.list-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--color-surface);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border);
}
.list-tile:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.list-tile:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); border-bottom: none; }
.list-tile:only-child { border-radius: var(--radius-md); }
.list-tile-group { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: 0 6px 18px rgba(11,11,11,0.06); overflow: hidden; margin-bottom: 20px; }
.list-tile-icon {
    width: 38px; height: 38px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--color-accent-soft, rgba(227,6,19,0.1));
    color: var(--color-accent);
}
.list-tile-icon svg { width: 19px; height: 19px; }
.list-tile-body { flex: 1; min-width: 0; }
.list-tile-title { font-weight: 700; font-size: 0.92rem; color: var(--color-primary); }
.list-tile-sub { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 1px; }
.list-tile-value { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.list-tile-chevron { color: var(--color-text-muted); flex: 0 0 auto; }
.list-tile:active { background: var(--color-accent-soft, rgba(227,6,19,0.06)); }

/* Wallet-style hero balance card */
.balance-hero-card {
    background: var(--gradient-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.balance-hero-card::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(227,6,19,0.25);
}
.balance-hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; position: relative; }
.balance-hero-amount { font-family: var(--font-display); font-size: 2.3rem; margin: 4px 0 10px; position: relative; }
.balance-hero-locked { font-size: 0.8rem; opacity: 0.85; position: relative; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); padding: 5px 10px; border-radius: 999px; }

/* Quick top-up amount chips */
.topup-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.topup-chip {
    padding: 9px 16px; border-radius: 999px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.topup-chip.selected, .topup-chip:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Services catalog: keep a denser 2-column grid on mobile instead of full stack */
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .services-grid .service-card { padding: 10px; }
    .services-grid .service-card h3 { font-size: 0.88rem; margin: 6px 0 2px; }
    .services-grid .service-card .meta, .services-grid .service-card .price { font-size: 0.8rem; }
}
