/* Core Design System & Tokens */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121217;
    --primary: #f59e0b; /* Amber Gold */
    --primary-hover: #d97706;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(18, 18, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Outfit', sans-serif;
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    padding-bottom: 90px; /* Space for the floating cart button */
    overflow-x: hidden;
}

/* Glassmorphism Class utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
}

/* App Header */
.app-header {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.table-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Container */
.app-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Section */
.welcome-section {
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.welcome-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.restaurant-name {
    color: var(--primary);
}

.welcome-section p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.client-ident-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-ident-input label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.client-ident-input input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.client-ident-input input:focus {
    border-color: var(--primary);
}

/* Category Slider */
.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 24px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.category-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.category-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

.category-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Menu Grid & Harmonious Product Cards */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.product-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 145px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
}

.product-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.6);
}

.product-img-wrapper {
    position: relative;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: auto;
    min-height: 145px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary, #f59e0b);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.product-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.product-title-row h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 3px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    font-variant-numeric: tabular-nums;
}

.product-description {
    font-size: 12.5px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.45;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-top: auto;
}

.btn-customize-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-customize-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    height: 34px;
    background: var(--primary, #f59e0b);
    border: 1px solid var(--primary, #f59e0b);
    color: #000;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    max-width: 150px;
}

.add-to-cart-btn:hover {
    background: #d97706;
    border-color: #d97706;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Stepper for Menu Items */
.item-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: var(--radius-lg);
}

.stepper-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.stepper-btn:hover {
    color: var(--primary);
}

.stepper-val {
    font-size: 14px;
    font-weight: 600;
    width: 16px;
    text-align: center;
}

/* Floating Cart Button */
.cart-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: var(--primary);
    color: #000;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    z-index: 90;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.cart-floating-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-floating-btn:active {
    transform: translateX(-50%) scale(0.98);
}

