:root {
    --ink: #1f0f18;
    --ink-strong: #0f172a;
    --text-on-dark: #ffffff;
    --muted: #7f5265;
    --muted-dark: #5f3145;
    --line: #f8c7d6;
    --line-strong: #f472b6;
    --brand: #e11d48;
    --brand-dark: #be123c;
    --brand-deep: #9f1239;
    --brand-soft: #fff1f5;
    --brand-pale: #ffe4ec;
    --pink: #ec4899;
    --pink-soft: #fbcfe8;
    --red: #ef4444;
    --amber: #f59e0b;
    --blue: #6366f1;
    --green: #16a34a;
    --bg: #fff5f8;
    --card: rgba(255, 255, 255, .88);
    --shadow-red: rgba(190, 18, 60, .18);
    --shadow-pink: rgba(236, 72, 153, .18);
    --shadow-deep: rgba(127, 29, 29, .18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 63, 94, .22) 0, transparent 31rem),
        radial-gradient(circle at 98% 8%, rgba(236, 72, 153, .22) 0, transparent 30rem),
        radial-gradient(circle at 45% 100%, rgba(251, 113, 133, .14) 0, transparent 34rem),
        linear-gradient(180deg, #fff7fb 0%, #fff1f5 48%, #ffe4ec 100%);
    color: var(--ink);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(190, 18, 60, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 18, 60, .055) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .06));
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .42), transparent 28%, rgba(255, 255, 255, .2) 54%, transparent 76%);
    opacity: .55;
}

a {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration-color: rgba(225, 29, 72, .35);
}

a:hover {
    color: var(--pink);
    text-decoration-color: var(--pink);
}

.content {
    padding: 0 !important;
}

.top-row,
.sidebar {
    display: none !important;
}

.page {
    display: block !important;
}

.booking-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 18%, rgba(251, 207, 232, .32) 0, transparent 18rem),
        radial-gradient(circle at 12% 80%, rgba(254, 205, 211, .22) 0, transparent 16rem),
        linear-gradient(135deg, #881337 0%, #be123c 42%, #db2777 72%, #f472b6 100%);
    color: white;
    box-shadow: 0 28px 78px rgba(190, 18, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .28);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 60%);
    pointer-events: none;
}

.hero-panel::after {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border: 36px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    right: -82px;
    top: -82px;
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: .18em;
    font-size: .78rem;
    opacity: 1;
    font-weight: 950;
    color: #ffe4ec;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
    position: relative;
    z-index: 1;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.9rem);
    line-height: .92;
    letter-spacing: -0.06em;
    color: #ffffff;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .42), 0 1px 0 rgba(255, 255, 255, .15);
    position: relative;
    z-index: 1;
}


h1 span {
    color: #fff0f6;
    display: inline-block;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .4);
}

h1,
h1:focus,
h1:focus-visible,
h1:active,
h1 span,
h1 span:focus,
h1 span:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-copy {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.hero-card {
    min-width: 150px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(14px);
    text-align: center;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 18px 44px rgba(136, 19, 55, .22);
}

.hero-card strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}

.hero-card small {
    color: rgba(255, 255, 255, .88);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 245, 248, .86));
    border: 1px solid rgba(248, 199, 214, .9);
    border-radius: 26px;
    box-shadow: 0 20px 58px rgba(190, 18, 60, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
}

.control-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
}

h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -.03em;
    color: #3f1025;
}

p {
    color: var(--muted);
}

.control-card p,
.section-title p,
.cart-head p {
    margin: 6px 0 0;
}

.controls-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted-dark);
    font-size: .9rem;
    font-weight: 900;
}

select,
input {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    min-width: 150px;
    background: linear-gradient(180deg, #ffffff, #fff7fb);
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px rgba(190, 18, 60, .08);
}

select:hover,
input:hover {
    border-color: var(--line-strong);
}

select:focus,
input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .16), 0 12px 24px rgba(190, 18, 60, .12);
}

select::placeholder,
input::placeholder {
    color: #b7798f;
}

button {
    font: inherit;
}

.refresh-btn,
.checkout-btn {
    border: 0;
    border-radius: 15px;
    min-height: 46px;
    padding: 0 18px;
    background: linear-gradient(135deg, #e11d48 0%, #db2777 52%, #ec4899 100%);
    color: white;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(225, 29, 72, .25), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.refresh-btn:hover,
.checkout-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 17px 38px rgba(219, 39, 119, .33), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.week-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 8px;
}

.week-strip button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #fff1f5);
    color: var(--brand-dark);
    font-size: 1.6rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(190, 18, 60, .1);
    transition: all .18s ease;
}

