@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #111318;
    --bg-card: #161a22;
    --bg-card-active: #0d1f18;
    --bg-elevated: #1e2330;
    --felt-green: #1a6b3c;
    --felt-light: #2d9e5f;
    --felt-glow: rgba(45, 158, 95, 0.3);
    --gold: #c9a84c;
    --gold-light: #e8c96d;
    --gold-dark: #a07c30;
    --red-accent: #e05252;
    --blue-accent: #4a90d9;
    --text-primary: #f0ece0;
    --text-secondary: #8a8f9e;
    --text-muted: #4a4f5e;
    --border: #252c3a;
    --border-gold: rgba(201, 168, 76, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.2);
    --shadow-green: 0 0 30px rgba(45, 158, 95, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 20% 10%,
            rgba(26, 107, 60, 0.12) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 80%,
            rgba(201, 168, 76, 0.07) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 40% 60% at 50% 50%,
            rgba(10, 12, 16, 0.8) 0%,
            transparent 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* ─── HEADER ─────────────────────────────── */
.header {
    position: relative;
    z-index: 10;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(20px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--felt-green), var(--felt-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(26, 107, 60, 0.4);
}

.brand-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.header .brand-title span {
    font-family: "Times New Roman";
    font-weight: bold;
    font-weight: 900;
    letter-spacing: 1px; /*1.fix lỗi 98 billiards club*/
}
.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-config {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
}

.header-config label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.price-input {
    width: 110px;
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    outline: none;
}

/* ─── MAIN CONTAINER ─────────────────────── */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ─── SECTION TITLES ─────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-gold), transparent);
}

.section-badge {
    font-size: 0.7rem;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ─── TABLES GRID ─────────────────────────── */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

/* ─── TABLE CARD ─────────────────────────── */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    transition: var(--transition);
}

.table-card.active {
    background: var(--bg-card-active);
    border-color: rgba(45, 158, 95, 0.4);
    box-shadow: var(--shadow-card), var(--shadow-green);
}

.table-card.active::before {
    background: linear-gradient(
        90deg,
        var(--felt-green),
        var(--felt-light),
        var(--felt-green)
    );
}

/* Card Header */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.table-num {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}

.table-card.active .table-num {
    color: var(--felt-light);
}

.table-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(74, 79, 94, 0.3);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.table-card.active .status-badge {
    background: rgba(45, 158, 95, 0.2);
    color: var(--felt-light);
    border-color: rgba(45, 158, 95, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Timer */
.timer-display {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-align: center;
    padding: 10px 0;
    transition: var(--transition);
    line-height: 1;
}

.table-card.active .timer-display {
    color: var(--text-primary);
}

/* Money Breakdown */
.money-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid var(--border);
}

.money-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    padding: 2px 0;
}

.money-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.money-value {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.money-row.total-row {
    border-top: 1px solid var(--border);
    margin-top: 5px;
    padding-top: 6px;
}

.money-row.total-row .money-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.75rem;
}

.money-row.total-row .money-value {
    color: var(--gold-light);
    font-size: 0.85rem;
}

/* Orders list on card */
.orders-list {
    margin: 6px 0;
    max-height: 80px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.order-item-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.68rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.order-item-name {
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-qty {
    color: var(--felt-light);
    font-weight: 600;
    margin: 0 6px;
    font-family: "JetBrains Mono", monospace;
}

.order-item-price {
    color: var(--gold);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 0.7rem;
}

/* Buttons */
.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-start {
    background: linear-gradient(135deg, var(--felt-green), var(--felt-light));
    color: white;
    box-shadow: 0 4px 12px rgba(26, 107, 60, 0.35);
}

.btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 107, 60, 0.5);
}

.btn-end {
    background: linear-gradient(135deg, #8b2020, var(--red-accent));
    color: white;
    box-shadow: 0 4px 12px rgba(224, 82, 82, 0.3);
}

.btn-end:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(224, 82, 82, 0.45);
}

.btn-order {
    background: linear-gradient(135deg, #1a3a5c, var(--blue-accent));
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
    flex: 0 0 auto;
    padding: 9px 10px;
}

.btn-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 144, 217, 0.45);
}

.btn:active {
    transform: scale(0.96);
}

