:root {
    --bg: #f4fafb;
    --card: #ffffff;
    --wite-blue-bg: #f4fafb;
    --text: #1f2328;
    --muted: #6f6a65;
    --line: #e8e1d8;
    --accent: #0C3895;
    --accent-dark: #042261;
    --half-accent: #3F6BCA;
    --green-bg: #e7f3ec;
    --green-text: #2b7450;
    --yellow-bg: #f7ecd9;
    --yellow-text: #9a6b2c;
    --blue-bg: #eef2fa;
    --blue-text: #5e7195;
    --red-bg: #fde8e4;
    --red-text: #bf5648;
    --gray-bg: #edf1f5;
    --gray-text: #7c8899;
    --navy: #233B70;
    --booking-time: #6485CA;
    --shadow: 0 10px 30px rgba(32, 24, 16, .06);
    --radius: 24px;
    --weak: #c9c9c9;
    --container-padding: clamp(12px, 4vw, 24px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ===== LAYOUT ===== */
.wrap,
.topbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2px var(--container-padding);
}

.main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===== TOPBAR ===== */
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}


.brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex: 0 0 44px;
    font-size: 22px;
}

.brand-title {
    font-weight: 800;
    font-size: 22px;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.brand-link > div {
    min-width: 0;
}

.header-auth {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
}

.user-btn:hover {
    background: var(--wite-blue-bg);
}

.user-btn::before {
    content: "👤";
    font-size: 14px;
}

.user-name {
    max-width: clamp(70px, 20vw, 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    font-size: 12px;
    color: var(--muted);
    transition: transform .2s ease;
}

.user-menu.open .user-arrow {
    transform: rotate(180deg);
}

.user-menu.open .user-dropdown {
    display: flex;
}

/* ===== DROPDOWN ===== */
.user-dropdown {
    position: absolute;
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    top: 110%;
    border-radius: 12px;
    padding: 6px;
}

.user-dropdown button {
    background: none;
    border: none;
    padding: 8px 10px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600
}

.user-dropdown button:hover {
    background: #f3f3f3
}


.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: background .15s ease;
}

.dropdown-item:hover {
    background: var(--wite-blue-bg);
}

.dropdown-item.danger {
    color: var(--red-text);
}

.dropdown-item.danger:hover {
    background: var(--red-bg);
}

/* ===== CARDS & TYPOGRAPHY ===== */
.card {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h1 {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.04;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.08;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.btn:hover {
    filter: brightness(1.03);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    filter: none;
}

.btn-secondary {
    background: var(--half-accent);
    margin-bottom: 10px;
}


.btn-request-lock {
    opacity: .58;
    cursor: wait;
    position: relative;
    overflow: hidden;
    --lock-progress: 1;
}

.btn-has-timeout::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(to left, #fff calc(var(--lock-progress) * 100%), transparent 0) bottom / 100% 4px no-repeat
}

.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}


/* ===== MODAL ===== */
.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
}

.contact-modal-backdrop[hidden] {
    display: none !important;
}

.contact-modal {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.3);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.contact-modal-body {
    margin-bottom: 10px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.contact-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.contact-modal-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.contact-modal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FORMS & INPUTS ===== */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
    width: auto;
}

.file-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 14px;
}

.file-input::file-selector-button {
    margin-right: 10px;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== MESSAGES ===== */
.verify-success-msg {
    color: var(--green-text);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.verify-success-msg[hidden] {
    display: none !important;
}

/* ===== INDEX PAGE ===== */
.index-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    padding: 22px 26px;
}

.hero-top {
    margin-bottom: 18px;
}

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

.refresh-main {
    flex: 1;
    min-width: 0;
}

.refresh-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.refresh-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.refresh-track {
    width: 100%;
    height: 8px;
    background: #e8e1d8;
    border-radius: 999px;
    overflow: hidden;
}

.refresh-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--half-accent), var(--accent));
    border-radius: 999px;
    transition: width 1s linear;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(32, 42, 66, .12);
}

.refresh-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.hero-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-copy h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
    line-height: 1.04;
}

.hero-copy p {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.hero-prices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hero-price-card {
    background: var(--wite-blue-bg);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px 22px;
}

.hero-price-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.hero-price-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

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

.index-table-card {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: auto;
}

.index-table-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    gap: 12px;
}

