:root {
    --primary: #420C09;
    --primary-dark: #300806;
    --primary-glow: rgba(66, 12, 9, 0.15);
    --black: #000000;
    --dark-bg: #ffffff;
    --dark-card: #f5f5f5;
    --dark-card-hover: #e8e8e8;
    --dark-border: #ddd;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --success: #28a745;
    --error: #dc3545;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(66, 12, 9, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
}

input {
    font-family: var(--font-family);
}

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

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

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

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

/* ==================== HOMEPAGE ==================== */

.homepage-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff8f5 0%, #fff0ea 50%, var(--dark-bg) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(66, 12, 9, 0.04) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.glass-overlay {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    text-align: center;
    animation: slideUp 0.8s ease;
}

.logo-section {
    margin-bottom: 32px;
}

.logo-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    animation: pulse 3s ease-in-out infinite;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.restaurant-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    margin-bottom: 8px;
}

.restaurant-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qr-section {
    margin-bottom: 24px;
}

.qr-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(66, 12, 9, 0.2);
}

.qr-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.qr-icon svg {
    width: 100%;
    height: 100%;
}

.qr-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.qr-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary.full-width {
    width: 100%;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.footer-section {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer-section p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-location {
    margin-top: 4px;
    color: var(--primary);
    font-weight: 500;
}

/* ==================== MENU PAGE ==================== */

.menu-container {
    min-height: 100vh;
    padding-bottom: 100px;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--dark-border);
}

.menu-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.back-btn, .home-btn, .cart-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.back-btn svg, .home-btn svg, .cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.back-btn:hover, .home-btn:hover, .cart-btn:hover {
    border-color: var(--primary);
    background: var(--dark-card-hover);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-filter {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 101;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.category-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.category-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 24px;
}

.menu-content {
    padding-bottom: 24px;
}

.menu-section {
    margin-bottom: 8px;
    scroll-margin-top: 72px;
}

.menu-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 20px 8px;
    position: sticky;
    top: 72px;
    background: var(--dark-bg);
    z-index: 10;
}

.menu-item-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.menu-item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--dark-card);
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-card), rgba(66, 12, 9, 0.04));
}

.placeholder-image svg {
    width: 60%;
    height: 60%;
}

.menu-item-info {
    padding: 12px;
}

.menu-item-name-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
}

.menu-item-name-link:hover {
    color: var(--primary);
}

.menu-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--dark-border);
}

.menu-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--dark-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn svg {
    width: 14px;
    height: 14px;
}

.add-to-cart-btn:hover {
    background: rgba(66, 12, 9, 0.1);
}

.add-to-cart-btn.added {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.3s ease;
    z-index: 200;
}

.floating-cart-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.floating-cart-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-bg);
}

@media (max-width: 360px) {
    .restaurant-name {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .features-section {
        gap: 10px;
    }

    .feature-card {
        padding: 16px 8px;
    }

    .menu-grid {
        gap: 12px;
    }

    .menu-item-image {
        height: 100px;
    }
}

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

    .glass-overlay {
        padding: 60px 40px;
    }

    .restaurant-name {
        font-size: 3rem;
    }

    .qr-card {
        max-width: 400px;
        padding: 40px 32px;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* ==================== ITEM DETAIL PAGE ==================== */

.item-detail-container {
    min-height: 100vh;
    padding-bottom: 200px;
}

.item-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--dark-border);
}

.item-detail-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.item-detail-content {
    padding-bottom: 20px;
}

.item-detail-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-large {
    width: 120px;
    height: 120px;
}

.placeholder-image-large svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.item-detail-info {
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.item-detail-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.item-detail-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.item-detail-price {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(66, 12, 9, 0.1);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.item-detail-addons {
    padding: 20px;
}

.addon-group {
    margin-bottom: 20px;
}

.addon-group:last-child {
    margin-bottom: 0;
}

.addon-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 4px;
}

.item-detail-addons h3,
.item-detail-quantity h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-item input[type="checkbox"],
.addon-item input[type="radio"] {
    display: none;
}

.addon-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(66, 12, 9, 0.08);
}

