/* ==========================================================================
   PriviSeat – Signature Stylesheet (v2)
   Theme: Warm Terracotta + Mint Jade + Cream Linen
   Responsive: Mobile-first → Tablet → Desktop
   ========================================================================== */

:root {
    /* ✦ โหมดสว่าง: ขาวสะอาด + ส้มสด — โหมดมืดตรึงพาเลตเดิมไว้ใน priviseat-dark.css */
    --ps-primary:    #FF7A1A;
    --ps-primary-2:  #F25600;
    --ps-secondary:  #2BB7A3;
    --ps-secondary-2:#1E8F80;
    --ps-gold:       #FFA84D;
    --ps-ink:        #1F2937;
    --ps-ink-soft:   #4B5563;
    --ps-cream:      #F7F7F9;
    --ps-cream-2:    #EFEFF2;
    --ps-line:       #E9E9EE;
    --ps-danger:     #E45D5D;
    --ps-success:    #27AE60;

    --ps-shadow-sm:  0 2px 8px rgba(31, 41, 55, 0.06);
    --ps-shadow:     0 8px 30px rgba(31, 41, 55, 0.08);
    --ps-shadow-lg:  0 20px 60px rgba(31, 41, 55, 0.12);

    --ps-radius-sm:  10px;
    --ps-radius:     18px;
    --ps-radius-lg:  28px;

    --ps-font-display: 'Prompt', 'Noto Serif Display', serif;
    --ps-font-body:    'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;

    --ps-container-customer: 480px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--ps-font-body);
    background: var(--ps-cream);
    color: var(--ps-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-image:
        radial-gradient(ellipse 800px 400px at 0% 0%, rgba(245, 144, 100, 0.08), transparent 60%),
        radial-gradient(ellipse 600px 300px at 100% 100%, rgba(43, 183, 163, 0.06), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--ps-font-display); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--ps-secondary-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ps-primary-2); }

/* ============ Brand ============ */
.ps-brand { font-family: var(--ps-font-display); font-weight: 700; color: var(--ps-secondary-2); letter-spacing: -0.02em; }
.ps-brand-accent { color: var(--ps-primary); }

/* ============ Buttons ============ */
.btn-ps-primary, .btn-ps-outline, .btn-ps-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, color .25s;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.btn-ps-primary {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-2) 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    box-shadow: 0 8px 22px rgba(230, 115, 63, 0.28);
    overflow: hidden;
}
.btn-ps-primary::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,.3), transparent);
    transform: translateX(-100%);
    transition: transform .6s;
}
.btn-ps-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230, 115, 63, 0.42); color: #fff; }
.btn-ps-primary:hover::before { transform: translateX(100%); }
.btn-ps-primary:active, .btn-ps-primary:disabled { transform: translateY(0); opacity: .7; cursor: wait; }

.btn-ps-outline {
    background: transparent;
    color: var(--ps-primary-2);
    border: 1.5px solid var(--ps-primary);
    padding: 0.6rem 1.6rem;
}
.btn-ps-outline:hover { background: var(--ps-primary); color: #fff; }

.btn-ps-ghost {
    background: #fff;
    color: var(--ps-ink);
    border: 1px solid var(--ps-line);
    padding: 0.55rem 1.3rem;
    font-weight: 500;
}
.btn-ps-ghost:hover { border-color: var(--ps-primary); color: var(--ps-primary-2); }

/* loading spinner inside button */
.btn-loading { pointer-events: none; }
.btn-loading::after {
    content: ""; width: 16px; height: 16px; margin-left: 8px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%;
    animation: psSpin .7s linear infinite;
    display: inline-block; vertical-align: middle;
}
.btn-ps-outline.btn-loading::after { border-color: rgba(245,144,100,.3); border-top-color: var(--ps-primary-2); }

@keyframes psSpin { to { transform: rotate(360deg); } }

/* ============ Cards ============ */
.ps-card {
    background: #fff;
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-sm);
    border: 1px solid var(--ps-line);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, border-color .25s;
}
.ps-card:hover { transform: translateY(-6px); box-shadow: var(--ps-shadow-lg); border-color: rgba(245, 144, 100, 0.25); }

