/* =========================
   Visitorbooking - Summer Booking UI
   Mobile-first design
   ========================= */

:root {
    --bg: #fff8ef;
    --bg-soft: #ffffff;
    --primary: #ff7a3d;
    --primary-dark: #e85f25;
    --secondary: #2f80ed;
    --sand: #ffe8c7;
    --mint: #dff7ed;
    --sky: #e7f3ff;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #eadfce;
    --danger: #e5484d;
    --success: #1f9d63;
    --shadow: 0 14px 34px rgba(75, 53, 33, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at 10% 0%, rgba(255, 183, 77, 0.32), transparent 28%),
            radial-gradient(circle at 90% 10%, rgba(47, 128, 237, 0.16), transparent 26%),
            linear-gradient(180deg, #fff8ef 0%, #fffdf8 42%, #ffffff 100%);
    line-height: 1.5;
}

/* =========================
   Main layout
   ========================= */

.page-container,
.container,
main {
    width: min(100% - 24px, 1040px);
    margin: 0 auto;
    padding: 18px 0 44px;
}

/* =========================
   Navbar
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 12px;
    background: rgba(255, 248, 239, 0.92);
    border-bottom: 1px solid rgba(234, 223, 206, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

/* =========================
   Typography
   ========================= */

h1 {
    margin: 18px 0 8px;
    font-size: clamp(2rem, 9vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
    color: var(--text);
}

h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #ffc857);
}

h2 {
    margin: 26px 0 12px;
    font-size: clamp(1.25rem, 5vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h3 {
    margin: 16px 0 8px;
    font-size: 1.08rem;
}

p {
    color: var(--muted);
    margin: 8px 0 14px;
}

/* =========================
   Base cards
   ========================= */

form,
#calendar,
.table-wrapper,
section,
.card,
.booking-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 223, 206, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card,
section {
    margin: 14px 0;
}

/* =========================
   Hero
   ========================= */

.hero-card {
    padding: 22px;
    margin: 14px 0;
    background: linear-gradient(135deg, #fff3df, #ffffff);
}

.hero-card h1 {
    margin-top: 4px;
}

.hero-text {
    max-width: 720px;
    font-size: 1.02rem;
    color: var(--muted);
}

/* =========================
   Steps
   ========================= */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.step-card {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f0e4d4;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
}

.step-card h3 {
    margin: 10px 0 5px;
}

.step-card p {
    margin-bottom: 0;
}

/* =========================
   Weather
   ========================= */

.weather-card {
    padding: 16px;
    margin: 14px 0;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.weather-header h2 {
    margin: 0;
}

.weather-current {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--sky);
    color: var(--text);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.weather-icon {
    font-size: 1.1rem;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.weather-day {
    padding: 11px 7px;
    border-radius: 17px;
    background: #fff8ef;
    border: 1px solid #f0e4d4;
    text-align: center;
}

.weather-day-name {
    font-size: 0.74rem;
    font-weight: 900;
    color: #8a6b4d;
    text-transform: capitalize;
}

.weather-day-icon {
    font-size: 1.55rem;
    margin: 5px 0;
}

.weather-temp {
    font-weight: 900;
    font-size: 0.88rem;
}

.weather-rain {
    margin-top: 3px;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 700;
}

/* =========================
   Insights
   ========================= */

.booking-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 14px 0 18px;
}

.insight-card {
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f0e4d4;
    box-shadow: var(--shadow);
    min-width: 0;
}

.insight-card h2 {
    margin: 4px 0 8px;
    font-size: 1.05rem;
    line-height: 1.1;
}

.insight-card .eyebrow {
    font-size: 0.68rem;
}

#next-weekend {
    margin-bottom: 0;
}

#next-weekend strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

#next-weekend span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0e4d4;
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-place {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #fff0dc;
    color: #8a4b1f;
    font-weight: 900;
    font-size: 0.78rem;
}

.leaderboard-name {
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
}

.leaderboard-count {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: -4px;
}

.leaderboard-highlights {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0e4d4;
    display: grid;
    gap: 8px;
}

.leaderboard-highlight {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 7px;
    align-items: start;
    padding: 8px;
    border-radius: 14px;
    background: #fff8ef;
    border: 1px solid #f0e4d4;
}

.leaderboard-highlight span {
    font-size: 1rem;
    line-height: 1.2;
}

.leaderboard-highlight p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.25;
    color: var(--muted);
    font-weight: 750;
}

.next-info-block {
    padding: 9px 0;
    border-bottom: 1px solid #f0e4d4;
}

.next-info-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.next-info-label {
    display: block;
    margin-bottom: 3px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.next-event-block strong {
    color: #167a3a;
}

/* =========================
   Forms
   ========================= */

form {
    padding: 18px;
    margin: 18px 0;
}

form label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 750;
    color: var(--text);
    letter-spacing: -0.015em;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fffdf9;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 122, 61, 0.9);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.16);
}

textarea {
    min-height: 108px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* =========================
   Buttons
   ========================= */

button,
.button,
a.button,
input[type="submit"] {
    appearance: none;
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font: inherit;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #ff9f43);
    box-shadow: 0 12px 22px rgba(255, 122, 61, 0.28);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

button:hover,
.button:hover,
a.button:hover,
input[type="submit"]:hover {
    filter: brightness(1.03);
    box-shadow: 0 15px 28px rgba(255, 122, 61, 0.34);
}

button:active,
.button:active,
a.button:active,
input[type="submit"]:active {
    transform: scale(0.985);
}

form[action*="delete"] button,
button.danger,
.danger-button {
    background: linear-gradient(135deg, #e5484d, #ff7a7a);
    box-shadow: 0 12px 22px rgba(229, 72, 77, 0.22);
}

a.button.button-danger-soft,
.button.button-danger-soft {
    background: linear-gradient(135deg, #ed5615, #ff7a7a);
    box-shadow: 0 12px 22px rgba(229, 72, 77, 0.22);
    color: #ffffff;
}

a.button.button-danger-soft:hover,
.button.button-danger-soft:hover {
    background: linear-gradient(135deg, #ed5d1f, #ff6868);
    box-shadow: 0 15px 28px rgba(229, 72, 77, 0.3);
    text-decoration: none;
}

/* =========================
   Links
   ========================= */

a {
    color: var(--secondary);
    font-weight: 650;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   Feedback
   ========================= */

.error,
.success {
    padding: 13px 14px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-weight: 700;
}

.error {
    color: #8f1f24;
    background: #ffe8e9;
    border: 1px solid #ffc9cc;
}

.success {
    color: #0f6b43;
    background: #e7f9f0;
    border: 1px solid #bdeed6;
}

.booking-confirmation {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    margin: 16px 0;
    border-radius: 24px;
    background: #e7f9f0;
    border: 1px solid #bdeed6;
    box-shadow: var(--shadow);
}

.confirmation-icon {
    font-size: 2rem;
}

.booking-confirmation h2 {
    margin: 0 0 4px;
}

.booking-confirmation p {
    margin: 0;
    color: #0f6b43;
    font-weight: 700;
}

/* =========================
   Calendar
   ========================= */

#calendar {
    padding: 12px;
    margin: 18px 0 20px;
    overflow: hidden;
}

.fc {
    color: var(--text);
    --fc-page-bg-color: transparent;
    --fc-border-color: #eee0ce;
    --fc-today-bg-color: rgba(255, 122, 61, 0.14);
    --fc-neutral-bg-color: #fff8ef;
}

.fc .fc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
    text-align: center;
}

.fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fc .fc-toolbar-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: var(--text);
}

.fc .fc-button {
    border: none !important;
    border-radius: 999px !important;
    background: #fff0dc !important;
    color: #8a4b1f !important;
    font-weight: 800 !important;
    padding: 9px 12px !important;
    box-shadow: none !important;
    text-transform: capitalize !important;
}

.fc .fc-button:hover {
    background: #ffe3ba !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #eee0ce;
}

.fc .fc-col-header-cell {
    background: #fff8ef;
}

.fc .fc-col-header-cell-cushion {
    display: inline-block;
    padding: 9px 2px;
    font-size: 0.68rem;
    font-weight: 900;
    color: #8a6b4d;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.fc .fc-daygrid-day {
    background: #ffffff;
}

.fc .fc-daygrid-day:hover {
    background: #fff9f0;
}

.fc-daygrid-day.heat-medium {
    background: #fff4e1 !important;
}

.fc-daygrid-day.heat-high {
    background: #ffe0b2 !important;
}

.fc .fc-daygrid-day-number {
    padding: 7px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.fc .fc-day-other .fc-daygrid-day-number {
    color: #c8b9a3;
}

.fc .fc-event {
    border: none !important;
    border-radius: 999px !important;
    padding: 2px 6px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(75, 53, 33, 0.14);
}

.fc .fc-daygrid-event {
    margin: 1px 2px;
}

.fc .fc-event-title,
.fc .fc-event-time {
    color: #ffffff;
}

.fc .fc-highlight {
    background: rgba(47, 128, 237, 0.14) !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 72px;
}

/* =========================
   Calendar legend
   ========================= */

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

.legend-red {
    background: #d9534f;
}

.legend-grey {
    background: #777777;
}

.legend-green {
    background: #28a745;
}

.legend-heat {
    background: #ffd59e;
}

/* =========================
   Trip preview
   ========================= */

.trip-preview {
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 14px;
    background: #fff3df;
    color: #8a4b1f;
    font-weight: 800;
}

/* =========================
   Tables - mostly admin
   ========================= */

.table-wrapper {
    padding: 10px;
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    table-layout: auto;
}

thead {
    background: #fff3df;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid #f0e4d4;
    color: var(--text);
    font-size: 0.9rem;
    vertical-align: middle;
}

th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a6b4d;
    font-weight: 900;
    white-space: nowrap;
}

td {
    white-space: nowrap;
}

td:nth-child(4),
td:nth-child(5) {
    white-space: normal;
}

td form {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

td button {
    width: auto;
    min-width: 82px;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.8rem;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
}

.table-actions form {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.edit-button {
    min-height: 36px;
    min-width: 82px;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0dc;
    border: 1px solid #f0d8b8;
    color: #8a4b1f;
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.edit-button:hover {
    background: #ffe3ba;
    text-decoration: none;
}

/* =========================
   Action groups
   ========================= */

.business-actions,
.admin-actions,
.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.logout-form {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* =========================
   Login/setup
   ========================= */

.login-container,
.setup-container {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    width: min(100% - 24px, 460px);
    margin: 0 auto;
    padding: 26px 0;
}

.login-container form,
.setup-container form {
    width: 100%;
}

/* =========================
   Landing page and login
   ========================= */

.landing-page,
.login-page {
    min-height: 100vh;
    width: min(100% - 24px, 760px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 28px 0;
}

.landing-card,
.login-card {
    width: 100%;
    padding: 26px;
    border-radius: 30px;
    background:
            linear-gradient(135deg, rgba(255, 243, 223, 0.96), rgba(255, 255, 255, 0.96)),
            radial-gradient(circle at top right, rgba(47, 128, 237, 0.12), transparent 35%);
    border: 1px solid rgba(234, 223, 206, 0.95);
    box-shadow: 0 22px 54px rgba(75, 53, 33, 0.16);
}

.landing-card h1,
.login-card h1 {
    margin-top: 4px;
    max-width: 620px;
}

.landing-text,
.login-text {
    max-width: 560px;
    font-size: 1.05rem;
}

.landing-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
}

.secondary-button {
    appearance: none;
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    padding: 13px 18px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font: inherit;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: #8a4b1f;
    background: #fff0dc;
    border: 1px solid #f0d8b8;
    transition: transform 150ms ease, background 150ms ease;
}

.secondary-button:hover {
    background: #ffe3ba;
    text-decoration: none;
}

.secondary-button:active {
    transform: scale(0.985);
}

.login-form {
    margin-top: 18px;
}

.login-form button {
    width: 100%;
    margin-top: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.95rem;
}

/* =========================
   Site header
   Header stays compact. Logo is zoomed inside its button.
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: 72px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 248, 239, 0.92);
    border-bottom: 1px solid rgba(234, 223, 206, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible;
}

.site-header-title {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-header-title:hover {
    text-decoration: none;
}

.site-header-logo-link {
    width: 156px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
    transition: background 150ms ease, transform 150ms ease;
    overflow: hidden;
}

.site-header-logo-link:hover {
    background: rgba(255, 122, 61, 0.08);
    text-decoration: none;
}

.site-header-logo-link:active {
    transform: scale(0.97);
}

.site-header-logo {
    display: block;
    width: 156px;
    height: auto;
    object-fit: contain;
    transform: scale(1.75);
    transform-origin: center;
}

/* =========================
   Desktop improvements
   ========================= */

@media (min-width: 760px) {
    .page-container,
    .container,
    main {
        width: min(100% - 48px, 1040px);
        padding: 34px 0 64px;
    }

    .navbar {
        padding: 16px max(24px, calc((100vw - 1040px) / 2));
    }

    .nav-title {
        font-size: 1.25rem;
    }

    .hero-card {
        padding: 34px;
    }

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

    .weather-card {
        padding: 24px;
    }

    .weather-forecast {
        grid-template-columns: repeat(6, 1fr);
    }

    form {
        padding: 24px;
    }

    button,
    .button,
    a.button,
    input[type="submit"] {
        width: auto;
        min-width: 150px;
    }

    .business-actions,
    .admin-actions,
    .actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    #calendar {
        padding: 20px;
    }

    .fc .fc-toolbar {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .fc .fc-toolbar-title {
        font-size: 1.8rem;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.78rem;
        padding: 12px 4px;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 104px;
    }

    .fc .fc-daygrid-day-number {
        padding: 10px;
        font-size: 0.95rem;
    }

    .fc .fc-event {
        font-size: 0.78rem;
        padding: 3px 7px;
    }

    .landing-page,
    .login-page {
        width: min(100% - 48px, 820px);
    }

    .landing-card,
    .login-card {
        padding: 42px;
    }

    .landing-actions {
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .secondary-button {
        width: auto;
        min-width: 150px;
    }

    .site-header {
        height: 76px;
        padding: 6px max(24px, calc((100vw - 1040px) / 2));
    }

    .site-header-title {
        font-size: 1.18rem;
    }

    .site-header-logo-link {
        width: 190px;
        height: 62px;
    }

    .site-header-logo {
        width: 190px;
        transform: scale(1.55);
    }
}

/* =========================
   Extra small phones
   ========================= */

@media (max-width: 380px) {
    .page-container,
    .container,
    main {
        width: min(100% - 18px, 1040px);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    form {
        padding: 15px;
    }

    .weather-header {
        gap: 8px;
    }

    .weather-current {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .booking-insights {
        gap: 8px;
    }

    .insight-card {
        padding: 12px;
    }

    .insight-card h2 {
        font-size: 0.95rem;
    }

    .leaderboard-name {
        font-size: 0.78rem;
    }

    .leaderboard-count {
        font-size: 0.68rem;
    }

    #calendar {
        padding: 8px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.18rem;
    }

    .fc .fc-button {
        font-size: 0.78rem !important;
        padding: 8px 10px !important;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 64px;
    }

    .fc .fc-event {
        font-size: 0.66rem;
        padding: 1px 5px;
    }

    .landing-page,
    .login-page {
        width: min(100% - 18px, 760px);
    }

    .landing-card,
    .login-card {
        padding: 22px;
        border-radius: 24px;
    }

    .site-header {
        height: 64px;
        padding: 5px 10px;
    }

    .site-header-logo-link {
        width: 130px;
        height: 52px;
    }

    .site-header-logo {
        width: 130px;
        transform: scale(1.65);
    }
}

/* =========================
   Booking success popup
   ========================= */

.booking-success-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 24px;
    background: #28a745;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    cursor: pointer;
    animation: bookingPopupIn 220ms ease;
}

.booking-success-popup strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.booking-success-popup p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.3;
    font-weight: 650;
}

.booking-success-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.booking-success-popup.is-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes bookingPopupIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* =========================
   Admin scoreboard
   ========================= */

.admin-scoreboard {
    padding: 20px;
    margin: 18px 0;
    border-radius: 26px;
    background:
            linear-gradient(135deg, rgba(255, 243, 223, 0.96), rgba(255, 255, 255, 0.96)),
            radial-gradient(circle at top right, rgba(47, 128, 237, 0.14), transparent 36%);
    border: 1px solid rgba(234, 223, 206, 0.95);
    box-shadow: var(--shadow);
}

.scoreboard-header h2 {
    margin: 0 0 14px;
}

.scoreboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.scoreboard-card {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f0e4d4;
    box-shadow: 0 10px 22px rgba(75, 53, 33, 0.08);
}

.scoreboard-icon {
    display: block;
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.scoreboard-card strong {
    display: block;
    color: var(--text);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.scoreboard-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.scoreboard-wide {
    grid-column: 1 / -1;
}

.scoreboard-wide strong {
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

@media (min-width: 760px) {
    .admin-scoreboard {
        padding: 24px;
    }

    .scoreboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .scoreboard-wide {
        grid-column: auto;
    }
}