/**
 * =============================================================================
 * ROOMSERVICE.PAGE — GUEST STYLES (v3 — UX Rehaul)
 * =============================================================================
 */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    /* Theme variables (--theme-*) and --font-family are set inline in the HTML
       <head> before this file loads, to prevent flash of default colors/fonts. */

    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #f0f1f3;

    --color-text: #1a202c;
    --color-text-secondary: #5a6577;
    --color-text-muted: #8d97a5;

    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --color-success: #059669;
    --color-danger: #dc2626;
    --color-veg: #16a34a;
    --color-nonveg: #dc2626;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 100px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);

    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);

    --header-height: 64px;
    --actions-height: 52px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    line-height: 1.5;
    font-size: 14px;
    padding-bottom: calc(70px + var(--safe-bottom));
    min-height: 100vh;
}

.hidden {
    display: none !important;
}


/* =============================================================================
   DESKTOP VIEW — PHONE COLUMN
   ============================================================================= */
@media (min-width: 768px) {
    html {
        background-color: #e8ecf1;
        min-height: 100vh;
    }

    body {
        max-width: 500px;
        margin: 0 auto;
        min-height: 100vh;
        background: var(--color-bg-secondary);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    }
}


/* =============================================================================
   HEADER — Gradient themed, sticky
   ============================================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    padding-top: calc(var(--space-md) + var(--safe-top));
    background: linear-gradient(135deg, var(--theme-header-bg), var(--theme-color));
    color: var(--theme-header-text);
    min-height: var(--header-height);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.header__logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    flex-shrink: 0;
}

.header__title {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.header__tagline {
    font-size: 0.72rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 0;
}

.header__room {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s;
}

.header__room:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* CHANGED: Emoji icon instead of "ROOM" text label */
.header__room-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    line-height: 1;
}

.header__room input {
    width: 40px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.header__room input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* =============================================================================
   ROOM NUMBER EDIT ICON
   ============================================================================= */
.room-edit-icon {
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.header__room:hover .room-edit-icon,
.header__room:focus-within .room-edit-icon {
    opacity: 1;
}


/* =============================================================================
   WELCOME MESSAGE — Fully dismissible (no collapse states)
   ============================================================================= */
.welcome-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: var(--space-sm) var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--theme-light);
    border: 1px solid var(--theme-medium);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: var(--color-text);
    line-height: 1.45;
}

.welcome-msg__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.welcome-msg__text {
    flex: 1;
    font-weight: 500;
}

.welcome-msg__dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.welcome-msg__dismiss:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.05);
}


/* =============================================================================
   ACTIONS BAR — Polished pills with scroll fade
   ============================================================================= */
.actions-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 95;
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.actions-bar::-webkit-scrollbar {
    display: none;
}

.actions-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.actions-bar__btn:hover {
    border-color: var(--theme-medium);
    color: var(--theme-on-light);
    background: var(--theme-lighter);
    box-shadow: var(--shadow-sm);
}

.actions-bar__btn:active {
    transform: scale(0.96);
}

/* Pay button — no special emphasis, same as other action bar buttons */


/* =============================================================================
   OFFER BANNER — Uses dynamic text color
   ============================================================================= */