.addon-item:has(input:checked) .addon-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.addon-item:has(input:checked) .addon-checkbox svg {
    display: block;
}

.addon-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.addon-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.addon-placeholder {
    width: 30px;
    height: 30px;
}

.addon-placeholder svg {
    width: 100%;
    height: 100%;
}

.addon-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.addon-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.item-detail-quantity {
    padding: 20px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 8px 12px;
}

.qty-display {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    color: var(--text-primary);
}

.item-detail-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 16px 20px;
    z-index: 100;
}

.item-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.item-detail-actions {
    display: flex;
    gap: 12px;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--dark-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-add-cart svg {
    width: 20px;
    height: 20px;
}

.btn-add-cart:hover {
    background: rgba(66, 12, 9, 0.1);
}

.btn-add-cart.added {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.btn-checkout-now {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-checkout-now svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-checkout-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-checkout-now:hover svg {
    transform: translateX(4px);
}

/* ==================== CART PAGE ==================== */

.cart-container {
    min-height: 100vh;
    padding-bottom: 200px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--dark-border);
}

.cart-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.clear-cart-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.clear-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--error);
}

.clear-cart-btn:hover {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.cart-items {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cart-item-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cart-item-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border);
}

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

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-primary);
}

.qty-btn:hover {
    border-color: var(--primary);
    background: var(--dark-card-hover);
}

.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.remove-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--error);
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.cart-item-total {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.addon-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(66, 12, 9, 0.1);
    border: 1px solid rgba(66, 12, 9, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.cart-empty h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 20px;
    z-index: 100;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.summary-row span:last-child {
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: var(--dark-border);
    margin: 12px 0;
}

.summary-row.total {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.summary-row.total span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-row.total span:last-child {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-checkout svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-checkout:hover svg {
    transform: translateX(4px);
}

/* ==================== CHECKOUT PAGE ==================== */

.checkout-container {
    min-height: 100vh;
    padding-bottom: 200px;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--dark-border);
}

.checkout-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.checkout-header-spacer {
    width: 40px;
}

.checkout-order-summary {
    margin: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.checkout-order-summary h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.checkout-item-main {
    flex: 1;
    margin-right: 12px;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.checkout-item-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.checkout-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--dark-card);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    padding-top: 4px;
}

.order-totals {
    padding-top: 16px;
    border-top: 1px solid var(--dark-border);
}

.checkout-form {
    margin: 0 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--error);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.table-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.table-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.table-prefix {
    padding: 14px 0 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.table-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 4px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 8px;
    min-height: 18px;
}

.btn-place-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-place-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-place-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== SUCCESS MODAL ==================== */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-content > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==================== ORDER SUCCESS PAGE ==================== */

.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #fff8f5 0%, #fff0ea 50%, var(--dark-bg) 100%);
}

.success-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.8s ease;
    box-shadow: var(--glass-shadow);
}

.success-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    animation: pulse 2s ease-in-out infinite;
}

.success-icon-large svg {
    width: 100%;
    height: 100%;
}

.success-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.order-summary-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.order-summary-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.summary-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
}

.summary-total span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total span:last-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 25px;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge span:last-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success);
}

.thank-you {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 360px) {
    .restaurant-name {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .features-section {
        gap: 10px;
    }

    .feature-card {
        padding: 16px 8px;
    }

    .menu-grid {
        gap: 12px;
    }

    .menu-item-image {
        height: 100px;
    }
}

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

    .glass-overlay {
        padding: 60px 40px;
    }

    .restaurant-name {
        font-size: 3rem;
    }

    .qr-card {
        max-width: 400px;
        padding: 40px 32px;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        margin: 0 auto;
    }
}
