/* style.css — Tennis Lab Rangsit · Dark Luxury Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Dark Warm Brown & Gold Palette
═══════════════════════════════════════════════ */
:root {
    /* Primary Gold */
    --gold: #D4AF37;
    --gold-dark: #AA8010;
    --gold-light: #F3E5AB;
    --gold-soft: rgba(212, 175, 55, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.3);

    /* Terracotta/Clay accent (buttons & page background) */
    --copper: #7E3B1C;
    --copper-hover: #9E4D27;

    /* Backgrounds — clay orange page & dark forest green cards */
    --bg-page: #7E3B1C;          /* Terracotta Clay Orange as page background */
    --bg-card: #122015;          /* Dark Forest Green card */
    --bg-card-lift: #1E2E22;     /* Slightly lighter dark green */
    --bg-elevated: #16261B;      /* Elevated modal/sheet in dark green */
    --bg-input: #0B140D;         /* Input fields */

    /* Slot states */
    --slot-available-bg: #1B351F;
    --slot-available-border: #4CAF50;
    --slot-available-hover: #26472C;
    --slot-available-text: #81C784;

    --slot-booked-bg: #272216;
    --slot-booked-text: #D4AF37;
    --slot-booked-border: #5C4A2B;

    --slot-maintenance-bg: #211D15;
    --slot-maintenance-border: #8D7600;
    --slot-maintenance-text: #D4B200;

    --slot-selected-bg: rgba(126, 59, 28, 0.4);
    --slot-selected-border: #FFF8F2;
    --slot-selected-text: #FFF8F2;

    /* Text */
    --text-primary: #FFF8F2;     /* Warm cream */
    --text-secondary: #C5BFA9;   /* Muted warm sage/beige */
    --text-muted: #7A847C;       /* Dim muted green-gray */
    --text-gold: #D4AF37;

    /* Borders */
    --border: rgba(212, 175, 55, 0.15);
    --border-bright: rgba(212, 175, 55, 0.35);
    --border-dark: rgba(255, 255, 255, 0.04);

    /* Shadows */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.2);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;

    /* Motion */
    --ease: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.history-badge.checkedin {
    background: rgba(76, 175, 80, 0.25) !important;
    color: #81C784 !important;
    border: 1px solid #4CAF50 !important;
}

/* ═══════════════════════════════════════════════
   CHECKED-IN STAMP GRAPHIC OVERLAY
═══════════════════════════════════════════════ */
.ticket-card {
    position: relative !important;
    overflow: hidden !important;
}

.ticket-stamp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
    background: rgba(18, 32, 21, 0.35);
    backdrop-filter: blur(1px);
    border-radius: inherit;
}

.ticket-stamp-overlay.active {
    display: flex !important;
    animation: stampIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(2.5) rotate(-30deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-12deg);
    }
}

.stamp-box {
    border: 4px double #81C784;
    color: #81C784;
    background: rgba(18, 32, 21, 0.94);
    padding: 14px 28px;
    border-radius: 18px;
    text-align: center;
    font-family: 'Outfit', 'Kanit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    box-shadow: 
        0 0 30px rgba(76, 175, 80, 0.6),
        inset 0 0 15px rgba(76, 175, 80, 0.35);
    text-shadow: 0 0 12px rgba(129, 199, 132, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transform: rotate(-12deg);
}

.stamp-box i {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px rgba(129, 199, 132, 0.9));
}

/* ═══════════════════════════
   RESET & BASE
═══════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ═══════════════════════════
   LOADING SCREEN
═══════════════════════════ */
#loading-screen {
    position: fixed; inset: 0;
    background: linear-gradient(160deg, #1A0F06 0%, #0F0906 100%);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
#loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-logo { font-size: 64px; margin-bottom: 8px; }
.loading-sub {
    font-family: var(--font-heading);
    font-size: 13px; letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold); margin-bottom: 36px;
}
.loading-dots { display: flex; gap: 8px; }
.loading-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    animation: bounce 1.2s infinite ease-in-out;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* ═══════════════════════════
   LIFF WARNING BANNER
═══════════════════════════ */
.liff-warning {
    background-color: #2A1B06;
    color: var(--gold);
    padding: 9px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════
   APP HEADER
═══════════════════════════ */
.app-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px;
    box-shadow: var(--shadow-gold);
}

.brand-info h1 {
    font-family: var(--font-heading);
    font-size: 17px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.brand-info p {
    font-size: 10px;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* User Profile Widget */
.user-profile {
    display: flex; align-items: center; gap: 8px;
    background-color: var(--bg-card-lift);
    padding: 5px 12px 5px 5px;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.user-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
}

/* Language Switcher */
.lang-switch {
    background-color: var(--bg-card-lift);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 2px;
    display: flex; gap: 2px;
}
.lang-btn {
    border: none; background: none;
    padding: 4px 9px; font-size: 10px; font-weight: 700;
    border-radius: 10px; cursor: pointer;
    color: var(--text-muted);
    transition: var(--ease);
}
.lang-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A;
    box-shadow: var(--shadow-gold);
}

/* ═══════════════════════════
   MAIN CONTENT
═══════════════════════════ */
.main-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 14px;
}

/* ═══════════════════════════
   MY BOOKINGS BAR (แถบการจองของฉัน)
═══════════════════════════ */
.my-bookings-bar {
    background: linear-gradient(135deg, rgba(28, 20, 10, 0.95), rgba(18, 30, 20, 0.92));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.my-bookings-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.my-bookings-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.my-bookings-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.my-bookings-icon-wrap.pending {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    color: #F59E0B;
}

.my-bookings-icon-wrap.paid {
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.4);
    color: #81C784;
}

