/* ==========================================
   CSS Styling - Aran Cafe Menu
   Theme: Luxury Dark Gold, Nescafe & Grey
   FULLY RESPONSIVE - Mobile First Approach
   ========================================== */

:root {
    --bg-primary: #0a0908;
    --bg-secondary: #141211;
    --accent-gold: #c5a880;
    --accent-gold-bright: #e5c497;
    --accent-gold-rgb: 197, 168, 128;
    --color-nescafe: #8c6239;
    --color-nescafe-light: #b08d6c;
    --text-white: #f5ebe0;
    --text-gray: #a8a29e;
    --glass-bg: rgba(20, 18, 17, 0.7);
    --glass-bg-hover: rgba(30, 27, 25, 0.85);
    --glass-border: rgba(197, 168, 128, 0.12);
    --glass-border-hover: rgba(197, 168, 128, 0.35);
    --glass-border-focus: rgba(197, 168, 128, 0.5);
    --shadow-gold: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 168, 128, 0.08);
    --shadow-gold-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 168, 128, 0.2);
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Cinzel', serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

input, button, select, textarea {
    font-family: var(--font-fa);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: var(--font-fa);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Interactive Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* App Container */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================
   Header / Hero Section
   ========================================== */
.hero-section {
    position: relative;
    height: 380px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 50px rgba(197, 168, 128, 0.05) inset;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 9, 8, 0.3) 0%, rgba(10, 9, 8, 0.75) 50%, rgba(10, 9, 8, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 1s var(--transition-smooth);
}

.cafe-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo-text-en {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: transparent;
    -webkit-text-fill-color: transparent; /* Fix for Safari iOS gradient text compatibility */
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 50%, var(--color-nescafe-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: -5px;
    letter-spacing: 8px;
    transform: scale(1.02);
}

.logo-text-fa {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-slogan {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Status Badges */
.status-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 18, 17, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.status-badge.open {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

.status-badge.open i {
    animation: pulseGlowGreen 2s infinite;
}

.status-badge.closed {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.status-badge.hours {
    color: var(--accent-gold);
    border-color: rgba(197, 168, 128, 0.25);
}

.status-badge.reservation {
    color: var(--accent-gold-bright);
    border-color: rgba(197, 168, 128, 0.4);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.status-badge.reservation:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold-hover);
}

/* ==========================================
   Navigation and Search Section
   ========================================== */
.sticky-nav-section {
    position: sticky;
    top: 15px;
    z-index: 100;
    background: rgba(10, 9, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

/* Search Bar styling */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.1rem;
    pointer-events: none;
}

#search-input {
    width: 100%;
    background: rgba(20, 18, 17, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 45px 14px 20px;
    color: var(--text-white);
    font-family: var(--font-fa);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

#search-input:focus {
    border-color: var(--glass-border-focus);
    background: rgba(25, 23, 21, 0.85);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}

.clear-search-btn {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    transition: var(--transition-smooth);
}

.clear-search-btn:hover {
    color: var(--text-white);
}

/* Category Slider Navigation */
.categories-container-outer {
    width: 100%;
    overflow: hidden;
}

.categories-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* smooth touch scrolling on iOS */
}

.categories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-tab {
    flex-shrink: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 14px;
    color: var(--text-gray);
    font-family: var(--font-fa);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    color: var(--accent-gold-bright);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.category-tab.active {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    border-color: var(--accent-gold);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.25);
}

/* ==========================================
   Menu Cards Grid
   ========================================== */
.menu-main-content {
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

/* Menu Card Design */
.menu-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 168, 128, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-gold-hover);
}

/* Card Image Section */
.card-image-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover .card-image {
    transform: scale(1.08);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(20, 18, 17, 0.85) 0%, rgba(20, 18, 17, 0.1) 60%, transparent 100%);
    z-index: 1;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(140, 98, 57, 0.95);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    backdrop-filter: blur(5px);
}

/* Card Content Section */
.card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
}

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

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.menu-card:hover .card-title {
    color: var(--accent-gold-bright);
}

.card-price {
    font-family: var(--font-fa);
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-gold);
    white-space: nowrap;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Card Actions */
.card-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(197, 168, 128, 0.08);
    padding-top: 15px;
    margin-top: auto;
}

.item-badge-info {
    display: flex;
    gap: 12px;
}

.badge-item {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-item i {
    color: var(--accent-gold);
}

.add-bill-quick-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.add-bill-quick-btn:hover {
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

/* Empty State / Not Found style */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.5s var(--transition-smooth);
}

.empty-icon {
    font-size: 4rem;
    color: var(--color-nescafe);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-gray);
}

.hidden {
    display: none !important;
}

/* ==========================================
   Floating Action Button (FAB)
   ========================================== */
.floating-bill-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 168, 128, 0.4);
    z-index: 90;
    transition: var(--transition-smooth);
    animation: bounceIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-bill-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197, 168, 128, 0.6);
}

