:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --primary-red: #e11d48;
    --accent-blue: #2563eb;
    --primary-blue: #2563eb;
    --accent-gold: #f59e0b;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

h1,
.hotel-label,
.section-title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px;
}

.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Entry Portal --- */
.portal-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('hero_dark.png');
    background-size: cover;
    background-position: center;
}

.portal-card {
    background: #0f172a;
    padding: 30px 20px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease-out;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.portal-logo {
    height: 70px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.hotel-name-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 5px;
}

.hotel-label {
    font-family: 'Playfair Display SC', serif;
    font-style: normal;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c41230;
    -webkit-text-fill-color: #c41230;
    -webkit-text-stroke: 1px #c0c0c0;
    filter: drop-shadow(0 1px 5px rgba(196,18,48,0.4));
    margin-bottom: 0;
    opacity: 1;
}

.hotel-title {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
    color: #c41230;
    -webkit-text-fill-color: #c41230;
    -webkit-text-stroke: 1.8px #c0c0c0;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: drop-shadow(0 2px 8px rgba(196,18,48,0.45)) drop-shadow(0 0 14px rgba(192,192,192,0.2));
    animation: none;
}

.wavy-divider {
    height: 12px;
    background: radial-gradient(circle at 10px 0, transparent 8px, var(--accent-blue) 0) 0 -13px/20px 50px repeat-x,
        radial-gradient(circle at 10px 14px, var(--accent-blue) 8px, transparent 0) 10px -13px/20px 50px repeat-x;
    margin: 30px 0 40px 0;
    opacity: 0.7;
}

.portal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-white);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
}

.portal-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.room-input-group {
    margin-bottom: 24px;
}

.room-input {
    width: 100%;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
    outline: none;
    transition: var(--transition);
}