.cart-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge {
    background: #000;
    color: var(--primary);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cart-btn-total {
    font-size: 18px;
}

/* Cart Slide-over Panel */
.cart-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-panel.active {
    transform: translateY(0);
}

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

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-info span {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.qty-val {
    font-size: 14px;
    font-weight: 600;
    width: 16px;
    text-align: center;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(18, 18, 23, 0.9);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.summary-line.total {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 20px;
}

.pay-btn {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Loyalty Program & Rewards in Cart */
.cart-loyalty-section {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.loyalty-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.loyalty-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.loyalty-badge-status {
    font-size: 11px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.loyalty-box {
    animation: fadeIn 0.3s ease;
}

.loyalty-input-row {
    display: flex;
    gap: 8px;
}

.loyalty-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 0 10px;
}

.loyalty-input-wrapper i {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 8px;
}

.loyalty-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    padding: 8px 0;
    outline: none;
}

.loyalty-lookup-btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.loyalty-lookup-btn:hover {
    transform: scale(1.05);
}

.loyalty-join-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.4;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.member-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.member-tier {
    display: block;
    font-size: 11px;
    color: #f59e0b;
}

.member-balance {
    text-align: right;
}

.pts-val {
    font-size: 18px;
    font-weight: 800;
    color: #f59e0b;
    display: block;
    line-height: 1;
}

.pts-lbl {
    font-size: 10px;
    color: var(--text-muted);
}

.rewards-picker-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.rewards-chips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.reward-chip-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    transition: all 0.2s ease;
}

.reward-chip-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.reward-chip-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #34d399;
}

.reward-cost-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.loyalty-applied-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.applied-alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.btn-remove-reward {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

/* Modals Overlay Base */
.payment-modal-overlay, .success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-modal-overlay.active, .success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 40px);
    max-width: 400px;
    border-radius: var(--radius-md);
    z-index: 201;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.payment-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.payment-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-payment-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.payment-body {
    padding: 20px;
}

.total-to-pay {
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.total-to-pay span {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.stripe-mock-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.stripe-mock-input label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.card-number-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-number-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.card-number-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 10px 10px 10px 38px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
}

.card-details-row {
    display: flex;
    gap: 12px;
}

.card-detail-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-detail-field input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
}

.quick-pay-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.apple-pay-btn, .google-pay-btn {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.apple-pay-btn {
    background: #ffffff;
    color: #000000;
}

.google-pay-btn {
    background: #202124;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-payment-btn {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}

.security-disclaimer i {
    color: #10b981; /* Green */
}

/* Success / Live Order Tracking Modal */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
}

.success-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 58px;
    color: #10b981;
    margin-bottom: 12px;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    color: #fff;
}

.success-modal p {
    color: var(--text-muted, #94a3b8);
    font-size: 13.5px;
    text-align: center;
    margin-bottom: 16px;
}

#success-client-name {
    color: var(--primary, #f59e0b);
    font-weight: 700;
}

.success-details {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.success-details p {
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--text-primary);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-details p:last-child {
    margin-bottom: 0;
}

/* Accordion for Order Item Details */
.order-details-accordion {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.accordion-header-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--primary, #f59e0b);
}

.accordion-header-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 14px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.accordion-content.open {
    display: block;
    animation: fadeInAccordion 0.25s ease;
}

@keyframes fadeInAccordion {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

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

.order-detail-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-detail-mods {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}

.order-detail-seat {
    display: inline-block;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: #cbd5e1;
    margin-right: 4px;
}

.order-detail-price {
    font-weight: 700;
    color: #f59e0b;
    white-space: nowrap;
    margin-left: 10px;
}

.order-totals-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted, #94a3b8);
}

.totals-row.grand-total {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-success-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted, #94a3b8);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-success-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.08);
}

.pickup-notif-toast {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px !important;
    color: var(--primary) !important;
    line-height: 1.4;
}

/* Order Status Tracker */
.order-status-tracker {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    padding: 0 10px;
}

.order-status-tracker::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    width: 70px;
}

.step-bullet {
    width: 32px;
    height: 32px;
    background: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}

.status-step.active .step-bullet {
    background: #10b981;
    border-color: #10b981;
    color: #000;
}

.status-step span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.status-step.active span {
    color: var(--text-primary);
}

.progress-pulse {
    animation: pulseGlow 1.5s infinite ease-in-out;
}

.back-to-menu-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-menu-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Animations */
@keyframes scaleIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Client Optional Auth Modal Overlay */
.client-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.client-auth-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.client-auth-modal {
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    animation: scaleIn 0.3s ease forwards;
}

.client-auth-modal h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.client-auth-modal p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.sso-google {
    background: #ffffff;
    color: #000000;
}

.sso-google:hover {
    background: #f3f4f6;
}

.sso-apple {
    background: #111827;
    color: #ffffff;
    border: 1px solid var(--glass-border);
}

.sso-apple:hover {
    background: #1f2937;
}

.guest-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.guest-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Header Controls & i18n Selectors */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.i18n-selectors {
    display: flex;
    align-items: center;
    gap: 6px;
}

.glass-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.glass-select:hover, .glass-select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.glass-select option {
    background: #111827;
    color: #ffffff;
}

/* RTL (Right to Left) Support for Arabic */
html[dir="rtl"] {
    font-family: 'Cairo', 'Outfit', sans-serif;
}

html[dir="rtl"] .logo {
    letter-spacing: 0;
}

html[dir="rtl"] .product-title-row,
html[dir="rtl"] .client-ident-input,
html[dir="rtl"] .cart-header,
html[dir="rtl"] .payment-header,
html[dir="rtl"] .card-detail-field,
html[dir="rtl"] .welcome-section,
html[dir="rtl"] .input-group,
html[dir="rtl"] .cart-item-info {
    text-align: right;
}

html[dir="rtl"] .cart-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

html[dir="rtl"] .cart-panel.active {
    transform: translateX(0);
}

html[dir="rtl"] .header-controls {
    flex-direction: row-reverse;
}

html[dir="rtl"] .card-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .client-info {
    text-align: right;
}

/* Responsive adjustments for Mobile */
@media (max-width: 640px) {
    .header-container {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .header-controls {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .welcome-section {
        padding: 20px 16px;
    }
    .category-nav {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    .cart-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet view */
@media (min-width: 641px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Displays / 4K / TV screens */
@media (min-width: 1400px) {
    .app-main, .header-container {
        max-width: 1200px;
    }
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .product-card img {
        height: 220px;
    }
}

/* Client Account Button in Header */
.client-account-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.client-account-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

/* Account Drawer */
.account-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.account-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.account-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background: rgba(14, 14, 18, 0.96);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-drawer.active {
    transform: translateX(0);
}

html[dir="rtl"] .account-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    border-left: none;
    border-right: 1px solid var(--glass-border);
}

html[dir="rtl"] .account-drawer.active {
    transform: translateX(0);
}

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

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.account-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.account-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-meta strong {
    font-size: 16px;
    color: #fff;
}

.session-badge-guest {
    font-size: 11px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.session-badge-auth {
    font-size: 11px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.drawer-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-order-card-compact {
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
}

.active-order-card-compact:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.order-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.status-pill-cooking {
    font-size: 11px;
    background: #ef4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-pill-ready {
    font-size: 11px;
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
}

.order-compact-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.drawer-view-order-btn {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.drawer-view-order-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.drawer-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.drawer-action-btn.danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.drawer-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Floating Active Order Live Tracker Bar */
.active-order-floating-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: 90%;
    max-width: 500px;
    background: rgba(14, 14, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-order-floating-bar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.tracker-live-pulse {
    width: 38px;
    height: 38px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: pulseGlow 1.8s infinite;
}

.tracker-live-pulse.ready {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.tracker-bar-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tracker-bar-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.tracker-bar-subtitle {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.tracker-bar-open-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.close-success-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-success-btn:hover {
    color: #fff;
}

html[dir="rtl"] .close-success-btn {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .active-order-floating-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .tracker-bar-text {
    text-align: right;
}

/* Payment Method Tabs in Checkout Modal */
.payment-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.pay-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pay-tab-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary);
    color: #ffffff;
}

.pay-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Cash Payment Info Card */
.cash-payment-info {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.cash-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

.cash-payment-info h4 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 6px;
}

.cash-payment-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Cash Pending Tag */
.cash-pending-tag {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid #f59e0b;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cash-badge-kds {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulseGlow 2s infinite;
}

.btn-cash-collect {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-cash-collect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   NAGA STREET FOOD DESIGN SYSTEM & KDS MENU CREATOR / SCANNER
   ========================================================================== */

/* Menu Management Sub-Navigation Tabs */
.menu-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.menu-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-tab-btn.active {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Naga Street Food Badges */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-spicy {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.badge-veggie {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.badge-signature {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.badge-wok {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    color: #c4b5fd;
}

.badge-bestseller {
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid #ff5722;
    color: #ff8a65;
}

/* Manual Creator Split Grid */
.menu-creator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .menu-creator-grid {
        grid-template-columns: 1fr;
    }
}

.form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.form-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin-bottom: 16px;
}

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

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Naga Street Food Preview Card */
.naga-preview-wrapper {
    position: sticky;
    top: 20px;
}

.naga-dish-card {
    background: linear-gradient(145deg, rgba(24, 24, 30, 0.95), rgba(12, 12, 16, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.naga-dish-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.naga-dish-image-box {
    position: relative;
    width: 100%;
    height: 190px;
    background: #000;
    overflow: hidden;
}

.naga-dish-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.naga-dish-card:hover .naga-dish-image-box img {
    transform: scale(1.05);
}

.naga-dish-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.naga-dish-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.naga-dish-body {
    padding: 18px;
}

.naga-dish-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.naga-dish-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
}

.naga-dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Preset photo chips */
.photo-preset-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-top: 6px;
}

.photo-chip {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.photo-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-chip:hover, .photo-chip.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Photo Menu Scanner Area */
.scanner-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .scanner-container {
        grid-template-columns: 1fr;
    }
}

.dropzone-box {
    border: 2px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.03);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropzone-box:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--primary);
}

.dropzone-box i.scanner-icon {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.scan-laser-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff5722, #f59e0b, #ff5722, transparent);
    box-shadow: 0 0 15px 3px rgba(255, 87, 34, 0.8);
    animation: scanLaser 2s infinite ease-in-out;
    display: none;
}

@keyframes scanLaser {
    0% { top: 0%; opacity: 0.8; }
    50% { top: 96%; opacity: 1; }
    100% { top: 0%; opacity: 0.8; }
}

.scanned-preview-img-box {
    width: 100%;
    max-height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid var(--glass-border);
    position: relative;
    background: #000;
}

.scanned-preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detected-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13px;
}

.detected-items-table th, .detected-items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

html[dir="rtl"] .detected-items-table th, html[dir="rtl"] .detected-items-table td {
    text-align: right;
}

.detected-items-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn-primary-glow {
    background: linear-gradient(135deg, #f59e0b, #ff5722);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary-dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   DESIGN SYSTEM EXTRACTOR & URL SCRAPER STYLES
   ========================================== */
.design-system-preview-card {
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.design-system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

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

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--primary);
}

.brand-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.brand-tagline-text {
    font-size: 12px;
    color: var(--text-muted);
}

.theme-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.theme-swatch-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}

.swatch-color-pill {
    width: 100%;
    height: 32px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.swatch-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.swatch-hex {
    font-size: 12px;
    color: #fff;
    font-family: monospace;
    font-weight: 600;
}

.url-input-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.url-input-field {
    flex: 1;
    min-width: 260px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.2s ease;
}

.url-input-field:focus {
    border-color: var(--primary);
}

.url-preset-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.url-chip {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.url-chip:hover, .url-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

/* ========================================================
   FLOOR PLAN 2D & INTERACTIVE TABLE MANAGEMENT
   ======================================================== */

.floorplan-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 18px;
    background: rgba(18, 18, 23, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.zone-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.zone-chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zone-chip:hover, .zone-chip.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.floorplan-viewport {
    position: relative;
    width: 100%;
    height: 640px;
    background: #0d0f17;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    user-select: none;
}

.floorplan-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 2500px;
    height: 1800px;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
    background-image: 
        radial-gradient(circle at center, rgba(245, 158, 11, 0.2) 1.5px, transparent 1.5px),
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px, 100px 100px, 100px 100px;
}

.floorplan-zoom-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 3px 8px;
}

.floorplan-zoom-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.floorplan-zoom-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.table-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: grab;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    font-family: inherit;
    text-align: center;
    user-select: none;
}

.table-node:active {
    cursor: grabbing;
}

.table-node.is-dragging {
    cursor: grabbing !important;
    z-index: 1000 !important;
    opacity: 0.9;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.5) !important;
    border-color: #f59e0b !important;
    transform: scale(1.06);
}

.table-node.shape-square {
    border-radius: 14px;
}

.table-node.shape-round {
    border-radius: 50%;
}

.table-node.shape-rect {
    border-radius: 12px;
}

.table-node.shape-high_top {
    border-radius: 20px;
    border-style: dashed;
}

.table-node.shape-bar_seat {
    border-radius: 50%;
    border-width: 2px;
}

/* Service Status Colors */
.status-libre {
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid #10b981;
    color: #10b981;
}

.status-reservee {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    color: #60a5fa;
}

.status-commande_prise, .status-occupée, .status-occupee {
    background: rgba(245, 158, 11, 0.18);
    border: 2px solid #f59e0b;
    color: #fbbf24;
}

.status-en_preparation {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #f87171;
    animation: cookingPulse 2s infinite ease-in-out;
}

@keyframes cookingPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.7); }
}

.status-servie {
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid #06b6d4;
    color: #22d3ee;
}

.status-addition_demandee {
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid #8b5cf6;
    color: #a78bfa;
    animation: billPulse 1.5s infinite;
}

@keyframes billPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Temporal Alert > 20 min */
.wait-alert-pulse {
    border-color: #ef4444 !important;
    animation: dangerBlink 1s infinite !important;
}

@keyframes dangerBlink {
    0%, 100% { box-shadow: 0 0 25px #ef4444; }
    50% { box-shadow: 0 0 5px #ef4444; }
}

.table-node-number {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.table-node-capacity {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

.table-node-server {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    margin-top: 3px;
    white-space: nowrap;
}

.table-node-wait-timer {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
    margin-top: 2px;
}

/* Table Management Modal */
.table-mgmt-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.table-mgmt-modal {
    width: 100%;
    max-width: 580px;
    background: #121218;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* ========================================================
   KDS ADVANCED : STATIONS, SUITES, SEATS & ALLERGIES
   ======================================================== */

.kds-station-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    background: rgba(18, 18, 23, 0.7);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.station-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.station-btn:hover, .station-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.seat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

/* Course Status Badges */
.course-badge-fire {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.course-badge-hold {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid #6b7280;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.course-badge-ready {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-fire-suite {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-fire-suite:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

/* Allergy Warning & High Priority */
.allergy-alert-banner {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    animation: allergyPulse 2s infinite;
}

@keyframes allergyPulse {
    0%, 100% { border-color: #ef4444; }
    50% { border-color: #f87171; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
}

.allergy-ack-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.allergy-ack-btn.acknowledged {
    background: #10b981;
    color: #000;
}

/* Modifier Badges */
.modifier-list {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mod-badge-sans {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    text-decoration: line-through;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.mod-badge-extra {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.mod-badge-sub {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #22d3ee;
    font-style: italic;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.mod-badge-cook {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ========================================================
   INVENTORY BOM & STOCK MANAGEMENT
   ======================================================== */

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.stock-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.stock-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stock-bar-fill.high { background: #10b981; }
.stock-bar-fill.medium { background: #f59e0b; }
.stock-bar-fill.low { background: #ef4444; }

/* ========================================================
   FEATURE TOGGLES & SUBSCRIPTION TIERS
   ======================================================== */

.tier-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.tier-card {
    background: rgba(18, 18, 24, 0.7);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tier-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.03);
}

.tier-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}

/* Switch Toggle UI */
.switch-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 26px;
    border: 1px solid var(--glass-border);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--primary);
}

input:checked + .switch-slider:before {
    transform: translateX(22px);
    background-color: #000;
}

/* Vertical Presets Cards */
.vertical-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vertical-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.vertical-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.05);
}

.vertical-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================================
   DISH CUSTOMIZATION MODAL (INGREDIENTS, EXTRAS, ALLERGIES)
   =================================================== */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 88vh;
    background: rgba(18, 18, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.15);
    z-index: 211;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow: hidden;
}

.custom-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.custom-dish-summary h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.custom-dish-base-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #f59e0b);
}

.close-custom-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.close-custom-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.custom-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
}

.custom-section-header {
    margin-bottom: 12px;
}

.custom-section-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-section-header h4 i {
    color: var(--primary, #f59e0b);
}

.custom-section-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Ingredients list (Remove toggle) */
.ingredients-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ingredient-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ingredient-toggle-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ingredient-toggle-item.removed {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.ingredient-name {
    font-size: 13px;
    font-weight: 500;
    color: #f1f5f9;
}

.ingredient-toggle-item.removed .ingredient-name {
    color: #fca5a5;
    text-decoration: line-through;
}

.ingredient-status-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ingredient-status-tag.included {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ingredient-status-tag.removed-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Extras grid */
.extras-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.extra-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.extra-option-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.extra-option-item.selected {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.extra-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.extra-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.2s ease;
}

.extra-option-item.selected .extra-checkbox {
    background: var(--primary, #f59e0b);
    border-color: var(--primary, #f59e0b);
    color: #000;
}

.extra-label {
    font-size: 13px;
    font-weight: 500;
    color: #f1f5f9;
}

.extra-price-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #f59e0b);
    background: rgba(245, 158, 11, 0.12);
    padding: 3px 8px;
    border-radius: 12px;
}

/* Meat Cooking Options */
.cooking-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cooking-btn {
    padding: 9px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cooking-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cooking-btn.active {
    background: var(--primary, #f59e0b);
    color: #000;
    border-color: var(--primary, #f59e0b);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Allergies chips */
.allergies-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.allergy-chip {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.allergy-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

.allergy-chip.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    font-weight: 700;
}

/* Seat Selector */
.seat-selector-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seat-pill {
    flex: 1;
    min-width: 65px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.seat-pill.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #93c5fd;
    font-weight: 700;
}

/* Special Notes Input */
.custom-notes-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #f1f5f9;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.custom-notes-input:focus {
    border-color: var(--primary, #f59e0b);
}

/* Custom modal footer */
.custom-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 24, 0.98);
}

.custom-total-preview {
    font-size: 13px;
    color: #94a3b8;
}

.custom-total-preview strong {
    font-size: 18px;
    color: #fff;
    margin-left: 4px;
}

.confirm-custom-btn {
    background: var(--primary, #f59e0b);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.confirm-custom-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* Product Card Customization Trigger */
.btn-customize-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-customize-item:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary, #f59e0b);
    color: var(--primary, #f59e0b);
}

/* Enriched Cart Item Custom Badges */
.cart-item-mods {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.cart-mod-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cart-mod-badge.sans {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cart-mod-badge.extra {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cart-mod-badge.cook {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.cart-mod-badge.allergy {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.cart-mod-badge.note {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cart-seat-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.cart-edit-btn {
    background: none;
    border: none;
    color: var(--primary, #f59e0b);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    margin-top: 4px;
    text-decoration: underline;
    opacity: 0.9;
}

.cart-edit-btn:hover {
    opacity: 1;
}

/* ========================================================
   TIP / POURBOIRE SELECTION STYLING
   ======================================================== */

.tip-selection-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 16px);
    padding: 14px 16px;
    margin: 14px 0;
}

.tip-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #f3f4f6);
    margin-bottom: 10px;
}

.tip-amount-display {
    color: #f43f5e;
    font-weight: 800;
    font-size: 14px;
}

.tip-options-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.tip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #f3f4f6);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tip-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.tip-btn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

.custom-tip-input-wrapper {
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.custom-tip-input-wrapper .currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-muted, #9ca3af);
    font-weight: 700;
}

.custom-tip-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px 8px 28px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.custom-tip-input-wrapper input:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2);
}

/* ========================================================
   CUSTOMER REVIEW & RATING MODAL STYLING
   ======================================================== */

.order-review-banner {
    margin: 18px 0 10px 0;
    padding: 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md, 16px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.review-banner-text strong {
    font-size: 13px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-banner-text p {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    margin-top: 3px;
}

.btn-open-review {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-open-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 440px;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg, 24px);
    z-index: 10001;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.review-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-review-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted, #9ca3af);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-subtitle {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 16px;
}

.star-rating-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.15);
    margin: 12px 0 6px 0;
}

.star-rating-selector .star-item {
    cursor: pointer;
    transition: all 0.15s ease;
}

.star-rating-selector .star-item:hover,
.star-rating-selector .star-item.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.rating-label-text {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 16px;
}

.review-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.review-tag-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-tag-chip:hover {
    background: rgba(255, 255, 255, 0.12);
}

.review-tag-chip.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fbbf24;
}

.review-comment-wrapper {
    margin-bottom: 18px;
    text-align: left;
}

.review-comment-wrapper label {
    display: block;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 6px;
}

.review-comment-wrapper textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm, 8px);
    color: #fff;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    resize: none;
}

.review-comment-wrapper textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.btn-submit-review {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: var(--radius-md, 16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-submit-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* ========================================================
   1. VISITE GUIDÉE & WALKTHROUGH TOUR ENGINE
   ======================================================== */
.glass-btn-tour {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm, 8px);
    color: #38bdf8;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.glass-btn-tour:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.72) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.walkthrough-highlight-box {
    position: absolute;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.58), 0 0 25px rgba(56, 189, 248, 0.85), inset 0 0 15px rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    animation: walkthroughGlowPulse 2s infinite alternate ease-in-out;
}

@keyframes walkthroughGlowPulse {
    0% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.58), 0 0 15px rgba(56, 189, 248, 0.6);
        border-color: #38bdf8;
    }
    100% {
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.58), 0 0 32px rgba(56, 189, 248, 0.95), inset 0 0 12px rgba(56, 189, 248, 0.35);
        border-color: #7dd3fc;
    }
}

.walkthrough-card {
    position: relative;
    max-width: 450px;
    width: 100%;
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.25);
    z-index: 10001;
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: tourCardSlideIn 0.3s ease;
}

@keyframes tourCardSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.walkthrough-step-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.walkthrough-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #9ca3af);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.walkthrough-close-btn:hover {
    color: #fff;
}

.walkthrough-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.walkthrough-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.walkthrough-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.walkthrough-prev-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.walkthrough-prev-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.walkthrough-dots {
    display: flex;
    gap: 6px;
}

.walkthrough-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.walkthrough-dot.active {
    background: #38bdf8;
    width: 16px;
    border-radius: 4px;
}

.walkthrough-next-btn {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
}

/* ========================================================
   2. DIVISION D'ADDITION (BILL SPLITTING)
   ======================================================== */
.bill-split-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm, 8px);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.split-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.split-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.split-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.split-options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.split-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #cbd5e1;
    padding: 7px 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.split-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.split-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.custom-split-input-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.custom-split-input-wrapper label {
    font-size: 12px;
    color: #9ca3af;
}

.custom-split-input-wrapper input {
    width: 70px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    text-align: center;
    font-weight: 700;
    outline: none;
}

/* ========================================================
   3. TITRES-RESTAURANT (SWILE, EDENRED, CONECS...)
   ======================================================== */
.ticket-resto-payment-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 8px);
    padding: 14px;
    margin-bottom: 16px;
}

.ticket-resto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.resto-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
}

.resto-cap-alert {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ticket-resto-breakdown {
    text-align: left;
}

.ticket-resto-breakdown .input-group label {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
    display: block;
}

/* ========================================================
   4. HUB D'E-RÉPUTATION & BOOSTER D'AVIS GOOGLE/TRIPADVISOR
   ======================================================== */
.review-sync-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.review-sync-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.review-sync-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 40px);
    max-width: 440px;
    border-radius: var(--radius-md, 16px);
    z-index: 251;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 35px rgba(245, 158, 11, 0.2);
}

.review-sync-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.review-sync-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-sync-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
}

.review-sync-body {
    padding: 20px;
    text-align: center;
}

.sync-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.external-review-platforms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-review-btn {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.google-review-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.tripadvisor-btn {
    background: #00af87;
    color: #ffffff;
}

.tripadvisor-btn:hover {
    background: #009674;
    transform: translateY(-1px);
}

.trustpilot-btn {
    background: #00b67a;
    color: #ffffff;
}

.trustpilot-btn:hover {
    background: #009e6a;
    transform: translateY(-1px);
}

/* ========================================================
   5. HUB D'INTÉGRATION LOGICIELS DE CAISSE (POS / PMS HUB)
   ======================================================== */
.pos-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pos-search-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pos-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.pos-search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
}

.pos-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px 10px 36px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.pos-search-input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.pos-category-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pos-cat-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-cat-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pos-cat-chip.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
    font-weight: 700;
}

.pos-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pos-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pos-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.pos-card.connected {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), rgba(255, 255, 255, 0.02));
}

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

.pos-card-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.pos-card.connected .pos-icon-box {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.pos-title-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pos-title-text span {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    display: block;
    margin-top: 2px;
}

.pos-status-pill {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-status-pill.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pos-status-pill.disconnected {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-card-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 14px;
    flex: 1;
}

.pos-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}

.pos-btn-connect {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-btn-connect:hover {
    background: #7dd3fc;
}

.pos-btn-configure {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-btn-configure:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal de Configuration POS */
.pos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pos-modal-overlay.active {
    display: flex;
}

.pos-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pos-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-form-group {
    margin-bottom: 14px;
}

.pos-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.pos-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.pos-form-group input:focus {
    border-color: #38bdf8;
}

.pos-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #e2e8f0;
    cursor: pointer;
}

.pos-checkbox-label input {
    accent-color: #38bdf8;
    width: 16px;
    height: 16px;
}
