:root {
    --primary: #4CAF50;
    --secondary: #2E7D32;
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #f44336;
    --veg: #0f8a0f;
    --nonveg: #b71c1c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.header {
    background: var(--card-bg);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    color: var(--text);
}

.header-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg);
}

.cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.2s;
}

.cart-icon-btn:hover {
    background: var(--bg);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    z-index: 200;
}

.footer-bar-type {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
}

.footer-bar-powered {
    flex: 1;
    text-align: center;
    font-size: 11px;
}

.footer-bar-powered a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-bar-powered a:hover {
    text-decoration: underline;
}

.lang-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 200;
}

.lang-switcher select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    font-size: 13px;
    cursor: pointer;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.veg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid var(--veg);
    border-radius: 3px;
}

.veg-badge::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--veg);
}

.nonveg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid var(--nonveg);
    border-radius: 3px;
}

.nonveg-badge::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nonveg);
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.error-screen {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.landing-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.landing-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 16px;
    background: var(--card-bg);
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.landing-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.landing-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.landing-address {
    font-size: 14px;
    color: var(--text-muted);
}

.order-type-container {
    padding: 20px;
}

.order-type-title {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.order-type-options {
    display: flex;
    gap: 16px;
}

.order-type-card {
    flex: 1;
    background: var(--card-bg);
    border: 3px solid var(--border);
    border-radius: 20px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.order-type-card:active {
    transform: scale(0.98);
}

.order-type-card .icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.order-type-card .label {
    font-size: 20px;
    font-weight: 600;
}

.order-type-card .desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.status-banner {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px;
}

.status-banner.maintenance {
    background: #fff3e0;
    color: #e65100;
}

.status-banner.closed {
    background: #fce4ec;
    color: #c2185b;
}

.status-banner strong {
    display: block;
    margin-bottom: 4px;
}

.categories-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 16px;
    border: none;
    background: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1.2;
    height: auto;
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

.search-bar {
    padding: 12px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.menu-list {
    padding: 16px 20px;
    padding-bottom: 120px;
}

.menu-list.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.menu-list.layout-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 8px;
}

.menu-item {
    display: flex;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    gap: 12px;
}

.menu-item.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.menu-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.menu-item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: var(--text-light);
}

.menu-item-info {
    flex: 1;
    min-width: 0;
}

.menu-item-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.menu-item-name {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.menu-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.menu-item-gst {
    font-size: 10px;
    color: var(--text-light);
}

.menu-item-image {
    cursor: pointer;
}

.layout-grid .menu-section-title {
    grid-column: 1 / -1;
}

.layout-grid .menu-item {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.layout-grid .menu-item-image,
.layout-grid .menu-item-image-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 0;
}

.layout-grid .menu-item-info {
    padding: 10px;
}

.layout-grid .menu-item-name {
    font-size: 13px;
}

.layout-grid .menu-item-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
    margin-bottom: 6px;
}

.layout-grid .menu-item-footer {
    flex-wrap: wrap;
    gap: 4px;
}

.layout-grid .menu-item-price {
    font-size: 15px;
}

.layout-grid .add-btn {
    padding: 5px 10px;
    font-size: 11px;
}

.layout-compact .menu-item {
    padding: 8px 12px;
    margin-bottom: 0;
    gap: 10px;
}

.layout-compact .menu-item-image,
.layout-compact .menu-item-image-placeholder {
    width: 48px;
    height: 48px;
}

.layout-compact .menu-item-name {
    font-size: 13px;
}

.layout-compact .menu-item-desc {
    display: none;
}

.layout-compact .menu-item-footer {
    margin-top: 4px;
}

.layout-compact .menu-item-price {
    font-size: 14px;
}

.layout-compact .add-btn {
    padding: 4px 10px;
    font-size: 11px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.add-btn {
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    border-radius: 6px;
    padding: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-num {
    color: white;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}




.cart-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.checkout-container {
    padding: 20px;
    padding-bottom: 150px;
}

.checkout-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

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

.edit-link {
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg);
}

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

.cart-item-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.cart-item-image-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
}

.cart-item-gst {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

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

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: 6px;
    padding: 2px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-num {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

.gst-note {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

.input-group {
    margin-bottom: 12px;
}

.input-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

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

.checkout-footer-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    z-index: 199;
}

.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 200;
}

.order-success-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 0 0 24px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.success-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.success-subtitle {
    opacity: 0.9;
}

.token-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin: -30px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.token-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.token-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.kiosk-qr-section {
    padding: 0 20px;
    margin-bottom: 20px;
}

.qr-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--border);
}

.qr-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.qr-card canvas {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.qr-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
}

.status-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.status-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.step-icon.active {
    background: var(--primary);
    color: white;
}

.step-icon.completed {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.order-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 20px 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg);
}

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