.room-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.continue-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.continue-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* --- Premium Menu Style --- */
.menu-item-premium {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.menu-item-premium h4 {
    color: #991b1b !important; /* Dark Red */
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.menu-item-premium p {
    color: #b91c1c !important;
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

.menu-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-mini {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-cart {
    background: #dc2626;
    color: white;
    border: none;
    width: 100%;
}

.btn-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Floating Checkout Button */
.floating-cart {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    z-index: 1000;
    cursor: pointer;
    font-weight: 700;
    border: none;
    animation: slideUp 0.5s ease-out;
}

.cart-count {
    background: white;
    color: #dc2626;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
}

.modal-overlay.show { display: flex; }

.cart-modal {
    background: #ffffff;
    width: 100%;
    max-height: 85vh;
    border-radius: 30px 30px 0 0;
    padding: 30px 20px;
    color: #1e293b;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
}

.cart-modal h2 {
    color: #991b1b;
    margin-bottom: 20px;
    text-align: center;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info h4 { margin: 0; font-size: 0.95rem; }
.cart-item-info p { margin: 0; font-size: 0.8rem; color: #64748b; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
}

.cart-total-bar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-checkout-final {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 25px;
    cursor: pointer;
}

/* Manager confirmed status */
.req-card.confirmed { border-left-color: #f59e0b; }
.confirmed-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Dashboard --- */
.dashboard-header {
    height: 300px;
    position: relative;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%), url('hero_dark.png');
    background-size: cover;
    background-position: center 75%;
    background-attachment: fixed;
}

.welcome-msg {
    animation: fadeIn 0.8s ease-out;
}

.welcome-msg span {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.welcome-msg h1 {
    font-size: 2.2rem;
    margin: 4px 0;
    line-height: 1.1;
}

.room-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px;
    margin-top: 32px;
}

.grid-card {
    background: var(--bg-card);
    aspect-ratio: 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-card:hover {
    background: #263449;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.grid-card:active {
    transform: translateY(-2px) scale(0.98);
}

.grid-card i {
    font-size: 2rem;
}

.grid-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* Quick Actions */
.quick-actions-section {
    padding: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.quick-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--accent-gold);
    cursor: pointer;
    transition: var(--transition);
}

.quick-card:hover {
    background: #263449;
}

.quick-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.quick-info h4 {
    margin-bottom: 2px;
}

.quick-info p {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.quick-arrow {
    margin-left: auto;
    color: var(--text-gray);
}

/* Service Detail List */
.service-list {
    padding: 20px;
}

.list-item {
    background: var(--bg-card);
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.list-item:hover {
    background: #1e293b;
    transform: translateX(4px);
}

.list-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.list-item-info {
    flex-grow: 1;
}

.list-item-info h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.list-item-info p {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* --- Menu Specifics --- */
.menu-search-container {
    padding: 20px;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 100;
}

.menu-search {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
}

.menu-search::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.menu-categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 20px;
    scrollbar-width: none;
}

.category-chip {
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    border: 1px solid var(--border);
    cursor: pointer;
}

.category-chip.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.menu-item-price {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Centered Service List */
.service-list.centered .list-item {
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.service-list.centered .list-item-icon {
    margin-bottom: 12px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.toast.show {
    transform: translateY(0);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 350px) {
    .grid-card i {
        font-size: 1.5rem;
    }

    .grid-card span {
        font-size: 0.8rem;
    }
}

/* ================================================
   LIGHT / DARK THEME SYSTEM
   ================================================ */
[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-white: #1e293b;
    --text-gray: #64748b;
    --border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
    background-color: #f1f5f9;
}

[data-theme="light"] .portal-container {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('hero_dark.png');
    background-size: cover;
    background-position: center;
}

[data-theme="light"] .portal-card {
    background: #0f172a;
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .portal-card h2,
[data-theme="light"] .portal-card p {
    color: white;
}

[data-theme="light"] .room-input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .dashboard-header,
[data-theme="light"] .portal-container {
    background: linear-gradient(rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%), url('hero_dark.png') center 75% / cover no-repeat fixed !important;
}

[data-theme="light"] .welcome-msg h1,
[data-theme="light"] .welcome-msg span,
[data-theme="light"] .room-tag,
[data-theme="light"] .welcome-msg .greeting-text,
[data-theme="light"] .welcome-msg .hotel-title-main,
[data-theme="light"] .welcome-msg .room-number,
[data-theme="light"] .hotel-title,
[data-theme="light"] .hotel-label {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

[data-theme="light"] .grid-card {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.04);
}

/* Ensure text on image cards stays white for readability */
[data-theme="light"] .grid-card--image span,
[data-theme="light"] .grid-card--image small {
    color: #ffffff !important;
}

[data-theme="light"] .grid-card:not(.grid-card--image) span {
    color: #1e293b;
}

[data-theme="light"] .grid-card:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .quick-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quick-card:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .quick-info h4 {
    color: #1e293b;
}

[data-theme="light"] .list-item {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .list-item:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .section-title {
    color: #1e293b;
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.theme-toggle:hover {
    transform: scale(1.08) rotate(12deg);
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

/* ================================================
   GOOGLE REVIEW BANNER
   ================================================ */
.review-banner {
    margin: 4px 20px 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
    position: relative;
    overflow: hidden;
}

.review-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.review-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26, 115, 232, 0.45);
}

.review-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.review-banner-text h4 {
    color: white !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.review-banner-text p {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.78rem;
    margin: 0 !important;
}

.review-stars-badge {
    margin-left: auto;
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    flex-shrink: 0;
    font-weight: 700;
}

/* ================================================
   CHECKOUT QUICK ACTION CARD
   ================================================ */
.checkout-action {
    border-left-color: var(--primary-red) !important;
}

/* ================================================
   MANAGER NOTIFICATION ELEMENTS
   ================================================ */
.notif-permission-bar {
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notif-permission-bar p {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.notif-permission-bar button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.notif-permission-bar button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.new-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes ringPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.req-card-new {
    animation: ringPulse 0.8s ease-out 3 !important;
}

/* ================================================
   TRUST WATERMARKS
   ================================================ */
.watermarks-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.watermark-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    cursor: default;
    overflow: hidden;
}

.watermark-badge:hover {
    transform: scale(1.1);
}

.watermark-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.safe-watermark {
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    width: auto !important;
    height: 60px !important;
}

.safe-watermark img {
    height: 100%;
    width: auto;
}