/* Biryani Club - Beautiful Orange & Colorful Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* Root Variables - Orange & Colorful Theme */
:root {
    --primary-orange: #ff6b35;
    --secondary-orange: #ff8c42;
    --tertiary-orange: #ffa726;
    --accent-red: #ff5722;
    --accent-purple: #9c27b0;
    --accent-teal: #00bcd4;
    --accent-green: #4caf50;
    --accent-pink: #e91e63;
    --accent-yellow: #ffc107;
    --warm-cream: #fff8e1;
    --soft-peach: #ffecb3;
    --light-orange: #ffe0b2;
    --dark-orange: #e65100;
    --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #ff8c42 25%, #ffa726 50%, #ffcc02 75%, #ff5722 100%);
    --gradient-tropical: linear-gradient(135deg, #ff6b35 0%, #e91e63 50%, #9c27b0 100%);
    --gradient-ocean: linear-gradient(135deg, #00bcd4 0%, #4caf50 50%, #8bc34a 100%);
    --gradient-warm: linear-gradient(135deg, #ffa726 0%, #ff8c42 50%, #ff6b35 100%);
    --gradient-rainbow: linear-gradient(135deg, #ff6b35 0%, #e91e63 20%, #9c27b0 40%, #00bcd4 60%, #4caf50 80%, #ffc107 100%);
    --glass-orange: rgba(255, 107, 53, 0.15);
    --glass-warm: rgba(255, 248, 225, 0.85);
    --shadow-warm: 0 8px 32px rgba(255, 107, 53, 0.25);
    --shadow-colorful: 0 8px 32px rgba(255, 107, 53, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.4);
    --border-radius-lg: 25px;
    --border-radius-xl: 35px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --bs-gray-300: #dee2e6; /* Bootstrap gray for neutral colors */
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-800: #343a40;
    --orange-primary: #ff6b35; /* Alias for primary orange */
    --orange-secondary: #ff8c42; /* Alias for secondary orange */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-sunset);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 0.8; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

/* Glass Morphism Effect */
.glass-effect {
    background: var(--glass-warm);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-warm);
}

/* Enhanced Navigation */
.navbar {
    background: var(--glass-orange) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 2rem;
    background: var(--gradient-tropical);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition-bounce);
}

.navbar-brand:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.6));
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: var(--transition-smooth);
    position: relative;
    margin: 0 0.5rem;
    border-radius: 15px;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-warm);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 10px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white !important;
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-rainbow);
    padding: 5rem 0;
    margin: -2rem -15px 3rem -15px;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-section h1 {
    font-family: 'Dancing Script', cursive;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 3px 3px 6px rgba(0,0,0,0.3); }
    100% { text-shadow: 3px 3px 6px rgba(0,0,0,0.3), 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--glass-warm);
    backdrop-filter: blur(15px) saturate(150%);
    box-shadow: var(--shadow-colorful);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-colorful);
}

.card:hover::before {
    left: 100%;
}

/* Floating Menu Items */
.menu-item-card {
    animation: floatItem 6s ease-in-out infinite;
    animation-delay: calc(var(--float-delay, 0) * 0.5s);
}

.menu-item-card:nth-child(odd) {
    --float-delay: 1;
}

.menu-item-card:nth-child(even) {
    --float-delay: 2;
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

/* Price Tags */
.price-tag {
    background: var(--gradient-tropical);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-warm);
    position: relative;
    overflow: hidden;
    animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    0% { box-shadow: var(--shadow-warm); }
    100% { box-shadow: var(--shadow-warm), var(--shadow-glow); }
}

.price-tag::before {
    content: '₹';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Filters */
.category-filter {
    background: var(--glass-warm);
    border: 2px solid var(--primary-orange);
    color: var(--dark-orange);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    margin: 0.3rem;
    display: inline-block;
}

.category-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    transition: var(--transition-smooth);
    z-index: -1;
}