.offer-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--theme-header-bg), var(--theme-dark));
    color: var(--theme-header-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.offer-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offer-banner__text {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.4;
}

.offer-banner__text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.offer-banner__btn {
    background: var(--theme-header-text);
    color: var(--theme-header-bg);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s;
}

.offer-banner__btn:hover {
    transform: scale(1.03);
}

.offer-banner__dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--theme-header-text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

.offer-banner__dismiss:hover {
    background: rgba(255, 255, 255, 0.35);
}


/* =============================================================================
   PWA INSTALL BANNER
   ============================================================================= */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid rgba(var(--theme-color-rgb, 37, 99, 235), 0.15);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    animation: pwaBannerSlideUp 0.3s ease;
}
.pwa-install-banner__content {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.pwa-install-banner__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.pwa-install-banner__text {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.35;
}
.pwa-install-banner__text strong {
    display: block;
    color: var(--theme-dark, #1e40af);
    font-size: 0.85rem;
    margin-bottom: 1px;
}
.pwa-install-banner__text span {
    color: #64748b;
}
.pwa-install-banner__btn {
    background: var(--theme-color, #2563eb);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.pwa-install-banner__btn:active {
    opacity: 0.85;
}
.pwa-install-banner__dismiss {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-install-banner__dismiss:hover {
    color: #64748b;
}
@keyframes pwaBannerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* =============================================================================
   SERVICES HUB — Card grid
   ============================================================================= */
.services-hub {
    padding: var(--space-lg);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    cursor: pointer;
    border: 1.5px solid var(--color-border);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-medium);
    opacity: 0;
    transition: opacity 0.2s;
}

.service-card:hover {
    border-color: var(--theme-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-sm);
}

.service-card__icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.service-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--color-text);
}

.service-card p {
    font-size: 0.73rem;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.service-card--emergency {
    border-color: #fecaca;
}

.service-card--emergency::before {
    background: var(--color-danger);
}

.service-card--emergency:hover {
    border-color: var(--color-danger);
}


/* =============================================================================
   CHECK-IN / CHECK-OUT TIMES
   ============================================================================= */
.checkin-times {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) 0 0;
}

.checkin-times__item {
    flex: 1;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.checkin-times__item strong {
    color: var(--color-text);
    font-weight: 600;
}

.checkin-times__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checkin-times__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkin-times__label {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}


/* =============================================================================
   SECTION HINT
   ============================================================================= */
.section-hint {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--theme-lighter);
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
}


/* =============================================================================
   SERVICE SECTIONS
   ============================================================================= */
.service-section {
    padding-bottom: 80px;
}


/* =============================================================================
   SEARCH
   ============================================================================= */
.search-section {
    padding: var(--space-sm) var(--space-md);
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--theme-medium);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.1);
}

.search-box__icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    background: transparent;
    color: var(--color-text);
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.search-box__clear {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}


/* =============================================================================
   SECTION TOPBAR
   ============================================================================= */
.section-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: var(--header-height);
    z-index: 85;
}

.section-topbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--theme-light);
    background: var(--theme-dark);
    cursor: pointer;
    color: var(--theme-light);
    flex-shrink: 0;
    transition: all 0.15s;
}

.section-topbar__back:hover,
.section-topbar__back:active {
    background: var(--theme-lighter);
    border-color: var(--theme-medium);
    color: var(--theme-dark);
}

.section-topbar__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}


/* =============================================================================
   FOOD STICKY NAV — Single sticky block for search + filters + categories
   ============================================================================= */
.food-sticky-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
}

/* When food sticky nav is present, the section topbar inside food is NOT sticky */
#section-food .section-topbar {
    position: relative;
    top: auto;
    z-index: auto;
}


/* =============================================================================
   FILTER TAGS
   ============================================================================= */
.filter-tags {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: all 0.15s;
}

.filter-tag:hover {
    border-color: var(--theme-medium);
}

.filter-tag.active {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border-color: var(--theme-header-bg);
}

.filter-tag__icon {
    width: 10px;
    height: 10px;
    border: 2px solid;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.filter-tag__icon--veg {
    border-color: var(--color-veg);
}

.filter-tag__icon--veg::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-veg);
    border-radius: 50%;
}

.filter-tag__icon--vegan {
    border-color: var(--color-veg);
    border-radius: 50%;
}

.filter-tag__icon--vegan::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-veg);
    border-radius: 50%;
}

.filter-tag__icon--nonveg {
    border-color: var(--color-nonveg);
}

.filter-tag__icon--nonveg::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 5px solid var(--color-nonveg);
}


/* =============================================================================
   CATEGORY NAV
   ============================================================================= */
.category-nav {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--color-border-light);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-tab:hover {
    color: var(--color-text);
}

.category-tab.active {
    color: var(--theme-dark);
    border-bottom-color: var(--theme-dark);
    font-weight: 700;
}


/* =============================================================================
   CATEGORY SECTIONS
   ============================================================================= */
.category-section {
    padding: var(--space-lg) var(--space-md);
}

.category-section--unavailable {
    opacity: 0.5;
}

.category-section--unavailable .item-card__action .btn-add {
    opacity: 0.4;
    pointer-events: none;
}

.category-section__header {
    margin-bottom: var(--space-md);
}

