* {
    box-sizing: border-box;
}

:root {
    --bs-primary: var(--secondary);
    --bs-primary-rgb: 185, 28, 28;
    --bs-body-bg: var(--background);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--body-font);
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--body-font);
}

body.modal-open {
    overflow: hidden;
}

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

h1,
h2,
h3,
.public-brand strong {
    font-family: var(--heading-font);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 .5rem 2rem rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--primary);
    font-weight: 800;
}

.public-brand img,
.public-brand span {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .9rem;
}

.public-brand img {
    object-fit: cover;
}

.public-brand span {
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: #fff;
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.site-header nav a,
.public-nav-button {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    padding: .45rem .85rem;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
}

.public-nav-button {
    cursor: pointer;
}

.site-header nav a:hover,
.public-nav-button:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.app-toast-container {
    z-index: 1080;
}

.app-toast {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
}

.app-toast .toast-header {
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
    color: var(--primary);
    font-weight: 800;
}

.app-toast .toast-body {
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.app-toast-success {
    border-left: .35rem solid #198754;
}

.app-toast-warning {
    border-left: .35rem solid var(--accent);
}

.app-toast-danger {
    border-left: .35rem solid var(--secondary);
}

.hero {
    position: relative;
    display: grid;
    min-height: min(76vh, 680px);
    align-items: end;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .68));
    content: "";
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
}

.hero-content p,
.section-title p,
.modal-eyebrow {
    margin: 0 0 .5rem;
    color: color-mix(in srgb, var(--accent) 75%, white);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: .95;
}

.hero-content span {
    display: block;
    max-width: 34rem;
    margin-top: 1rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.info-band,
.section-wrap,
.site-footer {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.info-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 3;
}

.info-band article,
.hours-grid article,
.public-haircut-card,
.booking-dialog,
.ticket-dialog,
.site-footer {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .08);
}

.info-band article {
    padding: 1rem;
}

.info-band span,
.ticket-lines span,
.ticket-total span {
    color: color-mix(in srgb, var(--text) 58%, white);
    font-size: .82rem;
    font-weight: 700;
}

.info-band strong {
    display: block;
    margin-top: .25rem;
    word-break: break-word;
}

.section-wrap {
    padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.hours-grid,
.public-haircut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hours-grid article {
    padding: 1rem;
}

.hours-grid span {
    display: block;
    margin-top: .25rem;
    color: color-mix(in srgb, var(--text) 62%, white);
}

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

.public-haircut-card {
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.public-haircut-card:hover {
    transform: translateY(-.25rem);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .14);
}

.public-haircut-image {
    display: grid;
    height: 14rem;
    place-items: center;
    background: color-mix(in srgb, var(--primary) 10%, white);
}

.public-haircut-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-haircut-image span {
    color: var(--primary);
    font: 800 3rem var(--heading-font);
}

.public-haircut-body {
    display: grid;
    gap: .6rem;
    padding: 1rem;
}

.public-haircut-body h3,
.public-haircut-body p {
    margin: 0;
}

.public-haircut-body p {
    color: color-mix(in srgb, var(--text) 64%, white);
}

.public-haircut-body div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.public-haircut-body span {
    border-radius: 999px;
    padding: .25rem .6rem;
    background: color-mix(in srgb, var(--accent) 14%, white);
    font-weight: 800;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.site-footer span {
    color: color-mix(in srgb, var(--text) 58%, white);
}

.site-footer strong {
    display: block;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-legal-links button,
.public-primary-button,
.public-secondary-button,
.profile-order-actions button,
.danger-account-form button {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    padding: .55rem .95rem;
    cursor: pointer;
    font-weight: 800;
}

.footer-legal-links button,
.public-secondary-button,
.profile-order-actions button {
    border: 1px solid rgba(17, 24, 39, .14);
    background: #fff;
    color: var(--primary);
}

.public-primary-button {
    border: 1px solid var(--secondary);
    background: var(--secondary);
    color: #fff;
}

.danger-account-form button {
    border: 1px solid var(--secondary);
    background: color-mix(in srgb, var(--secondary) 10%, white);
    color: var(--secondary);
}

.booking-modal[hidden] {
    display: none;
}

.booking-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.booking-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(4px);
}

.booking-dialog,
.ticket-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    padding: clamp(1.25rem, 4vw, 1.75rem);
}

.legal-dialog {
    width: min(820px, 100%);
}

.modal-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, white);
    color: var(--primary);
    font-size: 1.25rem;
}

