/* ===== PAIKMAL KART — PUBLIC THEME ===== */
/* Brand: #f3630f (orange), #3dbb4c (green) */

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

:root {
    --orange: #f3630f;
    --orange-light: #ff8a3d;
    --orange-dark: #d4520a;
    --green: #3dbb4c;
    --green-light: #5dd86b;
    --green-dark: #2d9e3a;
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --bg: #0f0f14;
    --bg-white: #1a1a24;
    --text-dark: #eaeaf0;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border: #2a2a3a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}
[data-theme="dark"] .site-header {
    background: #12121a;
    border-color: #2a2a3a;
}
[data-theme="dark"] .category-scroll-wrap { background: var(--bg); }
[data-theme="dark"] .search-bar input,
[data-theme="dark"] .mobile-search-bar input {
    background: #1e1e2e;
    border-color: #2a2a3a;
    color: var(--text-dark);
}
[data-theme="dark"] .search-dropdown {
    background: #1a1a24;
    border-color: #2a2a3a;
}
[data-theme="dark"] .product-card {
    background: #1a1a24;
    border-color: #2a2a3a;
}
[data-theme="dark"] .product-img {
    background: #22222e;
}
[data-theme="dark"] .category-card {
    background: #1a1a24;
    border-color: #2a2a3a;
}
[data-theme="dark"] .category-icon {
    background: rgba(243,99,15,0.12);
}
[data-theme="dark"] .mobile-bottom-nav {
    background: #12121a;
    border-color: #2a2a3a;
}
[data-theme="dark"] .site-footer {
    background: #0a0a0f;
}
[data-theme="dark"] .scroll-arrow {
    background: #3a3a4a;
    border: 2px solid #555570;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
[data-theme="dark"] .pd-info-card {
    background: #1a1a24;
}
[data-theme="dark"] .pd-sticky-bar {
    background: #12121a;
    border-color: #2a2a3a;
}
[data-theme="dark"] .pd-meta-chip {
    background: #22222e;
    color: #9ca3af;
}
[data-theme="dark"] .pd-trust-badges .trust-badge {
    color: #9ca3af;
}
[data-theme="dark"] .pd-desc-box {
    background: #22222e;
    border-color: #2a2a3a;
}
[data-theme="dark"] .categories-modal {
    background: #1a1a24;
}
[data-theme="dark"] .toast {
    background: #1a1a24;
    color: #eaeaf0;
    border-color: #2a2a3a;
}
[data-theme="dark"] .nav-scroll a {
    color: #9ca3af;
}
[data-theme="dark"] .nav-scroll a.active {
    color: var(--orange);
}
[data-theme="dark"] .breadcrumb-bar {
    background: var(--bg);
}

/* Dark mode smooth transition */
body, .site-header, .product-card, .category-card, .mobile-bottom-nav,
.site-footer, .pd-info-card, .pd-sticky-bar, .search-bar input,
.scroll-arrow, .categories-modal, .toast, .usp-strip, .usp-item h4, .usp-item p, .usp-icon {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Theme toggle button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.theme-toggle:hover { color: var(--orange); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle { color: #fbbf24; }

/* Theme switch circular reveal overlay */
.theme-switch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
}
.theme-switch-overlay.to-dark {
    background: #0f0f14;
}
.theme-switch-overlay.to-light {
    background: #f8f9fa;
}

/* View Transitions API — modern browsers */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-new(root) {
    z-index: 99999;
}

/* Toggle pulse + glow during switch */
@keyframes togglePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243,99,15,0.4); }
    40% { transform: scale(1.25); box-shadow: 0 0 0 12px rgba(243,99,15,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243,99,15,0); }
}
.theme-toggle.switching {
    animation: togglePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.announcement-bar i { margin-right: 6px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--orange);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.logo-wrap { flex-shrink: 0; }
.logo-wrap img { height: 42px; width: auto; }

.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
    display: none;
}
.search-bar input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}
.search-bar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(243, 99, 15, 0.15);
}
.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--orange-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.header-btn i { font-size: 16px; }
.header-btn:hover { background: var(--bg); }

.btn-login {
    background: var(--orange);
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px;
}
.btn-login:hover { background: var(--orange-dark) !important; }

.btn-text-desktop { display: none; }

.mobile-search-toggle {
    display: flex;
    font-size: 20px;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-search-bar {
    display: none;
    padding: 0 16px 12px;
}
.mobile-search-bar.active { display: block; }
.mobile-search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
}
.mobile-search-bar input:focus { border-color: var(--orange); }

/* ===== CATEGORY NAV ===== */
.category-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
    display: flex;
    gap: 0;
    min-width: max-content;
}
.category-nav-inner a {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-nav-inner a:hover,
.category-nav-inner a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: rgba(243, 99, 15, 0.04);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #fff8f0 0%, #f0fdf4 100%);
    padding: 32px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 187, 76, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.hero-text h1 span.orange { color: var(--orange); }
.hero-text h1 span.green { color: var(--green); }
.hero-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(243, 99, 15, 0.35);
}
.btn-primary i { font-size: 15px; }
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 99, 15, 0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--green);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid var(--green);
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.hero-badge i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 14px;
}
.hero-badge.green i { background: rgba(61,187,76,0.12); color: var(--green); }
.hero-badge.orange i { background: rgba(243,99,15,0.12); color: var(--orange); }