.ps-hotel-card { position: relative; border-radius: var(--ps-radius); overflow: hidden; }
.ps-hotel-card .ps-hotel-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--ps-cream-2), #fff);
    object-fit: cover;
    width: 100%;
    transition: transform .6s cubic-bezier(.23,1,.32,1);
}
.ps-hotel-card:hover .ps-hotel-img { transform: scale(1.08); }

.ps-hotel-card .ps-fav {
    position: absolute; top: 12px; right: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: none;
    display: grid; place-items: center;
    cursor: pointer; z-index: 3;
    box-shadow: var(--ps-shadow-sm);
    transition: transform .2s, background .2s;
}
.ps-hotel-card .ps-fav:hover { transform: scale(1.1); }
.ps-hotel-card .ps-fav svg { transition: all .2s; }
.ps-hotel-card .ps-fav.active { background: rgba(245, 144, 100, 0.95); }
.ps-hotel-card .ps-fav.active svg { fill: #fff; stroke: #fff; }

.ps-hotel-card .ps-badge-discount {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(230,115,63,.3);
}

/* ============ Inputs ============ */
.ps-input, .ps-input-box {
    border: 1px solid var(--ps-line);
    padding: 0.7rem 1.2rem;
    width: 100%;
    background: #fff;
    transition: all .2s;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ps-ink);
}
.ps-input { border-radius: 999px; }
.ps-input-box { border-radius: var(--ps-radius-sm); }
.ps-input:focus, .ps-input-box:focus {
    outline: none;
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 4px rgba(245, 144, 100, 0.12);
}

/* Select2 override */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--ps-line) !important;
    border-radius: 999px !important;
    height: 42px !important;
    padding: 4px 12px !important;
    background: #fff !important;
    font-family: inherit !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    color: var(--ps-ink) !important;
    padding-left: .2rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ps-primary) !important;
    box-shadow: 0 0 0 4px rgba(245, 144, 100, 0.12) !important;
}
.select2-dropdown {
    border: 1px solid var(--ps-line) !important;
    border-radius: var(--ps-radius-sm) !important;
    box-shadow: var(--ps-shadow-lg) !important;
    overflow: hidden !important;
}
.select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2)) !important;
    color: #fff !important;
}
.select2-search__field { border-radius: 8px !important; padding: 6px 10px !important; }

/* ============ Meal Type Pills (scrollable on mobile, wrap on tablet+) ============ */
.ps-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ps-line);
    font-size: .9rem; font-weight: 500;
    color: var(--ps-ink-soft);
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    text-decoration: none;
}
.ps-pill:hover { border-color: var(--ps-primary); color: var(--ps-primary-2); }
.ps-pill.active {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(230, 115, 63, 0.28);
}