/* ─── SERVICE MODAL ───────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        var(--shadow-gold);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.modal-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-close {
    width: 34px;
    height: 34px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(224, 82, 82, 0.2);
    color: var(--red-accent);
    border-color: rgba(224, 82, 82, 0.4);
}

.modal-body {
    padding: 20px 24px;
}

/* Category tabs */
.cat-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.cat-tab.active,
.cat-tab:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold-light);
    border-color: var(--border-gold);
}

/* Service items in modal */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    transition: var(--transition);
    cursor: default;
}

.service-item:hover {
    border-color: var(--border-gold);
    background: var(--bg-elevated);
}

.service-name {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.service-price {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 700;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--felt-green);
    border-color: var(--felt-light);
}
.qty-btn.minus:hover {
    background: rgba(224, 82, 82, 0.3);
    border-color: var(--red-accent);
}

.qty-display {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

/* Current order summary in modal */
.modal-order-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.modal-order-title {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-order-items {
    min-height: 20px;
}

.modal-order-empty {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

.modal-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
}

.modal-order-row-name {
    color: var(--text-secondary);
    flex: 1;
}
.modal-order-row-qty {
    color: var(--felt-light);
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    margin: 0 10px;
}
.modal-order-row-price {
    color: var(--gold);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
}

.modal-order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border-gold);
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-order-total span:last-child {
    font-family: "JetBrains Mono", monospace;
    color: var(--gold-light);
}

.btn-confirm-order {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--felt-green), var(--felt-light));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(26, 107, 60, 0.4);
    letter-spacing: 0.04em;
}

.btn-confirm-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 107, 60, 0.5);
}
.btn-confirm-order:active {
    transform: scale(0.98);
}

/* ─── CHECKOUT MODAL ──────────────────────── */
.checkout-modal {
    max-width: 420px;
}

.checkout-table-name {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-light);
    text-align: center;
    padding: 10px 0;
}

.checkout-section {
    margin-bottom: 14px;
}

.checkout-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.8rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.checkout-row-label {
    color: var(--text-secondary);
}
.checkout-row-val {
    font-family: "JetBrains Mono", monospace;
    color: var(--text-primary);
    font-weight: 600;
}

.checkout-total-block {
    background: linear-gradient(
        135deg,
        rgba(201, 168, 76, 0.1),
        rgba(201, 168, 76, 0.05)
    );
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total-label {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-total-val {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.checkout-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel-checkout {
    flex: 1;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel-checkout:hover {
    border-color: var(--red-accent);
    color: var(--red-accent);
}

.btn-confirm-checkout {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    border: none;
    border-radius: 10px;
    color: #1a1000;
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
    letter-spacing: 0.03em;
}

.btn-confirm-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.5);
}

/* ─── HISTORY TABLE ───────────────────────── */
.history-section {
    margin-top: 16px;
}

.history-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.history-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.stat-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.75rem;
}

.stat-chip-label {
    color: var(--text-muted);
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stat-chip-val {
    font-family: "JetBrains Mono", monospace;
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-clear-history {
    padding: 9px 16px;
    background: rgba(224, 82, 82, 0.1);
    border: 1px solid rgba(224, 82, 82, 0.3);
    border-radius: var(--radius-sm);
    color: var(--red-accent);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-history:hover {
    background: rgba(224, 82, 82, 0.25);
}

.history-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

thead {
    background: var(--bg-elevated);
}

th {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: top;
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.td-table {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--felt-light);
}

.td-time {
    font-family: "JetBrains Mono", monospace;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.td-money {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
}

.td-total {
    color: var(--gold-light) !important;
    font-size: 0.85rem;
}

.td-services {
    font-size: 0.68rem;
    color: var(--text-muted);
    max-width: 160px;
}

.empty-history {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-history .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* ─── TOAST ───────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.8rem;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation:
        toastIn 0.3s ease,
        toastOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* ─── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1100px) {
    .tables-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .header {
        padding: 16px 20px;
    }
    .container {
        padding: 20px 16px;
    }
    .brand-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .timer-display {
        font-size: 1.2rem;
    }
    .table-num {
        font-size: 1.2rem;
    }
    th:nth-child(4),
    td:nth-child(4),
    th:nth-child(5),
    td:nth-child(5) {
        display: none;
    }
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .tables-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .table-card {
        padding: 12px;
    }
    .modal-body {
        padding: 16px;
    }
    .checkout-total-val {
        font-size: 1.2rem;
    }
}