.week-strip button:hover {
    border-color: var(--brand);
    background: #ffe4ec;
    transform: translateY(-1px);
}

.week-strip div {
    text-align: center;
    display: grid;
    gap: 4px;
}

.week-strip span {
    color: var(--muted);
    font-size: .9rem;
}

.days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.day-pill {
    min-height: 82px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fff7fb);
    border-radius: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 0;
    color: var(--muted);
    box-shadow: 0 10px 24px rgba(190, 18, 60, .08);
    transition: all .18s ease;
}

.day-pill strong {
    color: var(--ink);
    font-size: 1.45rem;
}

.day-pill:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(190, 18, 60, .13);
}

.day-pill.active {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 45%, #ec4899 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(225, 29, 72, .3);
}

.day-pill.active strong {
    color: white;
}

.slots-card {
    padding: 22px;
}

.section-title,
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.loading-dot {
    color: var(--brand-dark);
    font-weight: 950;
}

.notice {
    margin: 16px 0;
    padding: 14px;
    border-radius: 16px;
    font-weight: 900;
}

.notice.warning {
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.slot-tile {
    min-height: 136px;
    text-align: left;
    border: 1px solid #fbcfe8;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f5 100%);
    border-radius: 22px;
    padding: 16px;
    display: grid;
    gap: 4px;
    cursor: pointer;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    box-shadow: 0 10px 26px rgba(190, 18, 60, .08);
}

.slot-tile:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 18px 38px rgba(225, 29, 72, .18);
}

.slot-time {
    font-size: .98rem;
    font-weight: 950;
    color: #3f1025;
}

.slot-court {
    color: #6b213a;
    font-weight: 900;
}

.slot-meta {
    color: var(--muted);
    font-size: .86rem;
}

.slot-price {
    font-weight: 950;
    color: var(--brand-dark);
}

.slot-status {
    margin-top: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ffe4ec;
    color: #be123c;
    font-size: .78rem;
    font-weight: 950;
    text-transform: capitalize;
    border: 1px solid rgba(225, 29, 72, .16);
}

.slot-tile.booked,
.slot-tile.locked,
.slot-tile.not-available,
.slot-tile.disabled {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff7f7, #fee2e2);
    opacity: .82;
    cursor: not-allowed;
}

.slot-tile.booked .slot-status,
.slot-tile.locked .slot-status,
.slot-tile.not-available .slot-status,
.slot-tile.disabled .slot-status {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.slot-tile.selected {
    border-color: #e11d48;
    background: linear-gradient(135deg, #881337 0%, #e11d48 52%, #ec4899 100%);
    color: white;
    opacity: 1;
    box-shadow: 0 18px 42px rgba(225, 29, 72, .35);
}

.slot-tile.selected .slot-time,
.slot-tile.selected .slot-court,
.slot-tile.selected .slot-meta,
.slot-tile.selected .slot-price {
    color: rgba(255, 255, 255, .94);
}

.slot-tile.selected .slot-status {
    background: rgba(255, 255, 255, .18);
    color: white;
    border-color: rgba(255, 255, 255, .28);
}

.cart-card {
    position: sticky;
    top: 18px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 241, 245, .9));
}

.cart-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe4ec, #fbcfe8);
    color: #be123c;
    font-weight: 950;
    border: 1px solid rgba(225, 29, 72, .16);
}

.empty-cart {
    margin-top: 20px;
    padding: 28px;
    border: 1px dashed #f9a8d4;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 245, 248, .78);
}

.cart-items {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(190, 18, 60, .08);
}

.cart-item div {
    display: grid;
    gap: 4px;
}

.cart-item span,
.cart-item small {
    color: var(--muted);
}

.cart-item button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.3rem;
    font-weight: 950;
    cursor: pointer;
    transition: all .18s ease;
}

.cart-item button:hover {
    background: #ef4444;
    color: #ffffff;
}

.checkout-btn,
.clear-btn {
    width: 100%;
    margin-top: 10px;
}

.clear-btn {
    min-height: 44px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #fb7185;
    color: #be123c;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(190, 18, 60, .08);
    transition: all .18s ease;
}