.index-table-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 6px;
}

.index-table-subtitle {
    font-size: 15px;
    line-height: 1.25;
    color: var(--muted);
}

.index-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.index-table-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.index-table-timer {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--muted);
    font-weight: 700;
    max-width: 100%;
}

.index-table-btn {
    min-width: 0;
    min-height: 46px;
    margin-top: 0;
}

.index-table-btn:disabled {
    background: #dce3ef;
    color: #8f9cb0;
}

.index-table-btn.is-disabled {
    background: #dce3ef;
    color: #8f9cb0;
}

/* ===== SESSION PAGE ===== */
.session-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.session-mini-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px 20px;
    background: #fff;
}

.session-label {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.session-value {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.session-timer-card {
    margin-top: 10px;
}

.session-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.compact-note {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--muted);
}

.session-upload-state {
    margin: 12px 0 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.35;
}

.session-upload-progress {
    margin-bottom: 10px;
}

.session-upload-progress-track {
    height: 8px;
    background: #e8e1d8;
    border-radius: 999px;
    overflow: hidden;
}

.session-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--half-accent), var(--accent));
    transition: width .25s ease;
}

/* ===== HOURS SLIDER ===== */
.hours-slider-card {
    background: var(--wite-blue-bg);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px 18px 16px;
}

.hours-slider-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1;
}

.hours-slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e8e1d8;
    outline: none;
}

.hours-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.hours-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.hours-slider-scale {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== STATUS COLORS ===== */

.status-available {
    background: var(--green-bg);
    color: var(--green-text);
}

.status-available_pending {
    background: var(--yellow-bg);
    color: var(--yellow-text);
}

.status-reserved {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.status-playing {
    background: var(--red-bg);
    color: var(--red-text);
}

.status-user_lock_open {
    background: #fff3dc;
    color: #9d6a28;
}

.status-finished_pending {
    background: var(--yellow-bg);
    color: var(--yellow-text);
}

.status-returned_partially {
    background: #fff1e8;
    color: #b05d35;
}

.status-wait_photo {
    background: #fff3dc;
    color: #9d6a28;
}

.status-ai_checking {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.status-wait_admin {
    background: var(--yellow-bg);
    color: var(--yellow-text);
}

.status-locked,
.status-cancelled {
    background: var(--gray-bg);
    color: var(--gray-text);
}

/* ===== RESPONSIVE ===== */

/* ===== STATIC DOC PAGES ===== */

.doc-static-page {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.doc-static-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
}

.doc-static-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.doc-static-header {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.doc-static-kicker {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.doc-static-title {
    margin: 0 0 8px 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
}

.doc-static-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.doc-static-body {
    font-size: 16px;
    line-height: 1.72;
}

.doc-static-body h2 {
    margin: 28px 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.doc-static-body p {
    margin: 0 0 12px;
}

.doc-static-body ul {
    margin: 0 0 14px 0;
    padding-left: 22px;
}

.doc-static-body li {
    margin-bottom: 8px;
}

.doc-static-note {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--wite-blue-bg);
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.no-copy * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== SAFE FOOTER ===== */

.site-footer-legal {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.site-footer-legal-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
}

.site-footer-legal-brand {
    min-width: 0;
}

.site-footer-legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.site-footer-legal-logo img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
    flex: 0 0 44px;
}

.site-footer-legal-logo-text {
    min-width: 0;
}

.site-footer-legal-brand-name {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.site-footer-legal-brand-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--muted);
}

.site-footer-legal-description {
    margin-top: 16px;
    max-width: 340px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.site-footer-legal-col {
    min-width: 0;
}

.site-footer-legal-heading {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
}

.site-footer-legal-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer-legal-text-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    transition: color .15s ease;
}

.site-footer-legal-text-link:hover {
    color: var(--text);
}

/* ===== SESSION FLOW ===== */
.session-table-name {
    font-size: 14px;
    margin: 0;
}
.session-flow {
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 10px 14px;
    border-radius: 22px;
    background: var(--wite-blue-bg);
    border: 1px solid var(--line);
}

.session-flow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.session-flow-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.session-flow-percent {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
}

.session-flow-track {
    width: 100%;
    height: 10px;
    background: #e8e1d8;
    border-radius: 999px;
    overflow: hidden;
}

.session-flow-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--half-accent), var(--accent));
    border-radius: 999px;
    transition: width .35s ease;
}

.session-flow-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1;
    color: var(--muted);
}