.category-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.category-section__time {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.category-section__time--closed {
    color: var(--color-danger);
    font-weight: 600;
}


/* =============================================================================
   ITEM CARDS (Food)
   ============================================================================= */
.items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.item-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: all 0.15s;
}

.item-card:hover {
    border-color: var(--theme-medium);
    box-shadow: var(--shadow-sm);
}

.item-card--unavailable {
    opacity: 0.5;
    cursor: default;
}

.item-card--unavailable:hover {
    border-color: var(--color-border-light);
    box-shadow: none;
}

.item-card__info {
    flex: 1;
    min-width: 0;
}

.item-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.item-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.item-card__desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 4px;
}

.item-card__bottom {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.item-card__price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
}

.item-card__price--free {
    color: var(--color-success);
}

.item-card__delivery {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.item-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.item-card__customizable {
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.unavailable-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
}


/* =============================================================================
   TYPE ICONS (VEG / NON-VEG / VEGAN)
   ============================================================================= */
.type-icon {
    width: 14px;
    height: 14px;
    border: 2px solid;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.type-icon--veg {
    border-color: var(--color-veg);
}

.type-icon--veg::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-veg);
    border-radius: 50%;
}

.type-icon--nonveg {
    border-color: var(--color-nonveg);
}

.type-icon--nonveg::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--color-nonveg);
}

.type-icon--vegan {
    border-color: var(--color-veg);
    border-radius: 50%;
}

.type-icon--vegan::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-veg);
    border-radius: 50%;
}


/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge--bestseller {
    background: #fef3c7;
    color: #92400e;
}

.badge--new {
    background: #dbeafe;
    color: #1e40af;
}

.badge--spicy {
    background: #fee2e2;
    color: #991b1b;
}

.badge--chef_special {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge--complimentary {
    background: #d1fae5;
    color: #065f46;
}

.badge--popular,
.badge--must_try,
.badge--recommended {
    background: #ffedd5;
    color: #9a3412;
}

.badge--breakfast_only {
    background: #fef9c3;
    color: #854d0e;
}

.badge--available_24_7 {
    background: #dcfce7;
    color: #166534;
}


/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn-add {
    border: 1.5px solid var(--theme-medium);
    color: var(--theme-dark);
    background: var(--theme-lighter);
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-add:hover {
    background: var(--theme-light);
    box-shadow: var(--shadow-sm);
}

.btn-add:active {
    transform: scale(0.95);
}

.btn-send-wa {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border: none;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.2);
}

.btn-send-wa:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-send-wa:active {
    transform: scale(0.98);
}


/* =============================================================================
   QTY CONTROL (Inline)
   ============================================================================= */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--theme-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-control__btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--theme-lighter);
    color: var(--theme-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-control__btn:hover {
    background: var(--theme-light);
}

.qty-control__btn:active {
    transform: scale(0.9);
}

.qty-control__value {
    width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--theme-dark);
    background: var(--color-bg);
}


/* =============================================================================
   PRICE DISCLAIMER
   ============================================================================= */
.price-disclaimer {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
    font-style: italic;
}


/* =============================================================================
   HOUSEKEEPING CARDS
   ============================================================================= */
.hk-items {
    padding: var(--space-md);
}

.hk-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.hk-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hk-card__info {
    flex: 1;
    min-width: 0;
}

.hk-card__info h3 {
    font-size: 0.88rem;
    font-weight: 600;
}

.hk-card__avail {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.hk-card__price {
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
}

.hk-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
}

.hk-badge--free {
    background: #d1fae5;
    color: #065f46;
}

.hk-card__qty {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.hk-card__qty button {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.hk-card__qty button:hover {
    border-color: var(--theme-medium);
    background: var(--theme-lighter);
}

.hk-card__qty span {
    width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
}


/* =============================================================================
   LAUNDRY CARDS
   ============================================================================= */
.laundry-items {
    padding: var(--space-md);
}

.laundry-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.laundry-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.laundry-card__services {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.laundry-service-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 0.82rem;
}

.laundry-qty {
    display: flex;
    align-items: center;
    gap: 2px;
}

.laundry-qty button {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.laundry-qty button:hover {
    border-color: var(--theme-medium);
}

.laundry-qty span {
    width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
}

.laundry-schedule {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--theme-lighter);
    border-bottom: 1px solid var(--color-border-light);
}


/* =============================================================================
   INFO PANELS (Accordion)
   ============================================================================= */
.info-panels {
    padding: var(--space-md);
}

.info-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.info-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-text);
    transition: background 0.15s;
}

