:root {
    --page: #f4f6f8;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-strong: #111827;
    --text: #111827;
    --muted: #667085;
    --soft: #98a2b3;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #087443;
    --success-bg: #ecfdf3;
    --warning: #b54708;
    --warning-bg: #fffaeb;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --closed: #475467;
    --closed-bg: #f2f4f7;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 10px 24px rgba(16, 24, 40, 0.08);
}

/* Customer-focused public home page. */
body.home-page {
    background: #f5f7f8;
    color: #111827;
}

.home-shell {
    min-height: 100vh;
}

.home-hero {
    min-height: 720px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(43, 75, 68, 0.62) 0 50%, rgba(202, 86, 116, 0.58) 50% 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.26)),
        url("https://images.unsplash.com/photo-1512690459411-b9245aed614b?auto=format&fit=crop&w=2200&q=82");
    background-position: center;
    background-size: cover;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 0 clamp(18px, 4vw, 48px);
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(16px);
}

.home-brand,
.home-nav-links a {
    color: #ffffff;
    text-decoration: none;
}

.home-brand {
    font-size: 24px;
    font-weight: 800;
}

.home-brand span {
    color: #d5b36a;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 800;
}

.home-hero-content {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding-top: clamp(64px, 8vw, 112px);
}

.home-hero-content h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(36px, 4.7vw, 64px);
    line-height: 1;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.home-hero-content > p {
    max-width: 820px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.35;
    font-weight: 800;
}

.home-search {
    max-width: 1120px;
    margin-top: 36px;
}

.home-search-tabs {
    display: flex;
    flex-wrap: wrap;
}

.home-search-tabs button {
    min-width: 122px;
    border-color: rgba(255, 255, 255, 0.26);
    border-radius: 0;
    background: rgba(34, 54, 50, 0.72);
    box-shadow: none;
}

.home-search-tabs button.is-active {
    border-color: #e24b6a;
    background: #e24b6a;
}

.home-search-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 0.85fr) minmax(210px, 0.85fr) auto;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.home-search-row label {
    color: #475467;
}

.home-name-field {
    position: relative;
}

.home-search-row input,
.home-search-row select {
    min-height: 58px;
    border-color: transparent;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}

.home-search-row button {
    align-self: end;
    min-width: 140px;
    min-height: 58px;
    border-color: #81c99e;
    background: #81c99e;
    color: #ffffff;
    text-transform: uppercase;
}

.home-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
}

.home-suggestions.is-visible {
    display: grid;
}

.home-suggestions button {
    display: grid;
    min-height: auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    padding: 11px 12px;
    text-align: left;
    text-transform: none;
    box-shadow: none;
}

.home-suggestions button:hover {
    background: #f8fafc;
    color: #111827;
    box-shadow: none;
    transform: none;
}