.session-upload-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-upload-selected {
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}

.session-upload-preview {
    min-height: 0;
}

.session-upload-preview img {
    display: block;
    width: 100%;
    max-width: 280px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

@media (max-width: 900px) {
    .topbar {
        padding: 2px 18px;
    }

    .wrap {
        padding: 2px 18px;
    }

    .brand {
        padding: 0;
    }

    .brand-title {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .index-table-card {
        padding: 18px;
    }

    .index-table-title {
        font-size: 20px;
    }

    .session-value {
        font-size: 20px;
    }

    .site-footer-legal {
        padding: 22px 20px;
    }

    .site-footer-legal-inner {
        gap: 28px;
    }

    .site-footer-legal-description {
        max-width: none;
    }
}

@media (max-width: 640px) {

    .wrap,
    .topbar {
        padding: 2px 8px;
    }

    .brand {
        gap: 6px;
        padding: 0;
        border-radius: 22px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        flex-basis: 34px;
        font-size: 18px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .topbar-inner {
        gap: 6px;
        padding: 6px 8px;
        border-radius: 16px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-booking-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .user-name {
        display: none;
    }

    .user-arrow {
        display: none;
    }

    .user-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 12px;
    }

    .user-btn::before {
        font-size: 16px;
    }

    .card {
        padding: 16px;
        border-radius: 24px;
    }

    .hero-body {
        gap: 10px;
    }

    .card h1,
    .hero-copy h1 {
        font-size: 22px;
    }

    .session-name {
        margin: 0;
    }

    .card h2 {
        font-size: 22px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-prices {
        gap: 10px;
    }

    .hero-price-card {
        padding: 7px 18px;
        border-radius: 18px;
    }

    .index-table-card {
        padding: 14px;
        border-radius: 22px;
    }

    .index-table-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .index-table-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .index-table-subtitle {
        font-size: 13px;
    }

    .index-table-status {
        padding: 8px 12px;
        font-size: 12px;
    }

    .index-table-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .index-table-timer {
        max-width: 100%;
        font-size: 12px;
    }

    .index-table-btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        font-size: 13px;
    }

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

    .session-mini-card {
        padding: 8px 10px;
        border-radius: 18px;
    }

    .session-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .session-value {
        font-size: 15px;
    }

    .btn {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 14px;
    }


    .file-input {
        font-size: 13px;
    }

    .hours-slider-card {
        border-radius: 18px;
        padding: 16px;
    }

    .hours-slider-value {
        font-size: 28px;
    }

    .refresh-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 12px;
    }

    .site-footer-legal {
        padding: 16px;
        border-radius: 22px;
    }

    .doc-static-wrap {
        padding: 14px;
    }

    .doc-static-card {
        padding: 18px;
        border-radius: 24px;
    }

    .doc-static-title {
        font-size: 25px;
    }

    .doc-static-body {
        font-size: 15px;
        line-height: 1.65;
    }

    .doc-static-body h2 {
        font-size: 20px;
    }

    .site-footer-legal-inner {
        gap: 22px;
    }

    .site-footer-legal-logo img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .site-footer-legal-brand-name {
        font-size: 18px;
    }

    .site-footer-legal-brand-subtitle {
        font-size: 13px;
    }

    .site-footer-legal-description {
        margin-top: 14px;
        font-size: 14px;
    }

    .site-footer-legal-heading {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .site-footer-legal-list {
        gap: 9px;
    }

    .site-footer-legal-text-link {
        font-size: 14px;
    }
}


.booking-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    z-index: 2200;
}

.booking-modal-backdrop[hidden] {
    display: none !important
}

.booking-modal {
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    margin: auto 0;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .3)
}

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 6px 0
}

.booking-date-trigger {
    margin: 8px 0;
}

.booking-date-picker {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0;
    background: #fff;
}

.booking-date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
}

.booking-date-nav {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
}

.booking-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.booking-date-cell {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 0;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.booking-date-cell.active {
    background: var(--navy);
    color: #fff;
}

.booking-date-cell:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.booking-time-scale {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 8px;
    margin: 10px 0
}

.time-chip {
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: #fff
}

.time-chip.active {
    background: var(--booking-time);
    color: #fff
}

.time-chip.in-range {
    background: var(--booking-time);
    color: #fff
}

.time-chip.disabled {
    opacity: .45;
    cursor: not-allowed
}

.admin-bookings {
    max-height: 180px;
    overflow: auto;
    margin-bottom: 12px
}

.admin-booking-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    word-break: break-all;
}