.info-panel__header:hover {
    background: var(--color-bg-secondary);
}

.info-panel__arrow {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: transform 0.2s;
}

.info-panel.open .info-panel__arrow {
    transform: rotate(90deg);
}

.info-panel__body {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-lg);
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.info-panel.open .info-panel__body {
    max-height: 2000px;
    padding: 0 var(--space-lg) var(--space-lg);
    transition: max-height 0.5s ease-in, padding-bottom 0.5s ease-in;
}

.info-row {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.84rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row small {
    color: var(--color-text-secondary);
}

.info-row--highlight {
    background: var(--theme-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin: 4px 0;
    border-bottom: none;
    border-left: 3px solid var(--theme-medium);
}

.info-row--emergency {
    padding: var(--space-sm) 0;
}

.emergency-call {
    color: var(--color-danger);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}


.rich-content {
    font-size: 0.84rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.rich-content ul,
.rich-content ol {
    padding-left: 20px;
}

.info-row--nearby {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nearby-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nearby-item__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.nearby-item__details {
    flex: 1;
    min-width: 0;
}

.nearby-item__distance {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 0.85em;
}

.nearby-item__map-btn {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-dark);
    background: var(--theme-light);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nearby-item__map-btn:hover {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
}


/* =============================================================================
   CART FAB
   ============================================================================= */
.cart-fab {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-width: 280px;
    max-width: 400px;
    z-index: 200;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cart-fab.visible {
    display: flex;
    animation: slideUp 0.3s ease;
}

.cart-fab__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-fab__count {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
}

.cart-fab__label {
    font-size: 0.72rem;
    opacity: 0.8;
}

.cart-fab__text {
    font-weight: 700;
    font-size: 0.88rem;
}

.cart-fab__total {
    font-weight: 700;
    font-size: 0.95rem;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}


/* =============================================================================
   SERVICE FAB — Shared floating action button for HK, laundry, custom services
   ============================================================================= */
.service-fab {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    max-width: 360px;
    z-index: 200;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.service-fab:active {
    transform: translateX(-50%) scale(0.97);
}

.service-fab.visible {
    display: flex;
    animation: slideUp 0.3s ease;
}

.service-fab__count {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
}

.service-fab__text {
    font-weight: 700;
    font-size: 0.88rem;
}

/* =============================================================================
   MODALS
   ============================================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.open {
    display: flex;
}

.modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(2px);
}

.modal__content {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal__content--small {
    max-width: 360px;
}

.modal__content--medium {
    max-width: 480px;
}

.modal__content--item {
    max-width: 420px;
}

.modal__content--cart {
    max-width: 440px;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.modal__title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.15s;
}

.modal__close:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-muted);
}

.modal__body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.modal__footer--item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}


/* =============================================================================
   ITEM MODAL DETAIL
   ============================================================================= */
.item-detail__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.item-detail__price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.modal-section {
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-section--note {
    border: none;
    padding: var(--space-md) 0 0;
}

.modal-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-secondary);
}

.modal-section__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
}

.modal-section__badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.modal-section__badge--required {
    background: #fee2e2;
    color: #dc2626;
}

.modal-section__badge--optional {
    background: var(--color-bg-tertiary);
    color: var(--color-text-muted);
}

.modal-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px var(--space-md);
    cursor: pointer;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.15s;
}

.modal-option:last-child {
    border-bottom: none;
}

.modal-option:active {
    background: var(--color-bg-secondary);
}

.modal-option.selected {
    background: var(--theme-lighter);
}

.modal-option__control {
    flex-shrink: 0;
}

.modal-option__name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text);
}

.modal-option__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-dark);
}

.modal-option__price--addon {
    color: var(--color-text-secondary);
}


/* =============================================================================
   RADIO & CHECKBOX CONTROLS
   ============================================================================= */
.radio-dot {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.15s;
}

.radio-dot--on {
    border-color: var(--theme-medium);
}

.radio-dot--on::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--theme-medium);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg);
    transition: all 0.15s;
    flex-shrink: 0;
}