.home-suggestions span {
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.home-section {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 68px 0;
}

.home-section-heading {
    max-width: 680px;
    margin-bottom: 20px;
}

.home-section-heading .eyebrow {
    color: #e24b6a;
}

.home-section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.home-salon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-salon-grid > .empty-state {
    grid-column: 1 / -1;
}

.home-salon-card {
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.home-salon-card span {
    color: #e24b6a;
    font-size: 12px;
    font-weight: 800;
}

.home-salon-card h3 {
    margin: 10px 0;
    font-size: 24px;
}

.home-salon-card p {
    color: #667085;
    line-height: 1.6;
    font-weight: 650;
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 860px;
    }

    .home-nav,
    .home-nav-links {
        align-items: stretch;
        flex-direction: column;
    }

    .home-nav {
        padding: 18px;
    }

    .home-hero-content {
        padding-top: 58px;
    }

    .home-hero-content h1 {
        max-width: 620px;
        font-size: clamp(36px, 7vw, 50px);
    }

    .home-search-row,
    .home-salon-grid {
        grid-template-columns: 1fr;
    }

    .home-search-row button {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, #ffffff 0, rgba(255, 255, 255, 0) 260px),
        var(--page);
    color: var(--text);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
.nav-link {
    min-height: 40px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:hover,
.nav-link:hover {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

button:active,
.nav-link:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

button.secondary,
.nav-link {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line-strong);
}

button.secondary:hover,
.nav-link:hover {
    background: var(--surface-muted);
    border-color: var(--soft);
}

button.danger {
    background: var(--danger);
    border-color: var(--danger);
}

button.danger:hover {
    background: #912018;
    border-color: #912018;
}

input,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 9px 12px;
    outline: none;
    transition: border 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.app-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.hero {
    display: flex;
    min-height: 172px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72)),
        url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=82");
    background-size: cover;
    background-position: center 42%;
    color: #ffffff;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.hero.compact {
    min-height: 118px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toolbar,
.inline-form,
.service-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.toolbar button,
.inline-form button,
.service-form button,
.hero-actions .nav-link {
    flex: 0 0 auto;
    min-width: 92px;
}

.business-form {
    flex-wrap: wrap;
}

.business-form input {
    min-width: 180px;
    flex: 1;
}

.toolbar {
    position: sticky;
    top: 10px;
    z-index: 5;
    margin: 16px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.layout,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 16px;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.form-panel {
    display: none;
}

.form-panel.is-visible {
    display: grid;
    align-content: start;
    gap: 14px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.slot-grid > .empty-state {
    grid-column: 1 / -1;
}

.slot {
    display: grid;
    gap: 6px;
    min-height: 78px;
    border: 1px solid var(--line);
    text-align: left;
    box-shadow: none;
}

.slot strong {
    font-size: 20px;
}

.slot span {
    font-size: 12px;
    font-weight: 800;
}

.slot.available {
    background: var(--success-bg);
    color: var(--success);
    border-color: #abefc6;
}

.slot.booked {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #fedf89;
}

.slot.closed {
    background: var(--closed-bg);
    color: var(--closed);
    border-color: var(--line);
}

.slot.selected {
    outline: 3px solid rgba(37, 99, 235, 0.16);
    border-color: var(--primary);
}

.lookup-panel {
    margin-top: 16px;
}

.list {
    display: grid;
    gap: 10px;
}

.appointment-card,
.mini-card,
.stat,
.report-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.appointment-card {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.card-top,
.card-actions,
.card-edit-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-top {
    justify-content: space-between;
}

.card-top strong {
    font-size: 20px;
}

.card-top span {
    color: var(--muted);
    font-weight: 800;
}

.card-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr) 120px minmax(150px, 1fr);
}

.mini-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.mini-card span {
    color: var(--muted);
}

.staff-card {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(130px, 0.8fr) auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.report-panel {
    margin-bottom: 16px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-card {
    min-height: 100%;
    padding: 14px;
}

.report-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.report-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

.segmented-control {
    display: flex;
    gap: 8px;
}

.stat {
    padding: 15px;
    background: #ffffff;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

.message {
    display: none;
    margin-top: 12px;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
}

.message.success,
.success-text {
    background: var(--success-bg);
    color: var(--success);
}

.message.error,
.error-text {
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--muted);
    padding: 12px;
}

.login-panel {
    margin-top: 16px;
}

.membership-panel {
    margin-bottom: 16px;
}

.membership-panel.expired {
    border-color: #fecdca;
    background: var(--danger-bg);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    border-radius: 8px;
    padding: 5px 9px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
}

.status-pill.expired,
.status-pill.inactive {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-pill.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.admin-content {
    display: none;
}

.admin-shell .toolbar {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .stats-grid,
    .report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero,
    .toolbar,
    .inline-form,
    .service-form,
    .hero-actions,
    .card-actions,
    .segmented-control {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar {
        position: static;
    }

    .layout,
    .admin-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .card-edit-grid,
    .mini-card {
        grid-template-columns: 1fr;
    }

    .app-shell {
        width: min(100% - 20px, 1280px);
        padding-top: 10px;
    }

    .hero {
        min-height: 190px;
        padding: 22px;
    }
}

/* Customer experience: minimal, dark, exploratory booking surface. */
body.customer-page {
    --page: #050608;
    --surface: rgba(11, 14, 18, 0.72);
    --surface-muted: rgba(255, 255, 255, 0.045);
    --surface-strong: #edf2f4;
    --text: #edf2f4;
    --muted: rgba(237, 242, 244, 0.62);
    --soft: rgba(237, 242, 244, 0.36);
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.18);
    --primary: #d5b36a;
    --primary-strong: #f3d993;
    --primary-soft: rgba(213, 179, 106, 0.13);
    --success: #d5b36a;
    --success-bg: rgba(213, 179, 106, 0.1);
    --warning: #c9b897;
    --warning-bg: rgba(255, 255, 255, 0.06);
    --danger: #ff9a8a;
    --danger-bg: rgba(255, 120, 104, 0.11);
    --closed: rgba(237, 242, 244, 0.4);
    --closed-bg: rgba(255, 255, 255, 0.035);
    --shadow-sm: 0 18px 70px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 28px 100px rgba(0, 0, 0, 0.42);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(213, 179, 106, 0.16), transparent 26vw),
        radial-gradient(circle at 78% 22%, rgba(106, 145, 213, 0.12), transparent 30vw),
        linear-gradient(180deg, #050608 0%, #0a0d10 44%, #030405 100%);
    color: var(--text);
}

body.customer-page::before,
body.customer-page::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
}

body.customer-page::before {
    z-index: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(180deg, transparent, #000 16%, #000 72%, transparent);
}

body.customer-page::after {
    z-index: 1;
    opacity: 0.18;
    background:
        repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 5px);
    mix-blend-mode: soft-light;
}

.customer-page .app-shell {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 40px));
    padding: 26px 0 84px;
}

.mystery-nav {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 20;
    display: grid;
    justify-items: end;
    gap: 8px;
}

.mystery-trigger {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: transparent;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.mystery-trigger::before,
.mystery-trigger::after {
    position: absolute;
    left: 15px;
    width: 16px;
    height: 1px;
    background: rgba(237, 242, 244, 0.72);
    content: "";
    transition: transform 700ms ease, background 700ms ease;
}

.mystery-trigger::before {
    top: 18px;
}

.mystery-trigger::after {
    top: 27px;
}

.mystery-nav:hover .mystery-trigger::before,
.mystery-nav:focus-within .mystery-trigger::before {
    transform: translateY(4px) rotate(24deg);
    background: var(--primary-strong);
}

.mystery-nav:hover .mystery-trigger::after,
.mystery-nav:focus-within .mystery-trigger::after {
    transform: translateY(-5px) rotate(-24deg);
    background: var(--primary-strong);
}

.mystery-menu {
    display: grid;
    gap: 4px;
    min-width: 136px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(8, 10, 13, 0.78);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.mystery-nav:hover .mystery-menu,
.mystery-nav:focus-within .mystery-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mystery-menu a {
    border-radius: 6px;
    color: rgba(237, 242, 244, 0.76);
    padding: 8px 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: color 700ms ease, background 700ms ease;
}

.mystery-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.customer-page .hero {
    position: relative;
    min-height: clamp(360px, 58vh, 620px);
    align-items: flex-end;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(5, 6, 8, 0.02) 0%, rgba(5, 6, 8, 0.36) 44%, rgba(5, 6, 8, 0.92) 100%),
        linear-gradient(90deg, rgba(5, 6, 8, 0.82), rgba(5, 6, 8, 0.16)),
        url("https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=2200&q=82");
    background-position: center;
    background-size: cover;
    box-shadow: none;
    isolation: isolate;
    padding: clamp(26px, 6vw, 72px);
    animation: customerDrift 28s ease-in-out infinite alternate;
}

.customer-page .hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.92));
    content: "";
    z-index: -1;
}

.customer-page .eyebrow {
    color: rgba(213, 179, 106, 0.9);
    font-size: 11px;
    text-transform: none;
}

.customer-page h1 {
    max-width: 760px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: clamp(44px, 9vw, 104px);
    font-weight: 800;
    line-height: 0.96;
    text-wrap: balance;
}

.customer-page .hero-copy {
    max-width: 520px;
    color: rgba(237, 242, 244, 0.72);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
}

.customer-page .toolbar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    margin: -46px auto 34px;
    width: min(920px, calc(100% - 28px));
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(9, 11, 14, 0.62);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(24px);
    transition: transform 900ms ease, border-color 900ms ease, background 900ms ease;
}

.customer-page .toolbar:hover {
    border-color: rgba(213, 179, 106, 0.32);
    background: rgba(9, 11, 14, 0.76);
    transform: translateY(-2px);
}

.customer-page .layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 18px;
}