.my-bookings-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.my-bookings-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.my-bookings-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.my-bookings-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.my-bookings-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.my-bookings-status-badge.paid {
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.my-bookings-detail {
    font-size: 11px;
    color: var(--text-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    font-weight: 500;
}

.my-bookings-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-my-booking-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.btn-my-booking-action.pending {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #1E1105;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    animation: pulse-soft 2.2s infinite ease-in-out;
}

.btn-my-booking-action.paid {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A;
}

.btn-my-booking-action.history {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.btn-my-booking-action:hover {
    transform: scale(1.03);
}

.btn-my-booking-action:active {
    transform: scale(0.97);
}

.btn-my-booking-history {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--ease);
    flex-shrink: 0;
}

.btn-my-booking-history:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════
   DATE SELECTOR CARD
═══════════════════════════ */
.date-selector-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--border);
}

.date-nav-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-bright);
    background-color: var(--bg-card-lift);
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: var(--ease);
    color: var(--text-gold);
}
.date-nav-btn:hover {
    background-color: var(--gold-soft);
    border-color: var(--gold);
    transform: scale(1.05);
}
.date-nav-btn:active { transform: scale(0.95); }

.current-date-info {
    text-align: center;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    position: relative;
}
.current-date-info h2 {
    font-family: var(--font-heading);
    font-size: 17px; font-weight: 700;
    color: var(--text-primary);
}
.datepicker-input {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.calendar-icon { color: var(--text-gold); font-size: 18px; }

/* ═══════════════════════════
   CALENDAR GRID CARD
═══════════════════════════ */
.calendar-grid-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    padding: 12px 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.grid-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate;
    border-spacing: 3px;
    min-width: 0 !important;
    max-width: 100% !important;
}

.grid-th { 
    font-family: var(--font-heading); 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-secondary); 
    text-align: center; 
    padding: 2px 1px; 
    box-sizing: border-box;
}

.court-header-cell {
    border-radius: 8px; 
    padding: 6px 1px;
    background: linear-gradient(135deg, var(--bg-card-lift), var(--bg-elevated));
    border: 1px solid var(--border-bright);
    box-sizing: border-box;
}
.court-title { 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-primary); 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.court-subtitle { font-size: 8px; color: var(--text-gold); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 1px; }

.time-col { 
    width: 42px !important; 
    font-size: 10px; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-align: center; 
    vertical-align: middle; 
    white-space: nowrap;
    padding: 0 !important;
    box-sizing: border-box;
}

/* ═══════════════════════════
   SLOT CELLS
═══════════════════════════ */
.slot-cell {
    height: 52px;
    border-radius: 7px;
    cursor: pointer;
    transition: var(--ease);
    position: relative; overflow: hidden;
    user-select: none;
    border: 1.5px solid transparent;
    box-sizing: border-box;
}

/* Available */
.slot-cell.state-available {
    background-color: var(--slot-available-bg);
    border-color: rgba(76, 175, 80, 0.4);
}
.slot-cell.state-available:hover {
    background-color: var(--slot-available-hover);
    border-color: var(--slot-available-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}
.state-available .slot-state-text { color: var(--slot-available-text); }

/* Booked */
.slot-cell.state-booked {
    background-color: var(--slot-booked-bg);
    border-color: var(--slot-booked-border);
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6;
}
.state-booked .slot-state-text { color: var(--slot-booked-text); }

/* Pending Payment (รอชำระ) */
.slot-cell.state-pending {
    background-color: rgba(217, 119, 6, 0.16);
    border-color: rgba(245, 158, 11, 0.65);
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.1);
}
.state-pending .slot-state-text { 
    color: #FBBF24; 
    font-weight: 800; 
}
.state-pending .slot-time-text { 
    color: rgba(251, 191, 36, 0.75); 
}

/* Holding / Soft-Lock (มีผู้กำลังทำรายการ 3 นาที) */
.slot-cell.state-holding {
    background-color: rgba(245, 158, 11, 0.14) !important;
    border: 1px dashed rgba(245, 158, 11, 0.7) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.12);
    animation: holdingPulse 2.5s infinite ease-in-out;
}
.state-holding .slot-state-text { 
    color: #FBBF24 !important; 
    font-weight: 700 !important; 
    font-size: 11px !important;
}
@keyframes holdingPulse {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

/* Selected */
.slot-cell.state-selected {
    background: linear-gradient(135deg, rgba(201,151,61,0.28), rgba(168,124,42,0.18));
    border-color: var(--slot-selected-border);
    box-shadow: 0 0 0 1px var(--gold-glow), inset 0 0 12px rgba(201,151,61,0.1);
    transform: scale(0.975);
}
.state-selected .slot-state-text { color: var(--slot-selected-text); font-weight: 800; }
.state-selected .slot-time-text { color: rgba(240,208,128,0.7); }

/* Maintenance */
.slot-cell.state-maintenance {
    background-color: var(--slot-maintenance-bg);
    border-color: var(--slot-maintenance-border);
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 8px,
        rgba(141, 106, 0, 0.06) 8px, rgba(141, 106, 0, 0.06) 16px
    );
}
.state-maintenance .slot-state-text { color: var(--slot-maintenance-text); }