.category-filter:hover,
.category-filter.active {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.category-filter:hover::before,
.category-filter.active::before {
    left: 0;
}

/* Feature Cards */
.feature-card {
    transition: var(--transition-bounce);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: var(--shadow-glow);
}

.feature-card .fs-1 {
    transition: var(--transition-bounce);
}

.feature-card:hover .fs-1 {
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 0 15px currentColor);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: floatCart 4s ease-in-out infinite;
}

@keyframes floatCart {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

.floating-cart .btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-tropical);
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.floating-cart .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition-smooth);
    transform: translate(-50%, -50%);
}

.floating-cart .btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: var(--shadow-glow), 0 0 30px rgba(255, 107, 53, 0.6);
}

.floating-cart .btn:hover::before {
    width: 100%;
    height: 100%;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-ocean);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: var(--shadow-warm);
    animation: bounceIn 0.6s ease-out, pulse 2s ease-in-out infinite 2s;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

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

/* Buttons */
.btn {
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-warm);
}

.btn-success {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: var(--shadow-colorful);
}

.btn-info {
    background: var(--gradient-tropical);
    color: white;
    box-shadow: var(--shadow-colorful);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 15px;
    border: 2px solid var(--light-orange);
    transition: var(--transition-smooth);
    background: var(--glass-warm);
    backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 53, 0.25);
    background: white;
}

/* Quantity Controls */
.quantity-controls {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-warm);
}

.quantity-controls .btn {
    border-radius: 0;
    background: var(--gradient-warm);
    border: none;
    color: white;
}

.quantity-controls .form-control {
    border-radius: 0;
    border: none;
    background: white;
    font-weight: 600;
    color: var(--dark-orange);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(139, 195, 74, 0.9));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(255, 87, 34, 0.9));
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.9), rgba(3, 169, 244, 0.9));
    color: white;
}

/* Tables */
.table {
    background: var(--glass-warm);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-colorful);
}

.table thead th {
    background: var(--gradient-warm);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition-smooth);
}

.table tbody tr:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.01);
}