/* ============ Badges ============ */
.ps-badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.ps-badge-primary { background: rgba(245, 144, 100, 0.15); color: var(--ps-primary-2); }
.ps-badge-success { background: rgba(43, 183, 163, 0.15); color: var(--ps-secondary-2); }
.ps-badge-warning { background: rgba(201, 169, 110, 0.2);  color: #8a6a2a; }
.ps-badge-danger  { background: rgba(228, 93, 93, 0.15);   color: var(--ps-danger); }

/* ============ Hero / Banner Slider ============ */
.ps-hero {
    position: relative;
    border-radius: var(--ps-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--ps-shadow);
}
.ps-hero img { width: 100%; height: 100%; object-fit: cover; }
.ps-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31, 41, 55, 0.75) 100%);
}
.ps-hero-caption {
    position: absolute;
    bottom: 24px; left: 28px; right: 28px;
    color: #fff;
    font-family: var(--ps-font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* Swiper overrides */
.ps-banner-swiper { border-radius: var(--ps-radius-lg); overflow: hidden; box-shadow: var(--ps-shadow); }
.swiper-pagination-bullet-active { background: var(--ps-primary) !important; }

/* ============ Bottom Nav ============ */
.ps-bottom-nav {
    position: fixed;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: .2rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(31, 41, 55, 0.18);
    z-index: 1000;
}
.ps-bottom-nav a {
    display: flex; flex-direction: column; align-items: center;
    padding: .5rem .9rem;
    border-radius: 999px;
    color: var(--ps-ink-soft);
    font-size: .7rem; font-weight: 500;
    transition: all .25s;
}
.ps-bottom-nav a.active {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    color: #fff;
}
.ps-bottom-nav a svg { margin-bottom: 2px; }

/* ============ Admin/Hotel Shell - Responsive ============ */
.ps-shell { display: flex; min-height: 100vh; }
.ps-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #fff 0%, var(--ps-cream) 100%);
    border-right: 1px solid var(--ps-line);
    padding: 1.5rem 1rem;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform .3s;
}
.ps-sidebar-brand {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--ps-line);
    margin-bottom: 1rem;
}
.ps-sidebar-link {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem 1rem;
    border-radius: var(--ps-radius-sm);
    color: var(--ps-ink-soft);
    font-weight: 500;
    margin-bottom: 4px;
    transition: all .2s;
    text-decoration: none;
    cursor: pointer;
}
.ps-sidebar-link:hover { background: #fff; color: var(--ps-primary-2); }
.ps-sidebar-link.active {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    color: #fff;
    box-shadow: 0 8px 18px rgba(230, 115, 63, 0.28);
}

.ps-sidebar-toggle {
    display: none;
    position: fixed; top: 16px; left: 16px;
    z-index: 101;
    width: 42px; height: 42px;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    box-shadow: var(--ps-shadow-sm);
    cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--ps-ink);
}

.ps-main { flex: 1; padding: 2rem; min-width: 0; }
.ps-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--ps-shadow-sm);
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============ Stat cards ============ */
.ps-stat-card {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    padding: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    height: 100%;
}
.ps-stat-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-stat-card .ps-stat-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center; margin-bottom: .8rem;
}
.ps-stat-card .ps-stat-value {
    font-family: var(--ps-font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700; color: var(--ps-ink); line-height: 1;
}
.ps-stat-card .ps-stat-label {
    font-size: .85rem; color: var(--ps-ink-soft); margin-top: .25rem;
}
.ps-stat-card::after {
    content: ""; position: absolute; top: -60px; right: -60px;
    width: 150px; height: 150px; border-radius: 50%;
    background: var(--ps-accent, rgba(245, 144, 100, 0.08));
    opacity: .5; transition: transform .4s;
}
.ps-stat-card:hover::after { transform: scale(1.2); }

/* ============ Tables (compact) + DataTable overrides ============ */
.ps-table {
    width: 100%;
    background: #fff;
    border-radius: var(--ps-radius);
    overflow: hidden;
    border: 1px solid var(--ps-line);
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem;
}
.ps-table th {
    background: var(--ps-cream);
    font-weight: 600;
    color: var(--ps-ink);
    padding: .7rem .8rem;
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--ps-line);
    white-space: nowrap;
}
.ps-table td {
    padding: .6rem .8rem;
    border-bottom: 1px solid var(--ps-line);
    font-size: .85rem;
    color: var(--ps-ink-soft);
    vertical-align: middle;
}
.ps-table tr:last-child td { border-bottom: none; }
.ps-table tbody tr { transition: background .2s; }
.ps-table tbody tr:hover { background: var(--ps-cream); }

/* DataTable custom */
.dataTables_wrapper {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    padding: 1rem;
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    padding: .4rem .9rem;
    margin-left: .4rem;
    font-family: inherit;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ps-line);
    border-radius: 8px;
    padding: .3rem .6rem;
    margin: 0 .4rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: .3rem .7rem !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2)) !important;
    color: #fff !important;
    border: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--ps-cream) !important;
    border: 1px solid var(--ps-line) !important;
    color: var(--ps-primary-2) !important;
}

