/* ==========================================================================
   Campus Mart – Smart Food & Essentials Pre-Order System
   File: css/style.css
   Modern, Clean, Responsive Mobile-First Design System
   ========================================================================== */

/* --- Root CSS Variables --- */
:root {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-light: #ffedd5;
    --primary-dark: #9a3412;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #f59e0b;
    
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;

    --veg-color: #16a34a;
    --veg-bg: #dcfce7;
    --nonveg-color: #dc2626;
    --nonveg-bg: #fee2e2;

    --status-pending-bg: #fef3c7;
    --status-pending-text: #92400e;
    --status-preparing-bg: #e0f2fe;
    --status-preparing-text: #0369a1;
    --status-ready-bg: #f3e8ff;
    --status-ready-text: #6b21a8;
    --status-completed-bg: #dcfce7;
    --status-completed-text: #15803d;
    --status-cancelled-bg: #fee2e2;
    --status-cancelled-text: #991b1b;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 30px -6px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

    --transition: all 0.25s ease-in-out;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition);
}

/* --- Container Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow {
    max-width: 800px;
}

.container-sm {
    max-width: 480px;
}

/* --- Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.brand-logo .brand-img {
    height: 38px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(234, 88, 12, 0.25));
}

.brand-logo span span {
    color: var(--secondary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn-wrap {
    position: relative;
}

.cart-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.cart-icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.4);
    border: 2px solid white;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 999;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item .mobile-cart-badge {
    position: absolute;
    top: -2px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

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

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* --- Cards & Panels --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* --- Hero Banner (Landing Page) --- */
.hero-section {
    padding: 3rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 237, 213, 0.7) 0%, rgba(248, 250, 252, 1) 90%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 2rem 0;
    }
}

.hero-content h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.hero-content h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    max-width: 540px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.hero-badge-item i {
    color: var(--primary);
}

.hero-card-preview {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}

.hero-image-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-floating-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--primary);
}

.floating-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* --- Features Grid (Landing) --- */
.features-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: block;
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.25rem auto;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Auth Pages (Login / Register) --- */
.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(circle at 50% 10%, rgba(255, 237, 213, 0.5) 0%, rgba(248, 250, 252, 1) 70%);
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Form Controls --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-main);
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-input.no-icon, .form-select.no-icon, .form-textarea.no-icon {
    padding-left: 1rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
}

.password-toggle:hover {
    color: var(--text-main);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

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

/* --- Menu & Catalog Page --- */
.menu-header-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.menu-search-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .menu-search-filter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-box-wrap {
    flex: 1;
    max-width: 460px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-main);
    font-size: 0.92rem;
    transition: var(--transition);
}

.search-input:focus {
    background: white;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.category-filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

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

.filter-pill {
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: white;
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

/* --- Food Items Grid (GPU Accelerated & Responsive) --- */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    contain: layout style;
    -webkit-overflow-scrolling: touch;
}

.food-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
    box-shadow: var(--shadow-xs);
    position: relative;
    contain: content;
    content-visibility: auto;
    contain-intrinsic-size: 340px;
    transform: translateZ(0);
    will-change: transform;
}

.food-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.food-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
    contain: strict;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.food-card:hover .food-img {
    transform: scale(1.05) translateZ(0);
}

.food-type-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: var(--shadow-xs);
}

.food-type-tag.veg {
    color: var(--veg-color);
    border: 1px solid var(--veg-color);
}

.food-type-tag.nonveg {
    color: var(--nonveg-color);
    border: 1px solid var(--nonveg-color);
}

.food-category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.food-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.food-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--secondary);
}

.food-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.food-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.add-cart-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.add-cart-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.04);
}

.add-cart-btn:disabled, .food-card.out-of-stock .add-cart-btn {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.out-of-stock-badge {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Cart Page Styles --- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

.cart-items-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--secondary);
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.85rem;
    background: transparent;
}

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

.qty-val {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

.cart-item-remove {
    color: #ef4444;
    padding: 0.4rem;
    font-size: 1rem;
}

.cart-item-remove:hover {
    color: #b91c1c;
}

.order-summary-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    border-top: 2px dashed var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.summary-row.total .total-amount {
    color: var(--primary);
}

/* --- Orders & Tracking Page --- */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.order-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.order-id-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-pending { background: var(--status-pending-bg); color: var(--status-pending-text); }
.status-preparing { background: var(--status-preparing-bg); color: var(--status-preparing-text); }
.status-ready { background: var(--status-ready-bg); color: var(--status-ready-text); }
.status-completed { background: var(--status-completed-bg); color: var(--status-completed-text); }
.status-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-text); }