.customer-page .panel {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(10, 13, 17, 0.58);
    box-shadow: 0 30px 110px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(22px);
    transition: transform 900ms ease, border-color 900ms ease, background 900ms ease;
}

.customer-page .panel:hover {
    border-color: rgba(213, 179, 106, 0.24);
    background: rgba(10, 13, 17, 0.72);
    transform: translateY(-2px);
}

.customer-page .section-heading {
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.customer-page h2 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.customer-page .section-heading span,
.customer-page .mini-card span,
.customer-page label {
    color: rgba(237, 242, 244, 0.56);
}

.customer-page button,
.customer-page .nav-link {
    border-color: rgba(213, 179, 106, 0.34);
    background: rgba(213, 179, 106, 0.12);
    color: #f7e7bd;
    box-shadow: none;
    transition: transform 700ms ease, border-color 700ms ease, background 700ms ease, color 700ms ease;
}

.customer-page button:hover,
.customer-page .nav-link:hover {
    border-color: rgba(243, 217, 147, 0.58);
    background: rgba(213, 179, 106, 0.22);
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-2px);
}

.customer-page button.secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(237, 242, 244, 0.68);
}

.customer-page .mystery-trigger,
.customer-page .mystery-trigger:hover {
    padding: 0;
    color: transparent;
}