/* Passed Slot (เวลาในวันผ่านไปแล้ว - หมดเวลา) */
.slot-cell.state-passed {
    background-color: rgba(26, 18, 12, 0.55);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.38;
    filter: grayscale(0.5);
}
.state-passed .slot-state-text {
    color: #9E8F83;
    font-size: 9.5px;
    font-weight: 500;
}
.state-passed .slot-time-text {
    color: #6E6157;
}

/* Slot Inner */
.slot-container {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    height: 100%; padding: 2px 1px; text-align: center;
    box-sizing: border-box;
}
.slot-state-text { 
    font-size: 10px; 
    font-weight: 700; 
    white-space: nowrap;
    line-height: 1.1;
}
.slot-price-text {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    margin: 1px 0;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
}
.state-available .slot-price-text {
    color: #4ADE80;
    text-shadow: 0 1px 4px rgba(74, 222, 128, 0.25);
}
.state-selected .slot-price-text {
    color: #FDE047;
    text-shadow: 0 1px 4px rgba(253, 224, 71, 0.35);
}
.slot-time-text { 
    font-size: 7.8px; 
    color: var(--text-muted); 
    margin-top: 1px; 
    white-space: nowrap;
    line-height: 1.1;
}

/* PEAK badge */
.peak-badge {
    display: none !important;
}

/* ═══════════════════════════
   LEGEND
═══════════════════════════ */
.legend-section {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 18px; margin-top: 18px; padding: 8px;
}
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.legend-dot { width: 13px; height: 13px; border-radius: 4px; border: 1px solid transparent; }
.legend-dot.available { background-color: var(--slot-available-bg); border-color: var(--slot-available-border); }
.legend-dot.pending { background-color: rgba(217, 119, 6, 0.35); border-color: #F59E0B; }
.legend-dot.booked { background-color: var(--slot-booked-bg); border-color: var(--slot-booked-border); }
.legend-dot.selected { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: var(--gold); }
.legend-dot.maintenance { background-color: var(--slot-maintenance-bg); border-color: var(--slot-maintenance-border); }
.legend-dot.passed { background-color: rgba(50, 36, 26, 0.7); border-color: rgba(158, 143, 131, 0.4); }

/* ═══════════════════════════
   STICKY BOTTOM BAR
═══════════════════════════ */
.sticky-bar {
    position: fixed; bottom: 16px; left: 50%;
    transform: translateX(-50%) translateY(130%);
    width: calc(100% - 28px); max-width: 560px;
    background: linear-gradient(130deg, #2E1D08, #1E1105);
    border: 1px solid var(--border-bright);
    border-radius: 18px; padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-gold), var(--shadow);
    z-index: 99;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticky-bar.visible { transform: translateX(-50%) translateY(0); }

.bar-info h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text-primary); }
.bar-info p { font-size: 11px; color: var(--text-gold); font-weight: 600; }

.bar-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A;
    border: none; border-radius: 12px;
    padding: 10px 20px; font-size: 14px; font-weight: 800;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.3px;
}
.bar-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: scale(1.03);
}
.bar-btn:active { transform: scale(0.97); }

/* ═══════════════════════════
   CHECKOUT MODAL
═══════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-sheet {
    position: absolute; top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%; max-width: 580px;
    height: 100%; max-height: 100vh; max-height: 100dvh;
    background-color: var(--bg-elevated);
    border-radius: 0;
    display: flex; flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-top: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.modal-overlay.active .modal-sheet { transform: translateX(-50%) translateY(0); }

.modal-handle-bar {
    display: none;
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-elevated);
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.modal-close-btn {
    border: none;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 18px; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: var(--ease);
}
.modal-close-btn:hover { border-color: var(--gold); color: var(--gold); }

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex-grow: 1;
}

/* ── Checkout Stages ── */
.checkout-stage { display: none; }
.checkout-stage.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Date Badge ── */
.date-badge-container {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 16px;
}

/* ── Section Labels ── */
.section-label {
    font-size: 10px; font-weight: 700;
    color: var(--text-gold);
    text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px;
}

/* ── Summary Slots Box ── */
.summary-slots-box {
    background-color: var(--bg-card);
    border-radius: 12px; padding: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.summary-slot-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-dark);
}
.summary-slot-row:last-child { border-bottom: none; }
.summary-slot-info h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.summary-slot-info p { font-size: 11px; color: var(--text-secondary); }
.price-text { font-size: 13px; font-weight: 700; color: var(--text-gold); }

/* ── Segment Control ── */
.segment-control {
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 3px;
    margin-bottom: 18px;
}
.segment-option {
    flex: 1; text-align: center; padding: 8px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; border-radius: 8px;
    color: var(--text-muted);
    transition: var(--ease);
    display: flex; justify-content: center; align-items: center; gap: 5px;
}
.segment-option.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A;
    box-shadow: var(--shadow-gold);
    font-weight: 800;
}
.segment-option i { color: inherit; }