/* --- Order Stepper Tracker --- */
.order-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.tracker-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.tracker-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    border: 3px solid white;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.tracker-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tracker-step.active .tracker-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}

.tracker-step.active .tracker-label {
    color: var(--primary);
    font-weight: 700;
}

.tracker-step.completed .tracker-icon {
    background: #10b981;
    color: white;
}

.tracker-step.completed .tracker-label {
    color: #10b981;
}

/* Order item summary mini-table */
.order-items-mini {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

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

/* --- Admin Dashboard Styles --- */
.admin-header {
    background: var(--secondary);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.orders { background: #e0f2fe; color: #0284c7; }
.stat-icon.pending { background: #fef3c7; color: #d97706; }
.stat-icon.completed { background: #dcfce7; color: #16a34a; }
.stat-icon.revenue { background: #ffedd5; color: #ea580c; }
.stat-icon.items { background: #f3e8ff; color: #9333ea; }

.stat-info .stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.admin-tab-btn {
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Admin Data Tables */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background: #f8fafc;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: #f8fafc;
}

/* --- Modals & Overlays --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--secondary);
}

.modal-close-btn {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}

.toast {
    pointer-events: auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.3s ease forwards;
    transition: all 0.3s ease;
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: var(--primary); }

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1;
}

.toast-fadeout {
    opacity: 0;
    transform: translateX(100%);
}

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

/* --- Empty States & Loaders --- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(234, 88, 12, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

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

/* --- Footer --- */
.footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* --- Preset Photo Quick Selector Buttons --- */
.preset-photo-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.preset-photo-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Image Source Tabs */
.img-source-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.img-source-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#food-dropzone:hover {
    border-color: var(--primary) !important;
    background: #fff7ed !important;
}

/* ==========================================================================
   Feedback & Star Rating System Styles
   ========================================================================== */

/* Interactive Star Rating Selector */
.star-rating-box {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.25rem 0 0.5rem 0;
}

.star-rate-btn {
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    padding: 0.2rem;
}

.star-rate-btn:hover {
    transform: scale(1.2);
}

.star-rate-btn.active,
.star-rate-btn.hover {
    color: #f59e0b;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.rating-score-label {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    min-height: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Feedback Tag Pills */
.feedback-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feedback-tag-pill {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.feedback-tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff7ed;
}

.feedback-tag-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* Feedback Badge on Order Cards */
.feedback-rated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid #fde68a;
}

/* Admin Feedback Statistics Summary */
.feedback-overview-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .feedback-overview-grid {
        grid-template-columns: 1fr;
    }
}

.feedback-score-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feedback-score-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    font-family: var(--font-heading);
}

.feedback-stars-display {
    color: #f59e0b;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    display: flex;
    gap: 0.2rem;
}

.feedback-breakdown-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.rating-bar-row:last-child {
    margin-bottom: 0;
}

.rating-bar-label {
    width: 45px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-bar-track {
    flex: 1;
    height: 9px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.rating-bar-count {
    width: 35px;
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
}

/* Feedback Tag Display Pill (Read Only) */
.feedback-tag-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin: 0.15rem;
}

/* ==========================================================================
   Order Ready Real-time Pop-up Modal & Sound Alerts
   ========================================================================== */
@keyframes orderReadyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(22, 163, 74, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
        transform: scale(1);
    }
}

@keyframes popInBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.order-ready-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-ready-modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.order-ready-modal-card {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 2px solid #86efac;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.order-ready-modal-backdrop.active .order-ready-modal-card {
    animation: popInBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.order-ready-modal-header {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
    padding: 2rem 1.5rem 1.25rem 1.5rem;
    position: relative;
}

.order-ready-icon-wrap {
    width: 76px;
    height: 76px;
    background: white;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 0.85rem auto;
    animation: orderReadyPulse 2s infinite;
}

.order-ready-modal-body {
    padding: 1.5rem;
    text-align: left;
}

.order-ready-token-box {
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-ready-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

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

/* ==========================================================================
   Multi-Shop Outlets & Pill Buttons Styling
   ========================================================================== */
.shop-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.shop-filter-pill:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.shop-filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.shop-filter-pill.active .shop-pill-status {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: transparent;
}

.shop-pill-icon {
    font-size: 0.95rem;
}

.shop-pill-status {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shop-pill-status.status-open {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.shop-pill-status.status-closed {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.shop-pill-closed {
    opacity: 0.8;
}

.shop-item-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Real-Time Shop Owner Order Alert Modal & Sound Animations --- */
.order-alert-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-alert-modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.order-alert-card {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(234, 88, 12, 0.45), 0 0 0 2.5px #ea580c;
    overflow: hidden;
    transform: scale(0.88) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(234, 88, 12, 0.25);
    animation: orderPulseGlow 2s infinite alternate;
}

.order-alert-modal-backdrop.active .order-alert-card {
    transform: scale(1) translateY(0);
}

@keyframes orderPulseGlow {
    0% { box-shadow: 0 20px 45px -10px rgba(234, 88, 12, 0.4), 0 0 0 2px #ea580c; }
    100% { box-shadow: 0 25px 60px -5px rgba(234, 88, 12, 0.75), 0 0 0 4px #f97316; }
}

.order-alert-header {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-alert-badge {
    background: #fff;
    color: #c2410c;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.order-alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.order-alert-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.order-alert-body {
    padding: 1.35rem;
    max-height: 65vh;
    overflow-y: auto;
}

.order-alert-token-box {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 2px dashed #f97316;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.order-alert-token-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-alert-token-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #c2410c;
    line-height: 1.15;
    margin: 0.25rem 0;
}

.order-alert-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.order-alert-items-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem;
    margin: 1rem 0;
}

.order-alert-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

.order-alert-footer {
    background: #f8fafc;
    padding: 1rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Sound Indicator Badge */
.sound-badge-active {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

.sound-badge-muted {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

/* Coming Soon Badges & Modals */
.badge-soon {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    color: #ffffff !important;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
    animation: pulseBadgeSoon 2.2s infinite ease-in-out;
}

@keyframes pulseBadgeSoon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.88; }
}

.coming-soon-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.coming-soon-modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.coming-soon-modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1.5px solid #fed7aa;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon-modal-backdrop.active .coming-soon-modal-card {
    transform: translateY(0) scale(1);
}

/* Automatic Smart App Download & Install Banner */
.auto-apk-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    width: calc(100% - 48px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.22), 0 0 0 1.5px #fed7aa;
    z-index: 99998;
    padding: 1.15rem;
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.auto-apk-banner.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .auto-apk-banner {
        bottom: 76px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

/* Food Freshness & Temperature Timer */
.freshness-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.freshness-timer.hot {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #fdba74;
    color: #9a3412;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.freshness-timer.hot .timer-tick {
    background: #ea580c;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 800;
    font-size: 0.92rem;
    animation: pulseTimer 1.5s infinite;
}

.freshness-timer.cold {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #475569;
}

.freshness-timer.prep {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
}

@keyframes pulseTimer {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.04); }
}










/* ==========================================================================
   Campus Mart - Complete Mobile & Smartphone UI/UX Polish (Mobile-First 2.0)
   ========================================================================== */

@media (max-width: 768px) {
    /* Prevent any accidental horizontal scrollbar */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .container {
        padding: 0 0.85rem !important;
    }

    /* 1. Header & Top Navbar */
    .navbar {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .nav-container {
        height: 100% !important;
        padding: 0 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .brand-logo {
        gap: 0.35rem !important;
        font-size: 1.12rem !important;
        font-weight: 800 !important;
    }

    .brand-img {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    .nav-actions a[download="CampusMart.apk"] {
        padding: 0.32rem 0.6rem !important;
        font-size: 0.76rem !important;
        gap: 0.25rem !important;
        border-radius: 20px !important;
    }

    .cart-icon-btn {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
    }

    .cart-btn-wrap .cart-badge {
        top: -4px !important;
        right: -4px !important;
        font-size: 0.65rem !important;
        min-width: 17px !important;
        height: 17px !important;
    }

    #nav-auth-actions .btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }

    /* 2. Hero Section */
    .hero-section {
        padding: 1.2rem 0 1.5rem !important;
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%) !important;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .hero-content .section-subtitle {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        background: #ffedd5 !important;
        border-radius: 20px !important;
        display: inline-block !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-content h1 {
        font-size: clamp(1.45rem, 6.2vw, 2.1rem) !important;
        line-height: 1.22 !important;
        margin-bottom: 0.65rem !important;
        font-weight: 800 !important;
    }

    .hero-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        color: #64748b !important;
        margin-bottom: 1rem !important;
    }

    .hero-content > div:nth-of-type(1) {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.55rem !important;
        width: 100% !important;
    }

    .hero-content .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    .hero-badges {
        display: flex !important;
        gap: 0.45rem !important;
        overflow-x: auto !important;
        padding: 0.5rem 0 0.25rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin-top: 0.5rem !important;
    }

    .hero-badges::-webkit-scrollbar {
        display: none !important;
    }

    .hero-badge-item {
        flex-shrink: 0 !important;
        font-size: 0.72rem !important;
        padding: 0.35rem 0.65rem !important;
        background: white !important;
        border: 1px solid #fed7aa !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        color: #9a3412 !important;
        font-weight: 700 !important;
    }

    .hero-card-preview {
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
        border: 1px solid #fed7aa !important;
        margin-top: 0.5rem !important;
    }

    .hero-image-wrap img {
        height: 170px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .hero-floating-badge {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        border-radius: 12px !important;
        margin: -25px 12px 12px 12px !important;
        padding: 0.65rem 0.85rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
        border-left: 4px solid var(--primary) !important;
    }

    .floating-badge-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
    }

    /* 3. Section Titles & Search */
    .section-header {
        margin-bottom: 1.5rem !important;
        text-align: left !important;
    }

    .section-title {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
    }

    .section-subtitle {
        font-size: 0.75rem !important;
    }

    /* 4. Shops Carousel & Filter Pills */
    .shops-scroll-section {
        padding: 0.65rem 0 !important;
    }

    #shops-carousel-bar, .shop-filter-bar, .category-tabs {
        display: flex !important;
        gap: 0.45rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 0.25rem 0.2rem 0.4rem !important;
        flex-wrap: nowrap !important;
    }

    #shops-carousel-bar::-webkit-scrollbar,
    .shop-filter-bar::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .shop-filter-pill {
        padding: 0.38rem 0.75rem !important;
        font-size: 0.78rem !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* 5. Home 23 Shops Grid */
    #home-shops-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .shop-card {
        border-radius: 16px !important;
        overflow: hidden !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04) !important;
        transition: transform 0.2s ease !important;
    }

    .shop-card:active {
        transform: scale(0.99) !important;
    }

    .shop-card img {
        height: 155px !important;
    }

    /* 6. Products & Menu Grid on menu.html */
    .menu-grid, #menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .food-card, .product-card {
        border-radius: 14px !important;
        padding: 0.85rem !important;
        display: flex !important;
        gap: 0.85rem !important;
        align-items: center !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    }

    .food-card-img-wrap, .product-img-wrap {
        width: 85px !important;
        height: 85px !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .food-card-img, .product-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .food-card-content, .product-content {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .food-card-title, .product-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.2rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .food-card-price, .product-price {
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
    }

    /* 7. Native Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 58px !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06) !important;
        z-index: 10000 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 4px !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }

    .mobile-nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        color: #64748b !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        position: relative !important;
        padding: 5px 0 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .mobile-nav-item i {
        font-size: 1.15rem !important;
    }

    .mobile-nav-item.active {
        color: var(--primary) !important;
        font-weight: 800 !important;
    }

    .mobile-nav-item .mobile-cart-badge {
        position: absolute !important;
        top: 2px !important;
        right: calc(50% - 16px) !important;
        background: var(--primary) !important;
        color: white !important;
        font-size: 0.62rem !important;
        min-width: 16px !important;
        height: 16px !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 800 !important;
        border: 2px solid white !important;
    }

    /* 8. Cart Page & Checkout Layout */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .cart-items-wrapper {
        border-radius: 14px !important;
        padding: 1rem !important;
    }

    .cart-summary-card {
        border-radius: 16px !important;
        padding: 1.25rem !important;
    }

    /* 9. Orders Page & Token Display */
    .orders-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .order-card {
        border-radius: 14px !important;
        padding: 1rem !important;
    }

    /* 10. Modals & Notifications on Mobile */
    .order-ready-modal-card,
    .coming-soon-modal-card,
    .order-alert-card {
        max-width: calc(100vw - 28px) !important;
        border-radius: 18px !important;
        margin: auto !important;
    }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 380px) {
    .brand-logo span {
        font-size: 1rem !important;
    }
    .nav-actions a[download="CampusMart.apk"] {
        display: none !important;
    }
    .hero-content h1 {
        font-size: 1.35rem !important;
    }
    .mobile-nav-item span {
        font-size: 0.64rem !important;
    }
}


/* --- Admin Mobile Responsive Polish --- */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.85rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .admin-nav-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .admin-nav-bar > div:nth-child(2) {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.45rem !important;
        justify-content: flex-start !important;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        margin-bottom: 1.25rem !important;
    }

    .stat-card {
        padding: 0.85rem !important;
        gap: 0.65rem !important;
        border-radius: 12px !important;
    }

    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.15rem !important;
    }

    .stat-info .stat-val {
        font-size: 1.25rem !important;
    }

    .stat-info .stat-label {
        font-size: 0.72rem !important;
    }

    .admin-tabs {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        margin-bottom: 1rem !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .admin-tab-btn {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .table-responsive {
        border-radius: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 1.5rem !important;
    }

    .data-table {
        min-width: 650px !important;
    }

    #shop-scope-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0.75rem 1rem !important;
        gap: 0.65rem !important;
    }

    #shop-switcher-wrap {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #admin-active-shop-select {
        width: 100% !important;
    }
}