.customer-page input,
.customer-page select {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
}

.customer-page input::placeholder {
    color: rgba(237, 242, 244, 0.34);
}

.customer-page input:focus,
.customer-page select:focus {
    border-color: rgba(213, 179, 106, 0.56);
    box-shadow: 0 0 0 4px rgba(213, 179, 106, 0.1);
}

.customer-page select option {
    background: #0c0f13;
    color: #ffffff;
}

.customer-page .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 12px;
}

.customer-page .slot {
    min-height: 88px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(237, 242, 244, 0.72);
    transition: transform 800ms ease, border-color 800ms ease, background 800ms ease, color 800ms ease, opacity 800ms ease;
}

.customer-page .slot:hover {
    border-color: rgba(213, 179, 106, 0.42);
    background: rgba(213, 179, 106, 0.12);
    color: #ffffff;
}

.customer-page .slot.available {
    background: rgba(213, 179, 106, 0.09);
    color: #f4dc9f;
}

.customer-page .slot.booked {
    background: rgba(255, 255, 255, 0.035);
    color: rgba(237, 242, 244, 0.46);
}

.customer-page .slot.closed {
    background: rgba(255, 255, 255, 0.025);
    color: rgba(237, 242, 244, 0.28);
}

.customer-page .slot.selected {
    border-color: rgba(243, 217, 147, 0.76);
    outline: 1px solid rgba(243, 217, 147, 0.34);
    background: rgba(213, 179, 106, 0.18);
}

.customer-page .slot strong {
    font-size: 22px;
    color: inherit;
}

.customer-page .form-panel.is-visible {
    animation: customerReveal 900ms ease both;
}

.customer-page .lookup-panel {
    margin-top: 18px;
}

.customer-page .mini-card,
.customer-page .empty-state {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(237, 242, 244, 0.7);
}

