@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Official POSGO Brand Palette */
    --bg-base: #f4f6f5;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f0f3f2;
    --border-color: #e3e8e6;
    --border-strong: #d0d9d5;

    --color-primary: #0b7a5c;
    --color-primary-hover: #085f47;
    --color-primary-soft: #eaf5f1;
    --color-primary-glow: rgba(11, 122, 92, 0.14);

    --color-ink: #181c20;
    --color-secondary: #d97706;
    --color-success: #0b7a5c;
    --color-success-hover: #085f47;
    --color-success-glow: rgba(11, 122, 92, 0.12);
    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-danger-glow: rgba(220, 38, 38, 0.1);

    --text-main: #181c20;
    --text-muted: #5f6b68;
    --text-subtle: #889692;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-xs: 0 1px 2px rgba(24, 28, 32, 0.04);
    --shadow-sm: 0 2px 8px rgba(24, 28, 32, 0.05);
    --shadow-md: 0 10px 28px rgba(24, 28, 32, 0.09);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Legacy variable aliases for inline styles */
    --color-brand-green-start: #085f47;
    --color-brand-green-end: #0b7a5c;
    --color-brand-green-glow: rgba(11, 122, 92, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main App Container */
.app-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-base);
    padding-bottom: 96px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c7d1ce;
    border-radius: 999px;
}

/* Sticky Navigation Header */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-go-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border: 1px solid rgba(11, 122, 92, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    background: var(--bg-surface-hover);
    color: var(--color-primary);
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.nav-logout-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.nav-logout-btn:hover {
    color: var(--color-danger);
    border-color: rgba(220, 38, 38, 0.3);
    background: var(--color-danger-glow);
}

/* Shared Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(11, 122, 92, 0.22);
}

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

.btn-outline {
    background: #fff;
    color: var(--text-main);
    border-color: var(--border-color);
}

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

/* Home Hero Banner - Clean POSGO Corporate Style */
.welcome-hero {
    background: var(--color-ink);
    background-image: linear-gradient(120deg, #13201c 0%, #0b5d47 100%);
    padding: 32px 28px;
    margin: 20px 24px 0;
    border-radius: var(--radius-xl);
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-hero-inner {
    max-width: 680px;
}

.welcome-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #a7f3d0;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.welcome-hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.welcome-hero p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.84);
    margin-top: 8px;
    font-weight: 400;
}

.search-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 6px 8px 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    max-width: 540px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-box i {
    color: var(--text-subtle);
    font-size: 15px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 4px;
    font-size: 14.5px;
    color: var(--text-main);
    width: 100%;
    font-weight: 500;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-subtle);
}

.search-submit-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.search-submit-btn:hover {
    background: var(--color-primary-hover);
}

/* Location Strip */
.location-bar-wrap {
    padding: 0 24px;
    margin-top: 16px;
}

.location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
}

.location-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.location-bar-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-bar-action {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border: 1px solid rgba(11, 122, 92, 0.2);
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.location-bar-action:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Active Order Alert Card */
.active-orders-wrap {
    padding: 0 24px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-order-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(11, 122, 92, 0.3);
    border-left: 4px solid var(--color-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.active-order-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary);
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.015em;
    padding: 22px 24px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Filter Badges Horizontal List */
.filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 24px 12px;
    scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar {
    display: none;
}

.filter-badge {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.filter-badge:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.filter-badge.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Restaurant Cards Grid */
.restaurants-list {
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}

.restaurant-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 14px;
    transition: var(--transition-smooth);
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(11, 122, 92, 0.35);
}

.restaurant-card-logo {
    width: 82px;
    height: 82px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #f8faf9;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.restaurant-card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.restaurant-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.restaurant-card-address {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.meta-item {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.meta-item.rating {
    color: #92400e;
    background: #fef3c7;
    padding: 3px 7px;
    border-radius: 6px;
    font-weight: 700;
}

.meta-item.distance {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 3px 7px;
    border-radius: 6px;
    font-weight: 700;
}

.meta-item.time {
    color: var(--text-muted);
}

.meta-item.min-order {
    color: var(--text-muted);
}

/* Restaurant Detail Hero */
.restaurant-hero {
    background: var(--color-ink);
    background-image: linear-gradient(125deg, #141e1b 0%, #0c5c46 100%);
    color: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.restaurant-hero-back {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.restaurant-hero-back:hover {
    background: rgba(255, 255, 255, 0.18);
}

.restaurant-hero-main {
    display: flex;
    gap: 18px;
    align-items: center;
}

.restaurant-hero-logo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.restaurant-hero-info h1 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.restaurant-hero-info p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Category Sticky Bar */
.category-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
}

.category-bar-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 13px 24px;
    scrollbar-width: none;
}

.category-bar-scroll::-webkit-scrollbar {
    display: none;
}

.category-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.category-link:hover,
.category-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Menu / Products Grid */
.menu-section {
    padding: 24px;
}

.category-section-wrapper {
    margin-bottom: 32px;
}

.category-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    border-left: 3px solid var(--color-primary);
    padding-left: 11px;
    letter-spacing: -0.01em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}

.product-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 14px;
    position: relative;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(11, 122, 92, 0.35);
}

.product-image {
    width: 92px;
    height: 92px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #f4f6f5;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.product-description {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-ink);
}

.add-to-cart-btn {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border: 1px solid rgba(11, 122, 92, 0.22);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Floating Cart Bar */
.sticky-bottom-actions {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 580px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 110;
    box-shadow: var(--shadow-md);
}

.sticky-bottom-actions .cart-details {
    display: flex;
    flex-direction: column;
}

.sticky-bottom-actions .cart-count {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.sticky-bottom-actions .cart-total {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-ink);
}

.view-cart-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 122, 92, 0.24);
    transition: var(--transition-smooth);
}

