html, body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #111111;
    background:
        radial-gradient(circle at top, rgba(231, 238, 247, 0.95), transparent 44%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f4 100%);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

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

.check-page,
.booking-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
}

.check-card,
.booking-card {
    width: min(100%, 920px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(14px);
    padding: clamp(1.5rem, 3vw, 3rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #ffffff;
    color: #4c4c4c;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.check-card h1,
.booking-card h1 {
    margin: 1rem 0 0;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.lede {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: #606060;
    font-size: 1.05rem;
    line-height: 1.6;
}

.date-panel,
.booking-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.date-chip,
.date-button,
.action-button,
.booking-date-button {
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    color: #111111;
    border-radius: 18px;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.date-chip {
    min-width: 240px;
    padding: 0.9rem 1rem;
}

.date-chip:focus-within,
.date-button:focus-visible,
.action-button:focus-visible,
.booking-date-button:focus-visible {
    outline: none;
    border-color: rgba(17, 17, 17, 0.3);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.date-button,
.action-button,
.booking-date-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.8rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.date-button:hover,
.action-button:hover,
.booking-date-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.date-picker {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    outline: none;
}

.answer-panel {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 28px;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.answer-panel.booked {
    background: linear-gradient(180deg, rgba(255, 242, 240, 0.95), rgba(255, 255, 255, 0.92));
}

.answer-panel.free {
    background: linear-gradient(180deg, rgba(241, 248, 243, 0.95), rgba(255, 255, 255, 0.92));
}

.answer-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666666;
}

.answer-value {
    font-size: clamp(4rem, 16vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.09em;
    font-weight: 800;
}

.answer-value.loading {
    color: #8a8a8a;
}

.status-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #5a5a5a;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-pill.taken {
    background: rgba(220, 76, 60, 0.12);
    color: #a03428;
}

.status-pill.free {
    background: rgba(44, 144, 92, 0.12);
    color: #21714c;
}

.booking-note {
    margin-top: 0.85rem;
    color: #656565;
}

.booking-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.8rem;
}

.booking-list h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #606060;
}

.booking-list-items {
    display: grid;
    gap: 0.6rem;
}

.booking-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #ffffff;
}

.booking-row strong {
    letter-spacing: -0.03em;
}

.muted {
    color: #696969;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff5d7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 640px) {
    .check-card,
    .booking-card {
        border-radius: 24px;
    }

    .date-chip {
        width: 100%;
        min-width: 0;
    }

    .date-button,
    .action-button,
    .booking-date-button {
        flex: 1 1 100%;
    }
}