.customer-page .message {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-page .message.success,
.customer-page .success-text {
    background: rgba(213, 179, 106, 0.12);
    color: #f3d993;
}

.customer-page .message.error,
.customer-page .error-text {
    background: rgba(255, 120, 104, 0.11);
    color: #ffb1a6;
}

/* Premium customer theme: VIP Salon Retro. */
body.customer-page.theme-vip-retro {
    --page: #120b08;
    --surface: rgba(28, 18, 13, 0.76);
    --surface-muted: rgba(245, 222, 178, 0.06);
    --text: #fff4d8;
    --muted: rgba(255, 244, 216, 0.66);
    --line: rgba(219, 174, 93, 0.18);
    --line-strong: rgba(219, 174, 93, 0.34);
    --primary: #c79a46;
    --primary-strong: #ffe1a2;
    --primary-soft: rgba(199, 154, 70, 0.16);
    background:
        linear-gradient(90deg, rgba(255, 225, 162, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 225, 162, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 16% 12%, rgba(124, 29, 22, 0.44), transparent 28vw),
        radial-gradient(circle at 82% 18%, rgba(20, 77, 54, 0.44), transparent 32vw),
        linear-gradient(180deg, #130806 0%, #23120b 48%, #0b0705 100%);
    background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

body.customer-page.theme-vip-retro::before {
    opacity: 0.28;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 225, 162, 0.11) 0 1px, transparent 1px 18px),
        linear-gradient(135deg, transparent 0 46%, rgba(255, 225, 162, 0.16) 47% 53%, transparent 54% 100%);
    background-size: 180px 100%, 28px 28px;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
}

body.customer-page.theme-vip-retro::after {
    opacity: 0.2;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(0, 0, 0, 0.72) 100%),
        repeating-radial-gradient(circle at 24% 18%, rgba(255, 238, 191, 0.42) 0 1px, transparent 1px 6px);
}

.theme-vip-retro .customer-page,
body.theme-vip-retro {
    letter-spacing: 0;
}

.theme-vip-retro .customer-page .app-shell,
body.theme-vip-retro.customer-page .app-shell {
    width: min(1180px, calc(100% - 38px));
}

body.theme-vip-retro.customer-page .hero {
    min-height: clamp(420px, 64vh, 700px);
    border-bottom: 1px solid rgba(255, 225, 162, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 8, 6, 0.08) 0%, rgba(18, 8, 6, 0.44) 48%, rgba(18, 8, 6, 0.95) 100%),
        linear-gradient(90deg, rgba(18, 8, 6, 0.9), rgba(18, 8, 6, 0.25)),
        radial-gradient(circle at 76% 28%, rgba(199, 154, 70, 0.32), transparent 18vw),
        linear-gradient(135deg, rgba(20, 77, 54, 0.82) 0 34%, rgba(94, 24, 20, 0.82) 34% 66%, rgba(36, 20, 12, 0.9) 66% 100%);
    box-shadow: inset 0 -90px 140px rgba(0, 0, 0, 0.4);
}

body.theme-vip-retro.customer-page .hero::before {
    position: absolute;
    right: clamp(22px, 8vw, 118px);
    bottom: clamp(34px, 8vw, 104px);
    width: clamp(160px, 26vw, 330px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 225, 162, 0.26);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 52%, rgba(255, 225, 162, 0.18) 53% 54%, transparent 55% 100%),
        conic-gradient(from 45deg, rgba(255, 225, 162, 0.16), transparent 18%, rgba(255, 225, 162, 0.08) 34%, transparent 52%, rgba(255, 225, 162, 0.16));
    content: "";
    filter: blur(0.2px);
    opacity: 0.86;
}

body.theme-vip-retro.customer-page .hero::after {
    height: 58%;
    background:
        linear-gradient(180deg, transparent, rgba(18, 8, 6, 0.96)),
        repeating-linear-gradient(90deg, rgba(255, 225, 162, 0.12) 0 1px, transparent 1px 24px);
}

body.theme-vip-retro.customer-page .eyebrow {
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(255, 225, 162, 0.28);
    border-radius: 999px;
    background: rgba(12, 7, 5, 0.48);
    color: #ffe1a2;
    font-size: 10px;
    text-transform: uppercase;
}