/* ── Add-ons ── */
.add-ons-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.add-on-card {
    border: 1px solid var(--border);
    border-radius: 11px; padding: 11px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    background-color: var(--bg-card);
    transition: var(--ease);
}
.add-on-card:hover { background-color: var(--bg-card-lift); border-color: var(--border-bright); }
.add-on-card.selected { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,151,61,0.1), rgba(168,124,42,0.06)); }
.add-on-left { display: flex; align-items: center; gap: 11px; }
.add-on-checkbox {
    width: 20px; height: 20px;
    border-radius: 5px; border: 1px solid var(--border-bright);
    display: flex; justify-content: center; align-items: center;
    background-color: var(--bg-card);
    transition: var(--ease); color: var(--text-muted); flex-shrink: 0;
}
.add-on-card.selected .add-on-checkbox { background: var(--gold); border-color: var(--gold); color: #1A120A; }
.add-on-info h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.add-on-info p { font-size: 10px; color: var(--text-secondary); }
.add-on-price { font-size: 13px; font-weight: 700; color: var(--text-gold); }

/* ── Contact Form ── */
.contact-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 10px; font-weight: 700; color: var(--text-gold); letter-spacing: 0.5px; }
.form-input {
    border: 1px solid var(--border-bright);
    border-radius: 10px; padding: 10px 13px;
    font-family: var(--font-body); font-size: 14px;
    background-color: var(--bg-input); color: var(--text-primary);
    outline: none; transition: var(--ease);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* ── Price Breakdown ── */
.price-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 14px; margin-bottom: 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.breakdown-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); }
.breakdown-row.discount { color: #EF9A9A; }
.breakdown-row.total {
    font-size: 18px; font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-bright);
    padding-top: 10px; margin-top: 4px;
}
.breakdown-row.total span:last-child { color: var(--text-gold); }

/* ── CTA Buttons ── */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A; border: none; border-radius: 13px;
    padding: 14px; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: var(--ease);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.3px;
}
.checkout-btn:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.checkout-btn:disabled { background: var(--bg-card-lift); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }

/* ── Hold Timer ── */
.hold-timer-box {
    background-color: rgba(201, 151, 61, 0.1);
    border: 1px solid var(--border-bright);
    color: var(--gold-light);
    border-radius: 10px; padding: 6px 10px;
    text-align: center; font-size: 12px; font-weight: 600;
    margin-bottom: 8px;
    display: flex; justify-content: center; align-items: center; gap: 6px;
}

/* ── Payment Instruction ── */
.payment-instruction { text-align: center; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }

/* ── QR Code Container ── */
.qr-code-container {
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-lift));
    border: 1px solid var(--border-bright);
    border-radius: 14px; padding: 10px 16px 12px 16px;
    margin: 0 auto 10px auto; max-width: 270px;
    box-shadow: var(--shadow-soft);
}
.promptpay-header { width: 100%; max-width: 180px; margin-bottom: 8px; border-radius: 8px; }
#qr-canvas { width: 160px; height: 160px; background-color: #eee; margin-bottom: 8px; border-radius: 8px; }

#qr-pay-image {
    width: 100%;
    max-width: 175px !important;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    margin-bottom: 4px;
    display: block;
    background: #fff;
    padding: 3px;
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    pointer-events: auto !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes qrPulse {
    0% { transform: scale(1); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
    50% { transform: scale(1.03); box-shadow: 0 0 22px rgba(212, 175, 55, 0.7); }
    100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
}

.qr-pulse-highlight {
    animation: qrPulse 1.2s ease-in-out;
}

/* ── QR Code Download Button ── */
.btn-download-qr {
    width: 100%;
    max-width: 200px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(201, 151, 61, 0.08) 100%);
    border: 1.5px solid var(--gold);
    color: #FFE082;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-download-qr:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #0E1910;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-download-qr:active {
    transform: translateY(0.5px);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.btn-download-qr.saved {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-color: #4CAF50;
    color: #81C784;
}

.qr-download-hint {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.1px;
}

/* ── Slip Upload Box ── */
.slip-upload-box {
    border: 2px dashed var(--gold);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.14) 0%, rgba(47, 124, 71, 0.16) 100%);
    border-radius: 14px;
    padding: 10px 14px;
    text-align: center;
    margin: 0 auto 10px auto;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 14px rgba(212, 175, 55, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.slip-upload-box:hover {
    border-color: var(--gold-light);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.2) 0%, rgba(47, 124, 71, 0.22) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.slip-upload-box.has-file {
    border-color: #4CAF50;
    border-style: solid;
    background: linear-gradient(145deg, rgba(47, 124, 71, 0.25) 0%, rgba(30, 70, 32, 0.3) 100%);
    box-shadow: 0 0 18px rgba(76, 175, 80, 0.3);
}

.slip-required-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #FFE082;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 5px;
}

.btn-select-slip {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    background: linear-gradient(135deg, #2F7C47, #1B5E20);
    border: 1.5px solid #4CAF50;
    color: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(47, 124, 71, 0.35);
    transition: all 0.2s ease;
}

.btn-select-slip:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    border-color: #81C784;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(47, 124, 71, 0.5);
}

/* ── Payment Log Panel ── */
.payment-log-panel {
    display: none; /* Hidden to keep the payment UI clean and premium */
    background-color: #0A0604;
    color: #C9973D;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px; padding: 12px;
    border-radius: 10px; height: 120px;
    overflow-y: auto; margin-bottom: 18px;
    text-align: left; white-space: pre-wrap;
    border: 1px solid var(--border);
}

/* ── Credit Card ── */
#credit-card-form { flex-direction: column; align-items: stretch; }

/* ═══════════════════════════
   SUCCESS RECEIPT / TICKET
═══════════════════════════ */
.ticket-wrapper { padding: 8px 0; }

.ticket-card {
    background-color: var(--copper); /* Terracotta Clay Orange card background */
    border-radius: 12px;
    border: 1.5px solid var(--gold);
    padding: 22px 20px;
    position: relative;
    box-shadow: var(--shadow), 0 10px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

.ticket-top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ticket-logo-container {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px 0;
    padding: 0 4px;
}

.ticket-logo-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    max-height: 105px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 140, 0, 0.25);
    display: block;
}