/* ===== PROMO CAROUSEL ===== */
.promo-carousel-section { padding: 20px 0 8px; }
.promo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.promo-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.promo-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 4px;
    box-sizing: border-box;
}
.promo-slide-img {
    display: block;
    width: 100%;
    padding-bottom: 36.15%; /* reduced another 1.1x */
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 0;
}
.promo-slide-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* Desktop: two slides side by side (single banner still full width via modifier) */
@media (min-width: 768px) {
    .promo-slide { min-width: 50%; }
    .promo-carousel--single .promo-slide { min-width: 100%; }
    .promo-dots { display: flex; }
}
.promo-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
}
.promo-card.orange { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.promo-card.green { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.promo-card.dark { background: linear-gradient(135deg, #1a1a2e, #2d2d44); }
.promo-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.promo-card p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.promo-tag {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 6px;
}
.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.promo-dot.active {
    background: var(--orange);
    width: 28px;
    border-radius: 5px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}
.section-title h2 .accent { color: var(--orange); }
.section-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-title a:hover { color: var(--orange-dark); }

/* ===== CATEGORY CARDS ===== */
.categories-section { padding: 32px 0; }
.category-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
}
.category-scroll-wrap::-webkit-scrollbar { display: none; }
.category-grid {
    display: flex;
    gap: 12px;
    min-width: max-content;
}
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    width: 130px;
    flex-shrink: 0;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: var(--transition);
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.category-card:nth-child(odd) .category-icon {
    background: rgba(243, 99, 15, 0.1);
    color: var(--orange);
}
.category-card:nth-child(even) .category-icon {
    background: rgba(61, 187, 76, 0.1);
    color: var(--green);
}
.category-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.category-card span {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PRODUCT CARDS ===== */
.products-section { padding: 32px 0; }
.products-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
    cursor: grab;
    scroll-behavior: smooth;
}
.products-scroll-wrap:active { cursor: grabbing; }
.products-scroll-wrap::-webkit-scrollbar { display: none; }

/* Scroll arrow buttons */
.scroll-section { position: relative; }
.scroll-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.scroll-arrow:hover { background: var(--orange); color: white; border-color: var(--orange); }
.scroll-arrow.left { left: -8px; }
.scroll-arrow.right { right: -8px; }
@media (min-width: 768px) {
    .scroll-arrow { display: flex; }
}
.products-row {
    display: flex;
    gap: 12px;
    min-width: max-content;
}
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 165px;
    flex-shrink: 0;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-img {
    width: 100%;
    height: 140px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    flex-shrink: 0;
}
.product-img img {
    max-height: 100%;
    object-fit: contain;
}
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}
.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.product-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.product-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.product-price .rate {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}
.product-price .cost {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-mrp {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}
.product-price .product-variant-hint {
    margin-left: 0;
    flex-shrink: 0;
    align-self: flex-start;
}
.product-add-btn {
    width: 100%;
    padding: 8px;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: auto;
}
.product-add-btn:hover { background: var(--orange-dark); }

/* In-cart qty control on product cards */
.product-add-btn.in-cart {
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 0;
    cursor: default;
    min-height: 38px;
}
.product-add-btn.in-cart:hover { background: var(--green); }
.card-qty-minus, .card-qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: 38px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    color: white;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.card-qty-minus:hover, .card-qty-plus:hover { background: rgba(0,0,0,0.15); }
.card-qty-minus:active, .card-qty-plus:active { background: rgba(0,0,0,0.25); transform: scale(0.92); }
.card-qty-num {
    font-size: 15px;
    font-weight: 900;
    min-width: 32px;
    text-align: center;
    color: white;
    letter-spacing: 0.5px;
}

/* ===== GROUP SECTIONS ===== */
.group-section { padding: 24px 0; }

/* ===== USP STRIP ===== */
.usp-strip {
    background: linear-gradient(135deg, #fff8f0, #f0fdf4);
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.usp-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.usp-item:nth-child(odd) .usp-icon { background: rgba(243,99,15,0.1); color: var(--orange); }
.usp-item:nth-child(even) .usp-icon { background: rgba(61,187,76,0.1); color: var(--green); }
.usp-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}
.usp-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* USP strip: dark mode (keep dedicated surface — global --text-* flips light on dark theme) */
[data-theme="dark"] .usp-strip {
    background: linear-gradient(135deg, #1a1816 0%, #121a17 50%, #14161c 100%);
    border-top-color: #2a2a3a;
    border-bottom-color: #2a2a3a;
}
[data-theme="dark"] .usp-item:nth-child(odd) .usp-icon {
    background: rgba(243, 99, 15, 0.2);
    color: #fdba74;
}
[data-theme="dark"] .usp-item:nth-child(even) .usp-icon {
    background: rgba(61, 187, 76, 0.18);
    color: #86efac;
}
[data-theme="dark"] .usp-item h4 {
    color: #eaeaf0;
}
[data-theme="dark"] .usp-item p {
    color: #9ca3af;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
    color: #9ca3af;
}
.footer-brand img {
    height: 38px;
    filter: brightness(10);
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 15px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--orange);
    color: white;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}
.footer-col ul li a {
    font-size: 13px;
    color: #9ca3af;
    padding: 4px 0;
    display: block;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--orange);
    padding-left: 4px;
}
.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9ca3af;
}
.contact-item i {
    color: var(--orange);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}
.contact-item a.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.contact-item a.footer-contact-link:hover {
    color: var(--orange);
}

/* PWA install (footer) — only when not running as installed app */
.footer-pwa-row {
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-pwa-install {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid rgba(243, 99, 15, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(243, 99, 15, 0.12) 0%, rgba(243, 99, 15, 0.04) 100%);
    color: #f3f4f6;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.footer-pwa-install:hover {
    border-color: rgba(251, 146, 60, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(243, 99, 15, 0.15);
}
.footer-pwa-install:active {
    transform: translateY(0);
}
.footer-pwa-install__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3630f, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(243, 99, 15, 0.35);
}
.footer-pwa-install__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-pwa-install__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}
.footer-pwa-install__sub {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.35;
}
.footer-pwa-install__chev {
    flex-shrink: 0;
    color: #f97316;
    font-size: 13px;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .footer-pwa-row {
        padding: 8px 0 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-pwa-install {
        max-width: 480px;
        padding: 14px 18px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #6b7280;
}
.footer-bottom .payment-icons {
    display: flex;
    gap: 8px;
}
.footer-bottom .payment-icons i {
    font-size: 24px;
    color: #6b7280;
}

/* ===== FOOTER — MOBILE APP STYLES ===== */
.footer-mobile-brand { display: none; }
.footer-mobile-social { display: none; }
.footer-acc-icon { display: none; }

@media (max-width: 767px) {
    .usp-strip { display: none; }
    .footer-desktop-only { display: none !important; }

    .site-footer { padding: 24px 0 80px; }

    .footer-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-mobile-brand img {
        height: 32px;
        filter: brightness(10);
    }
    .footer-mobile-brand p {
        font-size: 12px;
        color: #9ca3af;
        line-height: 1.4;
    }

    .footer-grid { gap: 0; margin-bottom: 0; }

    .footer-accordion {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .footer-acc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 14px 0;
        margin-bottom: 0 !important;
        padding-bottom: 14px !important;
        user-select: none;
    }
    .footer-acc-toggle::after { display: none; }
    .footer-acc-icon {
        display: inline-block;
        font-size: 12px;
        color: #6b7280;
        transition: transform 0.3s ease;
    }
    .footer-accordion.open .footer-acc-icon {
        transform: rotate(180deg);
    }
    .footer-acc-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    .footer-accordion.open .footer-acc-body {
        max-height: 300px;
        padding-bottom: 12px;
    }

    .footer-mobile-social {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-mobile-social a {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d1d5db;
        font-size: 16px;
        transition: var(--transition);
    }
    .footer-mobile-social a:hover {
        background: var(--orange);
        color: white;
    }

    .footer-bottom { padding: 16px 0; }
    .footer-bottom p { font-size: 11px; }
    .footer-bottom .payment-icons i { font-size: 20px; }
    .back-to-top { bottom: 72px; right: 16px; width: 38px; height: 38px; font-size: 15px; }
}
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: white;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    font-size: 18px;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    gap: 3px;
}
.mobile-bottom-nav a i { font-size: 18px; }
.mobile-bottom-nav a.active { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .product-card { width: 180px; }
    .category-card { width: 140px; }
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .mobile-bottom-nav { display: none; }
    .mobile-search-toggle { display: none; }
    .search-bar { display: block; }
    .btn-text-desktop { display: inline !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 36px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    body { padding-bottom: 0; }
    .category-card { width: 150px; }
}

@media (min-width: 1024px) {
    .header-top { padding: 14px 0; }
    .logo-wrap img { height: 48px; }
    .hero { padding: 48px 0 56px; }
    .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
    .hero-text { max-width: 55%; }
    .hero-text h1 { font-size: 42px; }
    .usp-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
    .product-card { width: 200px; }
    .category-card { width: 160px; }
}

@media (max-width: 767px) {
    body { padding-bottom: 56px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.breadcrumb-bar a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb-bar a:hover { color: var(--orange); }
.breadcrumb-bar i { margin: 0 8px; font-size: 10px; color: var(--text-light); }
.breadcrumb-bar span { color: var(--text-dark); font-weight: 600; }

/* ===== PRODUCT DETAIL — MOBILE APP FEEL ===== */
.pd-main {
    display: flex;
    flex-direction: column;
}
.pd-hero {
    position: relative;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
.pd-hero img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    padding: 16px;
}
.pd-hero .pd-placeholder {
    font-size: 80px;
    color: var(--border);
}
.pd-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}
.pd-back-btn:hover { background: white; transform: scale(1.1); }
.pd-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.pd-body { padding: 0 0 120px; }
.pd-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 5;
    padding: 20px 16px 16px;
}
.pd-category {
    display: inline-block;
    background: rgba(61, 187, 76, 0.1);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pd-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}
.pd-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.pd-rate {
    font-size: 26px;
    font-weight: 900;
    color: var(--orange);
}
.pd-cost {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}
.pd-mrp-plain {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.pd-discount {
    background: rgba(243, 99, 15, 0.1);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}
/* Variant picker chips */
.pd-variant-picker {
    margin: 12px 0 16px;
}
.pd-variant-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pd-variant-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-variant-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    transition: all .15s;
    line-height: 1.3;
}
.pd-variant-chip .pd-variant-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-variant-chip:hover {
    border-color: var(--orange);
}
.pd-variant-chip.is-active {
    border-color: var(--orange);
    background: rgba(243, 99, 15, .08);
    color: var(--orange-dark);
}
.pd-variant-chip.is-active .pd-variant-price {
    color: var(--orange);
}
[data-theme="dark"] .pd-variant-chip {
    background: #1e1e2e;
    border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .pd-variant-chip.is-active {
    background: rgba(243, 99, 15, .15);
    border-color: var(--orange);
}

.pd-meta-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-chip i { color: var(--green); font-size: 12px; }

.pd-desc-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}
.pd-desc-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.pd-desc-card h3 i { color: var(--orange); margin-right: 6px; }
.pd-desc-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Desktop-only Add to Cart actions — hidden on mobile */
.pd-desktop-actions {
    display: none;
}

.pd-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pd-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(61,187,76,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--green);
}
.pd-trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}

.pd-related { margin-top: 24px; }
.pd-related-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

/* STICKY BOTTOM BAR (mobile only) */
.pd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.pd-sticky-price {
    display: flex;
    flex-direction: column;
    min-width: 70px;
}
.pd-sticky-amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
}
.pd-sticky-mrp {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.pd-sticky-mrp--plain {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
}
.pd-sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-sticky-cart-btn {
    padding: 10px 20px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pd-sticky-cart-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.pd-sticky-cart-btn:active { transform: scale(0.97); }
.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-selector input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    outline: none;
    background: var(--bg-white);
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { border-width: 1px; }
.qty-sm .qty-btn { width: 32px; height: 32px; font-size: 12px; }
.qty-sm span { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

.pd-add-to-cart {
    flex: 1;
    min-width: 180px;
    padding: 12px 24px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pd-add-to-cart:hover { background: var(--orange-dark); transform: translateY(-2px); }

.pd-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.pd-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.pd-feat i { color: var(--green); font-size: 16px; }

/* ===== ARCHIVE / SEARCH GRID ===== */
.archive-section, .search-section { padding: 24px 0 40px; }
.archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.archive-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}
.archive-header span {
    font-size: 14px;
    color: var(--text-muted);
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.archive-grid .product-card {
    width: auto;
    flex-shrink: unset;
}

/* ===== SEARCH PAGE ===== */
.search-page-bar {
    margin-bottom: 24px;
}
.search-page-bar form {
    position: relative;
}
.search-page-bar input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: var(--bg-white);
    transition: var(--transition);
}
.search-page-bar input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,99,15,0.15); }
.search-page-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.search-page-bar button:hover { background: var(--orange-dark); }

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-of-type { border-bottom: none; }
.sri-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 10px 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.sri-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sri-img img { width: 100%; height: 100%; object-fit: contain; }
.sri-img i { font-size: 18px; color: var(--text-light); }
.sri-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sri-name { font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sri-price { font-size: 13px; font-weight: 700; color: var(--orange); }
.sri-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.sri-price-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sri-variant-hint { font-size: 10px; margin-left: 0; }
.sri-mrp-line { font-size: 11px; line-height: 1.2; }
.sri-mrp {
    font-weight: 600;
    color: var(--text-light);
}
.sri-mrp--strike {
    text-decoration: line-through;
}

/* Search Cart Button */
.search-dropdown .search-result-item {
    min-width: 0;
}
.search-dropdown .sri-cart-btn {
    position: relative;
    z-index: 2;
}
.sri-cart-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid var(--green, #16a34a);
    background: var(--green, #16a34a);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all .2s;
    padding: 0;
}
.sri-cart-btn:hover { background: #15803d; border-color: #15803d; }
.sri-cart-btn.in-cart {
    width: auto;
    min-width: 80px;
    background: var(--green, #16a34a);
    border-color: var(--green, #16a34a);
    color: #fff;
    gap: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sri-qty-minus, .sri-qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s;
}
.sri-qty-minus:hover, .sri-qty-plus:hover { background: rgba(255,255,255,.2); }
.sri-qty-num {
    font-size: 13px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.search-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    border-top: 1px solid var(--border);
}
.search-view-all:hover { background: var(--bg); }

.search-bar { position: relative; }
.mobile-search-bar { position: relative; }

/* ===== CART PAGE ===== */
.cart-section { padding: 24px 0 40px; }
.cart-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.cart-title i { color: var(--orange); margin-right: 8px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-img i { font-size: 28px; color: var(--text-light); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.cart-item-name:hover { color: var(--orange); }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.cart-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: auto;
}
.cart-remove-btn {
    color: var(--text-light);
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}
.cart-remove-btn:hover { color: #ef4444; }

.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 80px;
    height: fit-content;
}
.cart-summary h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text-muted);
}
.cart-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}
.delivery-free { color: var(--green); font-weight: 700; }
.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.btn-outline-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 2px solid var(--orange);
    color: var(--orange);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline-full:hover { background: var(--orange); color: white; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state > i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== CART BADGE ===== */
.header-cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mobile-cart-link, .mobile-notif-link { position: relative; }
.mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    /* Hidden toast must not intercept taps (e.g. vendor portal fixed tab bar is z-index 200). */
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast.error { background: #ef4444; }

/* ===== CATEGORIES MODAL ===== */
.categories-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}
.categories-modal-overlay.active {
    display: flex;
}
.categories-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.categories-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
}
.categories-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}
.categories-modal-header h3 i { color: var(--orange); margin-right: 8px; }
.categories-modal-header button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.categories-modal-header button:hover { background: var(--border); }
.categories-modal-body { padding: 8px 0; }
.cat-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cat-modal-item:hover { background: var(--bg); }
.cat-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cat-modal-icon.orange { background: rgba(243,99,15,0.1); color: var(--orange); }
.cat-modal-icon.green { background: rgba(61,187,76,0.1); color: var(--green); }
.cat-modal-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.cat-modal-arrow { color: var(--text-light); font-size: 12px; }

/* ===== BOTTOM MODALS (Account + Mini Cart) ===== */
.btm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}
.btm-modal-overlay.active { display: flex; }
.btm-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
    padding: 8px 20px 24px;
    -webkit-overflow-scrolling: touch;
}
.btm-modal-handle {
    width: 36px; height: 4px;
    background: rgba(0,0,0,.12);
    border-radius: 2px;
    margin: 0 auto 14px;
}

/* Profile */
.btm-modal-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 24px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    margin-bottom: 8px;
}
.btm-modal-avatar {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: #f3630f;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(243,99,15,.2);
}
.btm-modal-name { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.btm-modal-email { font-size: 13px; color: #888; margin-top: 4px; }

/* Action Links */
.btm-modal-actions { padding: 4px 0; display: flex; flex-direction: column; gap: 0; }
.btm-modal-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    text-decoration: none;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btm-modal-action:active { background: rgba(0,0,0,.03); border-radius: 12px; }
.btm-modal-action:last-child { border-bottom: none; }
.btm-modal-action span { flex: 1; font-size: 14px; font-weight: 700; color: #1a1a2e; }

/* Action Icons - Soft rounded squares */
.btm-modal-action-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    /* Default (e.g. Profile) */
    background: #fff4ed; color: #f3630f;
}
.btm-modal-action-icon.blue { background: #f0f5ff; color: #3b82f6; }
.btm-modal-action-icon.indigo { background: #eef2ff; color: #6366f1; }
.btm-modal-action-icon.yellow { background: #fefce8; color: #ca8a04; }
.btm-modal-action-icon.orange { background: #fff8eb; color: #d97706; }
.btm-modal-action-icon.green { background: #f0fdf4; color: #22c55e; }
.btm-modal-action-icon.teal { background: #ecfdf5; color: #059669; }
.btm-modal-savings-pill {
    font-size: 12px;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 12px;
}
[data-theme="dark"] .btm-modal-savings-pill {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.2);
}
.btm-modal-action-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.btm-modal-action-icon.red { background: #fef2f2; color: #ef4444; }

/* ── Invite & Earn highlight row ── */
@keyframes referralShimmer {
    0% { background-position: -200% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes referralPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes referralBadgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 12px 4px rgba(245, 158, 11, 0.25); }
}
@keyframes referralFlare {
    0%   { transform: translateX(-110%) skewX(-18deg); }
    100% { transform: translateX(350%) skewX(-18deg); }
}
.btm-referral-cta.btm-modal-action {
    position: relative;
    margin: 6px 0;
    padding: 14px 12px;
    border-radius: 16px;
    border-bottom: none;
    background:
        linear-gradient(
            100deg,
            rgba(255, 247, 237, 0) 0%,
            rgba(254, 243, 199, 0.55) 25%,
            rgba(253, 230, 138, 0.4) 50%,
            rgba(254, 243, 199, 0.55) 75%,
            rgba(255, 247, 237, 0) 100%
        ),
        linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%);
    background-size: 200% 100%, 100% 100%;
    animation: referralShimmer 4s ease-in-out infinite;
    box-shadow:
        0 2px 12px rgba(245, 158, 11, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 20px 28px -18px rgba(255, 255, 255, 0.45);
    overflow: hidden;
    isolation: isolate;
}
.btm-referral-cta.btm-modal-action::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    pointer-events: none;
    z-index: 1;
}
.btm-referral-cta.btm-modal-action::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 38%;
    height: 140%;
    background: linear-gradient(
        100deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.08) 30%,
        rgba(255,255,255,0.45) 48%,
        rgba(255,255,255,0.55) 52%,
        rgba(255,255,255,0.08) 70%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-110%) skewX(-18deg);
    animation: referralFlare 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.8s;
    pointer-events: none;
    z-index: 2;
}
[data-theme="dark"] .btm-referral-cta.btm-modal-action {
    background:
        linear-gradient(
            100deg,
            rgba(120, 53, 15, 0) 0%,
            rgba(120, 53, 15, 0.25) 25%,
            rgba(146, 64, 14, 0.2) 50%,
            rgba(120, 53, 15, 0.25) 75%,
            rgba(120, 53, 15, 0) 100%
        ),
        linear-gradient(135deg, #451a03 0%, #78350f 60%, #92400e 100%);
    background-size: 200% 100%, 100% 100%;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .btm-referral-cta.btm-modal-action::before {
    border-color: rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .btm-referral-cta.btm-modal-action::after {
    background: linear-gradient(
        100deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.03) 30%,
        rgba(255,255,255,0.15) 48%,
        rgba(255,255,255,0.2) 52%,
        rgba(255,255,255,0.03) 70%,
        rgba(255,255,255,0) 100%
    );
}
.btm-referral-cta__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    animation: referralPulse 2.5s ease-in-out infinite;
}
[data-theme="dark"] .btm-referral-cta__icon {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.btm-referral-cta__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.btm-referral-cta__title {
    font-size: 14px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: -0.01em;
}
[data-theme="dark"] .btm-referral-cta__title {
    color: #fde68a;
}
.btm-referral-cta__sub {
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    opacity: 0.85;
}
[data-theme="dark"] .btm-referral-cta__sub {
    color: #fbbf24;
    opacity: 0.8;
}
.btm-referral-cta__badge {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 900;
    color: #92400e;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    animation: referralBadgeGlow 3s ease-in-out infinite;
    white-space: nowrap;
}
[data-theme="dark"] .btm-referral-cta__badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #451a03;
}
.btm-referral-cta .btm-modal-arrow {
    color: #b45309;
}
[data-theme="dark"] .btm-referral-cta .btm-modal-arrow {
    color: #fbbf24;
}

.btm-modal-arrow { color: #d1d5db; font-size: 14px; }
.btm-modal-action.danger span { color: #ef4444; }

/* Login button */
.btm-modal-login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff; font-size: 14px; font-weight: 700;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(243,99,15,.25);
    transition: all .2s ease;
}
.btm-modal-login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,99,15,.35); }
.btm-modal-login-btn i { font-size: 16px !important; margin: 0 !important; display: inline !important; color: #fff !important; }

/* Modal Header (cart) */
.btm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    margin-bottom: 4px;
}
.btm-modal-header h3 {
    font-size: 17px; font-weight: 800; color: #1a1a2e;
    display: flex; align-items: center; gap: 8px;
}
.btm-modal-viewall {
    font-size: 12px; font-weight: 600; color: #f3630f;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.btm-modal-viewall:hover { text-decoration: underline; }

/* Cart Items */
.btm-modal-cart-content { padding: 4px 0; }
.mini-cart-items { max-height: 45vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item-img {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: #f8f8fa;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.mini-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-item-img i { font-size: 16px; color: #ccc; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name {
    font-size: 13px; font-weight: 700; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-cart-item-meta { font-size: 11px; color: #999; margin-top: 2px; }
.mini-cart-item-price { font-size: 14px; font-weight: 800; color: #1a1a2e; flex-shrink: 0; }

/* Cart Footer */
.mini-cart-footer {
    padding: 14px 0 0;
    border-top: 1.5px solid rgba(0,0,0,.06);
    margin-top: 4px;
}
.mini-cart-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 800; color: #1a1a2e;
    margin-bottom: 12px;
}
.btm-modal-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(243,99,15,.25);
    transition: all .2s ease;
}
.btm-modal-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,99,15,.35); }

/* Empty / Loading */
.btm-modal-empty {
    text-align: center; padding: 32px 0;
}
.btm-modal-empty i { font-size: 40px; color: #ddd; margin-bottom: 12px; display: block; }
.btm-modal-empty p { font-size: 14px; color: #999; margin-bottom: 16px; }
.btm-modal-loading {
    text-align: center; padding: 24px 0;
    font-size: 13px; color: #999;
}
.btm-modal-loading i { margin-right: 6px; }

/* Dark mode */
[data-theme="dark"] .btm-modal { background: #1a1a24; }
[data-theme="dark"] .btm-modal-handle { background: rgba(255,255,255,.12); }
[data-theme="dark"] .btm-modal-name,
[data-theme="dark"] .btm-modal-header h3,
[data-theme="dark"] .btm-modal-action span,
[data-theme="dark"] .mini-cart-item-name,
[data-theme="dark"] .mini-cart-item-price,
[data-theme="dark"] .mini-cart-total { color: #eaeaf0; }
[data-theme="dark"] .mini-cart-item-img { background: #12121a; }

/* ===== AUTH PAGE ===== */
.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background: #f8f8fa;
}
.auth-container { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: none;
    min-height: calc(100vh - 120px);
}
@media (min-width: 520px) {
    .auth-section { padding: 40px 16px; align-items: center; }
    .auth-card { border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.04); min-height: auto; }
}
.auth-progress {
    height: 3px;
    background: rgba(0,0,0,.04);
    position: relative;
}
.auth-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f3630f, #ff8a3d);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}
.auth-steps { position: relative; overflow: hidden; }
.auth-step {
    padding: 40px 24px 32px;
    text-align: center;
    display: none;
    animation: authFadeIn 0.4s ease;
}
@media (min-width: 520px) { .auth-step { padding: 40px 36px 36px; } }
.auth-step.active { display: block; }
.auth-step.exit-left { animation: authSlideOutLeft 0.3s ease forwards; }
.auth-step.exit-right { animation: authSlideOutRight 0.3s ease forwards; }
.auth-step.enter-right { animation: authSlideInRight 0.3s ease forwards; }
.auth-step.enter-left { animation: authSlideInLeft 0.3s ease forwards; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authSlideOutLeft { to { opacity: 0; transform: translateX(-100%); } }
@keyframes authSlideOutRight { to { opacity: 0; transform: translateX(100%); } }
@keyframes authSlideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes authSlideInLeft { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }

.auth-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(243,99,15,.1), rgba(255,138,61,.08));
    color: #f3630f;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.auth-icon.green { background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(34,197,94,.05)); color: #22c55e; }
.auth-icon.blue { background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(59,130,246,.05)); color: #3b82f6; }

.auth-step h2 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; letter-spacing: -0.3px; }
.auth-subtitle { font-size: 14px; color: #888; margin-bottom: 24px; line-height: 1.4; }
.auth-email-badge {
    display: inline-block;
    background: rgba(243,99,15,.06);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #f3630f;
    margin-bottom: 20px;
    border: 1px solid rgba(243,99,15,.12);
}
.auth-form-group { text-align: left; margin-bottom: 14px; }
.auth-form-group label { display: block; font-size: 11px; font-weight: 700; color: #999; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: #f8f8fa; border: 1.5px solid rgba(0,0,0,.06);
    border-radius: 14px; padding: 0 16px;
    transition: all .2s ease;
}
.auth-input-wrap:focus-within { border-color: #f3630f; box-shadow: 0 0 0 3px rgba(243,99,15,0.08); background: #fff; }
.auth-input-wrap i { color: #bbb; font-size: 15px; flex-shrink: 0; }
.auth-input-wrap input {
    flex: 1; border: none; background: none; padding: 15px 0;
    font-size: 15px; color: #1a1a2e; outline: none; font-family: inherit; font-weight: 500;
}
.auth-input-wrap input::placeholder { color: #bbb; font-weight: 400; }
.auth-eye { background: none; border: none; color: #bbb; cursor: pointer; padding: 4px; font-size: 15px; }
.phone-wrap .phone-prefix {
    font-size: 15px; font-weight: 700; color: #1a1a2e;
    padding-right: 10px; border-right: 1.5px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}
.auth-btn {
    width: 100%; padding: 15px 24px; border: none;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: white; font-size: 15px; font-weight: 700;
    border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s ease; position: relative;
    box-shadow: 0 4px 15px rgba(243,99,15,0.25);
    margin-top: 8px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,99,15,0.35); }
.auth-btn:active { transform: translateY(0); }
.auth-btn-loader { display: none; }
.auth-btn.loading .auth-btn-text,
.auth-btn.loading .auth-btn-arrow { display: none; }
.auth-btn.loading .auth-btn-loader { display: inline-block; }

.auth-btn-email {
    background: transparent; border: 1.5px solid rgba(0,0,0,.12); color: #1a1a2e; box-shadow: none;
}
.auth-btn-email:hover { box-shadow: 0 4px 15px rgba(0,0,0,.05); transform: translateY(-1px); }
.auth-btn-outline {
    width: 100%; padding: 13px 24px; border: 1.5px solid rgba(0,0,0,.08);
    background: #fff; color: #1a1a2e; font-size: 14px; font-weight: 600;
    border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s ease;
}
.auth-btn-outline:hover { border-color: #f3630f; color: #f3630f; }
.auth-divider { text-align: center; margin: 18px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.06); }
.auth-divider span { position: relative; background: #fff; padding: 0 14px; font-size: 11px; color: #bbb; text-transform: uppercase; font-weight: 600; letter-spacing: .3px; }
.auth-error {
    display: none; margin-top: 12px; padding: 10px 14px;
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px; color: #ef4444; font-size: 13px; font-weight: 500;
}
.auth-back {
    background: none; border: none; color: #bbb; font-size: 13px;
    cursor: pointer; margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s ease; font-weight: 500;
}
.auth-back:hover { color: #f3630f; }
.auth-resend { font-size: 13px; color: #999; margin-top: 16px; }
.auth-resend button { background: none; border: none; color: #f3630f; font-weight: 600; cursor: pointer; font-size: 13px; }
.auth-resend button:disabled { color: #bbb; cursor: default; }

/* OTP Boxes */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-box {
    width: 46px; height: 54px; text-align: center;
    font-size: 22px; font-weight: 800; color: #1a1a2e;
    border: 1.5px solid rgba(0,0,0,.08); border-radius: 14px;
    background: #f8f8fa; outline: none; transition: all .2s ease;
    font-family: inherit;
}
.otp-box:focus { border-color: #f3630f; box-shadow: 0 0 0 3px rgba(243,99,15,0.08); background: #fff; }

/* Locked fields */
.auth-locked-fields { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; justify-content: center; }
.auth-locked-field {
    display: flex; align-items: center; gap: 6px;
    background: #f8f8fa; padding: 8px 14px;
    border-radius: 50px; font-size: 12px; color: #888;
    border: 1px solid rgba(0,0,0,.04);
}
.auth-locked-field i { font-size: 10px; color: #bbb; }
.auth-locked-field strong { color: #1a1a2e; }

/* Success */
.auth-success-icon { font-size: 64px; color: #22c55e; margin-bottom: 16px; animation: authBounce 0.6s ease; }
@keyframes authBounce {
    0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}

/* Dark mode */
[data-theme="dark"] .auth-section { background: #0e0e14; }
[data-theme="dark"] .auth-card { background: #1a1a24; border-color: #2a2a3a; }
[data-theme="dark"] .auth-divider span { background: #1a1a24; }
[data-theme="dark"] .otp-box { background: #12121a; border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .auth-input-wrap { background: #12121a; border-color: #2a2a3a; }
[data-theme="dark"] .auth-input-wrap input { color: #eaeaf0; }
[data-theme="dark"] .auth-email-badge { background: rgba(243,99,15,.08); border-color: rgba(243,99,15,.15); }
[data-theme="dark"] .auth-locked-field { background: #12121a; border-color: #2a2a3a; }
[data-theme="dark"] .auth-locked-field strong { color: #eaeaf0; }
[data-theme="dark"] .auth-btn-email { border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .auth-btn-outline { background: #12121a; border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .phone-wrap .phone-prefix { color: #eaeaf0; border-color: #2a2a3a; }
[data-theme="dark"] .auth-step h2 { color: #eaeaf0; }
[data-theme="dark"] .auth-form-group label { color: #777; }

/* ===== RESPONSIVE — NEW PAGES ===== */
@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    body { overflow-x: hidden; }

    /* === APP-LIKE HEADER === */
    .header-top { padding: 8px 0; gap: 8px; }
    .logo-wrap img { height: 34px; }
    .header-btn { padding: 6px 10px; font-size: 12px; }
    .header-btn i { font-size: 15px; }
    .btn-login { padding: 6px 14px; }
    .container { padding: 0 12px; }

    /* === EDGE-TO-EDGE CAROUSEL === */
    .promo-carousel-section { padding: 12px 0 4px; }
    .promo-card { padding: 20px 18px; min-height: 110px; border-radius: var(--radius-md); }
    .promo-card h3 { font-size: 18px; }
    .promo-card p { font-size: 12px; }
    .promo-tag { font-size: 10px; padding: 3px 10px; margin-bottom: 6px; }
    .promo-dots { padding: 10px 0 4px; }
    .promo-dot { width: 8px; height: 8px; }
    .promo-dot.active { width: 22px; }

    /* === COMPACT SECTIONS === */
    .categories-section { padding: 16px 0; }
    .products-section { padding: 16px 0; }
    .section-title { margin-bottom: 12px; }
    .section-title h2 { font-size: 17px; font-weight: 800; }
    .section-title a { font-size: 12px; }

    /* === COMPACT CATEGORY PILLS === */
    .category-grid { gap: 8px; }
    .category-card {
        width: 88px;
        padding: 12px 8px;
        border-radius: var(--radius-sm);
    }
    .category-icon {
        width: 42px;
        height: 42px;
        margin: 0 auto 8px;
        border-radius: var(--radius-sm);
        font-size: 18px;
    }
    .category-card h3 { font-size: 11px; font-weight: 600; }
    .category-card span { font-size: 10px; }
    .category-card::before { height: 2px; }

    /* === COMPACT PRODUCT CARDS === */
    .products-row { gap: 8px; }
    .product-card {
        width: 145px;
        border-radius: var(--radius-sm);
    }
    .product-img { height: 120px; padding: 8px; }
    .product-badge { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; }
    .product-info { padding: 8px 10px; }
    .product-info h4 { font-size: 12px; margin-bottom: 4px; min-height: 2.4em; }
    .product-price .rate { font-size: 15px; font-weight: 800; }
    .product-price .cost { font-size: 11px; }
    .product-price .product-mrp { font-size: 10px; }
    .product-add-btn {
        padding: 8px;
        font-size: 11px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    /* === PRODUCT DETAIL APP FEEL === */
    .pd-sticky-bar { bottom: 56px; }
    .pd-body { padding-bottom: 140px; }
    .breadcrumb-bar { display: none; }
    .pd-info-card { padding: 20px 16px; }
    .pd-desktop-actions { display: none !important; }

    /* === BOTTOM SPACING & NAV === */
    .mobile-bottom-nav { z-index: 110; }
    .back-to-top { bottom: 72px; right: 12px; width: 36px; height: 36px; font-size: 14px; }

    /* === SEARCH BAR MOBILE === */
    .mobile-search-bar input { padding: 10px 14px; font-size: 14px; border-radius: var(--radius-sm); }

    /* === OVERALL PAGE BOTTOM PADDING === */
    .site-footer { margin-bottom: 0; }
}
@media (min-width: 640px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
    .cart-layout { grid-template-columns: 1fr 320px; }
    .categories-modal {
        border-radius: var(--radius-xl);
        margin: auto;
    }
    .categories-modal-overlay { align-items: center; }
    .toast { bottom: 40px; }

    /* ===== Product Detail — Desktop Professional Layout ===== */
    .pd-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
        padding: 32px 0;
    }
    .pd-hero {
        min-height: 400px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        background: var(--bg);
        position: sticky;
        top: 100px;
    }
    .pd-hero img {
        max-height: 450px;
        padding: 32px;
    }
    .pd-body {
        padding: 0 0 40px;
    }
    .pd-info-card {
        margin-top: 0;
        border-radius: var(--radius-lg);
        padding: 0;
        background: transparent;
    }
    .pd-category {
        font-size: 12px;
        padding: 4px 14px;
        margin-bottom: 12px;
    }
    .pd-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    .pd-rate { font-size: 32px; }
    .pd-cost { font-size: 18px; }
    .pd-discount { font-size: 13px; padding: 3px 10px; }
    .pd-pricing { margin-bottom: 16px; }
    .pd-meta-chips { margin-bottom: 8px; }
    .pd-chip {
        font-size: 13px;
        padding: 6px 14px;
    }
    .pd-desc-card {
        margin-top: 20px;
        padding: 20px;
        border-radius: var(--radius-lg);
    }
    .pd-desc-card h3 { font-size: 15px; }
    .pd-desc-card p { font-size: 14px; }

    /* Desktop inline Add to Cart */
    .pd-desktop-actions {
        display: flex;
        align-items: flex-end;
        gap: 16px;
        margin-top: 24px;
        padding: 20px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .pd-desktop-qty {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .pd-desktop-qty label {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .pd-desktop-qty .qty-selector {
        border-width: 2px;
        border-radius: var(--radius-md);
    }
    .pd-desktop-qty .qty-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    .pd-desktop-qty .qty-selector span {
        width: 52px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 800;
    }
    .pd-desktop-cart-btn {
        flex: 1;
        padding: 14px 32px;
        background: var(--orange);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 15px rgba(243, 99, 15, 0.3);
    }
    .pd-desktop-cart-btn:hover {
        background: var(--orange-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(243, 99, 15, 0.4);
    }
    .pd-desktop-cart-btn:active {
        transform: scale(0.98);
    }
    .pd-desktop-cart-btn i {
        font-size: 18px;
    }

    /* Trust badges — horizontal row on desktop */
    .pd-trust-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 24px;
        padding: 20px;
        background: var(--bg);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
    }
    .pd-trust-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .pd-trust-item span {
        font-size: 12px;
    }

    /* Hide mobile sticky bar on desktop */
    .pd-sticky-bar {
        display: none;
    }

    /* Related section styling */
    .pd-related {
        margin-top: 40px;
        padding-top: 32px;
        border-top: 1px solid var(--border);
    }
    .pd-related-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}
@media (min-width: 1024px) {
    .pd-title { font-size: 32px; }
    .pd-rate { font-size: 36px; }
    .archive-grid { grid-template-columns: repeat(4, 1fr); }
    .pd-hero { min-height: 480px; }
    .pd-hero img { max-height: 480px; padding: 40px; }
    .pd-main { gap: 40px; }
}
@media (min-width: 1200px) {
    .pd-main { gap: 48px; }
    .pd-hero { min-height: 520px; }
    .pd-hero img { max-height: 520px; }
}

/* ========================= POLICY PAGES ========================= */
.policy-section {
    padding: 100px 0 60px;
    min-height: 80vh;
}
@media (max-width: 768px) {
    .policy-section { padding: 80px 0 40px; }
}

.policy-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}
@media (max-width: 768px) {
    .policy-card { padding: 24px 16px; border-radius: 12px; }
}

.policy-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.policy-card h1 i {
    color: var(--orange);
    font-size: 24px;
}
@media (max-width: 768px) {
    .policy-card h1 { font-size: 22px; }
    .policy-card h1 i { font-size: 20px; }
}

.policy-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.policy-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 8px;
}

.policy-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-card ul {
    margin: 0 0 16px 0;
    padding: 0 0 0 20px;
}
.policy-card ul li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.policy-card ul li strong {
    color: var(--text);
}

.policy-card a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}
.policy-card a:hover {
    text-decoration: underline;
}

/* Policy highlight boxes */
.policy-highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0 28px;
}
.policy-highlight > i {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}
.policy-highlight h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}
.policy-highlight p {
    margin: 0 0 4px;
    font-size: 14px;
}

.policy-highlight.no-returns {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    border: 1px solid rgba(239,68,68,0.2);
}
.policy-highlight.no-returns > i {
    color: #ef4444;
}
.policy-highlight.no-returns h3 {
    color: #ef4444;
}

.policy-highlight.shipping-info {
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
    border: 1px solid rgba(34,197,94,0.2);
}
.policy-highlight.shipping-info > i {
    color: #22c55e;
}
.policy-highlight.shipping-info h3 {
    color: #22c55e;
}

.policy-note {
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px !important;
    color: var(--text) !important;
}
.policy-note i {
    color: #eab308;
    margin-right: 4px;
}

/* Shipping table */
.shipping-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.shipping-table th,
.shipping-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border);
}
.shipping-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}
.shipping-table td {
    color: var(--text-muted);
}
.shipping-table td i {
    margin-right: 6px;
    color: var(--orange);
}

/* Contact box */
.policy-contact {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 8px;
}
.policy-contact p {
    margin: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-contact i {
    color: var(--orange);
    width: 16px;
    text-align: center;
}

/* ========================= DELIVERY AREA MODAL ========================= */
.delivery-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.delivery-modal-overlay.active {
    opacity: 1;
}
.delivery-modal-overlay.closing {
    opacity: 0;
}

.delivery-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.delivery-modal-overlay.active .delivery-modal {
    transform: scale(1) translateY(0);
}
.delivery-modal-overlay.closing .delivery-modal {
    transform: scale(0.9) translateY(20px);
}

.delivery-modal-icon {
    margin-bottom: 16px;
}
.delivery-modal-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: modalPulse 2s infinite;
}
.delivery-modal-circle i {
    font-size: 30px;
    color: #fff;
}
@keyframes modalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243,99,15,0.4); }
    50% { box-shadow: 0 0 0 14px rgba(243,99,15,0); }
}

.delivery-modal h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
}
.delivery-modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.delivery-modal-info {
    background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(239,68,68,0.02));
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.delivery-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.delivery-modal-badge i {
    font-size: 11px;
}
.delivery-modal-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
    line-height: 1.5;
}
.delivery-modal-info strong {
    color: var(--text);
}

.delivery-modal-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.dmf-item {
    flex: 1;
    background: var(--bg);
    border-radius: 10px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.dmf-item i {
    font-size: 18px;
    color: var(--orange);
}
.dmf-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.dmf-item small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 10px;
}

.delivery-modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.delivery-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,99,15,0.3);
}
.delivery-modal-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}
.delivery-modal-link:hover {
    color: var(--orange);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .delivery-modal { padding: 28px 20px 22px; border-radius: 16px; }
    .delivery-modal h2 { font-size: 19px; }
    .delivery-modal-circle { width: 60px; height: 60px; }
    .delivery-modal-circle i { font-size: 24px; }
    .dmf-item span { font-size: 10px; }
}

/* Dark mode for delivery modal */
[data-theme="dark"] .delivery-modal { background: #1e1e2e; }
[data-theme="dark"] .delivery-modal-info { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); }
[data-theme="dark"] .dmf-item { background: #2a2a3e; }
/* Dark mode for policy pages */
[data-theme="dark"] .policy-card { background: #1e1e2e; }
[data-theme="dark"] .policy-contact { background: #2a2a3e; }

/* ========================= CHECKOUT BUTTON ========================= */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,99,15,0.3);
    color: #fff;
}

/* ========================= USER DROPDOWN ========================= */
.user-dropdown-wrap { position: relative; }
.btn-user {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-user:hover { background: rgba(243,99,15,0.1); }
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    animation: ddSlide 0.2s ease;
}
[data-theme="dark"] .user-dropdown { background: #1e1e2e; border-color: rgba(255,255,255,0.08); }
.user-dropdown.show { display: block; }
@keyframes ddSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .user-dropdown-header { border-color: rgba(255,255,255,0.06); }
.user-dropdown-header strong {
    font-size: 14px;
    color: var(--text);
}
.user-dropdown-header small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}
.user-dropdown a:hover { background: rgba(243,99,15,0.06); }
.user-dropdown a i { width: 16px; color: var(--orange); text-align: center; flex-shrink: 0; }
.user-dropdown-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.user-dropdown-badge--savings {
    color: #047857;
    background: #d1fae5;
}
[data-theme="dark"] .user-dropdown-badge--savings {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.18);
}
.user-dropdown-badge--referral {
    color: #92400e;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}
[data-theme="dark"] .user-dropdown-badge--referral {
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.user-dropdown-referral {
    background: linear-gradient(100deg, #fffbeb, #fef3c7) !important;
    border-radius: 8px;
    margin: 2px 4px;
}
[data-theme="dark"] .user-dropdown-referral {
    background: linear-gradient(100deg, #451a03, #78350f) !important;
}
.user-dropdown-referral i { color: #f59e0b !important; }
.user-dropdown .logout-link { color: #ef4444; border-top: 1px solid rgba(0,0,0,0.06); }
[data-theme="dark"] .user-dropdown .logout-link { border-color: rgba(255,255,255,0.06); }
.user-dropdown .logout-link i { color: #ef4444; }

/* ========================= ACCOUNT PAGE ========================= */
.account-section {
    padding: 100px 0 60px;
    min-height: 80vh;
}
@media (max-width: 768px) { .account-section { padding: 80px 0 40px; } }

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .account-layout { grid-template-columns: 1fr; gap: 16px; }
}

.account-sidebar {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .account-sidebar { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.account-avatar {
    text-align: center;
    padding: 28px 20px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .account-avatar { border-color: rgba(255,255,255,0.06); }
.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.account-avatar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.account-avatar p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.account-nav { padding: 8px 0; }
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.account-nav-item:hover { background: rgba(243,99,15,0.04); color: var(--text); }
.account-nav-item.active {
    background: rgba(243,99,15,0.06);
    color: var(--orange);
    border-left-color: var(--orange);
    font-weight: 600;
}
.account-nav-item i { width: 18px; text-align: center; }
.account-nav-item.logout { color: #ef4444; }
.account-nav-item.logout:hover { background: rgba(239,68,68,0.04); }

.account-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
[data-theme="dark"] .account-content { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.account-tab { display: none; padding: 28px; }
.account-tab.active { display: block; }
@media (max-width: 768px) { .account-tab { padding: 20px 16px; } }

.account-tab h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-tab h2 i { color: var(--orange); }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-field {
    background: var(--bg);
    border-radius: 10px;
    padding: 14px 16px;
}
.profile-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}
.profile-field .profile-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Order cards */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-number { display: flex; flex-direction: column; }
.order-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.order-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.order-status.status-orange { background: rgba(243,99,15,0.1); color: #f3630f; }
.order-status.status-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.order-status.status-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.order-status.status-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.order-status.status-gray { background: rgba(107,114,128,0.1); color: #6b7280; }

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.order-pay-btn, .order-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}
.order-pay-btn {
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
}
.order-pay-btn:hover { transform: translateY(-1px); color: #fff; }
.order-view-btn {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.order-view-btn:hover { color: var(--orange); border-color: var(--orange); }

.empty-state.small { padding: 40px 20px; }
.empty-state.small i { font-size: 40px; }
.empty-state.small h3 { font-size: 16px; }

/* ========================= APP-STYLE ACCOUNT PAGE ========================= */
.app-account {
    padding: 16px 0 100px;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Profile Hero */
.app-profile-hero {
    text-align: center;
    padding: 32px 20px 24px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.app-profile-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.app-profile-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.app-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 3px solid rgba(255,255,255,0.3);
}
.app-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
}
.app-email {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 14px;
}
.app-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.app-logout-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Lifetime savings (My Account) */
.app-lifetime-savings {
    background: linear-gradient(125deg, #059669 0%, #10b981 50%, #34d399 100%);
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.22);
    position: relative;
    overflow: hidden;
}
.app-lifetime-savings::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}
.app-ls-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.app-ls-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.app-ls-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
    margin-bottom: 4px;
}
.app-ls-amount {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.app-ls-hint {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin: 8px 0 0;
    line-height: 1.4;
}
.app-ls-cap, .app-ls-empty-note {
    font-size: 11px;
    margin: 8px 0 0;
    opacity: 0.88;
    line-height: 1.35;
}
.app-ls-cap i, .app-ls-modal__cap i { margin-right: 4px; }
.app-ls-detail-btn {
    margin-top: 14px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: #047857;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.app-ls-detail-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.app-ls-detail-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
a.app-ls-detail-btn,
a.app-ls-detail-btn.app-ls-detail-btn--link {
    text-decoration: none;
    box-sizing: border-box;
}
a.app-ls-detail-btn:hover {
    color: #047857;
}
body.app-ls-modal-open { overflow: hidden; }
.app-ls-modal[hidden] { display: none !important; }
.app-ls-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 600px) {
    .app-ls-modal { align-items: center; padding: 24px; }
}
.app-ls-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}
.app-ls-modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, 720px);
    background: var(--card-bg, #fff);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: appLsModalIn 0.22s ease-out;
}
@media (min-width: 600px) {
    .app-ls-modal__panel {
        border-radius: 20px;
        max-height: min(85vh, 640px);
    }
}
@keyframes appLsModalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] .app-ls-modal__panel {
    background: #1e1e2e;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.45);
}
.app-ls-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .app-ls-modal__head {
    border-color: rgba(255,255,255,0.08);
}
.app-ls-modal__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.app-ls-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
[data-theme="dark"] .app-ls-modal__close {
    background: rgba(255,255,255,0.08);
}
.app-ls-modal__body {
    padding: 14px 16px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.app-ls-modal__intro, .app-ls-modal__cap, .app-ls-modal__empty {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.app-ls-modal__cap { margin-bottom: 16px; }
.app-ls-month-block {
    background: rgba(0,0,0,0.03);
    border-radius: 14px;
    padding: 12px 12px 4px;
    margin-bottom: 12px;
}
[data-theme="dark"] .app-ls-month-block {
    background: rgba(255,255,255,0.05);
}
.app-ls-month-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 4px;
}
.app-ls-month-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}
.app-ls-month-total {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
}
[data-theme="dark"] .app-ls-month-total { color: #34d399; }
.app-ls-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.app-ls-order-list li { margin: 0 0 6px; }
.app-ls-order-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 11px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
[data-theme="dark"] .app-ls-order-row {
    background: #16161f;
    border-color: rgba(255,255,255,0.08);
}
.app-ls-order-row:hover {
    border-color: rgba(5, 150, 105, 0.35);
    background: rgba(5, 150, 105, 0.06);
}
.app-ls-order-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-ls-order-num {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}
.app-ls-order-date {
    font-size: 11px;
    color: var(--text-muted);
}
.app-ls-order-save {
    text-align: right;
    font-weight: 800;
    font-size: 14px;
    color: #059669;
}
[data-theme="dark"] .app-ls-order-save { color: #34d399; }
.app-ls-order-save small {
    display: block;
    font-weight: 600;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.app-ls-order-chev {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Standalone “Your savings” page ── */
.sv-page {
    padding-bottom: 100px;
}
.sv-back {
    margin-bottom: 12px;
}
.sv-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}
.sv-back a:hover {
    text-decoration: underline;
}
.sv-hero {
    text-align: center;
    padding: 28px 18px 26px;
    border-radius: 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #047857 0%, #059669 40%, #10b981 100%);
    color: #fff;
    box-shadow: 0 12px 36px rgba(5, 120, 87, 0.28);
    position: relative;
    overflow: hidden;
}
.sv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(255,255,255,0.14) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0%, transparent 35%);
    pointer-events: none;
}
.sv-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
    z-index: 1;
}
.sv-hero-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}
.sv-hero-lead {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.45;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.sv-hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.sv-hero-stats__item {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.sv-hero-stats__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
    margin-bottom: 4px;
}
.sv-hero-stats__value {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.sv-hero-stats__value--accent {
    color: #fef9c3;
}
.sv-hero-stats__sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.35);
    margin: 2px 8px;
}
.sv-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 14px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="dark"] .sv-tabs {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
}
.sv-tab {
    flex: 1;
    border: none;
    border-radius: 11px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}
.sv-tab i { font-size: 14px; opacity: 0.9; }
.sv-tab.active {
    background: linear-gradient(135deg, #f3630f, #ff9440);
    color: #fff;
    box-shadow: 0 4px 14px rgba(243, 99, 15, 0.28);
}
[data-theme="dark"] .sv-tab.active {
    color: #fff;
}
.sv-tab-panel[hidden] {
    display: none !important;
}
.sv-tab-panel {
    margin-bottom: 8px;
}
.sv-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.sv-stat-card {
    border-radius: 16px;
    padding: 14px 14px 12px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 128px;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .sv-stat-card {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.sv-stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}
.sv-stat--today::after { background: #f59e0b; }
.sv-stat--month::after { background: #3b82f6; }
.sv-stat--year::after { background: #8b5cf6; }
.sv-stat--life::after { background: #f3630f; }
.sv-stat-icon {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 2px;
}
.sv-stat--today .sv-stat-icon { color: #d97706; }
.sv-stat--month .sv-stat-icon { color: #2563eb; }
.sv-stat--year .sv-stat-icon { color: #7c3aed; }
.sv-stat--life .sv-stat-icon { color: var(--orange); }
.sv-stat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.sv-stat-value {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}
.sv-stat--life .sv-stat-value {
    color: #059669;
}
[data-theme="dark"] .sv-stat--life .sv-stat-value {
    color: #34d399;
}
.sv-stat-sub {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: -2px;
}
.sv-stat-sub.saved { color: #059669; opacity: 0.85; }
[data-theme="dark"] .sv-stat-sub.saved { color: #34d399; }
.sv-stat-spent {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    opacity: 0.92;
}
.sv-stat-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 6px;
}
.sv-cap-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}
.sv-cap-note i {
    margin-right: 6px;
    opacity: 0.85;
}
.sv-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.45;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
}
[data-theme="dark"] .sv-disclaimer {
    background: rgba(255,255,255,0.05);
}
.sv-disclaimer--tight {
    margin-top: 16px;
    margin-bottom: 0;
}
.sv-insights-lead {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 18px;
}
.sv-cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sv-cat-card {
    border-radius: 16px;
    padding: 14px 14px 12px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
[data-theme="dark"] .sv-cat-card {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
}
.sv-cat-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.sv-cat-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.sv-cat-card__badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}
[data-theme="dark"] .sv-cat-card__badge {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}
.sv-cat-card__bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
    margin-bottom: 12px;
}
[data-theme="dark"] .sv-cat-card__bar {
    background: rgba(255,255,255,0.1);
}
.sv-cat-card__bar-paid {
    flex: 0 0 auto;
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #64748b, #94a3b8);
}
.sv-cat-card__bar-saved {
    flex: 0 0 auto;
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #059669, #34d399);
}
.sv-cat-card__bar-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.04);
}
.sv-cat-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.sv-cat-card__stat-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.sv-cat-card__stat-value {
    font-size: 14px;
    font-weight: 900;
}
.sv-cat-card__stat-value--green {
    color: #059669;
}
[data-theme="dark"] .sv-cat-card__stat-value--green {
    color: #34d399;
}
.sv-cat-card__stat-muted {
    font-weight: 800;
    color: var(--text-muted);
}
.sv-empty--compact {
    padding: 24px 16px;
}
.sv-empty-p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
.sv-section-title {
    font-size: 15px;
    font-weight: 800;
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.sv-section-title i {
    color: var(--orange);
    font-size: 16px;
}
.sv-section-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: -6px 0 14px;
    line-height: 1.4;
}
.sv-year-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sv-year-chip {
    flex: 1 1 auto;
    min-width: calc(50% - 8px);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
[data-theme="dark"] .sv-year-chip {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
}
.sv-year-chip__y {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}
.sv-year-chip__row {
    display: block;
    margin-top: 4px;
}
.sv-year-chip__amt {
    font-size: 20px;
    font-weight: 900;
    color: #059669;
}
[data-theme="dark"] .sv-year-chip__amt {
    color: #34d399;
}
.sv-year-chip__amt small {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 4px;
}
.sv-year-chip__spent {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.3;
}
.sv-month-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sv-month-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--card-bg, #fff);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
[data-theme="dark"] .sv-month-card {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
}
.sv-month-card__toggle {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    border: none;
    background: linear-gradient(90deg, rgba(5,150,105,0.08), transparent);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s;
}
[data-theme="dark"] .sv-month-card__toggle {
    background: linear-gradient(90deg, rgba(52,211,153,0.12), transparent);
    border-bottom-color: rgba(255,255,255,0.06);
}
.sv-month-card__toggle:hover {
    filter: brightness(1.02);
}
.sv-month-card__toggle-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.sv-month-card__label {
    font-weight: 800;
    font-size: 14px;
}
.sv-month-card__chev {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.sv-month-card--open .sv-month-card__chev {
    transform: rotate(180deg);
}
.sv-month-card__toggle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sv-month-chip-pill {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}
.sv-month-chip-pill--save {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}
[data-theme="dark"] .sv-month-chip-pill--save {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}
.sv-month-chip-pill--spent {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}
[data-theme="dark"] .sv-month-chip-pill--spent {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.sv-month-card__body {
    border-top: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .sv-month-card__body {
    border-top-color: rgba(255,255,255,0.06);
}
.sv-month-card__orders {
    list-style: none;
    margin: 0;
    padding: 6px 8px 10px;
    max-height: 280px;
    overflow-y: auto;
}
.sv-month-card__orders li {
    margin: 0;
}
.sv-order-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.sv-order-link:hover {
    background: rgba(0,0,0,0.04);
}
[data-theme="dark"] .sv-order-link:hover {
    background: rgba(255,255,255,0.06);
}
.sv-order-link__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sv-order-link__num {
    font-weight: 800;
}
.sv-order-link__date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.sv-order-link__nums {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.sv-order-link__spent {
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
}
.sv-order-link__save {
    font-weight: 800;
    font-size: 12px;
    color: #059669;
}
[data-theme="dark"] .sv-order-link__save {
    color: #34d399;
}
.sv-day-table__num {
    text-align: right;
}
.sv-day-table__spent {
    font-weight: 700;
    text-align: right;
    color: var(--text);
}
.sv-day-table-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--card-bg, #fff);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
[data-theme="dark"] .sv-day-table-wrap {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.08);
}
.sv-day-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sv-day-table th,
.sv-day-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .sv-day-table th,
[data-theme="dark"] .sv-day-table td {
    border-bottom-color: rgba(255,255,255,0.06);
}
.sv-day-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 800;
    background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .sv-day-table th {
    background: rgba(255,255,255,0.04);
}
.sv-day-table tbody tr:last-child td {
    border-bottom: none;
}
.sv-day-table__amt {
    font-weight: 800;
    color: #059669;
    text-align: right;
}
[data-theme="dark"] .sv-day-table__amt {
    color: #34d399;
}
.sv-empty {
    text-align: center;
    padding: 36px 20px 40px;
    border-radius: 20px;
    background: var(--card-bg, #fff);
    border: 1px dashed rgba(0,0,0,0.12);
}
[data-theme="dark"] .sv-empty {
    background: #1e1e2e;
    border-color: rgba(255,255,255,0.12);
}
.sv-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(243, 99, 15, 0.12);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.sv-empty h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}
.sv-empty p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}
.sv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(243, 99, 15, 0.35);
}
.sv-btn-primary:hover {
    filter: brightness(1.05);
}
@media (min-width: 640px) {
    .sv-page.app-account {
        max-width: 640px;
    }
    .sv-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .sv-stat-card {
        min-height: 138px;
    }
}

/* Tab Switcher */
.app-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-tabs { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
}
.app-tab.active {
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(243,99,15,0.25);
}
.app-tab i { font-size: 14px; }

/* Panels */
.app-panel { display: none; }
.app-panel.active { display: block; animation: appFadeIn 0.3s ease; }
@keyframes appFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Info Card */
.app-info-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
[data-theme="dark"] .app-info-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.app-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s;
}
[data-theme="dark"] .app-info-row { border-color: rgba(255,255,255,0.04); }
.app-info-row:last-child { border-bottom: none; }
.app-info-row:hover { background: rgba(243,99,15,0.02); }

.app-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(243,99,15,0.08);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.app-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-info-text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.app-info-text span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Actions */
.app-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.app-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .app-action-btn { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.app-action-btn i {
    font-size: 22px;
    color: var(--orange);
}
.app-action-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

/* Order Cards */
.app-order-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}
[data-theme="dark"] .app-order-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-order-card:active { transform: scale(0.98); }

/* Orders list — highlight by fulfilment state */
.app-order-card--progress {
    border-left: 4px solid #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, #ffffff 12%, #ffffff 100%);
    box-shadow: 0 2px 14px rgba(249, 115, 22, 0.08);
}
[data-theme="dark"] .app-order-card--progress {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.12) 0%, #1e1e2e 14%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #fb923c;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.app-order-card--delivered {
    border-left: 4px solid #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.09) 0%, #f0fdf4 14%, #ffffff 100%);
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.1);
}
[data-theme="dark"] .app-order-card--delivered {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.14) 0%, #14532d 18%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #4ade80;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.08);
}
.app-order-card--cancelled {
    border-left: 4px solid #9ca3af;
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.12) 0%, #f9fafb 12%, #ffffff 100%);
    opacity: 0.96;
}
[data-theme="dark"] .app-order-card--cancelled {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1) 0%, #292524 14%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #78716c;
    opacity: 1;
}

.app-order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.app-order-preview {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: var(--text-muted);
    word-break: break-word;
}
.app-order-preview__dot {
    opacity: 0.45;
    margin: 0 5px;
    user-select: none;
}
.app-order-preview__name {
    color: var(--text);
    font-weight: 600;
    opacity: 0.92;
}
.app-order-preview__more {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f3630f;
}
[data-theme="dark"] .app-order-preview__more {
    color: #fb923c;
}

.app-orders-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
}
.app-orders-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.app-orders-loading__spin {
    color: #f3630f;
    font-size: 14px;
}

.app-order-id {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.app-order-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.app-order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.st-unpaid { background: rgba(243,99,15,0.1); color: #f3630f; }
.st-paid { background: rgba(34,197,94,0.1); color: #22c55e; }
.st-partial { background: rgba(59,130,246,0.1); color: #3b82f6; }
.st-overdue { background: rgba(239,68,68,0.1); color: #ef4444; }
.st-cancelled, .st-draft { background: rgba(107,114,128,0.1); color: #6b7280; }
.st-pending { background: rgba(255,152,0,0.1); color: #ff9800; }
.st-confirmed { background: rgba(33,150,243,0.1); color: #2196f3; }
.st-processing { background: rgba(255,193,7,0.12); color: #f59e0b; }
.st-shipped { background: rgba(103,58,183,0.1); color: #673ab7; }
.st-delivered { background: rgba(76,175,80,0.1); color: #4caf50; }
.st-cod { background: rgba(0,150,136,0.1); color: #009688; }

.app-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-order-bottom { border-color: rgba(255,255,255,0.04); }
.app-order-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
.app-btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.app-btn-pay:hover { transform: translateY(-1px); color: #fff; }
.app-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.app-btn-view:hover { color: var(--orange); border-color: var(--orange); }

/* Empty State */
.app-empty-orders {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-empty-orders { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(243,99,15,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.app-empty-icon i { font-size: 26px; color: var(--orange); }
.app-empty-orders h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.app-empty-orders p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Desktop: center but keep app-like feel */
@media (min-width: 769px) {
    .app-account { padding-top: 20px; max-width: 600px; }
}

/* ========================= ORDER DETAIL & FORM STYLES ========================= */
.od-back {
    margin-bottom: 14px;
}
.od-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}

.od-pay-success {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px 20px 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 38%, #a7f3d0 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow:
        0 4px 24px rgba(16, 185, 129, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    color: #064e3b;
}
[data-theme="dark"] .od-pay-success {
    background: linear-gradient(145deg, #064e3b 0%, #047857 50%, #059669 100%);
    border-color: rgba(52, 211, 153, 0.35);
    color: #ecfdf5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.od-pay-success__shine {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 68%);
    pointer-events: none;
}
[data-theme="dark"] .od-pay-success__shine {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
}
.od-pay-success__badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    border: 3px solid rgba(255, 255, 255, 0.85);
    z-index: 1;
}
[data-theme="dark"] .od-pay-success__badge {
    border-color: rgba(236, 253, 245, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.od-pay-success__check {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
}
.od-pay-success__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}
.od-pay-success__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #065f46;
}
[data-theme="dark"] .od-pay-success__title {
    color: #ecfdf5;
}
.od-pay-success__detail {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #047857;
    opacity: 0.95;
}
[data-theme="dark"] .od-pay-success__detail {
    color: #d1fae5;
}
.od-pay-success__sub {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #0f766e;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .od-pay-success__sub {
    color: rgba(236, 253, 245, 0.92);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(52, 211, 153, 0.2);
}

/* Order detail — AJAX status refresh (crossfade + stagger) */
.od-order-status-root {
    position: relative;
}
.od-order-status-root > .od-progress,
.od-order-status-root > .od-progress--cancelled {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    will-change: opacity, transform;
}
.od-order-status-root.od-order-status--swap-out > .od-progress,
.od-order-status-root.od-order-status--swap-out > .od-progress--cancelled {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    pointer-events: none;
    filter: saturate(0.92);
}
.od-order-status-root.od-order-status--swap-in > .od-progress,
.od-order-status-root.od-order-status--swap-in > .od-progress--cancelled {
    animation: odStatusCardEnter 0.62s cubic-bezier(0.34, 1.12, 0.64, 1) both;
}
@keyframes odStatusCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
        box-shadow: 0 0 0 rgba(243, 99, 15, 0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }
}
.od-order-status-root.od-order-status--swap-in .od-progress-head .od-progress-current-badge {
    animation: odBadgePop 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) 0.12s both;
}
@keyframes odBadgePop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.od-order-status-root.od-order-status--swap-in .od-progress-step {
    animation: odProgressStepEnter 0.48s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(1) {
    animation-delay: 0.04s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(2) {
    animation-delay: 0.11s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(3) {
    animation-delay: 0.18s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(4) {
    animation-delay: 0.25s;
}
@keyframes odProgressStepEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
[data-theme='dark'] .od-order-status-root.od-order-status--swap-in > .od-progress {
    animation-name: odStatusCardEnterDark;
}
@keyframes odStatusCardEnterDark {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    }
}
@media (prefers-reduced-motion: reduce) {
    .od-order-status-root > .od-progress,
    .od-order-status-root > .od-progress--cancelled {
        transition: none;
        will-change: auto;
    }
    .od-order-status-root.od-order-status--swap-in > .od-progress,
    .od-order-status-root.od-order-status--swap-in > .od-progress--cancelled,
    .od-order-status-root.od-order-status--swap-in .od-progress-step,
    .od-order-status-root.od-order-status--swap-in .od-progress-head .od-progress-current-badge {
        animation: none !important;
    }
}

/* Order detail — status progress */
.od-progress {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 18px;
    padding: 18px 14px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .od-progress {
    background: linear-gradient(180deg, #252536 0%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.od-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.od-progress-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.od-progress-head .app-order-status {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}
.od-progress-head .app-order-status.st-pending { background: #fef3c7; color: #b45309; }
.od-progress-head .app-order-status.st-confirmed { background: #dbeafe; color: #1d4ed8; }
.od-progress-head .app-order-status.st-processing { background: #ffedd5; color: #c2410c; }
.od-progress-head .app-order-status.st-shipped { background: #ede9fe; color: #6d28d9; }
.od-progress-head .app-order-status.st-delivered { background: #dcfce7; color: #15803d; }
.od-progress-head .app-order-status.st-cancelled { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .od-progress-head .app-order-status.st-pending { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
[data-theme="dark"] .od-progress-head .app-order-status.st-confirmed { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
[data-theme="dark"] .od-progress-head .app-order-status.st-processing { background: rgba(251, 146, 60, 0.2); color: #fdba74; }
[data-theme="dark"] .od-progress-head .app-order-status.st-shipped { background: rgba(167, 139, 250, 0.25); color: #c4b5fd; }
[data-theme="dark"] .od-progress-head .app-order-status.st-delivered { background: rgba(74, 222, 128, 0.2); color: #86efac; }
[data-theme="dark"] .od-progress-head .app-order-status.st-cancelled { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.od-progress-hint {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}
.od-progress-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}
.od-progress-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    margin: 0;
    padding: 0;
}
.od-progress-step-inner {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}
.od-progress-rail {
    flex: 1;
    min-width: 6px;
    height: 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    align-self: center;
}
[data-theme="dark"] .od-progress-rail {
    background: rgba(255, 255, 255, 0.1);
}
.od-progress-rail.is-filled {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}
.od-progress-dot {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
[data-theme="dark"] .od-progress-dot {
    background: #2d2d3d;
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.12);
}
.od-progress-step.is-upcoming .od-progress-dot {
    opacity: 0.85;
}
.od-progress-step.is-current .od-progress-dot:not(.od-progress-dot--bike) {
    background: linear-gradient(145deg, #f3630f, #ff8a3d);
    color: #fff;
    border-color: rgba(243, 99, 15, 0.45);
    box-shadow: 0 6px 20px rgba(243, 99, 15, 0.45);
    transform: scale(1.06);
    animation: od-pulse-soft 2.2s ease-in-out infinite;
}
/* "On the way" — merged processing + shipped; floating bike */
.od-progress-step--bike.is-current .od-progress-dot.od-progress-dot--bike {
    background: linear-gradient(145deg, #f3630f, #ff8a3d);
    color: #fff;
    border-color: rgba(243, 99, 15, 0.45);
    font-size: 15px;
    transform: scale(1.06);
    animation: od-bike-ride 2s ease-in-out infinite;
}
@keyframes od-bike-ride {
    0%, 100% {
        transform: scale(1.06) translateY(0);
        box-shadow: 0 6px 20px rgba(243, 99, 15, 0.45);
    }
    50% {
        transform: scale(1.06) translateY(-6px);
        box-shadow: 0 10px 28px rgba(243, 99, 15, 0.55);
    }
}
@media (prefers-reduced-motion: reduce) {
    .od-progress-step--bike.is-current .od-progress-dot.od-progress-dot--bike {
        animation: none;
    }
}
.od-progress-step.is-complete .od-progress-dot {
    background: linear-gradient(145deg, #16a34a, #22c55e);
    color: #fff;
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
@keyframes od-pulse-soft {
    0%, 100% { box-shadow: 0 6px 20px rgba(243, 99, 15, 0.45); }
    50% { box-shadow: 0 6px 28px rgba(243, 99, 15, 0.62); }
}
.od-progress-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    line-height: 1.2;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.od-progress-step.is-current .od-progress-label {
    color: #ea580c;
    font-weight: 800;
}
.od-progress-step--bike.is-current .od-progress-label {
    color: #c2410c;
}
[data-theme="dark"] .od-progress-step--bike.is-current .od-progress-label {
    color: #fdba74;
}
[data-theme="dark"] .od-progress-step.is-current .od-progress-label {
    color: #fb923c;
}
.od-progress-step.is-complete .od-progress-label {
    color: #15803d;
}
[data-theme="dark"] .od-progress-step.is-complete .od-progress-label {
    color: #4ade80;
}

.od-progress--cancelled {
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}
[data-theme="dark"] .od-progress--cancelled {
    background: linear-gradient(145deg, #3f1d1d 0%, #292524 100%);
    border-color: rgba(248, 113, 113, 0.35);
}
.od-progress-cancelled-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 2px;
}
.od-progress-cancelled-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
[data-theme="dark"] .od-progress-cancelled-icon {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}
.od-progress-cancelled-title {
    font-size: 16px;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 6px;
}
[data-theme="dark"] .od-progress-cancelled-title {
    color: #fecaca;
}
.od-progress-cancelled-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #7f1d1d;
}
[data-theme="dark"] .od-progress-cancelled-text {
    color: rgba(254, 202, 202, 0.88);
}

@media (max-width: 380px) {
    .od-progress-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .od-progress-label {
        font-size: 9px;
        letter-spacing: 0.02em;
    }
}

.od-header-card {
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    color: #fff;
}
.od-header-top { display: flex; justify-content: space-between; align-items: flex-start; }
.od-number { font-size: 18px; font-weight: 800; }
.od-date { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.od-header-card .app-order-status { background: rgba(255,255,255,0.2); color: #fff; }
.od-note { font-size: 12px; color: rgba(255,255,255,0.85); margin: 12px 0 0; display: flex; align-items: flex-start; gap: 6px; }

.od-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.od-section-title i { color: var(--orange); font-size: 14px; }

.od-items-card, .od-summary-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
[data-theme="dark"] .od-items-card, [data-theme="dark"] .od-summary-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.od-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .od-item { border-color: rgba(255,255,255,0.04); }
.od-item:last-child { border-bottom: none; }
.od-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.od-item-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.od-item-name-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.od-item-name-row .od-item-name { flex: 1; min-width: 0; }
.od-free-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: #22c55e;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.3;
    flex-shrink: 0;
}
.od-item--free { background: linear-gradient(90deg, rgba(34, 197, 94, 0.06), transparent); }
.od-item-variant { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.od-free-meta { font-weight: 600; color: #15803d; }
.od-item-total--end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.od-free-total-label { font-size: 16px; font-weight: 800; color: #16a34a; }
.od-free-list-ref { font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; opacity: 0.9; }
.od-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.od-item-total { font-size: 15px; font-weight: 700; color: var(--text); flex-shrink: 0; margin-left: 12px; }

.od-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.od-sum-row.total { font-size: 16px; font-weight: 800; color: var(--text); }
.od-sum-row.discount span:last-child { color: #22c55e; }
.od-free { color: #22c55e; font-weight: 600; }
.od-mrp-note { font-size: 13px; color: var(--text-muted); }
.od-mrp-note small { font-weight: 500; opacity: 0.85; font-size: 11px; }
.od-sum-savings span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #166534; }
.od-sum-savings .od-savings-val { color: #16a34a; font-weight: 800; font-size: 15px; }
.od-savings-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 12px 16px 0;
    padding: 0;
    opacity: 0.9;
}
.od-savings-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(125deg, #059669 0%, #10b981 45%, #34d399 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.28);
    position: relative;
    overflow: hidden;
}
.od-savings-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.od-savings-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.od-savings-banner__body { position: relative; z-index: 1; min-width: 0; }
.od-savings-banner__title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.92; }
.od-savings-banner__amount { font-size: 24px; font-weight: 900; line-height: 1.1; margin-top: 4px; letter-spacing: -0.02em; }
.od-savings-banner__meta { font-size: 12px; font-weight: 600; margin-top: 6px; opacity: 0.92; line-height: 1.35; }
[data-theme="dark"] .od-sum-savings span:first-child { color: #86efac; }
[data-theme="dark"] .od-sum-savings .od-savings-val { color: #4ade80; }
[data-theme="dark"] .od-savings-banner { box-shadow: 0 8px 28px rgba(0,0,0,0.35); }

.od-sum-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 0 16px; }
[data-theme="dark"] .od-sum-divider { background: rgba(255,255,255,0.06); }

.od-actions { margin-top: 8px; }

.od-reorder-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(243, 99, 15, 0.08), rgba(61, 187, 76, 0.06));
    border: 1px solid rgba(243, 99, 15, 0.15);
}
[data-theme="dark"] .od-reorder-wrap {
    background: linear-gradient(145deg, rgba(243, 99, 15, 0.12), rgba(61, 187, 76, 0.08));
    border-color: rgba(255, 255, 255, 0.08);
}
.od-reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #f3630f, #ea580c);
    box-shadow: 0 2px 8px rgba(243, 99, 15, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.od-reorder-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 99, 15, 0.38);
}
.od-reorder-btn:disabled {
    opacity: 0.85;
    cursor: wait;
}
.od-reorder-hint {
    flex: 1 1 140px;
    margin: 0;
    min-width: 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-muted);
}
@media (max-width: 360px) {
    .od-reorder-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .od-reorder-btn {
        justify-content: center;
    }
    .od-reorder-hint {
        text-align: center;
    }
}

.od-pay-full, .od-view-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.od-pay-full:hover, .od-view-full:hover { transform: translateY(-2px); }

.app-order-arrow { color: var(--text-muted); font-size: 14px; }

/* Edit / Change Pwd Buttons */
.app-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin: 12px 0 6px;
    transition: transform 0.2s;
}
.app-edit-btn:hover { transform: translateY(-1px); }
.app-edit-btn.outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border, rgba(0,0,0,0.1));
    margin-top: 0;
}
.app-edit-btn.outline:hover { border-color: var(--orange); color: var(--orange); }

/* Form Styles */
.app-edit-form { margin-bottom: 12px; }
.app-form-group {
    margin-bottom: 12px;
}
.app-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.app-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.app-form-group input:focus { border-color: var(--orange); }
[data-theme="dark"] .app-form-group input { border-color: rgba(255,255,255,0.08); }

.app-form-group select,
.app-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.app-form-group select:focus,
.app-form-group textarea:focus { border-color: var(--orange); }
[data-theme="dark"] .app-form-group select,
[data-theme="dark"] .app-form-group textarea { border-color: rgba(255,255,255,0.08); }

.app-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.app-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.app-btn-save {
    flex: 1;
    padding: 13px;
    background: linear-gradient(135deg, #f3630f, #ff8a3d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.app-btn-cancel {
    flex: 0.6;
    padding: 13px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
[data-theme="dark"] .app-btn-cancel { border-color: rgba(255,255,255,0.08); }

/* Toast messages */
.app-toast {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-toast.success { background: rgba(34,197,94,0.1); color: #22c55e; }
.app-toast.error { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ── Mobile Cart Value & Hide User Menu ── */
.cart-value-mobile { display: none; }
.hide-on-mobile { }

/* ── Global Sticky Cart Bar ── */
.global-cart-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    z-index: 95;
    padding: 0 12px 8px;
    animation: gcbSlideUp .3s ease;
}
@keyframes gcbSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.global-cart-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius: 14px;
    padding: 10px 12px 10px 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(22,163,74,.35);
    transition: transform .15s;
}
.global-cart-bar-inner:hover { transform: translateY(-1px); color: #fff; }
.gcb-left { display: flex; align-items: center; gap: 8px; }
.gcb-count {
    background: #fff;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    text-align: center;
    padding: 0 6px;
}
.gcb-label { font-size: 13px; font-weight: 600; opacity: .9; }
.gcb-right { display: flex; align-items: center; gap: 10px; }
.gcb-total { font-size: 16px; font-weight: 800; }
.gcb-btn {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .global-cart-bar {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 480px;
        width: 100%;
    }
    @keyframes gcbSlideUp {
        from { transform: translateX(-50%) translateY(100%); opacity: 0; }
        to { transform: translateX(-50%) translateY(0); opacity: 1; }
    }
}

/* Floating “order on the way” (above bottom nav + above global cart bar when visible; z-index below cart) */
.pk-transit-order-bar {
    position: fixed;
    left: 12px;
    right: 52px;
    bottom: 66px;
    z-index: 94;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.38);
    text-decoration: none;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pkTransitIn 0.35s ease;
}
@keyframes pkTransitIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.pk-transit-order-bar:hover {
    box-shadow: 0 10px 32px rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
}
.pk-transit-order-bar__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.pk-transit-order-bar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pk-transit-order-bar__title {
    font-weight: 800;
    font-size: 13px;
    color: #f8fafc;
    letter-spacing: 0.02em;
}
.pk-transit-order-bar__sub {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pk-transit-order-bar__chev {
    flex-shrink: 0;
    font-size: 12px;
    color: #38bdf8;
    opacity: 0.85;
}
body.pk-gcb-visible .pk-transit-order-bar {
    bottom: 128px;
}
@media (min-width: 768px) {
    .pk-transit-order-bar {
        left: 50%;
        right: auto;
        width: min(440px, calc(100vw - 96px));
        margin: 0;
        transform: translateX(-50%);
        bottom: 28px;
    }
    @keyframes pkTransitIn {
        from { opacity: 0; transform: translateX(-50%) translateY(12px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    .pk-transit-order-bar:hover {
        transform: translateX(-50%) translateY(-1px);
    }
    body.pk-gcb-visible .pk-transit-order-bar {
        bottom: 96px;
    }
}
@media (max-width: 767px) {
    body.pk-transit-visible .back-to-top {
        bottom: 118px;
    }
    body.pk-transit-visible.pk-gcb-visible .back-to-top {
        bottom: 132px;
    }
    .hide-on-mobile { display: none !important; }
    .cart-value-mobile {
        display: inline-block;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        margin-left: 4px;
    }
    .header-cart-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        background: var(--green, #16a34a) !important;
        color: #fff !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        font-size: 13px;
        text-decoration: none;
    }
    .header-cart-btn i { color: #fff; }
    .header-cart-btn .cart-badge {
        position: static;
        background: #fff;
        color: var(--green, #16a34a);
        font-size: 11px;
        font-weight: 800;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        border-radius: 10px;
        text-align: center;
        padding: 0 5px;
    }
}

/* ===== Vendor login page (dedicated layout) ===== */
.vendor-login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 56px;
    padding-bottom: max(56px, calc(40px + env(safe-area-inset-bottom, 0px)));
    background: var(--bg);
    box-sizing: border-box;
}
.vendor-login-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.vendor-login-panel {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 28px 22px 24px;
    text-align: center;
    box-sizing: border-box;
}
@media (min-width: 480px) {
    .vendor-login-panel {
        padding: 36px 32px 28px;
        border-radius: var(--radius-lg, 16px);
    }
}
.vendor-login-brand {
    margin: 0 auto 20px;
}
.vendor-login-brand img {
    display: block;
    margin: 0 auto;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}
.vendor-login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(243,99,15,0.12), rgba(61,187,76,0.1));
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.vendor-login-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
@media (min-width: 480px) {
    .vendor-login-title { font-size: 1.5rem; }
}
.vendor-login-lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 auto 26px;
    max-width: 34rem;
    text-align: center;
}
.vendor-login-panel .vendor-alert {
    text-align: left;
    margin-bottom: 20px;
}
.vendor-login-form {
    margin: 0;
    text-align: left;
}
.vendor-field {
    margin-bottom: 18px;
}
.vendor-field:last-of-type {
    margin-bottom: 22px;
}
.vendor-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.vendor-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    min-height: 52px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vendor-input:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(243,99,15,0.12);
    background: var(--bg-white);
}
.vendor-input i {
    color: var(--text-light);
    font-size: 15px;
    flex-shrink: 0;
}
.vendor-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
    font-weight: 500;
    min-width: 0;
}
.vendor-input input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}
.vendor-login-submit {
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light, #ff8a3d));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(243,99,15,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    margin-top: 4px;
}
.vendor-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(243,99,15,0.35);
}
.vendor-login-submit:active {
    transform: translateY(0);
}
.vendor-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.vendor-login-divider::before,
.vendor-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.vendor-login-divider span { opacity: 0.85; }
.vendor-login-otp-block { text-align: center; }
.vendor-login-otp-send {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vendor-login-otp-send:hover {
    border-color: var(--orange);
    background: rgba(243,99,15,0.06);
    box-shadow: 0 0 0 3px rgba(243,99,15,0.08);
}
.vendor-login-otp-send:disabled { opacity: 0.6; cursor: not-allowed; }
.vendor-login-otp-section {
    margin-top: 20px;
    text-align: center;
}
.vendor-login-otp-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}
.vendor-login-otp-error {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}
.vendor-login-submit--otp { margin-top: 6px; }
.vendor-login-resend { margin-top: 14px; }
.vendor-login-foot {
    margin-top: 26px;
    padding-top: 22px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}
.vendor-login-foot a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 8px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}
.vendor-login-foot a:hover {
    color: var(--orange);
    background: rgba(243,99,15,0.06);
}
[data-theme="dark"] .vendor-login-page { background: var(--bg); }
[data-theme="dark"] .vendor-login-panel {
    background: var(--bg-white);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .vendor-login-title { color: var(--text-dark); }
[data-theme="dark"] .vendor-input {
    background: #12121a;
    border-color: var(--border);
}
[data-theme="dark"] .vendor-input:focus-within {
    background: #1a1a24;
}
[data-theme="dark"] .vendor-input input { color: var(--text-dark); }
[data-theme="dark"] .vendor-login-foot { border-color: var(--border); }

.vendor-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.vendor-alert-error { background: rgba(239,68,68,0.1); color: #dc2626; }
.vendor-alert-success { background: rgba(61,187,76,0.12); color: var(--green-dark, #2d9e3a); }
[data-theme="dark"] .vendor-alert-error { background: rgba(239,68,68,0.15); color: #f87171; }
[data-theme="dark"] .vendor-alert-success { background: rgba(61,187,76,0.15); color: #4ade80; }

/* Dashboard: full-width on small screens, room for mobile bottom nav */
.vendor-dashboard-wrap.app-account {
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-top: 12px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px)));
}
.vendor-dashboard-wrap .app-profile-hero {
    padding: 24px 16px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
}
.vendor-dashboard-wrap .app-name {
    font-size: clamp(17px, 4.5vw, 22px);
    word-break: break-word;
}
.vendor-dashboard-wrap .app-email {
    font-size: 12px;
    line-height: 1.35;
    padding: 0 4px;
}
.vendor-dashboard-wrap .app-logout-btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13px;
}

/* Tabs: horizontal scroll on narrow viewports, comfortable tap targets */
.vendor-dashboard-wrap .app-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 4px;
    padding: 4px;
    scrollbar-width: none;
    margin-bottom: 12px;
}
.vendor-dashboard-wrap .app-tabs::-webkit-scrollbar { display: none; }
.vendor-dashboard-wrap .app-tab {
    flex: 1 0 auto;
    scroll-snap-align: start;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 13px;
    gap: 6px;
}
.vendor-dashboard-wrap .app-tab i { font-size: 15px; flex-shrink: 0; }
@media (min-width: 640px) {
    .vendor-dashboard-wrap.app-account {
        max-width: 640px;
        margin: 0 auto;
        padding: 20px 20px max(100px, calc(80px + env(safe-area-inset-bottom, 0px)));
    }
    .vendor-dashboard-wrap .app-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .vendor-dashboard-wrap .app-tab {
        flex: 1;
        min-width: 0;
    }
}
@media (min-width: 900px) {
    .vendor-dashboard-wrap.app-account {
        max-width: 960px;
        padding: 24px 24px 120px;
    }
}

.vendor-dashboard-wrap .vendor-alert { margin: 0 0 14px; }
.vendor-avatar-alt {
    background: linear-gradient(135deg, #f3630f, #3dbb4c) !important;
    font-size: 22px !important;
    color: #fff !important;
}

/* ── Vendor portal standalone: mobile app–style shell ── */
.vendor-dashboard-wrap.vendor-dashboard--standalone {
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 639.98px) {
    .vendor-dashboard-wrap.vendor-dashboard--standalone.app-account {
        background: var(--bg);
    }
    .vendor-dashboard--standalone .app-profile-hero {
        border-radius: 22px;
        box-shadow:
            0 4px 6px rgba(243, 99, 15, 0.15),
            0 16px 40px rgba(243, 99, 15, 0.12);
        margin-bottom: 14px;
    }
    /* iOS-style bottom tab bar */
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        z-index: 200;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
        border: 1px solid var(--border);
        border-bottom: none;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-wrap: nowrap;
        overflow-x: hidden;
        scroll-snap-type: none;
    }
    [data-theme="dark"] .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs {
        background: rgba(30, 30, 46, 0.94);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab {
        flex: 1;
        min-width: 0;
        min-height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 3px 8px;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.15;
        border-radius: 14px;
        letter-spacing: 0.01em;
        touch-action: manipulation;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab i {
        font-size: 19px;
        opacity: 0.85;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab.active {
        box-shadow: 0 2px 12px rgba(243, 99, 15, 0.35);
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab.active i {
        opacity: 1;
    }
    /* Content cards read as “screens” */
    .vendor-dashboard--standalone .vendor-sales-toolbar,
    .vendor-dashboard--standalone .vendor-orders-table-wrap--elevated,
    .vendor-dashboard--standalone .vendor-item-card {
        border-radius: 18px;
    }

    /* Tighter type on mobile (overview stat cards .vendor-stat-card keep global sizes) */
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-name {
        font-size: clamp(15px, 4vw, 18px);
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-email {
        font-size: 11px;
        line-height: 1.35;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-hero-link {
        font-size: 11px;
        min-height: 36px;
        padding: 6px 10px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-hero-actions .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-avatar.vendor-avatar-alt {
        width: 64px;
        height: 64px;
        font-size: 20px !important;
    }

    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-toolbar {
        padding: 12px 12px 14px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-toolbar__head {
        margin-bottom: 10px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-toolbar__title {
        font-size: 0.875rem;
        gap: 6px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-toolbar__meta {
        font-size: 11px;
        gap: 6px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-pill {
        font-size: 10px;
        padding: 3px 8px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-chips {
        padding: 2px 2px 8px;
        gap: 6px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-chip {
        font-size: 10px;
        padding: 8px 11px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-search__icon {
        font-size: 13px;
        padding: 0 8px 0 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-search__input {
        font-size: 14px;
        padding: 10px 6px 10px 0;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-search__btn {
        font-size: 12px;
        padding: 0 12px;
        margin: 4px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-clear {
        font-size: 11px;
        margin-top: 8px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-pagination__summary {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-page-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-page-indicator {
        font-size: 11px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-pagination__foot {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-empty h3 {
        font-size: 1rem;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-sales-empty p {
        font-size: 13px;
    }

    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-orders-table {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-orders-table thead th {
        font-size: 10px;
    }

    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-items-title {
        font-size: 1rem;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-help-text {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-item-card__name {
        font-size: 0.9rem;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-item-card__cost-label,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-item-card__variants-title,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-item-card__variant-chip {
        font-size: 11px;
    }

    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-settings-card__title {
        font-size: 1rem;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-settings-card__lede,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-inline-note {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-dashboard-wrap .app-form-group label,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-form-group label {
        font-size: 12px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-form-group input,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-form-group select,
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-form-group textarea {
        font-size: 14px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .app-btn-save {
        font-size: 13px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-alert {
        font-size: 13px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone #vendor-profile-flash {
        font-size: 13px;
    }
}
@media (min-width: 640px) {
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        border-radius: 14px;
        padding: 4px;
        margin-bottom: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.04);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        max-width: none;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab {
        flex-direction: row;
        font-size: 13px;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 11px;
    }
    .vendor-dashboard-wrap.vendor-dashboard--standalone .vendor-app-tabs .app-tab i {
        font-size: 15px;
    }
}

/* Vendor login: full-screen app entry (no store chrome) */
.vendor-login-page.vendor-login-page--standalone {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top, 0px) + 12px) 18px max(32px, env(safe-area-inset-bottom, 0px) + 16px);
    background: linear-gradient(165deg, #fff7ed 0%, #fffbeb 28%, var(--bg) 55%, var(--bg) 100%);
    align-items: flex-start;
    padding-top: max(32px, env(safe-area-inset-top, 0px) + 20px);
}
@media (min-width: 480px) {
    .vendor-login-page.vendor-login-page--standalone {
        align-items: center;
        padding-top: max(28px, env(safe-area-inset-top, 0px) + 16px);
    }
}
[data-theme="dark"] .vendor-login-page.vendor-login-page--standalone {
    background: linear-gradient(165deg, #1c1917 0%, #1e1b2e 40%, var(--bg) 70%);
}
.vendor-login-page--standalone .vendor-login-panel {
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(243, 99, 15, 0.12);
    border: 1px solid rgba(243, 99, 15, 0.1);
}
[data-theme="dark"] .vendor-login-page--standalone .vendor-login-panel {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.vendor-login-page--standalone .vendor-login-submit {
    border-radius: 14px;
    min-height: 52px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(243, 99, 15, 0.35);
}
.vendor-login-page--standalone .vendor-login-foot {
    margin-top: 8px;
    padding-top: 20px;
}

/* My items tab */
.vendor-items-head {
    margin-bottom: 20px;
}
.vendor-items-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.vendor-items-title i {
    color: var(--orange);
}
.vendor-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.vendor-item-card {
    display: flex;
    gap: 14px;
    align-items: stretch;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.vendor-item-card__media {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
}
.vendor-item-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vendor-item-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 28px;
}
.vendor-item-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.vendor-item-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-dark);
}
.vendor-item-card__cost {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}
.vendor-item-card__cost-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--text-muted);
}
.vendor-item-card__cost-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--orange-dark);
}
.vendor-item-card__variants {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.vendor-item-card__variants-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted);
    margin-right: 4px;
}
.vendor-item-card__variant-chip {
    display: inline-block;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4f46e5;
}
.vendor-item-card__variant-chip small {
    font-weight: 500;
    opacity: .7;
}
[data-theme="dark"] .vendor-item-card__variant-chip {
    background: rgba(99, 102, 241, .15);
    border-color: rgba(99, 102, 241, .25);
    color: #818cf8;
}
[data-theme="dark"] .vendor-item-card {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .vendor-item-card__media {
    background: #12121a;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .vendor-item-card__name {
    color: var(--text-dark);
}

/* Account tab: stacked settings cards */
.vendor-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Cards live inside the profile <form>; gap on .vendor-settings-stack only splits form vs password card */
.vendor-settings-stack > form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}
.vendor-settings-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.vendor-settings-card--accent {
    border-color: rgba(243, 99, 15, 0.22);
    box-shadow: 0 8px 28px rgba(243, 99, 15, 0.08);
}
.vendor-settings-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px 14px;
    background: linear-gradient(180deg, rgba(243, 99, 15, 0.06), transparent 72%);
    border-bottom: 1px solid var(--border);
}
.vendor-settings-card--accent .vendor-settings-card__head {
    background: linear-gradient(135deg, rgba(243, 99, 15, 0.1), rgba(61, 187, 76, 0.06));
    border-bottom-color: rgba(243, 99, 15, 0.12);
}
.vendor-settings-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 99, 15, 0.12);
    color: var(--orange);
    font-size: 18px;
}
.vendor-settings-card__icon--shield {
    background: rgba(61, 187, 76, 0.15);
    color: var(--green);
}
.vendor-settings-card__icon--person {
    background: rgba(26, 26, 46, 0.08);
    color: var(--text-dark);
}
.vendor-label-optional {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85em;
}
.vendor-inline-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.vendor-inline-note i {
    color: var(--orange);
    margin-right: 6px;
}
.vendor-settings-card__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}
.vendor-settings-card__lede {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.vendor-settings-card__body {
    padding: 16px;
}
@media (min-width: 640px) {
    .vendor-settings-card__head { padding: 20px 22px 16px; }
    .vendor-settings-card__body { padding: 20px 22px 22px; }
    .vendor-settings-card__title { font-size: 1.125rem; }
}
.vendor-pwd-step { margin-top: 0; }
.vendor-pwd-step + .vendor-pwd-step { margin-top: 12px; }
.vendor-pwd-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
}
.vendor-pwd-btn-full {
    width: 100%;
    justify-content: center;
}
.vendor-form-error {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    margin: 12px 0 0;
    line-height: 1.4;
}
.vendor-pwd-success {
    margin-top: 12px;
}

.vendor-subheading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
    .vendor-subheading { font-size: 15px; margin: 24px 0 12px; }
}

/* Form: single column by default → two columns from tablet */
.vendor-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.vendor-form-grid .full-width { grid-column: 1 / -1; }
@media (min-width: 640px) {
    .vendor-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }
}

.vendor-dashboard-wrap .app-form-group input,
.vendor-dashboard-wrap .app-form-group select,
.vendor-dashboard-wrap .app-form-group textarea {
    font-size: 16px;
    min-height: 48px;
}
.vendor-dashboard-wrap .app-form-group textarea {
    min-height: 88px;
    resize: vertical;
}
.vendor-dashboard-wrap .app-form-actions {
    flex-direction: column;
    margin-top: 16px;
    gap: 10px;
}
.vendor-dashboard-wrap .app-form-actions .app-btn-save {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}
@media (min-width: 640px) {
    .vendor-dashboard-wrap .app-form-actions {
        flex-direction: row;
    }
    .vendor-dashboard-wrap .app-form-actions .app-btn-save {
        width: auto;
        flex: 0 1 auto;
        min-width: 200px;
    }
}

/* Vendor sales stats + orders (mobile-first) */
.vendor-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
@media (min-width: 480px) {
    .vendor-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}
.vendor-stats-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Mobile: “Today’s cost” full width; line items + units side by side */
@media (max-width: 639.98px) {
    .vendor-stats-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .vendor-stats-grid--three .vendor-stat-card:first-child {
        grid-column: 1 / -1;
    }
    .vendor-stats-grid--three .vendor-stat-card {
        padding: 12px 10px;
    }
    .vendor-stats-grid--three .vendor-stat-card .vs-val {
        font-size: clamp(17px, 5vw, 20px);
    }
    .vendor-stats-grid--three .vendor-stat-card .vs-label {
        font-size: 10px;
    }
}
.vendor-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.vendor-stat-card .vs-val {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: var(--orange);
    line-height: 1.2;
}
.vendor-stat-card .vs-val.vs-green { color: var(--green); }
.vendor-stat-card .vs-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.3;
}
@media (min-width: 640px) {
    .vendor-stat-card { padding: 18px 14px; }
    .vendor-stat-card .vs-label { font-size: 12px; }
}
.vendor-help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
.vendor-help-text--muted {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(243, 99, 15, 0.06);
    border: 1px solid rgba(243, 99, 15, 0.12);
}

/* Vendor portal: compact sync strip (above sales AJAX root) */
.vendor-sales-sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
    padding: 4px 6px 4px 8px;
    min-height: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: none;
}
.vendor-sales-sync-bar__text {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
    flex: 1;
    line-height: 1.2;
}
.vendor-sales-sync-bar__hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.vendor-sales-sync-bar__hint i {
    margin-right: 3px;
    font-size: 10px;
    opacity: 0.8;
}
.vendor-sales-sync-bar__sep {
    color: var(--text-light);
    font-weight: 400;
    font-size: 11px;
    user-select: none;
}
.vendor-sales-sync-bar__last {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 0;
}
.vendor-sales-sync-bar__last strong {
    font-weight: 700;
    font-size: 11px;
    color: var(--text-dark);
}
.vendor-sales-sync-bar__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.vendor-sales-sync-bar__btn:hover:not(:disabled) {
    border-color: var(--orange);
    background: rgba(243, 99, 15, 0.08);
    color: var(--orange);
}
.vendor-sales-sync-bar__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.vendor-sales-sync-bar__btn.is-loading .fa-arrows-rotate {
    animation: vpRefreshSpin 0.75s linear infinite;
}
@keyframes vpRefreshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
[data-theme="dark"] .vendor-sales-sync-bar {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}
[data-theme="dark"] .vendor-sales-sync-bar__btn {
    background: #12121a;
    border-color: var(--border);
}
[data-theme="dark"] .vendor-sales-sync-bar__btn:hover:not(:disabled) {
    background: rgba(243, 99, 15, 0.12);
}

/* Vendor sales: filters + search + pagination */
.vendor-sales-suite {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vendor-sales-toolbar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.06);
    padding: 16px 14px 18px;
    overflow: hidden;
}
.vendor-sales-toolbar__head {
    margin-bottom: 14px;
}
.vendor-sales-toolbar__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vendor-sales-toolbar__title i { color: var(--orange); font-size: 0.95em; }
.vendor-sales-toolbar__meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.vendor-sales-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(243, 99, 15, 0.15), rgba(61, 187, 76, 0.12));
    color: var(--text-dark);
}
.vendor-sales-dates { font-weight: 600; color: var(--text-muted); }

.vendor-sales-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 12px;
    margin: 0 -4px;
}
.vendor-sales-chips::-webkit-scrollbar { display: none; }

.vendor-sales-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg);
    border: 1.5px solid var(--border);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.vendor-sales-chip:hover {
    color: var(--orange);
    border-color: rgba(243, 99, 15, 0.4);
    background: rgba(243, 99, 15, 0.06);
}
.vendor-sales-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-light, #ff8a3d));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(243, 99, 15, 0.3);
}
.vendor-sales-chip:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.vendor-sales-search {
    margin-top: 4px;
}
.vendor-sales-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.vendor-sales-search__row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vendor-sales-search__row:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(243, 99, 15, 0.1);
    background: var(--bg-white);
}
.vendor-sales-search__icon {
    display: flex;
    align-items: center;
    padding: 0 12px 0 14px;
    color: var(--text-light);
    font-size: 15px;
}
.vendor-sales-search__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 8px 14px 0;
    font-size: 16px;
    color: var(--text-dark);
    min-width: 0;
    outline: none;
    font-family: inherit;
}
.vendor-sales-search__input::placeholder {
    color: var(--text-light);
}
.vendor-sales-search__btn {
    flex-shrink: 0;
    margin: 6px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.vendor-sales-search__btn:hover {
    filter: brightness(1.05);
}
.vendor-sales-search__btn:active {
    transform: scale(0.98);
}
.vendor-sales-clear {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.vendor-sales-clear:hover { color: var(--orange); }

.vendor-sales-empty {
    border-radius: 16px;
    border: 1px dashed var(--border);
    background: var(--bg);
    padding: 28px 20px !important;
}

.vendor-orders-table-wrap--elevated {
    box-shadow: var(--shadow-md);
    border-radius: 14px;
}

.vendor-sales-pagination {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 2px 8px;
}
@media (min-width: 520px) {
    .vendor-sales-pagination {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.vendor-sales-pagination__summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}
.vendor-sales-pagination__summary strong { color: var(--text-dark); }
.vendor-sales-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.vendor-sales-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.vendor-sales-page-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(243, 99, 15, 0.06);
}
.vendor-sales-page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.vendor-sales-page-indicator {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
}
.vendor-sales-pagination__foot {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 640px) {
    .vendor-sales-toolbar {
        padding: 20px 20px 22px;
    }
    .vendor-sales-toolbar__title {
        font-size: 1.0625rem;
    }
    .vendor-sales-chips {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

[data-theme="dark"] .vendor-help-text--muted {
    background: rgba(243, 99, 15, 0.1);
    border-color: rgba(243, 99, 15, 0.22);
}
[data-theme="dark"] .vendor-sales-toolbar {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .vendor-sales-chip {
    background: #12121a;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .vendor-sales-search__row {
    background: #12121a;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .vendor-sales-search__row:focus-within {
    background: #1a1a24;
}
[data-theme="dark"] .vendor-sales-empty {
    background: #12121a;
    border-color: rgba(255, 255, 255, 0.12);
}

.vendor-orders-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
}
.vendor-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.vendor-orders-table th,
.vendor-orders-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.vendor-orders-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg);
}
.vendor-orders-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}
.vendor-orders-table tfoot td {
    background: var(--bg);
}
.vendor-orders-table__total td {
    border-top: 2px solid var(--border);
    border-bottom: none;
    vertical-align: middle;
}
.vendor-orders-num {
    text-align: right;
    white-space: nowrap;
}
.vendor-orders-total-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.vendor-inv-st {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(243,99,15,0.1);
    color: var(--orange-dark);
}

/* Stack invoice lines on narrow screens (requires data-label on td) */
@media (max-width: 639px) {
    .vendor-orders-table-wrap { overflow: hidden; }
    .vendor-orders-table thead { display: none; }
    .vendor-orders-table tbody tr {
        display: block;
        border-bottom: 1px solid var(--border);
        padding: 4px 0;
    }
    .vendor-orders-table tbody tr:last-child {
        border-bottom: 1px solid var(--border);
    }
    .vendor-orders-table tfoot tr {
        display: block;
        border-top: 2px solid var(--border);
        margin-top: 4px;
        padding-top: 4px;
    }
    .vendor-orders-table tfoot td {
        border-bottom: none;
    }
    .vendor-orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        border: none;
        padding: 10px 14px;
        font-size: 14px;
    }
    .vendor-orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        flex-shrink: 0;
        max-width: 40%;
    }
}

[data-theme="dark"] .vendor-stat-card { background: #1e1e2e; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .vendor-settings-card { background: #1e1e2e; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .vendor-settings-card--accent { border-color: rgba(243, 99, 15, 0.35); }
[data-theme="dark"] .vendor-settings-card__head { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .vendor-settings-card__title { color: var(--text-dark); }
[data-theme="dark"] .vendor-settings-card__icon--person {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}
[data-theme="dark"] .vendor-inline-note {
    background: #12121a;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .vendor-form-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }
[data-theme="dark"] .vendor-orders-table-wrap { background: #1e1e2e; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .vendor-orders-table th { background: #12121a; }
[data-theme="dark"] .vendor-orders-table tfoot td { background: #12121a; }

@media (min-width: 640px) {
    .vendor-orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ===== PRODUCT VARIANT HINT ON CARDS ===== */
.product-variant-hint {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #f3630f;
    background: rgba(243,99,15,0.10);
    padding: 1px 7px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ===== VARIANT PICKER POPUP (BOTTOM SHEET) ===== */
.vp-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.vp-overlay.vp-visible { opacity: 1; visibility: visible; }
.vp-sheet {
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 460px;
    padding: 22px 22px 28px;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.4,.0,.2,1);
    position: relative;
    z-index: 100000;
}
.vp-visible .vp-sheet { transform: translateY(0); }
.vp-sheet::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: #d1d5db;
    border-radius: 4px;
    margin: 0 auto 14px;
}
.vp-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; font-weight: 700; font-size: 17px; color: #1f2937;
}
.vp-close {
    background: #f3f4f6; border: none; font-size: 18px; color: #6b7280;
    cursor: pointer; padding: 6px 8px; border-radius: 10px;
    transition: background .15s;
}
.vp-close:hover { background: #e5e7eb; }
.vp-body {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
    justify-content: center;
}
.vp-chip {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 12px 20px; border-radius: 14px;
    border: 2px solid #e5e7eb; background: #f9fafb;
    cursor: pointer; transition: all .15s; min-width: 100px;
    font-family: inherit;
}
.vp-chip:hover { border-color: #f3630f; background: #fff8f3; }
.vp-chip-active {
    border-color: #f3630f !important;
    background: #fff4ed !important;
    box-shadow: 0 0 0 3px rgba(243,99,15,0.15);
}
.vp-chip-label { font-weight: 700; font-size: 14px; color: #1f2937; }
.vp-chip-price { font-size: 13px; color: #f3630f; font-weight: 600; }
.vp-confirm {
    width: 100%; padding: 14px 0; border: none; border-radius: 14px;
    background: #f3630f; color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 2px 8px rgba(243,99,15,0.25);
}
.vp-confirm:hover { background: #d4520a; }

@media (min-width: 640px) {
    .vp-overlay { align-items: center; }
    .vp-sheet { border-radius: 20px; max-width: 420px; }
    .vp-sheet::before { display: none; }
}

[data-theme="dark"] .vp-sheet { background: #1e1e2e; box-shadow: 0 -8px 40px rgba(0,0,0,.4); }
[data-theme="dark"] .vp-sheet::before { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .vp-header { color: #e4e4e4; }
[data-theme="dark"] .vp-chip { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
[data-theme="dark"] .vp-chip:hover { background: rgba(243,99,15,0.08); }
[data-theme="dark"] .vp-chip-active { border-color: #f3630f !important; background: rgba(243,99,15,0.15) !important; }
[data-theme="dark"] .vp-chip-label { color: #e4e4e4; }
[data-theme="dark"] .vp-close { background: rgba(255,255,255,0.08); color: #9ca3af; }
[data-theme="dark"] .vp-close:hover { background: rgba(255,255,255,0.14); }

/* ----- Referrals (Invite & Earn) + Wallet — dark mode ----- */
[data-theme="dark"] .referrals-page-super,
[data-theme="dark"] .wallet-page-super {
    background: #0e0e14;
}
[data-theme="dark"] .mobile-ref-wrapper,
[data-theme="dark"] .mobile-wallet-wrapper {
    background: #12121a;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 8px 20px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
    [data-theme="dark"] .referrals-page-super,
    [data-theme="dark"] .wallet-page-super {
        background: #12121a;
    }
    [data-theme="dark"] .mobile-ref-wrapper,
    [data-theme="dark"] .mobile-wallet-wrapper {
        box-shadow: none;
    }
}
[data-theme="dark"] .mr-header-title,
[data-theme="dark"] .mw-header-title {
    color: #eaeaf0;
}
[data-theme="dark"] .mr-back-btn,
[data-theme="dark"] .mw-back-btn {
    background: #1e1e2e;
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
[data-theme="dark"] .mr-back-btn:hover,
[data-theme="dark"] .mw-back-btn:hover {
    color: #fdba74;
}
[data-theme="dark"] .mr-body,
[data-theme="dark"] .mw-trx-section {
    background: #1a1a24;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.25);
}
[data-theme="dark"] .mr-section-title,
[data-theme="dark"] .mw-trx-title {
    color: #eaeaf0;
}
[data-theme="dark"] .mr-stat-card {
    background: #22222e;
}
[data-theme="dark"] .mr-stat-card:hover {
    background: #2a2a38;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
[data-theme="dark"] .mr-stat-val,
[data-theme="dark"] .mw-trx-desc {
    color: #eaeaf0;
}
[data-theme="dark"] .mr-stat-lbl,
[data-theme="dark"] .mw-action-label,
[data-theme="dark"] .mw-trx-date {
    color: #9ca3af;
}
[data-theme="dark"] .icon-orange {
    background: rgba(243, 99, 15, 0.18);
    color: #fdba74;
}
[data-theme="dark"] .mr-btn-copy {
    background: #2a2a3a;
    color: #eaeaf0;
}
[data-theme="dark"] .mr-btn-copy:hover {
    background: #3a3a4a;
}
[data-theme="dark"] .mr-benefits-card {
    background: #22222e;
}
[data-theme="dark"] .mr-benefits-title {
    color: #eaeaf0;
}
[data-theme="dark"] .mr-benefits-badge.standard {
    background: rgba(129, 140, 248, 0.2);
    color: #c7d2fe;
}
[data-theme="dark"] .mr-benefits-badge.agent {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}
[data-theme="dark"] .mr-benefit-icon {
    background: #1e1e2e;
    color: #fdba74;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
[data-theme="dark"] .mr-benefit-label {
    color: #9ca3af;
}
[data-theme="dark"] .mr-benefit-val {
    color: #d1d5db;
}
[data-theme="dark"] .mr-benefits-tip {
    background: rgba(243, 99, 15, 0.12);
    color: #d1d5db;
    border: 1px solid rgba(243, 99, 15, 0.15);
}
[data-theme="dark"] .mr-benefits-tip i {
    color: #fdba74;
}
[data-theme="dark"] .mr-qr-wrap {
    background: #eaeaf0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
[data-theme="dark"] .mr-toast {
    background: #2a2a38;
    color: #eaeaf0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
[data-theme="dark"] .mw-action-icon {
    background: #1e1e2e;
    color: #fdba74;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
[data-theme="dark"] .mw-action-item:hover .mw-action-icon {
    color: #fbbf24;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
[data-theme="dark"] .mw-trx-item {
    background: #22222e;
}
[data-theme="dark"] .mw-trx-item:nth-child(even) {
    background: #1e1e2e;
    border: 1px solid #2a2a3a;
}
[data-theme="dark"] .mw-icon-credit {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}
[data-theme="dark"] .mw-icon-debit {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}
[data-theme="dark"] .mw-amt-credit {
    color: #fcd34d;
}
[data-theme="dark"] .mw-amt-debit {
    color: #fca5a5;
}
[data-theme="dark"] .mw-empty {
    color: #9ca3af;
}
[data-theme="dark"] .mw-empty i {
    color: #3a3a4a;
}
[data-theme="dark"] .mw-trx-header .fa-ellipsis {
    color: #6b7280 !important;
}

/* ----- Cart page (/cart) — dark mode ----- */
[data-theme="dark"] .cart-page {
    background: #0e0e14;
}
[data-theme="dark"] .cart-header h1 {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-count-label {
    color: #9ca3af;
}
[data-theme="dark"] .cart-card {
    background: #1a1a24;
    border: 1px solid #2a2a3a;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] .cart-card-img {
    background: #12121a;
}
[data-theme="dark"] .cart-card-img i {
    color: #4b5563;
}
[data-theme="dark"] .cart-card-name {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-card-name:hover {
    color: #fdba74;
}
[data-theme="dark"] .cart-card-variant {
    color: #9ca3af !important;
}
[data-theme="dark"] .cart-card-mrp {
    color: #6b7280;
}
[data-theme="dark"] .cart-card-save {
    background: rgba(74, 222, 128, 0.14);
    color: #86efac;
}
[data-theme="dark"] .cart-card-subtotal {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-qty {
    border-color: #3a3a4a;
    background: #12121a;
}
[data-theme="dark"] .cart-qty button {
    color: #9ca3af;
}
[data-theme="dark"] .cart-qty button:hover {
    background: #252532;
    color: #fdba74;
}
[data-theme="dark"] .cart-qty span {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-remove {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}
[data-theme="dark"] .cart-remove:hover {
    background: rgba(248, 113, 113, 0.22);
}
[data-theme="dark"] .cart-summary-card {
    background: #1a1a24;
    border: 1px solid #2a2a3a;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
}
[data-theme="dark"] .cart-summary-card h3 {
    color: #eaeaf0;
}
[data-theme="dark"] .cs-row {
    color: #9ca3af;
}
[data-theme="dark"] .cs-row .cs-val {
    color: #e5e7eb;
}
[data-theme="dark"] .cs-val--discount {
    color: #4ade80 !important;
}
[data-theme="dark"] .cs-divider {
    background: #2a2a3a;
}
[data-theme="dark"] .cs-total {
    color: #eaeaf0;
}
[data-theme="dark"] .cs-savings {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.18) 100%);
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: none;
}
[data-theme="dark"] .cs-savings i {
    color: #34d399;
}
[data-theme="dark"] .cs-savings strong {
    color: #a7f3d0;
}
[data-theme="dark"] .cs-savings small {
    color: #6ee7b7;
    opacity: 0.95;
}
[data-theme="dark"] .cart-sticky-bar {
    background: #12121a;
    border-top-color: #2a2a3a;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .cart-sticky-total {
    color: #9ca3af;
}
[data-theme="dark"] .cart-sticky-total strong {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-empty-icon {
    background: linear-gradient(135deg, #252532, #1a1a24);
}
[data-theme="dark"] .cart-empty-icon i {
    color: #6b7280;
}
[data-theme="dark"] .cart-empty h3 {
    color: #eaeaf0;
}
[data-theme="dark"] .cart-empty p {
    color: #9ca3af;
}

/* Cart page — shared classes (wallet / variant) */
.cart-card-variant {
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
}
.cs-val--discount {
    color: #16a34a;
}

.cart-page,
.cart-card,
.cart-summary-card,
.cart-sticky-bar,
.cart-empty-icon {
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ===== PWA install modal (full-screen) ===== */
.pwa-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pwa-install-overlay.pwa-install--visible {
    opacity: 1;
    visibility: visible;
}
.pwa-install-overlay[hidden] {
    display: none !important;
}
.pwa-install-overlay:not([hidden]).pwa-install--visible {
    display: flex !important;
}
/* Soft floating orbs (matches splash warmth) */
.pwa-install-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.pwa-install-ambient::before,
.pwa-install-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}
.pwa-install-ambient::before {
    width: min(80vw, 420px);
    height: min(80vw, 420px);
    top: -15%;
    left: -20%;
    background: radial-gradient(circle, rgba(243, 99, 15, 0.55) 0%, transparent 70%);
    animation: pwa-ambient-float 12s ease-in-out infinite;
}
.pwa-install-ambient::after {
    width: min(70vw, 360px);
    height: min(70vw, 360px);
    bottom: -10%;
    right: -15%;
    background: radial-gradient(circle, rgba(61, 187, 76, 0.35) 0%, transparent 70%);
    animation: pwa-ambient-float 14s ease-in-out infinite reverse;
}
@keyframes pwa-ambient-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -8px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-install-ambient::before,
    .pwa-install-ambient::after {
        animation: none;
    }
}
.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(243, 99, 15, 0.22) 0%, transparent 55%),
        linear-gradient(
            165deg,
            rgba(18, 18, 28, 0.94) 0%,
            rgba(12, 12, 18, 0.9) 40%,
            rgba(26, 26, 38, 0.88) 100%
        );
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.pwa-install-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.35;
    pointer-events: none;
}
.pwa-install-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 760px);
    overflow: auto;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-white) 100%);
    border: 1px solid var(--border);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(243, 99, 15, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding: 26px 22px 22px;
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.34, 1.15, 0.64, 1), box-shadow 0.45s ease;
}
.pwa-install-overlay.pwa-install--visible .pwa-install-card {
    transform: translateY(0) scale(1);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(243, 99, 15, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
@media (prefers-reduced-motion: reduce) {
    .pwa-install-overlay,
    .pwa-install-card {
        transition: none;
    }
    .pwa-install-card {
        transform: none;
    }
}
.pwa-install-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange-dark);
    background: linear-gradient(135deg, rgba(243, 99, 15, 0.14), rgba(61, 187, 76, 0.1));
    border: 1px solid rgba(243, 99, 15, 0.2);
    margin-bottom: 14px;
}
.pwa-install-badge[hidden] {
    display: none !important;
}
.pwa-install-brand-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 4px auto 14px;
}
.pwa-install-brand-ring {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: conic-gradient(
        from 200deg,
        var(--orange),
        var(--green),
        var(--orange-light),
        var(--orange)
    );
    animation: pwa-ring-spin 8s linear infinite;
    opacity: 0.85;
}
@keyframes pwa-ring-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-install-brand-ring {
        animation: none;
        opacity: 0.5;
    }
}
.pwa-install-brand {
    position: absolute;
    inset: 3px;
    border-radius: 24px;
    background: linear-gradient(160deg, #fff8f3 0%, var(--bg-white) 50%, #fafafa 100%);
    border: 1px solid rgba(243, 99, 15, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .pwa-install-brand {
    background: linear-gradient(160deg, #1e1e2a 0%, var(--bg-white) 55%, #16161e 100%);
    border-color: rgba(243, 99, 15, 0.25);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2);
}
.pwa-install-brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}
.pwa-install-fallback-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1.2;
}
.pwa-install-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}
.pwa-install-eyebrow[hidden] {
    display: none !important;
}
.pwa-install-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.pwa-install-card .pwa-install-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 18px;
}
.pwa-install-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}
.pwa-install-perks[hidden] {
    display: none !important;
}
.pwa-install-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pwa-install-perk:hover {
    border-color: rgba(243, 99, 15, 0.25);
    background: rgba(243, 99, 15, 0.04);
}
.pwa-install-perk-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(243, 99, 15, 0.15), rgba(61, 187, 76, 0.12));
    color: var(--orange);
    font-size: 15px;
}
.pwa-install-perk-text strong {
    color: var(--text-dark);
    font-weight: 700;
}
.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    z-index: 2;
}
.pwa-install-close:hover {
    background: var(--bg);
    color: var(--text-dark);
}
.pwa-install-steps {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dark);
}
.pwa-install-steps ol {
    margin: 0;
    padding-left: 1.25rem;
}
.pwa-install-steps li {
    margin-bottom: 10px;
    line-height: 1.45;
}
.pwa-install-steps li:last-child {
    margin-bottom: 0;
}
.pwa-install-steps kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 600;
}
.pwa-install-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pwa-install-primary {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(243, 99, 15, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pwa-install-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(243, 99, 15, 0.45);
}
.pwa-install-primary:active {
    transform: translateY(0);
}
.pwa-install-primary[hidden] {
    display: none !important;
}
.pwa-install-secondary {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.pwa-install-secondary:hover {
    color: var(--text-dark);
    background: var(--bg);
}
[data-theme="dark"] .pwa-install-card {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(243, 99, 15, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .pwa-install-backdrop {
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(243, 99, 15, 0.18) 0%, transparent 55%),
        linear-gradient(165deg, rgba(6, 6, 10, 0.97) 0%, rgba(10, 10, 16, 0.95) 100%);
}
[data-theme="dark"] .pwa-install-perk:hover {
    background: rgba(243, 99, 15, 0.08);
}

@media (max-width: 540px) {
    .pwa-install-overlay {
        align-items: stretch;
    }
    .pwa-install-card {
        max-width: none;
        width: 100%;
        min-height: min(96dvh, 100%);
        max-height: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: var(--radius-lg);
        padding-top: 32px;
    }
}
