:root {
    --bg: #f6f0e8;
    --bg-soft: #efe5d7;
    --surface: #fffaf4;
    --surface-strong: #fff;
    --text: #2a1d16;
    --muted: #70584b;
    --line: rgba(42, 29, 22, 0.12);
    --accent: #a66a4d;
    --accent-dark: #7f4d35;
    --shadow: 0 20px 60px rgba(59, 34, 21, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 35%),
        linear-gradient(180deg, #f8f2ea 0%, #f1e7dc 100%);
    font-family: "Manrope", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(248, 242, 234, 0.8);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.brand,
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
}

.brand {
    font-size: 2rem;
    letter-spacing: 0.16em;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    align-items: center;
}

.nav-inline-form {
    margin: 0;
    display: inline-flex;
}

.nav-link-button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-user-chip {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.nav-user-chip strong {
    color: var(--text);
}

.hero-section {
    padding: 5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.96;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.lead {
    max-width: 50rem;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 28px rgba(74, 43, 29, 0.16);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 30px rgba(74, 43, 29, 0.2);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(166, 106, 77, 0.94), rgba(127, 77, 53, 0.94));
}

.button-secondary {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 236, 226, 0.5));
}

.button-danger {
    color: #fff;
    background: linear-gradient(135deg, #b84f4f, #912f2f);
}

.hero-panel,
.intro-card,
.salon-card,
.service-card,
.booking-card,
.booking-sidebar {
    background: rgba(255, 250, 244, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.hero-stat {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 229, 215, 0.88));
}

.hero-stat span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-family: "Cormorant Garamond", serif;
}

.section {
    padding: 2rem 0 3rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(239, 229, 215, 0.55), rgba(255, 250, 244, 0.55));
}

.intro-card {
    padding: 2rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.salon-grid,
.service-grid,
.booking-grid {
    display: grid;
    gap: 1.5rem;
}

.salon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.salon-card {
    overflow: hidden;
}

.salon-card img {
    height: 260px;
    width: 100%;
    object-fit: cover;
}

.salon-card-body {
    padding: 1.5rem;
}

.salon-district {
    margin: 0 0 0.5rem;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.salon-card h3,
.service-card h3,
.booking-card h2,
.booking-card h3,
.booking-sidebar h2 {
    margin-top: 0;
    font-size: 2rem;
}

.salon-meta,
.check-list,
.step-list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
}

.service-card {
    padding: 1.5rem;
}

.service-category,
.mini-heading span,
.summary-grid small {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.service-card p {
    color: var(--muted);
    line-height: 1.8;
}

.booking-shell {
    padding-top: 3rem;
}

.booking-grid {
    grid-template-columns: 320px 1fr;
    align-items: start;
}

.booking-sidebar,
.booking-card {
    padding: 1.5rem;
}

.booking-content {
    display: grid;
    gap: 1.5rem;
}

.mini-heading h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.choice-grid,
.staff-grid,
.summary-grid {
    display: grid;
    gap: 1rem;
}

.choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.pill-button,
.slot-button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 236, 224, 0.46));
    color: var(--text);
    text-align: left;
    padding: 1rem 1.1rem;
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 8px 20px rgba(74, 43, 29, 0.12);
}

.choice-card strong,
.choice-card span {
    display: block;
}

.choice-card span {
    margin-top: 0.45rem;
    color: var(--muted);
}

.choice-card.active,
.slot-button.recommended,
.slot-button.selected {
    border-color: rgba(127, 77, 53, 0.55);
    background: linear-gradient(180deg, rgba(255, 248, 242, 0.96), rgba(236, 214, 194, 0.88));
}

.staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
}

.staff-card img {
    width: 110px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
}

.staff-card p,
.staff-card span {
    margin: 0.2rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.slot-layout {
    display: grid;
    gap: 1rem;
}

.day-list,
.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill-button,
.slot-button {
    width: auto;
}

.slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.summary-grid strong {
    display: block;
    font-size: 1.05rem;
}

.booking-form,
.form-grid,
.booking-table {
    display: grid;
    gap: 1rem;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.field-input,
.field-select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--text);
}

.field-textarea {
    min-height: 120px;
    resize: vertical;
}

.field-error {
    display: block;
    margin-top: 0.45rem;
    color: #a33030;
    font-size: 0.9rem;
}

.input-hint {
    display: block;
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.validation-summary,
.success-banner {
    padding: 1rem 1.2rem;
    border-radius: 18px;
}

.validation-summary {
    margin-bottom: 1rem;
    border: 1px solid rgba(163, 48, 48, 0.25);
    background: rgba(255, 236, 236, 0.92);
    color: #7a1c1c;
}

.success-banner {
    margin-bottom: 1rem;
    border: 1px solid rgba(70, 120, 70, 0.2);
    background: rgba(239, 252, 239, 0.92);
    color: #24542d;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.booking-list-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    padding: 1rem;
}

.booking-list-item small,
.booking-list-item span {
    display: block;
    color: var(--muted);
}

.availability-note,
.empty-slots {
    color: var(--muted);
    line-height: 1.7;
}

.auth-shell {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.auth-card {
    max-width: 640px;
    margin: 0 auto;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
}

.admin-shell {
    padding-top: 3rem;
}

.with-actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.admin-quicklinks,
.admin-stats,
.admin-table {
    display: grid;
    gap: 1rem;
}

.admin-quicklinks {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

.admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card,
.admin-row-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.admin-stat-card small,
.admin-row-card small {
    display: block;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-stat-card strong,
.admin-row-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.3rem;
}

.admin-row-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.admin-row-card span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.6;
}

.admin-row-actions,
.admin-action-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.align-end {
    align-items: flex-end;
}

.admin-row-actions {
    justify-content: flex-end;
}

.admin-form-card {
    max-width: 920px;
}

.salon-image-preview img,
.salon-thumb {
    width: 100%;
    max-width: 280px;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.owner-multi-select {
    min-height: 220px;
    border-radius: 18px;
}

@media (max-width: 920px) {
    .main-nav {
        display: none;
    }

    .nav-shell {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .hero-grid,
    .salon-grid,
    .service-grid,
    .booking-grid,
    .choice-grid,
    .choice-grid.services,
    .staff-grid,
    .summary-grid,
    .form-grid,
    .booking-list-item,
    .admin-quicklinks,
    .admin-stats,
    .admin-row-card {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .with-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-copy h1,
    .section-heading h1,
    .section-heading h2 {
        line-height: 1.02;
    }
}