.clear-btn:hover,
.clear-btn:focus {
    background: linear-gradient(135deg, #be123c, #e11d48, #ec4899);
    border-color: #e11d48;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(225, 29, 72, .3);
    transform: translateY(-1px);
}

.clear-btn:active {
    transform: translateY(0);
}

.cart-price {
    color: #3f1025;
    font-weight: 950;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(225, 29, 72, .16);
    font-size: 1rem;
    color: #3f1025;
    font-weight: 950;
}

.qty-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .35rem;
}

.qty-field input {
    width: 70px;
    padding: .3rem .45rem;
    border-radius: .5rem;
    border: 1px solid var(--line);
    background: #ffffff;
}

.court-select-box {
    display: grid;
    gap: 10px;
}

.court-select-title {
    color: var(--muted-dark);
    font-size: .9rem;
    font-weight: 950;
}

.court-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.court-pill {
    min-height: 46px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fff7fb);
    border-radius: 16px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 950;
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(190, 18, 60, .08);
    transition: all .18s ease;
}

.court-pill:hover {
    border-color: var(--brand);
    background: #fff1f5;
    transform: translateY(-1px);
}

.court-pill.active {
    background: linear-gradient(135deg, #be123c, #e11d48 52%, #ec4899);
    color: white;
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(225, 29, 72, .28);
}

.vertical-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
}

.court-select-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
}

.court-row {
    width: 100%;
    display: flex;
    justify-content: center !important;
    flex-wrap: wrap;
}

.date-refresh-row {
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 10px;
}

.date-refresh-row input {
    width: 170px !important;
    min-width: 170px;
    flex: 0 0 170px;
}

.date-refresh-row .refresh-btn {
    width: auto !important;
    min-width: 120px;
    flex: 0 0 auto;
}

@media (max-width: 960px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .cart-card {
        position: static;
    }

    .control-card {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .booking-shell {
        padding: 12px;
    }

    .hero-panel {
        padding: 22px;
        border-radius: 22px;
        width: 100%;
    }

    .days-row {
        /*display: flex;*/
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .day-pill {
        /*min-width: 76px;*/
        border-radius: 10px;
    }

    .slot-list {
        grid-template-columns: 1fr;
    }

    .controls-row,
    .controls-row label,
    select,
    input,
    .refresh-btn {
        width: 100%;
    }

    .court-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-refresh-row {
        justify-content: center !important;
        flex-wrap: nowrap;
    }

    .date-refresh-row input {
        width: 160px !important;
        min-width: 160px;
    }

    .date-refresh-row .refresh-btn {
        width: auto !important;
    }
}

@media (max-width: 500px) {
    .hero-panel {
        padding: 22px;
        border-radius: 22px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .slot-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .slot-tile {
        min-height: 105px;
        padding: 10px;
        border-radius: 16px;
    }

    .slot-time {
        font-size: .95rem;
    }

    .slot-court {
        font-size: .78rem;
    }

    .slot-meta {
        font-size: .70rem;
    }

    .slot-price {
        font-size: .75rem;
    }

    .slot-status {
        margin-top: 4px;
        padding: 4px 7px;
        font-size: .65rem;
    }
}

@media (max-width: 380px) {
    .hero-panel {
        padding: 22px;
        border-radius: 22px;
        width: 100%;
    }

    .slot-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.player-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.counter-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-input {
    width: 70px;
    height: 42px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}


.app-loading {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 63, 94, .28) 0, transparent 31rem),
        radial-gradient(circle at 100% 12%, rgba(236, 72, 153, .22) 0, transparent 28rem),
        linear-gradient(135deg, #450a0a 0%, #881337 38%, #be123c 70%, #ec4899 100%);
    color: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.app-loading::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 228, 230, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 228, 230, .08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .14));
}

.app-loading::after {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border: 36px solid rgba(255, 228, 230, .16);
    border-radius: 50%;
    right: -82px;
    top: -82px;
    pointer-events: none;
}

.loading-ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe4e6 0%, #fb7185 45%, #ec4899 100%);
    animation: bounce 0.7s infinite alternate;
    margin-bottom: 22px;
    box-shadow:
        0 0 24px rgba(251, 113, 133, .78),
        0 14px 34px rgba(190, 18, 60, .42),
        inset 0 1px 0 rgba(255, 255, 255, .45);
    position: relative;
    z-index: 1;
}

