/* ============================================
   MenuNova Demo Page - Premium Cinematic Styles
   ============================================ */

:root {
    /* Colors */
    --c-bg-deep: #05070f;
    --c-bg-mid: #0a0e18;
    --c-bg-elevated: #16192d;
    --c-brand: #ff6a00;
    --c-brand-light: #ff8a00;
    --c-accent: #52b788;
    --c-text: #e6edf3;
    --c-text-dim: #8b949e;
    --c-border: rgba(255, 255, 255, 0.08);
    
    /* Gradients */
    --grad-brand: linear-gradient(135deg, #ff6a00, #ff8a00);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    
    /* Shadows */
    --sh-glow: 0 0 20px rgba(255, 106, 0, 0.3);
    --sh-elevated: 0 8px 24px rgba(0, 0, 0, 0.4);
    --sh-premium: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    
    /* Animation */
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at top, var(--c-bg-elevated) 0%, var(--c-bg-mid) 50%, var(--c-bg-deep) 100%);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container-demo {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-demo {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-demo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeUp 1s var(--ease-premium);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e6edf3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--c-text-dim);
    margin-bottom: 32px;
    max-width: 480px;
}

.btn-demo-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 400ms var(--ease-premium);
    box-shadow: var(--sh-glow);
    position: relative;
    overflow: hidden;
}

.btn-demo-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 400ms;
}

.btn-demo-start:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.5);
}

.btn-demo-start:hover::before {
    opacity: 1;
}

.btn-demo-start:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Visual - Animated Mockup */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeUp 1s 200ms var(--ease-premium) backwards;
}

.animated-mockup {
    position: relative;
    width: 100%;
    height: 100%;
}

.mockup-card {
    position: absolute;
    background: var(--grad-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--sh-premium);
    animation: floatCard 6s ease-in-out infinite;
}

.mockup-1 {
    top: 50px;
    left: 0;
    width: 300px;
    animation-delay: 0s;
}

.mockup-2 {
    top: 200px;
    right: 0;
    width: 280px;
    animation-delay: 3s;
}

.mockup-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--c-brand-light);
}

.mockup-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 14px;
}

.mockup-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--grad-brand);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mockup-status {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-accent);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

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

/* ============================================
   DEMO INTERFACE
   ============================================ */

.demo-interface {
    min-height: 100vh;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--ease-premium);
}

.demo-interface.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    animation: fadeUp 800ms var(--ease-premium);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--c-bg-elevated);
    border: 2px solid var(--c-border);
    border-radius: 12px;
    color: var(--c-text-dim);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 400ms var(--ease-premium);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: var(--grad-brand);
    border-color: var(--c-brand);
    color: white;
    box-shadow: var(--sh-glow);
}

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

/* Demo View Container */
.demo-view {
    display: none;
    animation: viewFadeIn 600ms var(--ease-premium);
}

.demo-view.active {
    display: block;
}

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

/* ============================================
   MENU VIEW
   ============================================ */

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding: 24px;
    background: var(--grad-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
}

.restaurant-info h2 {
    font-size: 28px;
    margin-bottom: 4px;
}

.restaurant-info p {
    color: var(--c-text-dim);
    font-size: 14px;
}

.cart-indicator {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--grad-brand);
    border-radius: 10px;
    cursor: pointer;
    transition: all 300ms var(--ease-premium);
}

.cart-indicator:hover {
    transform: scale(1.05);
    box-shadow: var(--sh-glow);
}

.cart-count {
    font-weight: 700;
    font-size: 16px;
}

/* Menu Categories */
.menu-categories {
    display: grid;
    gap: 48px;
}

.category-section {
    background: var(--c-bg-elevated);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--c-border);
    animation: fadeUp 600ms var(--ease-premium);
}

.category-section:nth-child(2) { animation-delay: 100ms; }
.category-section:nth-child(3) { animation-delay: 200ms; }

.category-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--c-brand-light);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 20px;
    transition: all 400ms var(--ease-premium);
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--c-brand);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), var(--sh-glow);
}

.item-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.item-description {
    font-size: 13px;
    color: var(--c-text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 20px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-add {
    padding: 8px 16px;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms var(--ease-premium);
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.4);
}

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

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 300ms;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--c-bg-elevated);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--sh-premium);
    animation: modalSlideUp 400ms var(--ease-bounce);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--c-text);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 200ms;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-items {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

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

.cart-item-emoji {
    font-size: 32px;
}

.cart-item-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.cart-item-details p {
    font-size: 14px;
    color: var(--c-text-dim);
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-brand-light);
}

.cart-footer {
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 300ms var(--ease-premium);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-glow);
}

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-animation {
    margin-bottom: 24px;
}

.success-animation svg {
    animation: successPop 600ms var(--ease-bounce);
}

@keyframes successPop {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-animation circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawCircle 800ms ease-out forwards;
}

.success-animation path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 600ms 300ms ease-out forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-modal h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.success-modal p {
    color: var(--c-text-dim);
    margin-bottom: 32px;
}

/* Order Status Tracker */
.order-status-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 400ms;
}

.status-step.active {
    opacity: 1;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-text-dim);
    transition: all 400ms;
}

.status-step.active .status-dot {
    background: var(--c-accent);
    box-shadow: 0 0 16px rgba(82, 183, 136, 0.6);
    animation: pulse 1.5s infinite;
}

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

.status-step span {
    font-size: 12px;
    font-weight: 600;
}

.btn-demo-close {
    width: 100%;
    padding: 14px;
    background: var(--c-bg-mid);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms;
}