.footer {
    text-align: center;
    color: var(--text-light);
    font-size: 11px;
    padding: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--primary);
}

.prep-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.popular-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.unavailable-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.install-prompt {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.install-prompt:hover {
    background: var(--primary-dark);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.payment-option:hover {
    border-color: var(--primary);
    background: #f8fff8;
}

.payment-option.selected {
    border-color: var(--primary);
    background: #f0fff0;
}

.payment-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option.selected .payment-option-radio {
    border-color: var(--primary);
}

.payment-option.selected .payment-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.payment-option-icon {
    font-size: 24px;
    margin-right: 12px;
}

.payment-option-details {
    flex: 1;
}

.payment-option-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.payment-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.payment-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.payment-processing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.payment-processing .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-processing p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.payment-status-banner {
    margin: 0 20px 16px;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-status-banner.awaiting {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.payment-status-banner.paid {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.payment-status-banner .status-icon {
    font-size: 24px;
}

.payment-status-banner .status-text {
    flex: 1;
}

.payment-status-banner .status-title {
    font-weight: 600;
    font-size: 14px;
}

.payment-status-banner .status-desc {
    font-size: 12px;
    opacity: 0.8;
}

.language-dropdown {
    position: relative;
    margin-left: auto;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-dropdown-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary);
}

.language-dropdown-btn .globe-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.language-dropdown-btn .arrow-icon {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.language-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    min-width: 120px;
    max-width: calc(100vw - 24px);
    max-height: 200px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.language-option:first-child {
    border-radius: 7px 7px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 7px 7px;
}

.language-option:hover {
    background: var(--bg);
}

.language-option.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.language-option .check-icon {
    width: 12px;
    height: 12px;
    margin-left: auto;
    color: var(--primary);
}

/* Small screens - iPhone SE and similar (375px) */
@media (max-width: 400px) {
    .header {
        padding: 12px 12px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .categories-bar {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .search-bar {
        padding: 10px 12px;
    }
    
    .menu-list {
        padding: 12px 12px;
    }
    
    .menu-item {
        padding: 10px;
        gap: 10px;
    }
    
    .menu-item-image, .menu-item-image-placeholder {
        width: 64px;
        height: 64px;
    }
    
    .menu-item-name {
        font-size: 14px;
    }
    
    .menu-item-price {
        font-size: 14px;
    }
    
    .add-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .checkout-bar {
        padding: 12px 12px;
    }
    
    .language-dropdown-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .language-dropdown-menu {
        min-width: 130px;
        right: 0;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-row {
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .menu-item {
        padding: 16px;
    }
    
    .menu-item-image, .menu-item-image-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .order-type-options {
        gap: 24px;
    }
    
    .order-type-card {
        padding: 40px 24px;
    }
    
    .landing-logo, .landing-logo-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .menu-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .menu-section-title {
        grid-column: 1 / -1;
    }
    
    .menu-item {
        margin-bottom: 0;
    }
    
    .order-type-options {
        gap: 32px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .checkout-bar, .footer-bar {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .menu-list {
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    .checkout-container {
        padding-bottom: calc(150px + env(safe-area-inset-bottom));
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, #e8e8e8 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

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

.skeleton-item {
    display: flex;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    gap: 12px;
}

.skeleton-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    height: 16px;
    width: 70%;
}

.skeleton-desc {
    height: 12px;
    width: 90%;
}

.skeleton-price {
    height: 14px;
    width: 50px;
    margin-top: auto;
}

.page-transition {
    animation: fadeIn 0.3s ease;
}

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

.btn, .add-btn, .qty-btn, .category-btn, .order-type-card {
    min-height: 44px;
    min-width: 44px;
}

.qty-control {
    min-height: 44px;
}

.back-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