/* Modal */
.modal-content {
    border-radius: var(--ps-radius-lg);
    border: none;
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    color: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
}
.modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-body { padding: 1.5rem; }
.modal-footer { border: none; padding: 1rem 1.5rem 1.5rem; }

/* ============ Animations ============ */
@keyframes psFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes psFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes psScaleIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes psFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes psPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(43, 183, 163, 0.4); }
    70%  { box-shadow: 0 0 0 14px rgba(43, 183, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 183, 163, 0); }
}
@keyframes psShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.ps-animate-in { animation: psFadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.ps-animate-in-1 { animation-delay: .08s; }
.ps-animate-in-2 { animation-delay: .16s; }
.ps-animate-in-3 { animation-delay: .24s; }
.ps-animate-in-4 { animation-delay: .32s; }
.ps-animate-in-5 { animation-delay: .40s; }
.ps-animate-in-6 { animation-delay: .48s; }

.ps-float { animation: psFloat 3.5s ease-in-out infinite; }
.ps-pulse { animation: psPulseRing 2s ease-out infinite; }

.ps-live-dot {
    display: inline-block; width: 8px; height: 8px;
    background: var(--ps-secondary); border-radius: 50%; position: relative;
}
.ps-live-dot::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--ps-secondary);
    animation: psPulseRing 2s ease-out infinite;
}

/* ============ Toast ============ */
.ps-toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: .6rem;
    max-width: calc(100% - 40px);
}
.ps-toast {
    background: #fff;
    border-left: 4px solid var(--ps-secondary);
    border-radius: var(--ps-radius-sm);
    padding: 1rem 1.2rem;
    min-width: 280px; max-width: 400px;
    box-shadow: var(--ps-shadow);
    animation: psFadeUp .4s cubic-bezier(.22,1,.36,1);
}
.ps-toast.error   { border-left-color: var(--ps-danger); }
.ps-toast.warning { border-left-color: var(--ps-gold); }

/* ============ Empty ============ */
.ps-empty { text-align: center; padding: 4rem 2rem; color: var(--ps-ink-soft); }
.ps-empty svg { margin-bottom: 1rem; opacity: .5; }

/* ============ Utilities ============ */
.ps-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ps-line) 20%, var(--ps-line) 80%, transparent);
    margin: 1.5rem 0;
}
.ps-price-old { text-decoration: line-through; color: var(--ps-danger); font-size: .85rem; }
.ps-price-new { color: var(--ps-ink); font-weight: 700; font-size: 1.15rem; }
.ps-gradient-text {
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Chair Grid (seat availability) ============ */
.ps-chairs {
    display: flex; flex-wrap: wrap; gap: 3px;
    margin-top: 4px;
}
.ps-chair-icon {
    width: 14px; height: 14px;
    color: var(--ps-line);
    transition: color .2s;
    flex-shrink: 0;
}
.ps-chair-icon.booked { color: var(--ps-primary); fill: var(--ps-primary); }
.ps-chair-icon.available { color: var(--ps-line); fill: none; stroke-width: 2; }

.ps-chairs-summary {
    font-size: .7rem; color: var(--ps-ink-soft);
    display: flex; align-items: center; gap: 4px;
    margin-top: .2rem;
}
.ps-chairs-summary .num { font-weight: 700; color: var(--ps-primary-2); }

/* ============ Welcome splash ============ */
.ps-welcome {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 144, 100, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(43, 183, 163, 0.12), transparent 50%),
        var(--ps-cream);
}
.ps-welcome-content { text-align: center; }
.ps-welcome-logo { font-size: 5rem; margin-bottom: 1rem; animation: psFloat 3.5s ease-in-out infinite; }
.ps-welcome-brand {
    font-family: var(--ps-font-display);
    font-size: 3rem; font-weight: 700;
    color: var(--ps-secondary-2);
    letter-spacing: -0.02em;
    margin-bottom: .5rem;
}
.ps-welcome-countdown { font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--ps-ink-soft); letter-spacing: .1em; }