.view-cart-btn:hover {
    background: var(--color-primary-hover);
}

/* Modal / Bottom Drawers */
.bottom-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 28, 32, 0.55);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.22s ease;
    opacity: 0;
    pointer-events: none;
}

.bottom-drawer.active {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.drawer-content {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 22px 22px;
    max-height: 88%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
    .bottom-drawer {
        align-items: center;
    }

    .drawer-content {
        border-radius: 20px;
        max-height: 84%;
    }
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.drawer-close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.form-control {
    border: 1px solid var(--border-color);
    background: #f9fbfa;
    border-radius: var(--radius-md);
    padding: 11px 14px;
    outline: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Auth Card Wrapper */
.auth-page-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}

.auth-card.auth-card--wide {
    max-width: 620px;
}

/* Selector buttons (Payment type) */
.selector-group {
    display: flex;
    gap: 10px;
}

.selector-option {
    flex: 1;
    border: 1px solid var(--border-color);
    background: #f9fbfa;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.selector-option.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* Order Success */
.success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: var(--color-primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 38px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.receipt-card {
    background: #f9fbfa;
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.receipt-row.total {
    border-top: 1px dashed var(--border-strong);
    padding-top: 12px;
    font-weight: 800;
    font-size: 17px;
    color: var(--color-primary);
}

/* Loader modal */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 28, 32, 0.72);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #34d399;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Quantity controls in cart drawer */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

.cart-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 800;
    margin-top: 3px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-base);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    border: none;
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.qty-val {
    font-size: 14px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Product Options */
.po-section-title {
    margin: 16px 0 10px;
    font-size: 14px;
    font-weight: 800;
}

.po-section-title--mandatory {
    color: #92400e;
}

.po-section-title--extra {
    color: var(--color-primary);
}

.po-section-title--portion {
    color: #1d4ed8;
}

.po-group {
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.po-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
}

.po-group--mandatory .po-group-head {
    background: #fffbeb;
}

.po-group--extra .po-group-head {
    background: var(--color-primary-soft);
}

.po-group--portion .po-group-head {
    background: #eff6ff;
}

.po-group-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.po-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.po-badge--required {
    background: #fde68a;
    color: #78350f;
}

.po-badge--extra {
    background: rgba(11, 122, 92, 0.14);
    color: var(--color-primary);
}

.po-options-list {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.po-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    width: 100%;
}

.po-option-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.po-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.po-option-row.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.po-option-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.po-option-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.po-option-item--extra {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.po-option-item--extra .po-option-row {
    flex: 1;
    min-width: 0;
}

.po-option-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    align-self: center;
    padding: 4px;
    border-radius: 10px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
}

.po-option-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: #fff;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.po-option-qty-val {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

/* Mobile Responsive Refinements */
@media (max-width: 640px) {
    header {
        padding: 10px 14px;
    }

    .brand-logo-img {
        height: 23px;
    }

    .nav-user-chip span {
        max-width: 85px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .welcome-hero {
        margin: 12px 14px 0;
        padding: 22px 18px;
        border-radius: var(--radius-lg);
    }

    .welcome-hero h1 {
        font-size: 22px;
    }

    .location-bar-wrap,
    .active-orders-wrap,
    .restaurants-list,
    .menu-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-title {
        padding: 18px 14px 8px;
        font-size: 17px;
    }

    .filters-scroll {
        padding: 4px 14px 10px;
    }

    .restaurants-list,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .location-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 24px 18px;
    }
}