.modal-muted {
    color: color-mix(in srgb, var(--text) 64%, white);
}

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

.booking-form label,
.public-form-grid label {
    display: grid;
    gap: .45rem;
    font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.danger-account-form input {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: .75rem;
    padding: .75rem .9rem;
    background: #fff;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: color-mix(in srgb, var(--secondary) 65%, white);
    outline: 0;
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--secondary) 18%, transparent);
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.public-form-error {
    display: block;
    border-radius: .75rem;
    padding: .65rem .8rem;
    background: color-mix(in srgb, var(--secondary) 10%, white);
    color: var(--secondary);
    font-weight: 800;
}

.field-hint {
    color: color-mix(in srgb, var(--text) 58%, white);
    font-size: .86rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0;
    padding: .35rem;
    border-radius: .9rem;
    background: color-mix(in srgb, var(--primary) 8%, white);
}

.auth-tabs button {
    border: 0;
    border-radius: .7rem;
    padding: .65rem;
    background: transparent;
    color: var(--primary);
    font-weight: 900;
}

.auth-tabs button.active {
    background: #fff;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08);
}

.auth-pane,
.profile-pane {
    display: none;
}

.auth-pane.active,
.profile-pane.active {
    display: grid;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: color-mix(in srgb, var(--primary) 5%, white);
}

.profile-photo {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions,
.profile-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.profile-orders {
    display: grid;
    gap: .75rem;
}

.profile-orders article,
.danger-account-form,
.legal-content article {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.profile-orders article {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    align-items: center;
    gap: .75rem;
}

.danger-account-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    background: color-mix(in srgb, var(--secondary) 7%, white);
}

.public-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}

.slot-option {
    display: block;
    cursor: pointer;
}

.slot-option input {
    position: absolute;
    opacity: 0;
}

.slot-option span {
    display: grid;
    min-height: 2.8rem;
    place-items: center;
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: .75rem;
    background: #fff;
    font-weight: 800;
}

.slot-option input:checked + span {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 10%, white);
    color: var(--secondary);
}

.legal-content {
    display: grid;
    gap: .8rem;
}

.ticket-dialog {
    width: min(440px, 100%);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ticket-paper {
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, .22);
}

.ticket-header {
    text-align: center;
}

.ticket-header img,
.ticket-header span {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    object-fit: cover;
}

.ticket-header span {
    display: inline-grid;
    place-items: center;
    background: var(--secondary);
    color: #fff;
}

.ticket-divider {
    height: 1px;
    margin: 1rem 0;
    background: repeating-linear-gradient(90deg, rgba(17, 24, 39, .2) 0 8px, transparent 8px 14px);
}

.ticket-lines {
    display: grid;
    gap: .65rem;
}

.ticket-lines div,
.ticket-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-total strong {
    font-size: 1.4rem;
}

.ticket-note {
    margin: 1rem 0 0;
    text-align: center;
    color: color-mix(in srgb, var(--text) 62%, white);
}

.empty-public,
.empty-profile-orders {
    grid-column: 1 / -1;
    border: 1px dashed rgba(17, 24, 39, .18);
    border-radius: 1rem;
    padding: 1.5rem;
    background: color-mix(in srgb, var(--surface) 80%, white);
}

.verify-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34rem),
        var(--background);
}

.verify-card {
    width: min(480px, 100%);
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 1rem;
    padding: clamp(1.25rem, 5vw, 2rem);
    background: var(--surface);
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, .12);
}

.verify-card .public-brand {
    margin-bottom: 1.5rem;
}

.verify-resend-form {
    margin-top: .75rem;
}

.public-link-button {
    display: inline-flex;
    width: 100%;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .info-band,
    .hours-grid,
    .public-haircut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-orders article {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        width: 100%;
        justify-content: flex-start;
    }

    .info-band,
    .hours-grid,
    .public-haircut-grid,
    .public-form-grid,
    .public-slot-grid,
    .profile-orders article {
        grid-template-columns: 1fr;
    }

    .section-title,
    .site-footer,
    .danger-account-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal-links,
    .footer-legal-links button,
    .public-primary-button,
    .public-secondary-button,
    .profile-actions > *,
    .profile-order-actions > *,
    .danger-account-form button {
        width: 100%;
    }
}