/* ============ Customer container ============ */
.ps-container-customer {
    max-width: var(--ps-container-customer);
    margin: 0 auto;
    padding: 0 1rem 120px;
}

/* ============ Save-as-image target (booking success) ============ */
.ps-ticket {
    background: linear-gradient(160deg, #FFF 0%, #FFF4EC 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(230,115,63,.15);
}
.ps-ticket::before {
    content: "";
    position: absolute; inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-gold), var(--ps-secondary));
    z-index: -1;
}
.ps-ticket-perforation {
    display: flex; align-items: center; gap: 6px; margin: 16px 0;
}
.ps-ticket-perforation::before,
.ps-ticket-perforation::after {
    content: ""; flex: 1; height: 1px;
    background: repeating-linear-gradient(90deg, var(--ps-line) 0 6px, transparent 6px 12px);
}
.ps-ticket-perforation span {
    color: var(--ps-ink-soft);
    font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
}

/* ============ Hero/Home Banner-inspired hungryhub ============ */
.ps-home-hero {
    background: linear-gradient(135deg, #FFF4EC 0%, #F0F9F7 100%);
    border-radius: var(--ps-radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

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

/* Tablet */
@media (min-width: 768px) {
    :root { --ps-container-customer: 720px; }
    .ps-bottom-nav { bottom: 20px; }
    .ps-bottom-nav a { padding: .6rem 1.2rem; font-size: .8rem; }
}

/* Desktop */
@media (min-width: 992px) {
    :root { --ps-container-customer: 1140px; }

    /* Customer: switch from single column to grid-based */
    .ps-container-customer { padding-bottom: 60px; }

    /* Hide bottom nav on desktop, show top nav instead */
    .ps-bottom-nav { display: none; }
    .ps-top-nav    { display: flex !important; }
}

/* Mobile: sidebar as slide-out */
@media (max-width: 991.98px) {
    .ps-sidebar-toggle { display: flex; }
    .ps-sidebar {
        position: fixed;
        left: 0; top: 0;
        transform: translateX(-100%);
        box-shadow: var(--ps-shadow-lg);
    }
    .ps-sidebar.open { transform: translateX(0); }
    .ps-sidebar-backdrop {
        position: fixed; inset: 0;
        background: rgba(0,0,0,.4); z-index: 99;
        opacity: 0; pointer-events: none;
        transition: opacity .3s;
    }
    .ps-sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
    .ps-main { padding: 1rem; padding-top: 4.5rem; }
    .ps-topbar { padding: .75rem 1rem; font-size: .85rem; }
    .ps-hero-caption { font-size: 1.1rem; bottom: 16px; left: 16px; right: 16px; }
}

/* Scrollable rows */
.ps-scroll-x {
    display: flex; gap: .6rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.ps-scroll-x::-webkit-scrollbar { display: none; }

/* Top nav (desktop customer) */
.ps-top-nav {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ps-line);
    padding: .8rem 2rem;
    align-items: center;
    gap: 2rem;
    position: sticky; top: 0; z-index: 50;
    margin-bottom: 1rem;
}
.ps-top-nav .nav-brand {
    font-family: var(--ps-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ps-secondary-2);
    text-decoration: none;
    display: flex; align-items: center; gap: .5rem;
}
.ps-top-nav .nav-links { display: flex; gap: 1.5rem; flex: 1; }
.ps-top-nav .nav-links a {
    color: var(--ps-ink-soft);
    font-weight: 500;
    padding: .4rem .8rem;
    border-radius: 8px;
    transition: all .2s;
}
.ps-top-nav .nav-links a.active { background: rgba(245,144,100,.1); color: var(--ps-primary-2); }
.ps-top-nav .nav-links a:hover { color: var(--ps-primary-2); }

/* Responsive table wrap */
.ps-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Loading overlay */
.ps-loading-overlay {
    position: fixed; inset: 0;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 9998;
}
.ps-loading-overlay.show { display: flex; }
.ps-loading-spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(245, 144, 100, .2);
    border-top-color: var(--ps-primary);
    border-radius: 50%;
    animation: psSpin .8s linear infinite;
}

/* Google login button */
.btn-google {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    padding: .7rem 1.4rem;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 600;
    color: var(--ps-ink);
    transition: all .2s;
    text-decoration: none;
    width: 100%;
}
.btn-google:hover { border-color: var(--ps-primary); box-shadow: var(--ps-shadow-sm); color: var(--ps-ink); }

/* Nearby button active state (toggle) */
.ps-pill.near-active {
    background: linear-gradient(135deg, var(--ps-secondary), var(--ps-secondary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(43, 183, 163, .32);
}

/* ==========================================================================
   Admin & Hotel – Minimal / Compact Override (v3)
   ========================================================================== */

/* ---- Global: smaller base font in admin/hotel shell ---- */
.ps-shell {
    font-size: .82rem;
}
.ps-shell h1, .ps-shell h2, .ps-shell h3 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* ---- Sidebar: slimmer, lighter ---- */
.ps-sidebar {
    width: 220px;
    padding: 1.2rem .75rem;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,.06);
}
.ps-sidebar-brand {
    padding: .4rem .75rem 1rem;
    margin-bottom: .75rem;
}
.ps-sidebar-brand .ps-brand {
    font-size: 1.1rem;
}
.ps-sidebar-link {
    padding: .5rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
    color: var(--ps-ink-soft);
}
.ps-sidebar-link i {
    font-size: .9rem;
}
.ps-sidebar-link.active {
    box-shadow: 0 4px 12px rgba(230, 115, 63, 0.2);
}
.ps-divider {
    margin: 1rem 0;
}

/* ---- Main area: tighter padding ---- */
.ps-main {
    padding: 1.25rem 1.5rem;
}

/* ---- Topbar: compact ---- */
.ps-topbar {
    padding: .7rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.05);
}
.ps-topbar h1 {
    font-size: 1.05rem !important;
}
.ps-topbar div[style*="font-size: .85rem"],
.ps-topbar div[style*="font-size:.85rem"] {
    font-size: .75rem !important;
}

/* ---- Stat cards: refined ---- */
.ps-stat-card {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: none;
}
.ps-stat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.ps-stat-card .ps-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: .5rem;
}
.ps-stat-card .ps-stat-value {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.ps-stat-card .ps-stat-label {
    font-size: .75rem;
}
.ps-stat-card::after {
    display: none;
}

/* ---- Tables: cleaner, smaller ---- */
.ps-table {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.05);
}
.ps-table th {
    padding: .5rem .7rem;
    font-size: .68rem;
    background: #FAFAF8;
    letter-spacing: .06em;
    color: var(--ps-ink-soft);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.ps-table td {
    padding: .45rem .7rem;
    font-size: .78rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.ps-table tbody tr:hover {
    background: #FDFCFA;
}

/* DataTable wrapper */
.dataTables_wrapper {
    border-radius: 14px;
    padding: .85rem;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: none;
}
.dataTables_wrapper .dataTables_filter input {
    font-size: .8rem;
    padding: .35rem .75rem;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate {
    font-size: .75rem;
}

/* ---- Cards in admin/hotel ---- */
.ps-shell .ps-card {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: none;
}
.ps-shell .ps-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transform: none;
}

/* ---- Badges: smaller ---- */
.ps-shell .ps-badge {
    padding: .2rem .55rem;
    font-size: .68rem;
}
.ps-shell .badge {
    font-size: .68rem;
    padding: .2rem .5rem;
}

/* ---- Buttons in admin/hotel ---- */
.ps-shell .btn-ps-primary {
    padding: .5rem 1.3rem;
    font-size: .8rem;
    box-shadow: 0 4px 14px rgba(230, 115, 63, 0.2);
}
.ps-shell .btn-ps-outline {
    padding: .45rem 1.1rem;
    font-size: .8rem;
}
.ps-shell .btn-ps-ghost {
    padding: .4rem 1rem;
    font-size: .78rem;
}
.ps-shell .btn-sm, .ps-shell .btn {
    font-size: .78rem;
}

/* ---- Modals: refined ---- */
.ps-shell .modal-header {
    padding: 1rem 1.25rem;
}
.ps-shell .modal-body {
    padding: 1.25rem;
    font-size: .82rem;
}
.ps-shell .modal-footer {
    padding: .75rem 1.25rem 1rem;
}

/* ---- Form inputs in admin/hotel ---- */
.ps-shell .form-control,
.ps-shell .form-select {
    font-size: .82rem;
    padding: .45rem .75rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.1);
}
.ps-shell .form-control:focus,
.ps-shell .form-select:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 3px rgba(245, 144, 100, 0.1);
}
.ps-shell label, .ps-shell .form-label {
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: .3rem;
}

/* ---- Alerts ---- */
.ps-shell .alert {
    font-size: .8rem;
    padding: .6rem 1rem;
    border-radius: 10px;
}

/* ---- Live dot: subtler ---- */
.ps-shell .ps-live-dot {
    width: 6px;
    height: 6px;
}

/* ---- Select2 in admin/hotel ---- */
.ps-shell .select2-container--default .select2-selection--single {
    height: 36px !important;
    font-size: .82rem !important;
}
.ps-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    font-size: .82rem !important;
}