body.theme-vip-retro.customer-page h1 {
    max-width: 820px;
    color: #fff5dc;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

body.theme-vip-retro.customer-page .hero-copy {
    max-width: 620px;
    color: rgba(255, 244, 216, 0.76);
}

body.theme-vip-retro.customer-page .toolbar,
body.theme-vip-retro.customer-page .panel,
body.theme-vip-retro.customer-page .mystery-menu {
    border-color: rgba(255, 225, 162, 0.2);
    background: rgba(27, 17, 11, 0.72);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

body.theme-vip-retro.customer-page .toolbar:hover,
body.theme-vip-retro.customer-page .panel:hover {
    border-color: rgba(255, 225, 162, 0.42);
    background: rgba(34, 21, 13, 0.82);
}

body.theme-vip-retro.customer-page h2,
body.theme-vip-retro.customer-page .slot strong {
    color: #fff5dc;
}

body.theme-vip-retro.customer-page button,
body.theme-vip-retro.customer-page .nav-link {
    border-color: rgba(255, 225, 162, 0.4);
    background: linear-gradient(180deg, rgba(199, 154, 70, 0.2), rgba(94, 24, 20, 0.22));
    color: #ffe1a2;
}

body.theme-vip-retro.customer-page button:hover,
body.theme-vip-retro.customer-page .nav-link:hover,
body.theme-vip-retro.customer-page .slot:hover {
    border-color: rgba(255, 225, 162, 0.72);
    background: rgba(199, 154, 70, 0.22);
}

body.theme-vip-retro.customer-page input,
body.theme-vip-retro.customer-page select,
body.theme-vip-retro.customer-page .slot,
body.theme-vip-retro.customer-page .mini-card,
body.theme-vip-retro.customer-page .empty-state {
    border-color: rgba(255, 225, 162, 0.18);
    background: rgba(255, 232, 181, 0.06);
}

body.theme-vip-retro.customer-page .slot.available {
    background: rgba(20, 77, 54, 0.28);
    color: #ffe1a2;
}

body.theme-vip-retro.customer-page .slot.booked {
    background: rgba(94, 24, 20, 0.22);
}

body.theme-vip-retro.customer-page .slot.selected {
    border-color: rgba(255, 225, 162, 0.86);
    background: rgba(199, 154, 70, 0.28);
    outline-color: rgba(255, 225, 162, 0.38);
}

@keyframes customerDrift {
    from {
        background-position: center 45%;
    }

    to {
        background-position: center 55%;
    }
}

@keyframes customerReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .customer-page .app-shell {
        width: min(100% - 20px, 1280px);
    }

    .customer-page .hero {
        min-height: 470px;
        padding: 26px;
    }

    .customer-page .toolbar {
        grid-template-columns: 1fr;
        margin-top: -30px;
        width: min(100% - 18px, 920px);
    }

    .customer-page .layout {
        grid-template-columns: 1fr;
    }

    .mystery-nav {
        top: 14px;
        right: 14px;
    }
}

/* Public promotion panel. */
body.promo-page {
    background:
        radial-gradient(circle at 15% 8%, rgba(37, 99, 235, 0.18), transparent 32vw),
        radial-gradient(circle at 82% 18%, rgba(213, 179, 106, 0.16), transparent 28vw),
        linear-gradient(180deg, #071018 0%, #0c1117 46%, #f4f6f8 46%, #f4f6f8 100%);
    color: #111827;
}

.promo-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 20px 0 56px;
}

.promo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    color: #ffffff;
}

.promo-brand,
.promo-nav a {
    color: inherit;
    text-decoration: none;
}

.promo-brand {
    font-size: 18px;
    font-weight: 800;
}

.promo-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.promo-nav-button {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.08);
}

.promo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: end;
    min-height: 570px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(7, 16, 24, 0.92), rgba(7, 16, 24, 0.28)),
        url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=2200&q=82");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    padding: clamp(26px, 6vw, 72px);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
}

.promo-hero-copy {
    max-width: 760px;
}

.promo-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    text-wrap: balance;
}

.promo-hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 650;
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d5b36a;
    border-radius: 8px;
    background: #d5b36a;
    color: #111827;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.promo-button.secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.promo-preview {
    display: grid;
    gap: 10px;
}

.promo-preview div {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    backdrop-filter: blur(18px);
}

.promo-preview span,
.feature-card span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-preview strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.promo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.promo-strip span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
}

.promo-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.promo-card,
.price-card,
.promo-cta {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.promo-card,
.price-card {
    padding: 22px;
}

.feature-card span {
    color: #2563eb;
}

.promo-card h2,
.price-card h3,
.promo-cta h2 {
    margin: 10px 0 10px;
    color: #111827;
}

.promo-card p,
.price-card p {
    margin-bottom: 0;
    color: #667085;
    line-height: 1.6;
    font-weight: 650;
}

.promo-section {
    margin-top: 42px;
}

.promo-section-heading {
    max-width: 620px;
    margin-bottom: 18px;
}

.promo-section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.price-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
}

.price-card.highlighted {
    border-color: rgba(213, 179, 106, 0.48);
    background: #111827;
    color: #ffffff;
}

.price-card.highlighted h3,
.price-card.highlighted strong {
    color: #ffffff;
}

.price-card.highlighted p {
    color: rgba(255, 255, 255, 0.68);
}

.promo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 28px;
}

.promo-cta .eyebrow {
    color: #2563eb;
}

