:root {
    --primary: #f7cb46;
    --primary-dark: #333333;
    --secondary: #000000;
    --accent: #27ae60;
    --background: #f8f8f8;
    --text-dark: #1c1c1c;
    --text-gray: #666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-premium: 0 4px 12px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e8e8e8;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 16px;
}

/* ===== MOBILE CONTAINER ===== */
.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--background);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
    padding-bottom: 140px;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 8px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(247, 203, 70, 0.4);
    border: 2px solid #fff5c0;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.address-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
}

.address-area>i {
    color: var(--secondary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.address-details {
    flex: 1;
    min-width: 0;
}

.address-area h1 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tagline {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-time {
    font-size: 10px;
    font-weight: 800;
    color: #1a1a1a;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 6px;
}

.icon-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #ebebeb;
}

.icon-btn i {
    width: 18px;
    height: 18px;
}

.location-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border: 1.5px solid #27ae60;
    color: #27ae60;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.location-header-btn:hover {
    background: #27ae60;
    color: white;
}

.location-header-btn i {
    width: 16px;
    height: 16px;
}

/* Always hide text — icon only */
.location-header-btn span {
    display: none;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCREEN HEADER (back btn) ===== */
.screen-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.screen-header h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
}

.back-btn {
    background: #f5f5f5;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #ebebeb;
}

.back-btn i {
    width: 20px;
    height: 20px;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, #e9f5ff 0%, #ddefff 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d4e9ff;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 14px;
    color: #aaa;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 5;
}

.search-bar input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border-radius: 14px;
    border: 1.5px solid #eee;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    font-weight: 600;
    transition: border-color 0.2s;
}

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

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-grid .cat-item {
    width: 80px;
    flex-shrink: 0;
}

.cat-item {
    text-align: center;
    cursor: pointer;
}

.cat-item div {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.cat-item:hover div {
    transform: scale(1.04);
}

.cat-item.active div {
    border-color: var(--primary) !important;
    background: #fff9e6 !important;
    box-shadow: 0 4px 12px rgba(247, 203, 70, 0.3);
}

.cat-item.active span {
    color: #b8860b !important;
    font-weight: 900 !important;
}

.cat-item span {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    display: block;
}

/* ===== MENU GRID ===== */
.menu-section {
    padding-bottom: 10px;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.menu-card {
    background: var(--white);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-premium);
    position: relative;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s;
}

.menu-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-img {
    height: 160px;
    background: #f9f9f9;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fav-btn-card {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #ccc;
    transition: all 0.25s;
}

.fav-btn-card i {
    width: 16px;
    height: 16px;
}

.fav-btn-card.active {
    color: #e63946;
    background: #fff5f5;
}

.fav-btn-card:hover {
    transform: scale(1.1);
}

.qty-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 5;
}

/* Diet Tags */
.diet-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.diet-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 5px;
}