.bill-badge {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    font-weight: 900;
    animation: pulsePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================
   Modals & Drawers Backdrop
   ========================================== */
.modal-backdrop, .drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto; /* Fallback for very small heights */
}

/* ==========================================
   Detail Modal Content
   ========================================== */
.modal-content-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-hover);
    width: 100%;
    max-width: 500px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Prevent modal stretching beyond mobile viewport */
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(20, 18, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.modal-close-btn:hover {
    background: var(--text-white);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-header-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-header-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
}

.modal-body {
    padding: 25px;
    overflow-y: auto; /* Scrollable inside modal description if it's too long */
    -webkit-overflow-scrolling: touch;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

#modal-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.price-badge {
    padding: 8px 16px;
    background: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold-bright);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    white-space: nowrap;
}

.modal-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.item-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.spec-pill {
    flex: 1;
    min-width: 100px;
    background: rgba(20, 18, 17, 0.4);
    border: 1px solid var(--glass-border);
    padding: 10px 12px;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.72rem;
    color: var(--text-gray);
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid rgba(197, 168, 128, 0.08);
    padding-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(20, 18, 17, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 4px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold-bright);
}

.qty-number {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.add-to-bill-btn {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
    border: none;
    height: 48px;
    border-radius: 16px;
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.add-to-bill-btn:hover {
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   Order Drawer Design
   ========================================== */
.drawer-backdrop {
    justify-content: flex-end;
    padding: 0;
}

.drawer-wrapper {
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border-hover);
    height: 100%;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .drawer-wrapper {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
    padding: 25px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-header h3 i {
    color: var(--accent-gold);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

.drawer-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Drawer Individual Item */
.drawer-item {
    background: rgba(20, 18, 17, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.3s var(--transition-smooth);
}

.drawer-item-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
}

.drawer-item-details {
    flex-grow: 1;
}

.drawer-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.drawer-item-price {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 800;
}

.drawer-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.drawer-item-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.drawer-item-remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.drawer-item-qty-control {
    display: flex;
    align-items: center;
    background: rgba(20, 18, 17, 0.8);
    border-radius: 10px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.drawer-qty-number {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Drawer Footer */
.drawer-footer {
    padding: 25px;
    border-top: 1px solid rgba(197, 168, 128, 0.08);
    background: rgba(10, 9, 8, 0.9);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.drawer-total-price {
    color: var(--accent-gold-bright);
    font-size: 1.3rem;
}

.drawer-helper-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.share-waiter-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
    border: none;
    height: 52px;
    border-radius: 18px;
    font-family: var(--font-fa);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.2);
    transition: var(--transition-smooth);
}

.share-waiter-btn:hover {
    box-shadow: 0 12px 25px rgba(197, 168, 128, 0.35);
    transform: translateY(-2px);
}

/* ==========================================
   QR Code / Success Share Overlay
   ========================================== */
.qr-content-wrapper {
    max-width: 400px;
    padding: 30px 20px;
}

.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-modal-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold-bright);
}

.qr-modal-body p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(197, 168, 128, 0.2);
}

.visual-qr {
    font-size: 8rem;
    color: var(--bg-primary);
}

.order-summary-box {
    width: 100%;
    background: rgba(20, 18, 17, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    text-align: right;
    line-height: 1.8;
    -webkit-overflow-scrolling: touch;
}

.done-btn {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-hover);
    color: var(--text-white);
    height: 48px;
    border-radius: 14px;
    font-family: var(--font-fa);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.done-btn:hover {
    background: var(--text-white);
    color: var(--bg-primary);
}

/* ==========================================
   Footer Styling
   ========================================== */
.main-footer {
    margin-top: auto;
    padding: 40px 0 30px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--glass-border-hover) 50%, transparent 100%);
    margin-bottom: 30px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
    text-align: center;
}

.footer-col h4 {
    color: var(--accent-gold-bright);
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-col p a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col p a:hover {
    color: var(--accent-gold-bright);
}

.social-links .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 18, 17, 0.4);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 12px rgba(197, 168, 128, 0.3);
}

.copyright {
    font-size: 0.78rem;
    color: rgba(168, 162, 158, 0.4);
}

.copyright a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.copyright a:hover {
    color: var(--accent-gold-bright);
    text-decoration: underline;
}

/* ==========================================
   Animations CSS
   ========================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulseGlowGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

@keyframes pulsePop {
    0% {
        transform: scale(0.6);
    }
    80% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-5px);
    }
    70% {
        transform: scale(0.9) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* QR Image styling */
.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    padding: 5px;
    background: white;
}

/* ==========================================
   Waiter Invoice View
   ========================================== */