.btn-demo-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ADMIN VIEW
   ============================================ */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--grad-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
}

.admin-header h2 {
    font-size: 28px;
}

.admin-stats-mini {
    display: flex;
    gap: 24px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 12px;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-brand-light);
}

.admin-grid {
    display: grid;
    gap: 32px;
}

.admin-panel {
    background: var(--c-bg-elevated);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 32px;
}

.admin-panel h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--c-brand-light);
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 16px;
}

.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 20px;
    transition: all 300ms var(--ease-premium);
}

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

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

.order-id {
    font-size: 18px;
    font-weight: 700;
}

.order-time {
    font-size: 13px;
    color: var(--c-text-dim);
}

.order-items {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}

.order-actions {
    display: flex;
    gap: 8px;
}

.order-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge.pending {
    background: rgba(255, 190, 88, 0.2);
    color: #ffbe58;
}

.order-status-badge.preparing {
    background: rgba(255, 106, 0, 0.2);
    color: var(--c-brand-light);
}

.order-status-badge.ready {
    background: rgba(82, 183, 136, 0.2);
    color: var(--c-accent);
}

.btn-order-action {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms var(--ease-premium);
    background: rgba(255, 255, 255, 0.02);
    color: var(--c-text);
}

.btn-order-action:hover {
    background: var(--grad-brand);
    border-color: var(--c-brand);
    color: white;
    transform: translateY(-2px);
}

/* Analytics Cards */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.analytics-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--grad-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    transition: all 400ms var(--ease-premium);
}

.analytics-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-brand);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.analytics-icon {
    font-size: 36px;
}

.analytics-data {
    display: flex;
    flex-direction: column;
}

.analytics-label {
    font-size: 12px;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.analytics-number,
.analytics-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics-text {
    font-size: 18px;
}

/* ============================================
   GUIDED TOUR
   ============================================ */

.tour-trigger {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--sh-glow);
    transition: all 300ms var(--ease-premium);
    z-index: 999;
}

.tour-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.5);
}

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.tour-overlay.active {
    display: block;
}

.tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.tour-tooltip {
    position: absolute;
    background: var(--c-bg-elevated);
    border: 2px solid var(--c-brand);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    box-shadow: var(--sh-premium);
    animation: tooltipPop 400ms var(--ease-bounce);
}

@keyframes tooltipPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tour-content {
    margin-bottom: 20px;
}

.tour-content h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--c-brand-light);
}

.tour-content p {
    font-size: 14px;
    color: var(--c-text-dim);
    line-height: 1.6;
}

.tour-controls {
    display: flex;
    gap: 12px;
}

.tour-skip,
.tour-next {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms;
}

.tour-skip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    color: var(--c-text);
}

.tour-skip:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tour-next {
    background: var(--grad-brand);
    border: none;
    color: white;
}

.tour-next:hover {
    box-shadow: var(--sh-glow);
}

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

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-demo {
        padding: 0 16px;
    }
    
    .hero-demo {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .btn-demo-start {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
    }
    
    .demo-interface {
        padding: 60px 0;
    }
    
    .category-section {
        padding: 24px;
    }
    
    .admin-panel {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .container-demo {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .btn-demo-start {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        min-height: 48px;
    }
    
    .btn-demo-start svg {
        display: none;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 32px;
    }
    
    .mockup-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .mockup-1 {
        width: 85%;
        max-width: 260px;
    }
    
    .mockup-2 {
        width: 85%;
        max-width: 240px;
    }
    
    .mockup-header {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .mockup-item {
        padding: 10px;
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .mode-toggle {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .mode-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .demo-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        margin-bottom: 32px;
    }
    
    .restaurant-info h2 {
        font-size: 22px;
    }
    
    .cart-indicator {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .category-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .menu-item {
        padding: 16px;
    }
    
    .item-emoji {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .item-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .item-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .btn-add {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .modal-content {
        max-width: 100%;
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-header {
        margin-bottom: 16px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-emoji {
        font-size: 28px;
    }
    
    .cart-item-details h4 {
        font-size: 15px;
    }
    
    .btn-checkout {
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .success-modal h3 {
        font-size: 24px;
    }
    
    .analytics-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analytics-card {
        padding: 16px;
        gap: 12px;
    }
    
    .analytics-icon {
        font-size: 32px;
    }
    
    .analytics-number,
    .analytics-text {
        font-size: 20px;
    }
    
    .tour-trigger {
        bottom: 12px;
        right: 12px;
        padding: 12px 16px;
        font-size: 13px;
        min-height: 48px;
        border-radius: 24px;
    }
    
    .tour-tooltip {
        max-width: 90%;
        padding: 16px;
    }
    
    .tour-content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .tour-content p {
        font-size: 13px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .admin-header h2 {
        font-size: 24px;
    }
    
    .admin-stats-mini {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .stat-mini {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-section {
        padding: 16px;
        border-radius: 16px;
    }
    
    .admin-panel {
        padding: 16px;
    }
    
    .admin-panel h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .order-card {
        padding: 16px;
    }
    
    .order-id {
        font-size: 16px;
    }
    
    .order-items {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .order-item {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .order-total {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-order-action {
        min-height: 44px;
        padding: 10px;
        font-size: 13px;
    }
    
    .order-status-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container-demo {
        padding: 0 12px;
    }
    
    .hero-demo {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn-demo-start {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-visual {
        height: 280px;
        margin-top: 24px;
    }
    
    .mockup-card {
        padding: 12px;
    }
    
    .mode-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .mode-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .tour-trigger {
        width: auto;
        max-width: calc(100% - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