/* Footer */
footer {
    background: var(--gradient-sunset);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Special Effects */
.text-gradient {
    background: var(--gradient-tropical);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-colorful {
    box-shadow: var(--shadow-colorful);
}

.border-gradient {
    border: 3px solid;
    border-image: var(--gradient-warm) 1;
    border-radius: var(--border-radius-lg);
}

/* Loading Animation */
.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Mobile Design with Modern UI/UX */
@media (max-width: 768px) {
    /* Mobile-first container improvements */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col, .col-md-6, .col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Modern hero section with improved mobile layout */
    .hero-section {
        padding: 3rem 1rem 2rem;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0 0 30px 30px;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 25%, #ffa726 50%, #e91e63 75%, #9c27b0 100%);
        position: relative;
        overflow: hidden;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: heroShimmer 8s ease-in-out infinite;
    }

    @keyframes heroShimmer {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }

    .hero-content {
        width: 100%;
        z-index: 2;
    }

    .hero-title {
        font-size: 2.5rem !important;
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
    }

    .hero-badge .badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    /* Enhanced navbar for mobile */
    .navbar {
        padding: 0.75rem 1rem;
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(255, 107, 53, 0.15);
    }

    .navbar-brand {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Modern card design with enhanced mobile UX */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 20px;
        border: none;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 225, 0.9) 100%);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(255, 107, 53, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden;
        position: relative;
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff6b35 0%, #e91e63 50%, #9c27b0 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 
            0 20px 40px rgba(255, 107, 53, 0.2),
            0 8px 16px rgba(0, 0, 0, 0.1);
    }

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

    .card-body {
        padding: 1.5rem;
        position: relative;
    }

    /* Enhanced mobile item header */
    .item-header {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }

    .item-emoji {
        font-size: 3.5rem;
        filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
        transition: all 0.3s ease;
        position: relative;
    }

    .item-emoji::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 10px;
        background: radial-gradient(ellipse, rgba(0,0,0,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .price-section {
        text-align: right;
        flex-shrink: 0;
    }

    .price-tag {
        font-size: 1.4rem;
        font-weight: 800;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        background: linear-gradient(135deg, #ff6b35 0%, #e91e63 100%);
        color: white;
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
        display: inline-block;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .price-tag::before {
        content: '₹';
        position: absolute;
        top: -3px;
        right: -3px;
        width: 18px;
        height: 18px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        font-size: 0.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .price-tag::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: priceShine 3s infinite;
    }

    @keyframes priceShine {
        0% { left: -100%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }

    /* Enhanced typography */
    .card-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: #2c3e50;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #64748b;
        margin-bottom: 1.2rem;
    }

    /* Modern meta information design */
    .item-meta {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 248, 225, 0.8) 100%);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 167, 38, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .category-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: linear-gradient(135deg, #ffa726 0%, #ff8c42 100%);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .popularity-rating {
        font-size: 0.9rem;
        color: #e91e63;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .popularity-rating i {
        animation: heartbeat 2s ease-in-out infinite;
    }

    @keyframes heartbeat {
        0%, 100% { transform: scale(1); }
        25% { transform: scale(1.1); }
        75% { transform: scale(0.95); }
    }

    /* Enhanced features layout */
    .item-features {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
        border-radius: 15px;
        padding: 1rem;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(0, 123, 255, 0.1);
    }

    .item-features .row {
        margin: -0.3rem;
    }

    .item-features .col-4 {
        padding: 0.3rem;
    }

    .feature-item {
        padding: 0.8rem 0.5rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.6);
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
    }

    .feature-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
        transition: left 0.5s ease;
    }

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .feature-item:hover::before {
        left: 100%;
    }

    .feature-item i {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        display: block;
        transition: transform 0.3s ease;
    }

    .feature-item:hover i {
        transform: scale(1.2);
    }

    .feature-item small {
        font-size: 0.75rem;
        font-weight: 600;
        color: #475569;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Modern quantity selector */
    .quantity-selector {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
        border-radius: 15px;
        padding: 1rem;
        margin-bottom: 1.2rem;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 167, 38, 0.15);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .quantity-selector:hover {
        border-color: rgba(255, 167, 38, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .quantity-selector .form-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .input-group {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
    }

    .qty-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
        border: none;
        color: white;
        font-weight: 700;
        font-size: 1.1rem;
        box-shadow: 
            0 4px 12px rgba(255, 107, 53, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .qty-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
    }

    .qty-btn:hover, .qty-btn:focus {
        transform: scale(1.1);
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .qty-btn:hover::before {
        width: 100%;
        height: 100%;
    }

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

    .qty-input {
        border: none;
        background: white;
        font-weight: 800;
        font-size: 1.1rem;
        color: #ff6b35;
        text-align: center;
        height: 44px;
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.05),
            0 0 0 2px rgba(255, 167, 38, 0.1);
    }

    .qty-input:focus {
        outline: none;
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.05),
            0 0 0 2px rgba(255, 107, 53, 0.3);
    }

    /* Modern button design */
    .add-cart-btn {
        background: linear-gradient(135deg, #ff6b35 0%, #e91e63 100%);
        border: none;
        border-radius: 20px;
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: white;
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        width: 100%;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .add-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
    }

    .add-cart-btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 
            0 15px 35px rgba(255, 107, 53, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .add-cart-btn:hover::before {
        left: 100%;
    }

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

    /* Enhanced stats */
    .stat-item {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 248, 225, 0.3) 100%);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 20px;
        padding: 0.8rem 1.2rem;
        margin: 0.3rem;
        font-size: 0.85rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: inline-block;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
        animation: statShimmer 2s ease-in-out infinite;
    }

    @keyframes statShimmer {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }

    .stat-item:hover {
        background: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    /* Enhanced floating cart */
    .floating-cart {
        bottom: 25px;
        right: 20px;
        z-index: 1050;
        animation: floatBounce 3s ease-in-out infinite;
    }

    @keyframes floatBounce {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }

    .floating-cart .btn {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff6b35 0%, #e91e63 100%);
        border: 3px solid rgba(255, 255, 255, 0.3);
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.4),
            0 0 0 0 rgba(255, 107, 53, 0.4);
        animation: cartPulse 2s infinite;
        transition: all 0.3s ease;
    }

    @keyframes cartPulse {
        0% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 0 0 0 rgba(255, 107, 53, 0.4); }
        70% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 0 0 20px rgba(255, 107, 53, 0); }
        100% { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 0 0 0 rgba(255, 107, 53, 0); }
    }

    .floating-cart .btn:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 
            0 12px 35px rgba(255, 107, 53, 0.6),
            0 0 0 10px rgba(255, 107, 53, 0.2);
    }

    /* Enhanced floating elements */
    .floating-emoji {
        font-size: 1.8rem;
        opacity: 0.6;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    /* Prevent horizontal scroll and improve touch targets */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Improve touch targets for mobile */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Enhanced install banner */
    #installBanner .alert {
        border-radius: 20px;
        margin-bottom: 1.5rem;
        border: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

    #installBanner .row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #installAppBtn {
        border-radius: 15px;
        padding: 0.8rem 2rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    #installAppBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    /* Accessibility improvements */
    .card:focus-within {
        outline: 2px solid #ff6b35;
        outline-offset: 2px;
    }

    /* Loading states */
    .btn.loading {
        position: relative;
        color: transparent;
    }

    .btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

@media (max-width: 576px) {
    /* Extra small mobile optimizations with modern design */
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }

    .col, .col-md-6, .col-lg-4 {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
        margin-bottom: 1rem;
    }

    /* Compact hero for small screens */
    .hero-section {
        padding: 2rem 0.75rem 1.5rem;
        margin: 0 -0.75rem 1.5rem -0.75rem;
        min-height: 45vh;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-badge .badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Compact cards for small screens */
    .card {
        margin-bottom: 1.25rem;
        border-radius: 18px;
    }

    .card-body {
        padding: 1.25rem;
    }

    .item-header {
        margin-bottom: 1.2rem;
        gap: 0.8rem;
    }

    .item-emoji {
        font-size: 3rem;
    }

    .price-tag {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
        border-radius: 22px;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }

    .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Compact meta information */
    .item-meta {
        padding: 0.875rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 18px;
    }

    .popularity-rating {
        font-size: 0.85rem;
    }

    /* Compact features */
    .item-features {
        padding: 0.875rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }

    .feature-item {
        padding: 0.6rem 0.4rem;
        border-radius: 10px;
    }

    .feature-item i {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .feature-item small {
        font-size: 0.7rem;
    }

    /* Compact quantity selector */
    .quantity-selector {
        padding: 0.875rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .quantity-selector .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .qty-input {
        font-size: 1rem;
        height: 40px;
    }

    /* Compact button */
    .add-cart-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 18px;
        letter-spacing: 0.5px;
    }

    /* Compact floating cart */
    .floating-cart {
        bottom: 20px;
        right: 15px;
    }

    .floating-cart .btn {
        width: 55px;
        height: 55px;
    }

    /* Compact navbar */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* Compact stats */
    .stat-item {
        padding: 0.6rem 1rem;
        margin: 0.25rem;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    /* Compact category filters */
    .category-filter {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 22px;
        margin: 0.25rem;
    }

    /* Compact badges */
    .popular-badge .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    /* Compact install banner */
    #installBanner .alert {
        padding: 1.25rem;
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }

    #installAppBtn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        border-radius: 15px;
    }

    /* Better input groups */
    .input-group {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
    }

    .input-group .btn:first-child {
        border-radius: 12px 0 0 12px;
    }

    .input-group .btn:last-child {
        border-radius: 0 12px 12px 0;
    }

    .input-group .form-control {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Enhanced touch targets */
    .btn, .nav-link {
        min-height: 48px;
    }

    /* Improved scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Better spacing for readability */
    .hero-actions {
        gap: 1rem !important;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 15px;
        min-width: 140px;
    }

    /* Enhanced visual hierarchy */
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-badge .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    /* Better loading states */
    .btn.loading::after {
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
    }

    /* Improved animations for touch devices */
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* Better contrast for small screens */
    .card-text {
        color: #4a5568;
    }

    .feature-item small {
        color: #2d3748;
    }

    /* Prevent zoom on input focus (iOS) */
    input, textarea, select {
        font-size: 16px;
    }

    /* Better spacing for form elements */
    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom utility classes */
.bg-glass {
    background: var(--glass-warm);
    backdrop-filter: blur(15px);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hover-float:hover {
    transform: translateY(-5px);
    transition: var(--transition-smooth);
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

/* Enhanced Homepage Styles */
.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatingEmoji 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingEmoji {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 1; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 0.8; }
}

.hero-badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 3px 3px 6px rgba(0,0,0,0.3); }
    100% { text-shadow: 3px 3px 6px rgba(0,0,0,0.3), 0 0 30px rgba(255, 107, 53, 0.5); }
}

.hero-btn {
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.hero-quick-stats {
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    margin: 0.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-item i {
    margin-right: 0.5rem;
}

.status-indicator {
    position: relative;
    display: inline-block;
}

.pulse-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulseStatus 2s ease-in-out infinite;
}

@keyframes pulseStatus {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.delivery-info {
    animation: deliveryFloat 6s ease-in-out infinite;
}

@keyframes deliveryFloat {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(5px); }
}

.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-badge {
    margin-bottom: 1rem;
}

.popular-badge .badge {
    animation: badgePulse 2s ease-in-out infinite;
}

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

.item-emoji {
    transition: var(--transition-bounce);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.item-emoji:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
}

.emoji-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    filter: blur(5px);
}

.savings-badge {
    animation: savingsPulse 3s ease-in-out infinite;
}

@keyframes savingsPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.category-badge {
    animation: categoryShine 4s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes categoryShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.popularity-rating {
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
}

.feature-item {
    padding: 0.5rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.quantity-selector {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.menu-item-card:hover .quantity-selector {
    opacity: 1;
    transform: translateY(0);
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-input {
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.9);
}

.add-cart-btn {
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.add-cart-btn:hover {
    transform: translateY(-2px);
}

.add-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition-smooth);
    transform: translate(-50%, -50%);
}

.add-cart-btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-gradient-warm {
    background: var(--gradient-warm);
    border: none;
    color: white;
    box-shadow: var(--shadow-warm);
    transition: var(--transition-bounce);
}

.btn-gradient-warm:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .floating-emoji {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stat-item {
        margin: 0.1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .floating-emoji {
        display: none;
    }

    .hero-quick-stats .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-emoji {
        font-size: 2.5rem;
    }

    .price-tag {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Checkout Page Enhancements */
.checkout-submit-btn {
    position: relative;
    overflow: hidden;
    min-height: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--transition-bounce);
}

.checkout-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 15px 30px rgba(255, 107, 53, 0.4);
}

.checkout-submit-btn:disabled {
    opacity: 0.8;
    transform: none;
}

.coupon-item {
    transition: var(--transition-smooth);
    background: var(--glass-warm);
    border: 2px solid var(--light-orange) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.coupon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    transition: var(--transition-smooth);
    z-index: -1;
}

.coupon-item:hover {
    color: white;
    border-color: var(--primary-orange) !important;
    transform: translateY(-2px) scale(1.02);
}

.coupon-item:hover::before {
    left: 0;
}

.coupon-item:active {
    transform: translateY(0) scale(0.98);
}

.payment-method-card {
    transition: var(--transition-bounce);
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colorful);
}

.payment-method-card.border-primary {
    border-color: var(--primary-orange) !important;
    background: var(--glass-orange) !important;
    box-shadow: var(--shadow-glow);
}

.payment-radio {
    transform: scale(1.3);
}

/* Order Summary Enhancements */
.order-summary-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .checkout-submit-btn {
        min-height: 55px;
        font-size: 1rem;
    }

    .payment-method-card {
        min-height: 100px;
        margin-bottom: 1rem;
    }

    .coupon-item {
        margin-bottom: 0.5rem;
        padding: 1rem !important;
    }

    .order-summary-card {
        position: static;
        margin-bottom: 2rem;
    }

    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 45px;
    }

    .form-control:focus {
        font-size: 16px !important;
    }

    .btn {
        min-height: 45px;
        font-size: 16px !important;
    }

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

@media (max-width: 576px) {
    .checkout-submit-btn {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .payment-method-card .card-body {
        padding: 1rem;
    }

    .payment-method-card h6 {
        font-size: 0.9rem;
    }

    .coupon-item {
        text-align: center;
    }

    .coupon-item .fw-bold {
        font-size: 0.8rem;
    }

    /* Stack payment methods vertically on very small screens */
    .payment-methods-row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Loading Animation Enhancement */
.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Mobile-Specific Animations */
@media (max-width: 768px) {
    .menu-item-card {
        animation: slideInUp 0.6s ease-out;
        animation-fill-mode: both;
        animation-delay: calc(var(--float-delay, 0) * 0.1s);
    }

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

    /* Touch Feedback */
    .btn:active,
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

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

    /* Mobile Bounce Effect */
    .mobile-bounce {
        animation: mobileBounce 2s infinite;
    }

    @keyframes mobileBounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-5px);
        }
        60% {
            transform: translateY(-3px);
        }
    }

    /* Mobile Glow Effect */
    .mobile-glow {
        position: relative;
    }

    .mobile-glow::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #ff6b35, #e91e63, #9c27b0, #00bcd4, #4caf50, #ffc107);
        background-size: 400% 400%;
        border-radius: inherit;
        z-index: -1;
        animation: mobileGlowRotate 3s linear infinite;
        opacity: 0.7;
    }

    @keyframes mobileGlowRotate {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Mobile Shake Animation for Notifications */
    .mobile-shake {
        animation: mobileShake 0.5s ease-in-out;
    }

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

    /* Mobile Pulse for Important Elements */
    .mobile-pulse {
        animation: mobilePulse 2s infinite;
    }

    @keyframes mobilePulse {
        0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
        100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
    }

    /* Improved Mobile Typography */
    .mobile-text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Card Stacking Effect */
    .mobile-card-stack {
        position: relative;
    }

    .mobile-card-stack::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        right: -5px;
        bottom: -5px;
        background: rgba(255, 107, 53, 0.1);
        border-radius: inherit;
        z-index: -1;
        transform: rotate(1deg);
    }

    .mobile-card-stack::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
        background: rgba(255, 107, 53, 0.05);
        border-radius: inherit;
        z-index: -2;
        transform: rotate(-1deg);
    }
}

/* Form Field Enhancements */
.form-label {
    font-weight: 600;
    color: var(--dark-orange);
    margin-bottom: 0.7rem;
}

.form-label i {
    margin-right: 0.5rem;
}

.input-group .btn {
    border-radius: 0 15px 15px 0;
}

.input-group .form-control {
    border-radius: 15px 0 0 15px;
}

/* Alert Enhancements */
.alert {
    border-radius: 15px;
    border: none;
    font-weight: 500;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(139, 195, 74, 0.9));
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(255, 87, 34, 0.9));
    color: white;
}