.waiter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 15px;
    position: relative;
    z-index: 10;
}

.waiter-receipt-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-hover);
    box-shadow: var(--shadow-gold-hover);
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    padding: 35px 25px;
    position: relative;
    animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.waiter-receipt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(197, 168, 128, 0.05), transparent 70%);
    pointer-events: none;
    border-radius: 32px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 25px;
}

.receipt-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--accent-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.receipt-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.receipt-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--glass-border-hover) 50%, transparent 100%);
    margin: 20px 0;
}

.receipt-body {
    margin: 25px 0;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.receipt-body::-webkit-scrollbar {
    width: 4px;
}

.receipt-body::-webkit-scrollbar-thumb {
    background: var(--glass-border-hover);
    border-radius: 10px;
}

.receipt-row.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
}

#receipt-total-price {
    color: var(--accent-gold-bright);
    font-size: 1.35rem;
}

.receipt-footer {
    text-align: center;
    margin-top: 30px;
}

.receipt-footer p {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.back-to-menu-btn {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-hover);
    color: var(--text-white);
    height: 50px;
    border-radius: 16px;
    font-family: var(--font-fa);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.back-to-menu-btn:hover {
    background: var(--text-white);
    color: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        height: 280px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
    
    .logo-text-en {
        font-size: 2.8rem;
    }

    .logo-text-fa {
        font-size: 1.5rem;
    }

    .hero-slogan {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .sticky-nav-section {
        top: 10px;
        padding: 10px;
        border-radius: 18px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .floating-bill-btn {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 20px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .modal-content-wrapper {
        border-radius: 24px;
        max-height: 88vh;
    }

    .modal-header-image {
        height: 180px;
    }

    .modal-body {
        padding: 18px;
    }

    #modal-title {
        font-size: 1.25rem;
    }

    .drawer-footer {
        padding: 18px;
    }

    .qr-content-wrapper {
        max-width: 100%;
        border-radius: 24px;
        padding: 25px 15px;
    }

    .receipt-body {
        max-height: 280px;
    }

    .waiter-receipt-card {
        padding: 25px 18px;
        border-radius: 24px;
    }
}

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

    .logo-text-en {
        font-size: 2.3rem;
        letter-spacing: 4px;
    }

    .logo-text-fa {
        font-size: 1.3rem;
    }

    .status-badges {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .drawer-wrapper {
        max-width: 100%;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-price {
        font-size: 0.9rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .add-to-bill-btn {
        width: 100%;
    }

    .floating-bill-btn .btn-text {
        display: none;
    }

    .floating-bill-btn {
        padding: 15px;
        border-radius: 50%;
        width: 58px;
        height: 58px;
        justify-content: center;
    }

    .bill-badge {
        top: -6px;
        right: -6px;
    }

    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 360px) {
    .logo-text-en {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-section {
        height: 240px;
    }

    .hero-slogan {
        font-size: 0.82rem;
    }

    .sticky-nav-section {
        top: 5px;
        padding: 8px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .receipt-body {
        max-height: 220px;
    }

    .waiter-receipt-card {
        padding: 20px 14px;
    }
}

/* ==========================================
   Creative Welcome Modal Styling
   ========================================== */
.welcome-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, #1e1b18 100%);
    border: 1px solid rgba(197, 168, 128, 0.25);
    width: 100%;
    max-width: 440px;
    border-radius: 36px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 168, 128, 0.05);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: welcomePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.welcome-modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.15);
    animation: pulseGlowGold 3s infinite alternate;
}

.welcome-icon-main {
    font-size: 2.2rem;
    color: var(--accent-gold-bright);
}

.welcome-modal-card h2 {
    font-family: var(--font-fa);
    color: var(--text-white);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-subtitle {
    font-size: 0.95rem;
    color: var(--accent-gold-bright);
    margin-bottom: 25px;
    font-weight: 500;
}

.welcome-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
    text-align: right;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(20, 18, 17, 0.4);
    border: 1px solid rgba(197, 168, 128, 0.06);
    transition: var(--transition-smooth);
}

.welcome-step:hover {
    background: rgba(20, 18, 17, 0.7);
    border-color: rgba(197, 168, 128, 0.15);
    transform: translateX(-5px);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.step-content h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.5;
}

.welcome-close-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25);
    transition: var(--transition-smooth);
}

.welcome-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(197, 168, 128, 0.4);
    filter: brightness(1.05);
}

.welcome-close-btn:active {
    transform: translateY(1px);
}

@keyframes welcomePopIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlowGold {
    0% {
        box-shadow: 0 0 15px rgba(197, 168, 128, 0.1);
        border-color: rgba(197, 168, 128, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(197, 168, 128, 0.35);
        border-color: var(--accent-gold-bright);
    }
}