.diet-tag.veg {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.diet-tag.bestseller-badge {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.info-top h4 {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    flex: 1;
    padding-right: 8px;
}

.info-top .price {
    font-size: 16px;
    font-weight: 900;
    color: #1a1a1a;
    flex-shrink: 0;
}

.card-info p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.5;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.bestseller-tag {
    font-size: 9px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 9px;
    border-radius: 50px;
    border: 1px solid #d1fae5;
}

.add-btn {
    border: 1.5px solid var(--accent);
    background: #f0fdf4;
    color: var(--accent);
    padding: 7px 22px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.add-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.03);
}

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

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.qty-control button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-control span {
    font-size: 14px;
    font-weight: 900;
    min-width: 16px;
    text-align: center;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    margin: 10px;
}

.empty-state i {
    width: 56px;
    height: 56px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #999;
    font-size: 16px;
    margin-bottom: 6px;
}

.empty-state p {
    color: #bbb;
    font-size: 12px;
    margin-bottom: 20px;
}

/* ===== CHECKOUT CARDS ===== */
.checkout-card {
    background: var(--white);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid #f0f0f0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.card-header i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 800;
    flex: 1;
}

.text-link {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.mock-distance {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}

.distance-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    color: #999;
    margin-bottom: 8px;
}

.distance-info strong {
    color: var(--primary-dark);
    font-size: 12px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.mock-distance small {
    font-size: 9px;
    color: #bbb;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* Cart Summary */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.item-img {
    width: 48px;
    height: 48px;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.item-details h4 {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details p {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 1px;
}

.item-qty-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
}

.cart-item>strong {
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

/* Coupon */
.coupon-input {
    display: flex;
    gap: 8px;
}

.coupon-input input {
    flex: 1;
    background: #f9f9f9;
    border: 1.5px solid #eee;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.coupon-input input:focus {
    border-color: var(--primary);
}

.coupon-input button {
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.applied-coupon {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 12px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-icon {
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

.coupon-info strong {
    font-size: 12px;
    color: #065f46;
    display: block;
}

.coupon-info small {
    font-size: 10px;
    color: #059669;
}

.remove-coupon {
    background: transparent;
    border: none;
    color: #e63946;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

/* Bill */
.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.bill-row.green {
    color: #10b981;
}

.bill-row.total {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-dark);
    margin-top: 10px;
}

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

.payment-option {
    border: 1.5px solid #eee;
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.payment-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.payment-content i {
    width: 20px;
    height: 20px;
    color: #999;
}

.payment-option.active .payment-content i {
    color: #d97706;
}

.payment-content strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.payment-content small {
    font-size: 10px;
    color: var(--text-gray);
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

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

.payment-option.active .radio-circle::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment-option input {
    display: none;
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    padding: 17px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(247, 203, 70, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.primary-btn:hover {
    box-shadow: 0 12px 30px rgba(247, 203, 70, 0.45);
}

.primary-btn:active {
    transform: scale(0.98);
}

.place-order-btn {
    margin: 16px;
    width: calc(100% - 32px);
}

.secondary-btn {
    width: 100%;
    background: transparent;
    border: 2px solid #e8e8e8;
    color: var(--text-gray);
    padding: 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.secondary-btn:hover {
    border-color: #ccc;
    color: #444;
}

/* ===== SUCCESS SCREEN ===== */
.success-content {
    padding: 50px 20px 30px;
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.success-icon i {
    width: 48px;
    height: 48px;
}

.success-content h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.success-content p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.order-details-card {
    background: var(--white);
    border-radius: 20px;
    padding: 22px;
    margin: 0 16px 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid #f0f0f0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

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

.detail-row i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-row label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.detail-row strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.success-actions {
    padding: 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== TRACKING SCREEN ===== */
.tracking-header {
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn-tracking {
    background: #f5f5f5;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.back-btn-tracking i {
    width: 20px;
    height: 20px;
}

.header-status h3 {
    font-size: 17px;
    font-weight: 900;
}

.header-status p {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

.live-map-container {
    height: 260px;
    background: #eef2f3;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4fd 0%, #cfe5f8 100%);
    position: relative;
    background-image: radial-gradient(#b8cfe0 1px, transparent 1px);
    background-size: 22px 22px;
}

.pulse-ring {
    position: absolute;
    top: 40%;
    left: 45%;
    width: 60px;
    height: 60px;
    background: rgba(247, 203, 70, 0.25);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.delivery-boy-icon {
    position: absolute;
    top: 40%;
    left: 45%;
    background: var(--primary);
    color: #1a1a1a;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(247, 203, 70, 0.7);
    border: 3px solid #fff;
    z-index: 5;
    transform: translate(5px, 5px);
    transition: all 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-boy-icon i {
    width: 20px;
    height: 20px;
}

.destination-icon {
    position: absolute;
    bottom: 30%;
    right: 20%;
    background: #e63946;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.destination-icon i {
    width: 18px;
    height: 18px;
}

.tracking-info-panel {
    background: var(--white);
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
    position: relative;
    z-index: 10;
    padding: 28px 20px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}

/* Status Stepper */
.status-stepper {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.step {
    display: flex;
    gap: 14px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 28px;
    width: 2px;
    height: 18px;
    background: #eee;
}

.step.active:not(:last-child)::after {
    background: var(--accent);
}

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
}

.step-icon i {
    width: 13px;
    height: 13px;
}

@keyframes pulse-step-icon {
    0% {
        border-color: var(--accent);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }

    70% {
        border-color: var(--accent);
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        border-color: var(--accent);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.step.in-progress .step-icon {
    background: white;
    border: 2px solid var(--accent);
    animation: pulse-step-icon 2s infinite;
}

.step-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.step-text small {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Delivery Partner Card */
.delivery-partner-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid #f0f5f9;
    transition: background 0.2s;
}

.delivery-partner-card:hover {
    background: #f0f5fb;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.partner-img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

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

.partner-details label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.partner-details strong {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-dark);
}

.rating-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-top: 3px;
}

.rating-mini i {
    width: 11px;
    height: 11px;
    fill: #f59e0b;
    color: #f59e0b;
}

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

.partner-actions button {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.partner-actions button i {
    width: 18px;
    height: 18px;
}

.call-btn {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.call-btn:hover {
    background: #219a52;
}

.msg-btn {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee !important;
}

/* Order Preview in Tracking */
.order-preview {
    border-top: 1px solid #f1f5f9;
    padding-top: 22px;
}

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

.preview-header h4 {
    font-size: 15px;
    font-weight: 900;
}

/* ===== SHOP SCREEN ===== */
.shop-header-gallery {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.shop-header-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== STICKY CART BAR ===== */
.sticky-cart-bar {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 450px;
    background: #1c1c1c;
    color: white;
    padding: 13px 22px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.sticky-cart-bar.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-icon-bg {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 10px;
}

.cart-icon-bg i {
    width: 18px;
    height: 18px;
}

.cart-info span {
    font-weight: 800;
    font-size: 13px;
    display: block;
}

.cart-info small {
    font-size: 10px;
    opacity: 0.7;
}

.cart-total {
    text-align: right;
}

.cart-total strong {
    font-size: 18px;
    font-weight: 900;
    display: block;
}

.cart-total small {
    font-size: 9px;
    opacity: 0.7;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.nav-item.active {
    color: #1a1a1a;
}

.nav-item i {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 9px;
    font-weight: 800;
}

.nav-center-btn {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    border: 4px solid var(--background);
    box-shadow: 0 4px 16px rgba(247, 203, 70, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-center-btn:hover {
    transform: scale(1.05);
}

.nav-center-btn i {
    width: 26px;
    height: 26px;
}

/* Nav badge */
.nav-icon-wrap {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
    border: 2px solid white;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.25s;
    backdrop-filter: blur(2px);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    border-radius: 28px 28px 0 0;
    padding: 28px 24px;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 92vh;
    overflow-y: auto;
}

.modal.hidden .modal-content {
    transform: translateY(100%);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 900;
}

.close-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.close-btn i {
    width: 16px;
    height: 16px;
}

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

.option-item {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.option-item.active {
    background: var(--primary);
    color: #1a1a1a;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(247, 203, 70, 0.3);
}

.option-item:hover:not(.active) {
    border-color: #ccc;
    background: #fafafa;
}

/* ===== FLOATING ORDER INDICATOR ===== */
.floating-order-indicator {
    background: #fff9e6;
    color: #d97706;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 1.5px solid #fcd34d;
    box-shadow: 0 2px 10px rgba(247, 203, 70, 0.3);
    transition: all 0.3s ease;
}

.floating-order-indicator.inactive {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #ccc !important;
    box-shadow: none !important;
}

.floating-order-indicator.inactive .pulse-dot {
    display: none;
}

.floating-order-indicator i {
    width: 20px;
    height: 20px;
}

.pulse-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #e63946;
    border-radius: 50%;
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(230, 57, 70, 0);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== AUTH MODAL ===== */
.auth-step {
    animation: fadeSlideUp 0.25s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 12px 15px;
    background: #fdfdfd;
    transition: border-color 0.2s;
}

.auth-input-wrap:focus-within {
    border-color: var(--primary);
    background: #fffdf0;
}

.auth-input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #2d3436;
    font-family: 'Inter', sans-serif;
}

.auth-input-wrap input::placeholder {
    color: #ccc;
    font-weight: 500;
}

.auth-input-wrap i {
    width: 16px;
    height: 16px;
    color: #aaa;
    flex-shrink: 0;
}

/* OTP Boxes */
.otp-box {
    width: 44px;
    height: 52px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #2d3436;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
}

.otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 203, 70, 0.2);
    background: #fffdf0;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* User pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff9e6;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: #1a1a1a;
}

.user-pill img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== SHOP PAGE MAP ===== */
@keyframes mapPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes floatMarker {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(-8px);
    }
}

.shop-mini-map:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.shop-mini-map:active {
    transform: scale(0.98);
}

/* ===== ORDERS SCREEN ===== */
.order-history-card {
    transition: box-shadow 0.2s;
}

.order-history-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ===== FAVORITES ===== */
#favorites-list {
    padding: 12px;
}

/* ===== CANCEL BAR (tracking) ===== */
.cancel-order-container {
    padding: 10px 20px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cancel-btn {
    background: #fff0f0;
    color: #e63946;
    border: 1px solid #ffcdd2;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cancel-btn:hover {
    background: #ffebeb;
}

.cancel-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.cancel-timer {
    font-size: 12px;
    font-weight: 700;
    color: #999;
}

.cancel-timer span {
    color: #e63946;
    font-weight: 800;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1c1c1c;
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.4s forwards;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}

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

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ===== SCROLL FIX ===== */
.screen {
    overflow-x: hidden;
}

#checkout-screen {
    padding: 0 0 20px;
}

#checkout-screen .checkout-card {
    margin: 16px 16px 0;
}

/* ===== ANIMATION FOR ICONS ===== */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.fav-btn-card.active {
    animation: heartBeat 0.4s ease;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 360px) {
    .logo-text {
        font-size: 12px;
    }

    .otp-box {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .category-grid {
        gap: 8px;
    }
}

/* ===== PAYMENT MODAL CSS ===== */
.payment-modal-content {
    background: #fff;
}

.payment-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    padding: 14px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-app-btn:hover {
    border-color: var(--primary);
    background: #fffdf5;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.payment-app-btn span {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}

.bank-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.loader-line {
    position: relative;
    background: #f1f5f9;
}

/* Modal specific for payment (bottom sheet style) */
#payment-modal .payment-modal-content {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#payment-qr-container img {
    display: block;
    max-width: 100%;
}