.loading-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -.03em;
    text-shadow: 0 5px 24px rgba(0, 0, 0, .38);
    position: relative;
    z-index: 1;
}

.loading-subtitle {
    font-size: 14px;
    color: rgba(255, 241, 242, .88);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-22px) scale(1.08);
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, #991b1b 0%, #e11d48 55%, #ec4899 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(254, 205, 211, .7);
    box-shadow:
        0 16px 34px rgba(225, 29, 72, .30),
        0 10px 26px rgba(15, 23, 42, .24),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    z-index: 9999;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-weight: 800;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: #ffffff;
    margin-left: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 900;
}

#blazor-error-ui .reload:hover,
#blazor-error-ui .dismiss:hover {
    text-decoration: underline;
}

@media (max-width: 620px) {
    .app-loading {
        padding: 24px;
    }

    .loading-title {
        font-size: 22px;
    }

    .loading-subtitle {
        font-size: 13px;
    }

    #blazor-error-ui {
        top: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
        padding: 11px 14px;
        border-radius: 12px;
    }
}

/* =========================================================
   Mobile layout hardening patch
   Purpose: keep hero-panel and booking content full-width on
   mobile without changing the existing red-pink visual theme.
   ========================================================= */

html,
body,
.page,
.content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 0;
}

.booking-shell {
    width: 100%;
    max-width: 1240px;
    min-width: 0;
}

.hero-panel,
.hero-panel>div,
.booking-grid,
.booking-grid>main,
.glass-card,
.control-card,
.slots-card,
.cart-card {
    max-width: 100%;
    min-width: 0;
}

.hero-panel {
    width: 100%;
}

.hero-business {
    display: block;
}

.hero-panel h1,
.hero-copy {
    overflow-wrap: anywhere;
}

.court-row {
    max-width: 100%;
}

.date-refresh-row span {
    color: var(--muted-dark);
    font-size: .9rem;
    font-weight: 950;
}

@media (max-width: 960px) {
    .booking-shell {
        padding-inline: 16px;
    }

    .hero-panel {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        align-self: flex-start;
    }
}

@media (max-width: 620px) {
    .booking-shell {
        width: 100%;
        padding: 10px;
    }

    .hero-panel {
        width: 100%;
        max-width: 100%;
        padding: 22px 18px;
        border-radius: 22px;
        gap: 16px;
    }

    .hero-panel::after {
        width: 210px;
        height: 210px;
        right: -96px;
        top: -96px;
        border-width: 28px;
    }

    .eyebrow,
    .hero-business {
        margin-bottom: 10px;
        font-size: .72rem;
        line-height: 1.25;
    }

    h1 {
        font-size: clamp(1.9rem, 10vw, 2.75rem);
        line-height: 1;
        letter-spacing: -.045em;
    }

    .hero-copy {
        margin-top: 12px;
        font-size: .95rem;
        line-height: 1.55;
    }

    .hero-card {
        /*width: 100%;*/
        max-width: none;
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 16px 18px;
        border-radius: 20px;
    }

    .hero-card strong {
        font-size: 2.25rem;
    }

    .control-card,
    .slots-card,
    .cart-card {
        padding: 18px;
        border-radius: 22px;
    }

    .date-refresh-row {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 10px;
    }

    .date-refresh-row span {
        width: 100%;
        text-align: center;
    }

    .date-refresh-row input,
    .date-refresh-row .refresh-btn {
        /*
        flex: 1 1 100%;
        width: 100% !important;
        */
        min-width: 0;
    }

    .court-row {
        display: flex;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .court-pill {
        /*flex: 1 1 calc(50% - 8px);*/
        min-width: 128px;
        padding-inline: 12px;
    }

    .week-strip {
        padding-inline: 0;
    }

    .week-strip div {
        min-width: 0;
    }

    .week-strip strong,
    .week-strip span {
        overflow-wrap: anywhere;
    }

    .slot-list {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }
}

@media (max-width: 420px) {
    .booking-shell {
        padding: 8px;
    }

    .hero-panel {
        padding: 20px 16px;
        border-radius: 20px;
    }

    h1 {
        font-size: clamp(1.75rem, 10.5vw, 2.35rem);
    }

    .court-pill {
        /*flex-basis: 100%;*/
    }

    .slot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .slot-tile {
        min-width: 0;
    }
}

@media (max-width: 340px) {
    .slot-list {
        grid-template-columns: 1fr;
    }
}