.verify-ok {
    color: var(--green-text);
    font-weight: 700;
    margin: 6px 0
}


.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 10px);
    margin-left: auto;
}

.header-booking-btn {
    order: 2;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
}

.user-menu {
    order: 1;
}

.booking-notify {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    overflow-wrap: break-word;
}

.booking-notify.ok {
    background: var(--green-bg);
    color: var(--green-text)
}

.booking-notify.error {
    background: var(--red-bg);
    color: var(--red-text)
}

.booking-notify.warning {
    background: var(--yellow-bg);
    color: var(--yellow-text)
}

#booking-pay-text {
    overflow-wrap: anywhere;
}

.booking-code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.code-digit {
    width: 50px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    background: #fff;
    transition: border-color 0.15s ease;
}

.code-digit:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 90, 82, 0.1);
}

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

    .booking-time-scale {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .time-chip {
        padding: 6px 2px;
        font-size: 13px;
    }

    .booking-date-grid {
        gap: 2px;
    }

    .booking-date-cell {
        padding: 4px 0;
        font-size: 13px;
    }
}

.app-notify-container {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    z-index: 3500;
    pointer-events: none;
}

.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(32, 42, 66, .96);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    border: 1px solid rgba(255, 255, 255, .08);
    animation: toast-in .18s ease-out;
}

.app-toast.ok {
    background: #1e6b4a;
}

.app-toast.error {
    background: #a74236;
}

.app-toast.warning {
    background: #8b6227;
}

.app-toast.info {
    background: rgba(32, 42, 66, .96);
}

.app-toast.closing {
    animation: toast-out .18s ease-in forwards;
}

.app-toast-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.app-toast-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: .9;
}

.app-dialog-backdrop {
    z-index: 3400;
}

.app-dialog {
    max-width: 440px;
}

.app-dialog-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.contact-modal-actions > .btn {
    margin-bottom: 0;
}

.app-dialog-backdrop .contact-modal-actions {
    align-items: stretch;
}

.app-dialog-backdrop .contact-modal-actions > .btn {
    min-height: 48px;
}

.app-dialog-confirm {
    min-width: 128px;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
}

/* User bookings section */
.bookings-section {
    width: 100%;
}

.bookings-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-card {
    width: 100%;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-datetime {
    font-size: 15px;
    font-weight: 700;
}

.booking-status {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.booking-status.status-pending_deposit {
    background: var(--yellow-bg);
    color: var(--yellow-text)
}

.booking-status.status-deposit_paid {
    background: var(--green-bg);
    color: var(--green-text)
}

.booking-status.status-awaiting_play_payment,
.booking-status.status-playing {
    background: var(--blue-bg);
    color: var(--blue-text)
}

.booking-status.status-cancelled {
    background: var(--gray-bg);
    color: var(--gray-text)
}

.booking-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem
}

.booking-deposit-paid {
    color: var(--green-text);
    font-weight: 600;
    font-size: 0.875rem
}

.btn-cancel-booking {
    background: var(--red-bg);
    color: var(--red-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s
}

.btn-cancel-booking:hover {
    opacity: 0.8
}

@media (max-width: 600px) {
    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem
    }

    .booking-actions {
        width: 100%;
        justify-content: space-between
    }
}
.index-table-slots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.table-time-chip {
    padding: 6px;
    font-size: 12px;
    cursor: default;
    user-select: none;
}

.index-table-slots .table-time-chip {
    position: relative;
}

.index-table-slots .table-time-chip.available::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;

    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}
.index-table-slots .table-time-chip.disabled::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;

    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f53333;
}

#booking-step-time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-date-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.booking-date-label {
    margin-left: 2px;
}

.booking-date-picker {
    width: 100%;
}

.booking-time-scale {
    width: 100%;
}


@media (min-width: 640px) {
    .tables-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-booking-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .app-notify-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }


}

@media (min-width: 768px) {
    .site-footer-legal-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .topbar .btn,
    .header-booking-btn {
        width: auto;
    }

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

}