/* UPI Info Card Enhancement */
#upi-info .card {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(76, 175, 80, 0.1));
    border: 2px solid var(--accent-teal);
}

#upi-info .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-ocean);
}

/* Print Styles */
@media print {
    .floating-cart,
    .navbar,
    .btn,
    .alert,
    .floating-emoji,
    .hero-quick-stats {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .hero-section {
        background: none !important;
        color: #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-warm: rgba(255, 248, 225, 0.95);
    }
}

/* Progress Steps - Desktop Horizontal */
.progress-steps {
    position: relative;
    margin: 20px 0;
}

.progress-steps .step {
    text-align: center;
    position: relative;
    flex: 1;
}

.progress-steps .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: var(--bs-gray-600);
    border: 3px solid var(--bs-gray-300);
    transition: all 0.3s ease;
}

.progress-steps .step-label {
    font-size: 14px;
    color: var(--bs-gray-600);
    font-weight: 500;
}

.progress-steps .step.completed .step-icon {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    transform: scale(1.1);
}

.progress-steps .step.completed .step-label {
    color: var(--orange-primary);
    font-weight: 600;
}

/* Progress line between steps */
.progress-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: var(--bs-gray-300);
    z-index: -1;
}

.progress-steps .step.completed:not(:last-child)::after {
    background: var(--orange-primary);
}