.promo-cta h2 {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .promo-shell {
        width: min(100% - 20px, 1180px);
    }

    .promo-nav,
    .promo-nav-actions,
    .promo-actions,
    .promo-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .promo-hero,
    .promo-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .promo-hero {
        min-height: 640px;
        padding: 26px;
    }
}

body.promo-page {
    background:
        linear-gradient(180deg, #0a0d10 0, #10151a 700px, #f4f6f8 700px, #f4f6f8 100%);
}

.barber-hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(7, 10, 13, 0.92) 0%, rgba(7, 10, 13, 0.74) 42%, rgba(7, 10, 13, 0.22) 100%),
        url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=2200&q=84");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
}

.barber-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 19%),
        radial-gradient(circle at 72% 28%, rgba(213, 179, 106, 0.22), transparent 24vw);
    content: "";
    pointer-events: none;
}

.barber-hero .promo-nav {
    position: relative;
    z-index: 2;
    min-height: 72px;
    padding: 0 26px;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.barber-hero .promo-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 21px;
}

.barber-hero .promo-brand span {
    color: #d5b36a;
}

.barber-hero .promo-nav-actions {
    color: rgba(255, 255, 255, 0.8);
}

.barber-hero .promo-nav-button {
    border-color: rgba(213, 179, 106, 0.45);
    background: rgba(213, 179, 106, 0.16);
    color: #f7e7bd;
}

.barber-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: end;
    min-height: 470px;
    padding: clamp(34px, 6vw, 78px);
    padding-bottom: 210px;
}

.barber-hero-copy {
    max-width: 820px;
}

.barber-hero-copy .eyebrow,
.business-intro .eyebrow {
    color: #d5b36a;
}

.barber-hero-copy h1 {
    max-width: 680px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(42px, 5.6vw, 68px);
    line-height: 1;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
    text-wrap: balance;
}

.barber-hero-copy p {
    max-width: 610px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 700;
}

.barber-hero-panel {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 10, 13, 0.56);
    padding: 18px;
    backdrop-filter: blur(20px);
}

.barber-hero-panel span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.barber-hero-panel strong {
    display: block;
    margin: 8px 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.barber-hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.55;
    font-weight: 700;
}