/* ---- Chart containers ---- */
.ps-shell canvas {
    max-height: 260px;
}

/* ---- Mobile admin/hotel ---- */
@media (max-width: 991.98px) {
    .ps-sidebar {
        width: 240px;
    }
    .ps-main {
        padding: .75rem;
        padding-top: 4rem;
    }
    .ps-topbar {
        padding: .6rem .85rem;
    }
    .ps-topbar h1 {
        font-size: .95rem !important;
    }
}

/* ---- Admin/Hotel Modals: scrollable fix ---- */
.ps-shell .modal-dialog-scrollable .modal-body {
    max-height: 65vh;
    overflow-y: auto;
}
.ps-shell .modal-dialog {
    max-height: 90vh;
}

/* ===== Share buttons (customer) ===== */
.ps-hotel-card .ps-share-fab {
    position: absolute; top: 12px; right: 56px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: none; display: grid; place-items: center;
    cursor: pointer; z-index: 3; color: #1A1410; font-size: 16px;
    box-shadow: var(--ps-shadow-sm);
    transition: transform .2s, background .2s, color .2s;
}
.ps-hotel-card .ps-share-fab:hover { transform: scale(1.1); background: var(--ps-primary, #c8531c); color: #fff; }

/* meal card share button */
.ps-meal-share {
    border: 1px solid var(--ps-line, #e7e0d4); background: #fff; color: var(--ps-ink-soft, #6b5d4f);
    width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
    cursor: pointer; font-size: 15px; transition: all .15s; flex-shrink: 0;
}
.ps-meal-share:hover { background: var(--ps-primary, #c8531c); color: #fff; border-color: var(--ps-primary, #c8531c); }

/* generic ghost share (hotel detail header) */
.ps-share-ghost {
    border: 1px solid var(--ps-line, #e7e0d4); background: #fff; color: var(--ps-ink, #1A1410);
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    cursor: pointer; font-size: 17px; transition: all .15s; flex-shrink: 0;
}
.ps-share-ghost:hover { background: var(--ps-primary, #c8531c); color: #fff; border-color: var(--ps-primary, #c8531c); }