/* Progress Steps - Mobile Vertical */
.progress-steps-vertical {
    margin: 20px 0;
}

.progress-steps-vertical .step-vertical {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-left: 0;
}

.progress-steps-vertical .step-vertical:last-child {
    margin-bottom: 0;
}

.progress-steps-vertical .step-icon-vertical {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--bs-gray-600);
    border: 3px solid var(--bs-gray-300);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 15px;
}

.progress-steps-vertical .step-content-vertical {
    flex: 1;
    padding-top: 5px;
}

.progress-steps-vertical .step-title {
    font-weight: 600;
    color: var(--bs-gray-800);
    margin-bottom: 2px;
    font-size: 15px;
}

.progress-steps-vertical .step-time {
    font-size: 13px;
    color: var(--bs-gray-600);
}

.progress-steps-vertical .step-vertical.completed .step-icon-vertical {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
    box-shadow: 0 2px 10px rgba(255, 138, 0, 0.3);
}

.progress-steps-vertical .step-vertical.completed .step-title {
    color: var(--orange-primary);
}

.progress-steps-vertical .step-vertical.completed .step-time {
    color: var(--orange-secondary);
    font-weight: 500;
}

/* Vertical line between steps */
.progress-steps-vertical .step-vertical:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 45px;
    width: 2px;
    height: 35px;
    background: var(--bs-gray-300);
    z-index: -1;
}