.barber-search {
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: 48px;
    left: clamp(18px, 5vw, 70px);
    z-index: 3;
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.search-tabs button {
    min-width: 96px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: none;
}

.search-tabs button.is-active {
    border-color: #d5b36a;
    background: #d5b36a;
    color: #111827;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 0.9fr) auto;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 8px 8px 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.search-row label {
    color: #475467;
}

.search-row input,
.search-row select {
    min-height: 54px;
    border-color: transparent;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
}

.promo-search-field {
    position: relative;
}

.promo-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.promo-search-suggestions.is-visible {
    display: grid;
}

.promo-search-suggestions button {
    display: grid;
    min-width: 0;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    padding: 12px 14px;
    text-align: left;
    box-shadow: none;
}

.promo-search-suggestions button:hover {
    background: #f8fafc;
    color: #111827;
    transform: none;
    box-shadow: none;
}

.promo-search-suggestions span {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.promo-search-status {
    min-height: 20px;
    margin: 8px 2px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 800;
}

.search-row .promo-button {
    align-self: end;
    min-height: 54px;
    min-width: 150px;
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-cats span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(7, 10, 13, 0.64);
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(16px);
}

.business-intro {
    max-width: 980px;
    margin: 54px auto 44px;
    text-align: center;
}

.business-intro h2 {
    margin: 6px auto 12px;
    max-width: 760px;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
}

.business-intro p {
    max-width: 850px;
    margin: 0 auto 22px;
    color: #475467;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 650;
}

@media (max-width: 900px) {
    .barber-hero {
        min-height: 900px;
    }

    .barber-hero .promo-nav,
    .barber-hero .promo-nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .barber-hero .promo-nav {
        padding: 16px;
    }

    .barber-hero-grid,
    .search-row {
        grid-template-columns: 1fr;
    }

    .barber-hero-grid {
        min-height: 430px;
        padding: 28px;
        padding-bottom: 330px;
    }

    .barber-hero-panel {
        display: none;
    }

    .barber-search {
        right: 16px;
        bottom: 24px;
        left: 16px;
    }

    .search-tabs button {
        flex: 1;
        min-width: 0;
    }

    .search-row .promo-button {
        width: 100%;
    }
}

/* Animated promotion atmosphere and responsive layout. */
body.promo-page {
    overflow-x: hidden;
    background-color: #0b1117;
    background-image:
        repeating-linear-gradient(112deg, rgba(213, 179, 106, 0.045) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #101820 0, #17212a 720px, #f4f6f8 720px, #f4f6f8 100%);
    background-size: 144px 144px, 100% 100%;
    animation: promo-surface-drift 32s linear infinite;
}

.barber-hero {
    isolation: isolate;
    background: #111820;
}

.barber-hero::after {
    position: absolute;
    inset: -5%;
    z-index: -2;
    background-image: url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=2200&q=86");
    background-position: center;
    background-size: cover;
    content: "";
    transform: scale(1.06);
    animation: promo-camera-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

.barber-hero::before {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 10, 13, 0.88) 0%, rgba(7, 10, 13, 0.66) 46%, rgba(7, 10, 13, 0.26) 100%),
        linear-gradient(180deg, rgba(213, 179, 106, 0.12), transparent 30%, rgba(3, 7, 10, 0.36));
}

.barber-hero-grid,
.barber-search,
.barber-hero .promo-nav {
    z-index: 2;
}

@keyframes promo-camera-drift {
    0% {
        transform: scale(1.06) translate3d(-1.2%, -0.5%, 0);
    }

    100% {
        transform: scale(1.13) translate3d(1.4%, 0.8%, 0);
    }
}

@keyframes promo-surface-drift {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 144px 72px, 0 0;
    }
}

@media (max-width: 900px) {
    .promo-shell {
        width: min(100% - 16px, 1180px);
        padding-top: 8px;
    }

    .barber-hero {
        min-height: 0;
    }

    .barber-hero::after {
        inset: -3%;
        background-position: 62% center;
    }

    .barber-hero .promo-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 14px 16px;
    }

    .barber-hero .promo-nav-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .barber-hero .promo-nav-actions > a:not(.promo-nav-button) {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 8px 4px;
        text-align: center;
    }

    .barber-hero .promo-nav-button {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
    }

    .barber-hero-grid {
        display: block;
        min-height: 0;
        padding: 52px 20px 28px;
    }

    .barber-hero-copy h1 {
        max-width: 620px;
        font-size: 40px;
        line-height: 1.03;
    }

    .barber-search {
        position: relative;
        inset: auto;
        margin: 0 16px 18px;
    }

    .search-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .quick-cats::-webkit-scrollbar {
        display: none;
    }

    .quick-cats span {
        flex: 0 0 auto;
    }

    .business-intro {
        margin: 42px auto 36px;
        padding: 0 12px;
    }

    .business-intro h2,
    .promo-section-heading h2 {
        font-size: 32px;
        line-height: 1.12;
    }
}

@media (max-width: 520px) {
    .promo-shell {
        width: calc(100% - 12px);
        padding-bottom: 28px;
    }

    .barber-hero .promo-brand {
        font-size: 18px;
    }

    .barber-hero .promo-nav-actions {
        font-size: 11px;
    }

    .barber-hero-grid {
        padding: 44px 16px 24px;
    }

    .barber-hero-copy .eyebrow {
        max-width: 250px;
        font-size: 11px;
        line-height: 1.4;
    }

    .barber-hero-copy h1 {
        font-size: 34px;
        line-height: 1.04;
    }

    .barber-hero-copy p {
        font-size: 15px;
        line-height: 1.55;
    }

    .barber-search {
        margin-right: 10px;
        margin-left: 10px;
    }

    .search-tabs button {
        min-height: 44px;
        padding: 8px 5px;
        font-size: 11px;
    }

    .search-row {
        gap: 8px;
        padding: 10px;
    }

    .search-row input,
    .search-row select,
    .search-row .promo-button {
        min-height: 50px;
    }

    .business-intro h2,
    .promo-section-heading h2 {
        font-size: 28px;
    }

    .business-intro p {
        font-size: 15px;
    }

    .promo-card,
    .price-card,
    .promo-cta {
        padding: 18px;
    }

    .promo-cta .promo-button,
    .business-intro .promo-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.promo-page,
    .barber-hero::after {
        animation: none;
    }
}