.ticket-row-2col {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ticket-col {
    display: flex;
    flex-direction: column;
}

.ticket-label-small {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ticket-val-large {
    font-size: 17px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.ticket-val-large.text-gold {
    color: var(--gold-light);
}

/* Dashed Tear Line with Punch cuts */
.ticket-tear-line-custom {
    height: 2px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.35);
    position: relative;
    margin: 18px -20px; /* Extends exactly to cover padding */
}

.ticket-tear-line-custom::before {
    content: '';
    position: absolute;
    top: -9px;
    left: -9px; /* Aligns center of 18px circle directly on left card border */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-elevated); /* Matches modal body dark green */
    border: 1.5px solid var(--gold);
    z-index: 2;
}

.ticket-tear-line-custom::after {
    content: '';
    position: absolute;
    top: -9px;
    right: -9px; /* Aligns center of 18px circle directly on right card border */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-elevated);
    border: 1.5px solid var(--gold);
    z-index: 2;
}

.ticket-row-3col {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 22px;
}

.ticket-val-medium {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.ticket-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.ticket-qr-box {
    background-color: #FFFDF9; /* Soft cream background */
    padding: 14px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#ticket-qr-img {
    width: 130px;
    height: 130px;
    display: block;
}

.ticket-footer-text {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tap-close-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    margin-top: 28px;
    cursor: pointer;
    transition: var(--ease);
}

.tap-close-label:hover {
    color: white;
}

/* Home / Done Button */
.home-btn {
    width: 100%; margin-top: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1A120A; border: none; border-radius: 13px;
    padding: 13px; font-size: 14px; font-weight: 800;
    cursor: pointer; transition: var(--ease);
    box-shadow: var(--shadow-gold);
}
.home-btn:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

/* ═══════════════════════════
   SPINNER
═══════════════════════════ */
.spinner {
    border: 3px solid rgba(201, 151, 61, 0.25);
    width: 20px; height: 20px; border-radius: 50%;
    border-left-color: var(--gold);
    animation: spin 0.9s linear infinite;
    display: inline-block; vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ═══════════════════════════
   CLUBHOUSE LOBBY (HOME) PAGE
═══════════════════════════ */
.lobby-page {
    display: block; /* Default visible page */
    animation: fadeIn 0.4s ease;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    box-sizing: border-box;
}

.grid-page {
    display: none; /* Hidden by default */
    animation: fadeIn 0.4s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Clubhouse Banner */
.clubhouse-banner {
    background: linear-gradient(145deg, rgba(22, 38, 26, 0.92) 0%, rgba(13, 23, 16, 0.97) 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clubhouse-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.banner-crest-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.45));
    margin-bottom: 8px;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #F1D483;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5DEB3 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin: 0;
    line-height: 1.25;
}

.banner-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
}

.banner-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* Action Card (Primary Booking CTA - Cute Coming Soon & Active Mode) */
.action-card {
    background: linear-gradient(135deg, #0AC755 0%, #06A344 50%, #038435 100%);
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: 
        0 12px 30px -4px rgba(6, 163, 68, 0.5),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.action-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

/* Cute Coming Soon Mode Styling */
.action-card.coming-soon-mode {
    background: linear-gradient(135deg, #FF8F6B 0%, #F06A49 45%, #C84620 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 
        0 14px 32px -4px rgba(240, 106, 73, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.7);
}

.action-card.coming-soon-mode::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        60deg,
        transparent 42%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 58%
    );
    transform: rotate(25deg);
    animation: cuteLightSweep 4.8s infinite linear;
    pointer-events: none;
}

.action-card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 
        0 18px 38px -4px rgba(240, 106, 73, 0.55),
        inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

.action-card:not(.coming-soon-mode):hover {
    box-shadow: 
        0 18px 38px -4px rgba(6, 163, 68, 0.65),
        inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

.action-card:active {
    transform: scale(0.975);
}

/* Cute Top Badge */
.cute-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-sparkle {
    font-size: 11px;
    display: inline-block;
    animation: cuteSparkle 1.8s ease-in-out infinite alternate;
}

.action-card-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

/* Cute Tennis Icon */
.cute-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.cute-tennis-ball {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
    animation: cuteBounce 2.2s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.action-cta-icon {
    font-size: 34px;
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
    animation: iconBob 2s ease-in-out infinite;
}

.action-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.action-title {
    font-family: var(--font-heading), -apple-system, "Sukhumvit Set", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.action-subtitle-cute {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 3px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Cute CTA Tag / Arrow */
.cute-cta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.22s ease;
}

.action-card:hover .cute-cta-tag {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.cute-lock-icon {
    font-size: 15px;
}

.action-cta-arrow {
    font-size: 34px;
    color: #ffffff;
    opacity: 0.9;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.action-card:hover .action-cta-arrow {
    transform: translateX(5px);
    opacity: 1;
}

@keyframes cuteLightSweep {
    0% { transform: translateX(-120%) rotate(25deg); }
    30%, 100% { transform: translateX(120%) rotate(25deg); }
}

@keyframes cuteBounce {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    40% { transform: translateY(-7px) scale(0.95, 1.05); }
    50% { transform: translateY(0) scale(1.06, 0.94); }
    65% { transform: translateY(-2px) scale(0.98, 1.02); }
}

@keyframes cuteSparkle {
    0% { transform: scale(0.85) rotate(-8deg); opacity: 0.75; }
    100% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 440px) {
    .action-card {
        padding: 18px 16px;
    }
    .action-card-center {
        gap: 12px;
    }
    .cute-icon-wrap {
        width: 42px;
        height: 42px;
    }
    .cute-tennis-ball {
        font-size: 22px;
    }
    .action-title {
        font-size: 22px;
    }
    .action-subtitle-cute {
        font-size: 12px;
    }
    .cute-cta-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
    .cute-lock-icon {
        font-size: 13px;
    }
}

/* Next Booking Card */
.upcoming-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border-bright);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.upcoming-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.upcoming-badge {
    background-color: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    color: #81C784;
}

.upcoming-body {
    margin-bottom: 16px;
}

.upcoming-court {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.upcoming-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.upcoming-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.btn-outline-green {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}

.btn-outline-green:hover {
    background-color: var(--bg-card-lift);
    border-color: var(--gold);
}

.btn-clay-orange {
    flex: 1;
    background: var(--copper);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}

.btn-clay-orange:hover {
    background-color: var(--copper-hover);
}

.upcoming-history-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 14px;
    transition: var(--ease);
}

.upcoming-history-link:hover {
    color: var(--text-gold);
}

/* Back Button in header when in grid view */
.back-btn {
    border: none;
    background: var(--bg-card-lift);
    color: var(--text-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--ease);
}

.back-btn:hover {
    background-color: var(--gold-soft);
    border-color: var(--gold);
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 480px) {
    .main-content { padding: 0 6px; margin: 12px auto; }
    .brand-info h1 { font-size: 14px; }
    .current-date-info h2 { font-size: 13px; }
    .logo-icon { width: 32px; height: 32px; font-size: 16px; }

    .calendar-grid-card { padding: 10px 4px; border-radius: 14px; }
    .grid-table { border-spacing: 3px; }
    .time-col { width: 42px; font-size: 10px; }
    .court-header-cell { padding: 6px 2px; border-radius: 6px; }
    .court-title { font-size: 11.5px; }
    .slot-cell { height: 50px; border-radius: 6px; }
    .slot-container { padding: 1px 1px; }
    .slot-state-text { font-size: 9.5px; }
    .slot-price-text { font-size: 10px; margin: 0; }
    .slot-time-text { font-size: 7.2px; }
    .peak-badge { font-size: 6px; padding: 1px 2px; top: 1px; right: 1px; }

    .legend-section { gap: 6px 12px; margin-top: 12px; padding: 4px 0; }
    .legend-item { font-size: 10px; gap: 5px; }
    .legend-dot { width: 10px; height: 10px; }

    .modal-body { padding: 16px; }
}

@media (max-width: 360px) {
    .main-content { padding: 0 3px; }
    .calendar-grid-card { padding: 8px 2px; }
    .grid-table { border-spacing: 2px; }
    .time-col { width: 38px; font-size: 9px; }
    .court-title { font-size: 10.5px; }
    .slot-cell { height: 46px; }
    .slot-state-text { font-size: 8.5px; }
    .slot-price-text { font-size: 9px; }
    .slot-time-text { font-size: 6.8px; }
}

.privacy-notice-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 10px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* History Modal & Cards */
.history-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 14px;
    transition: var(--ease);
}

.history-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.history-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-gold);
}

.history-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.history-badge.paid {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.history-badge.pending {
    background-color: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

.history-badge.expired {
    background-color: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

.history-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.history-row:last-of-type {
    margin-bottom: 0;
}

.history-label {
    color: var(--text-secondary);
}

.history-val {
    color: var(--text-primary);
    font-weight: 600;
}

.history-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}

.history-btn:hover {
    background-color: var(--gold-soft);
    color: white;
}

/* Facilities Gallery Card */
.facilities-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-bright);
    padding: 18px 16px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.facilities-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.facility-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 3/2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-item:active {
    transform: scale(0.97);
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.facility-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10, 6, 4, 0.95) 0%, rgba(10, 6, 4, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-align: left;
    letter-spacing: 0.5px;
}

/* Club Contact Card Footer */
.club-contact-card {
    background: linear-gradient(145deg, rgba(20, 36, 25, 0.92) 0%, rgba(12, 22, 15, 0.97) 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.contact-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 16px;
}

.contact-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gold);
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.contact-header-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 500;
}

.contact-body-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
}

@media (max-width: 460px) {
    .contact-body-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .contact-qr-wrap {
        margin: 0 auto;
    }
}

.contact-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.contact-qr-box {
    width: 130px;
    height: 130px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.contact-qr-box:hover {
    transform: scale(1.03);
}

.contact-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.contact-qr-hint {
    font-size: 10.5px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.contact-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.contact-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.22s ease;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-action-item.phone {
    border-color: rgba(212, 175, 55, 0.25);
}

.contact-action-item.phone:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold);
    transform: translateX(2px);
}

.contact-action-item.line {
    border-color: rgba(6, 199, 85, 0.3);
}

.contact-action-item.line:hover {
    background: rgba(6, 199, 85, 0.12);
    border-color: #06C755;
    transform: translateX(2px);
}

.contact-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon.phone {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
}

.contact-item-icon.line {
    background: rgba(6, 199, 85, 0.18);
    color: #06C755;
}

.contact-item-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.contact-item-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-item-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1px;
    letter-spacing: 0.3px;
}

.line-add-pill {
    background: #06C755;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.35);
}

.contact-action-arrow {
    color: var(--gold);
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.contact-action-item:hover .contact-action-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.club-copyright {
    margin-top: 16px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   LUXURY SWEETALERT2 THEME (DARK EMERALD & GOLD)
   Ensures ALL Pop-ups in LIFF have dark background with crystal clear readability
═══════════════════════════════════════════════════════════════ */
.swal2-container {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000 !important;
}

.swal2-popup,
.luxury-swal-popup,
.luxury-swal-modal {
    background: linear-gradient(145deg, #18231C 0%, #111A14 60%, #0D1410 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.18) !important;
    color: #F3F4F6 !important;
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Prompt', sans-serif !important;
    padding: 24px 20px !important;
}

.swal2-popup .swal2-title,
.luxury-swal-popup .swal2-title,
.luxury-swal-modal .swal2-title {
    color: #F5E6CC !important;
    font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, 'Prompt', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}

.swal2-popup .swal2-html-container,
.luxury-swal-popup .swal2-html-container,
.luxury-swal-modal .swal2-html-container {
    color: #E5E7EB !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.swal2-popup .swal2-html-container p,
.luxury-swal-popup .swal2-html-container p,
.luxury-swal-modal .swal2-html-container p {
    color: #E5E7EB !important;
}

.swal2-popup .swal2-actions,
.luxury-swal-popup .swal2-actions,
.luxury-swal-modal .swal2-actions {
    gap: 10px;
    margin-top: 18px !important;
}

.swal2-confirm,
.luxury-swal-confirm-btn {
    background: linear-gradient(135deg, #2F7C47 0%, #1F5430 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    border-radius: 12px !important;
    padding: 11px 24px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 14px rgba(47, 124, 71, 0.4) !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

.swal2-confirm:hover,
.luxury-swal-confirm-btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 18px rgba(47, 124, 71, 0.55) !important;
}

.swal2-cancel,
.luxury-swal-cancel-btn {
    background: #26332A !important;
    color: #D1D5DB !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 11px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

.swal2-cancel:hover,
.luxury-swal-cancel-btn:hover {
    background: #334438 !important;
    color: #FFFFFF !important;
}

.swal2-icon.swal2-warning {
    border-color: #F59E0B !important;
    color: #F59E0B !important;
}

.swal2-icon.swal2-error {
    border-color: #EF4444 !important;
    color: #EF4444 !important;
}

.swal2-icon.swal2-success {
    border-color: #10B981 !important;
    color: #10B981 !important;
}

.swal2-icon.swal2-info {
    border-color: #3B82F6 !important;
    color: #3B82F6 !important;
}

/* ═══════════════════════════════════════════════
   PLAYER IN-SESSION SCREEN (หน้าจอระหว่างการเล่น)
═══════════════════════════════════════════════ */
.in-session-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 0 4px;
}

.in-session-card {
    background: linear-gradient(165deg, #18221B 0%, #111713 50%, #0D120F 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(76, 175, 80, 0.15);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.in-session-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.in-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.session-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 125, 50, 0.3);
    border: 1px solid #4CAF50;
    color: #A5D6A7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px #81C784;
    animation: livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.btn-toggle-view {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-toggle-view:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.3);
}

.session-court-section {
    text-align: center;
    padding: 6px 0 16px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

.session-court-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.session-court-name {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 4px 0 6px;
    color: #FFFFFF;
    font-family: var(--font-heading), sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.session-player-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.session-bullet {
    color: rgba(212, 175, 55, 0.5);
}

.session-timer-box {
    background: rgba(10, 15, 12, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 16px 0;
    text-align: center;
}

.session-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.session-timer-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.session-checkin-time {
    font-size: 11px;
    color: #81C784;
    background: rgba(76, 175, 80, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
}

.session-timer-digits {
    font-family: 'Outfit', monospace;
    font-size: 2.3rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
    display: inline-block;
    margin: 4px 0;
}

.session-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.session-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784, #D4AF37);
    border-radius: 6px;
    transition: width 0.5s linear;
}

.session-time-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.session-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.session-addons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.session-addon-badge {
    background: rgba(184, 92, 44, 0.2);
    border: 1px solid rgba(184, 92, 44, 0.4);
    color: #FFB088;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-addon-badge.empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

.session-amenities-box {
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    padding-top: 14px;
}

.session-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.amenity-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-pill .material-icons-round {
    font-size: 18px;
    color: var(--gold);
}

.amenity-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.amenity-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}

.session-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.btn-session-call {
    background: linear-gradient(135deg, #A84820 0%, #7E3B1C 100%);
    color: #fff !important;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-session-order {
    background: linear-gradient(135deg, #1E4620 0%, #153216 100%);
    color: #81C784;
    border: 1px solid #4CAF50;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-launch-session {
    background: linear-gradient(135deg, #2E7D32 0%, #1B4D20 100%);
    border: 1px solid #4CAF50;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
    transition: all 0.25s ease;
}

.btn-launch-session:hover, .btn-launch-session:active {
    transform: scale(1.03);
    filter: brightness(1.15);
}

/* ══════════════════════════════════════════════
   PROMO CAMPAIGN POPUP & HOURS STAMP CARD
   HIT TENNIS RANGSIT X T COMMA CAFÉ
══════════════════════════════════════════════ */

/* Popup Overlay & Modal Box */
.promo-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 6, 3, 0.82);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}
.promo-modal-overlay.active {
    opacity: 1; pointer-events: auto;
}

.promo-modal-box {
    background: linear-gradient(165deg, #24160C 0%, #170E08 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 24px;
    width: 100%; max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(201, 151, 61, 0.25);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex; flex-direction: column;
}
.promo-modal-overlay.active .promo-modal-box {
    transform: scale(1) translateY(0);
}

.promo-close-x {
    position: absolute; top: 10px; right: 10px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #FFF; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}
.promo-close-x:hover, .promo-close-x:active {
    background: #E53935;
    border-color: #EF5350;
    transform: rotate(90deg);
}

.promo-poster-wrap {
    position: relative;
    width: 100%;
    border-radius: 22px 22px 14px 14px;
    overflow: hidden;
    background: #000;
}
.promo-poster-img {
    width: 100%; height: auto;
    display: block;
    object-fit: contain;
    max-height: 420px;
    background: #000;
}

.promo-modal-content {
    padding: 16px 20px 20px 20px;
    display: flex; flex-direction: column; gap: 12px;
}

.promo-badge-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(126, 59, 28, 0.35));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.promo-title-main {
    font-family: var(--font-heading);
    font-size: 19px; font-weight: 800;
    color: #FFF;
    line-height: 1.3;
}
.promo-title-highlight {
    background: linear-gradient(135deg, #FFD54F 0%, #FF9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-info-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 2px;
}
.promo-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 11.5px; color: #E5E7EB;
}
.promo-chip strong { color: var(--gold-light); }

.promo-menu-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 11.5px; line-height: 1.5; color: #D1D5DB;
}
.promo-menu-title {
    font-weight: 700; color: var(--gold);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 4px; font-size: 12px;
}

.promo-actions-group {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 4px;
}

.btn-promo-book {
    background: linear-gradient(135deg, #C9973D 0%, #7E3B1C 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 700;
    border: none; border-radius: 14px;
    padding: 13px 20px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; width: 100%;
    box-shadow: 0 4px 18px rgba(201, 151, 61, 0.4);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-promo-book:hover, .btn-promo-book:active {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.promo-dismiss-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 4px; padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px; color: #9CA3AF;
}
.promo-chk-wrap {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; user-select: none;
}
.promo-chk-wrap input {
    cursor: pointer; accent-color: var(--gold);
    width: 14px; height: 14px;
}

/* ══════════════════════════════════════════════
   LOBBY: CAMPAIGN STAMP CARD
══════════════════════════════════════════════ */
.campaign-card {
    background: linear-gradient(135deg, #1F140B 0%, #140C06 50%, #1F140B 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}
.campaign-card::after {
    content: "🎾";
    position: absolute; right: -12px; bottom: -18px;
    font-size: 80px; opacity: 0.08;
    pointer-events: none;
}

.campaign-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.campaign-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px; padding: 3px 10px;
    font-size: 11px; font-weight: 700; color: var(--gold-light);
}
.campaign-banner-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E5E7EB; border-radius: 12px;
    padding: 4px 10px; font-size: 11px; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
    transition: all 0.2s ease;
}
.campaign-banner-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.campaign-body {
    display: flex; flex-direction: column; gap: 8px;
}
.campaign-title {
    font-size: 15px; font-weight: 700; color: #FFF;
    display: flex; align-items: center; gap: 6px;
}
.campaign-desc {
    font-size: 12px; color: #D1D5DB; line-height: 1.4;
}

/* Interactive Stamp Progress Bar */
.stamp-progress-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 4px;
    display: flex; flex-direction: column; gap: 8px;
}
.stamp-progress-label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 600; color: #E5E7EB;
}
.stamp-slots-row {
    display: flex; align-items: center; gap: 10px;
}
.stamp-slot-pill {
    flex: 1; height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px dashed rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #9CA3AF;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stamp-slot-pill.completed {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(126, 59, 28, 0.4) 100%);
    border: 1.5px solid var(--gold);
    color: #FFD54F;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}
.stamp-slot-icon { font-size: 16px; }

.campaign-voucher-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFF; border: none; border-radius: 12px;
    padding: 9px 14px; font-size: 12.5px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; width: 100%;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.7); }
}

/* ══════════════════════════════════════════════
   E-VOUCHER CARD STYLES
══════════════════════════════════════════════ */
.voucher-card {
    background: linear-gradient(145deg, #2A1A10 0%, #1A0F07 100%);
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: relative;
}
.voucher-card.used {
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 0.65;
    background: #18181B;
}

.voucher-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 8px; margin-bottom: 10px;
}
.voucher-badge-status {
    padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700;
}
.voucher-badge-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7; border: 1px solid #10B981;
}
.voucher-badge-status.used {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF; border: 1px solid #6B7280;
}

.voucher-title {
    font-size: 15px; font-weight: 700; color: #FFF;
    margin-bottom: 4px;
}
.voucher-subtitle {
    font-size: 12px; color: #D1D5DB; margin-bottom: 12px;
}

.voucher-code-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    margin-bottom: 10px;
}
.voucher-code-val {
    font-family: 'Outfit', monospace;
    font-size: 18px; font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold-light);
}

.voucher-qr-wrap {
    text-align: center; margin: 10px 0;
}
.voucher-qr-img {
    width: 140px; height: 140px;
    background: #FFF; padding: 6px;
    border-radius: 10px; display: inline-block;
}

.btn-voucher-redeem {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #000; font-weight: 800; font-size: 13px;
    border: none; border-radius: 12px;
    padding: 10px; width: 100%; cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.2s ease;
}
.btn-voucher-redeem:hover {
    filter: brightness(1.1);
}