.progress-steps-vertical .step-vertical.completed:not(:last-child)::before {
    background: var(--orange-primary);
}

/* IST Timezone Styling */
[data-timestamp] {
    position: relative;
}

[data-timestamp]::after {
    content: " IST";
    font-size: 0.85em;
    color: var(--bs-gray-500);
    font-weight: normal;
}

/* Real-time update indicators */
.order-status-badge {
    position: relative;
    transition: all 0.3s ease;
}

.order-status-badge.updated {
    animation: statusPulse 0.6s ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 138, 0, 0.6); }
    100% { transform: scale(1); }
}

/* Last refresh indicator */
#last-refresh {
    padding: 8px 12px;
    background: rgba(255, 138, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 138, 0, 0.2);
    display: inline-block;
}

#last-refresh i {
    animation: spin 1s linear infinite;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .order-status-badge {
        font-size: 0.75rem !important;
        margin-bottom: 5px;
    }

    .card-header .row {
        flex-direction: column;
        gap: 10px;
    }

    .card-header .col-md-4 {
        text-align: left !important;
    }

    .progress-steps-vertical .step-icon-vertical {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 12px;
    }

    .progress-steps-vertical .step-vertical:not(:last-child)::before {
        left: 17px;
        height: 30px;
        top: 40px;
    }

    .progress-steps-vertical .step-title {
        font-size: 14px;
    }

    .progress-steps-vertical .step-time {
        font-size: 12px;
    }
}

/* Notification improvements */
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

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

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Custom styles for the Biryani Club app */

/* PWA Install Button Styles */
#installBtn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#installBtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.toast-notification {
    z-index: 9999;
}

/* Install button animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#installBtn {
    animation: slideInRight 0.5s ease-out;
}