.checkbox-box--on {
    background: var(--theme-medium);
    border-color: var(--theme-medium);
}


/* =============================================================================
   MODAL NOTE INPUT
   ============================================================================= */
.modal-note-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.modal-note-input {
    width: 100%;
    padding: 10px var(--space-md);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-note-input:focus {
    border-color: var(--theme-medium);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.08);
}

.modal-note-input::placeholder {
    color: var(--color-text-muted);
}


/* =============================================================================
   QTY SELECTOR (Modal footer)
   ============================================================================= */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.qty-selector__btn {
    background: var(--color-bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text);
    font-weight: 600;
    transition: background 0.15s;
}

.qty-selector__btn:hover {
    background: var(--color-bg-tertiary);
}

.qty-selector__btn:active {
    transform: scale(0.9);
}

.qty-selector__value {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.2);
}

.btn-add-cart:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: scale(0.98);
}


/* =============================================================================
   CART MODAL
   ============================================================================= */
.cart-body {
    overflow-y: auto;
    flex: 1;
}

.cart-items {
    padding: var(--space-md);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

.empty-cart span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__type {
    flex-shrink: 0;
    padding-top: 2px;
}

.cart-item__details {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-size: 0.88rem;
    font-weight: 600;
}

.cart-item__variant {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.cart-item__addons {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.cart-item__note {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.cart-item__price {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
}

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.cart-item__remove {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 500;
}

/* Stale item hint — shown for items added > 10 min ago */
.cart-item--stale {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}
.cart-item__stale-hint {
    font-size: 0.72rem;
    color: #b45309;
    margin-top: 2px;
}

.cart-note {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.cart-note label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 6px;
}

.cart-note textarea {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.82rem;
    outline: none;
    resize: none;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s;
}

.cart-note textarea:focus {
    border-color: var(--theme-medium);
}

.cart-summary {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 700;
}

.cart-summary__disclaimer {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.cart-actions__clear {
    background: none;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-actions__clear:hover {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.cart-actions__order {
    flex: 1;
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-actions__order:hover {
    opacity: 0.92;
}


/* =============================================================================
   WIFI MODAL
   ============================================================================= */
.wifi-entry-guest {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.wifi-entry-guest:last-child {
    border-bottom: none;
}

.info-field {
    margin-bottom: var(--space-sm);
}

.info-field label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.info-field__value {
    font-size: 0.95rem;
    font-weight: 500;
}

.info-field__value--copy {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--theme-lighter);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--theme-medium);
    transition: background 0.15s;
}

.info-field__value--copy:hover {
    background: var(--theme-light);
}

.copy-hint {
    font-size: 0.68rem;
    color: var(--theme-dark);
    font-weight: 500;
}


/* =============================================================================
   ACTION BUTTONS (in modals)
   ============================================================================= */
.action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn--call {
    background: var(--theme-color, #2563eb);
    color: white;
}

.action-btn--wa {
    background: var(--theme-color, #2563eb);
    color: white;
}

.action-btn--link {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
}

/* UPI Payment Section */
.upi-qr-section {
    background: var(--color-bg-secondary, #f8fafc);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.upi-qr-section #upi-qr-code img,
.upi-qr-section #upi-qr-code canvas {
    border-radius: 8px;
}
.upi-vpa-value {
    font-size: 0.92rem;
    font-weight: 600;
    font-family: monospace;
    color: var(--color-text-primary);
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    word-break: break-all;
    width: 100%;
    text-align: center;
}
.upi-copy-btn {
    margin-top: 8px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--theme-header-bg, #2563eb);
    background: #fff;
    border: 1.5px solid var(--theme-header-bg, #2563eb);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
}
.upi-copy-btn:active {
    transform: scale(0.96);
}
.upi-hint {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin: 8px 0 0;
    line-height: 1.4;
}
.upi-qr-toggle {
    margin-top: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    width: 100%;
    text-align: center;
}
.upi-qr-toggle summary {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--theme-header-bg, #2563eb);
    cursor: pointer;
    list-style: none;
}
.upi-qr-toggle summary::-webkit-details-marker { display: none; }
.upi-qr-toggle summary::before {
    content: '▶ ';
    font-size: 0.65rem;
    transition: transform 0.15s;
    display: inline-block;
    margin-right: 4px;
}
.upi-qr-toggle[open] summary::before {
    transform: rotate(90deg);
}

.action-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn small {
    font-weight: 400;
    opacity: 0.8;
}


/* =============================================================================
   NO RESULTS
   ============================================================================= */
.no-results {
    text-align: center;
    padding: 48px var(--space-lg);
    color: var(--color-text-muted);
}

.no-results span {
    font-size: 2.8rem;
    display: block;
    margin-bottom: var(--space-md);
}

.no-results p {
    margin-bottom: var(--space-md);
}

.no-results button {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}


/* =============================================================================
   TOAST
   ============================================================================= */
#toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.82rem;
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

.toast--success {
    background: var(--color-success);
}

.toast--error {
    background: var(--color-danger);
}

.toast--info {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
}

@keyframes toastIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


/* =============================================================================
   ROOM NUMBER POPUP
   ============================================================================= */
.room-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: roomPopupFadeIn 0.2s ease;
}

@keyframes roomPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.room-popup {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: roomPopupSlideIn 0.25s ease;
}

@keyframes roomPopupSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.room-popup__icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    line-height: 1;
}

.room-popup__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}

.room-popup__desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin: 0 0 18px;
    line-height: 1.4;
}

.room-popup__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.room-popup__input:focus {
    border-color: var(--theme-header-bg, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.room-popup__input--error {
    border-color: var(--color-danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: roomPopupShake 0.3s ease;
}

@keyframes roomPopupShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.room-popup__input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
    font-weight: 400;
}

.room-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.room-popup__btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.room-popup__btn:active {
    transform: scale(0.97);
}

.room-popup__btn--cancel {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.room-popup__btn--cancel:hover {
    background: var(--color-border);
}

.room-popup__btn--confirm {
    background: var(--theme-header-bg, #2563eb);
    color: #fff;
}

.room-popup__btn--confirm:hover {
    opacity: 0.9;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.guest-footer {
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: calc(var(--space-xl) + 20px);
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-lg);
    background: var(--color-bg);
}

.guest-footer__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--theme-lighter);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--theme-dark);
    border-color: var(--theme-medium);
    background: var(--theme-light);
    transform: translateY(-2px);
}

.guest-footer__reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-lg);
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.guest-footer__reviews span {
    font-weight: 600;
}

.guest-footer__reviews a {
    color: var(--theme-dark);
    font-weight: 700;
    text-decoration: none;
    padding: 5px 12px;
    background: var(--theme-light);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    transition: all 0.2s;
    border: 1px solid var(--theme-medium);
}

.guest-footer__reviews a:hover {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
}

.guest-footer__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.guest-footer__info strong {
    color: var(--color-text);
    font-size: 0.88rem;
}

.guest-footer__info a {
    color: var(--theme-dark);
    text-decoration: none;
}

.guest-footer__powered {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.guest-footer__powered a {
    color: var(--theme-dark);
    text-decoration: none;
    font-weight: 600;
}


/* =============================================================================
   ACTIONS BAR — Active pill state
   ============================================================================= */
.actions-bar__btn--active {
    border-color: var(--theme-medium);
    background: var(--theme-light);
    color: var(--theme-on-light);
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(var(--theme-color-rgb), 0.12);
}

.actions-bar__btn--active:hover {
    background: var(--theme-light);
}
/* =============================================================================
   CUSTOM SERVICES & NEW FEATURES — GUEST SIDE
   ============================================================================= */

/* Service description subtitle below section topbar */
.section-service-desc {
    padding: 6px 16px 10px;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

/* Hide-unavailable toggle button in food topbar */
.hide-unavail-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--theme-color, #2563eb);
    background: transparent;
    color: var(--theme-color, #2563eb);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}
.hide-unavail-btn.active {
    background: var(--theme-color, #2563eb);
    color: #fff;
}
.hide-unavail-btn:hover {
    background: var(--theme-color, #2563eb);
    color: #fff;
}

/* Send bar for custom service WhatsApp order */
.hk-confirm-bar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid var(--border, #e5e7eb);
    position: sticky;
    bottom: 0;
    background: var(--bg-card, #fff);
    z-index: 10;
}
