/* ============================================================
   COCO BROAST – STYLESHEET  V9
   RTL | Light & Dark | VIP System | Responsive Grid
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --primary: #c41037;
    --primary-dark: #9e0c2c;
    --accent: #fbae17;
    --primary-rgb: 196, 16, 55;
    --accent-rgb: 251, 174, 23;
    --gold: #fbae17;
    --gold-light: #fcc755;
    --vip-color: #fbae17;
    --vip-bg: #fffbea;
    --vip-border: #fbae17;
    --green: #25d366;
    --red: #e53935;

    /* Light theme */
    --theme-accent: var(--primary);
    --theme-accent-rgb: var(--primary-rgb);
    --bg: #faf7f2;
    --surface: #ffffff;
    --surface-2: rgba(0, 0, 0, 0.045);
    --glass-bg: rgba(255, 252, 248, 0.56);
    --glass-bg-strong: rgba(255, 255, 255, 0.64);
    --card-glass-bg: rgba(255, 252, 248, 0.44);
    --glass-border: rgba(255, 255, 255, 0.62);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --card-border: rgba(0, 0, 0, 0.09);
    --header-bg: #ffffff;
    --nav-bg: #ffffff;
    --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.11);
    --shadow-lg: 0 14px 48px rgba(0, 0, 0, 0.18);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --header-height: 54px;
    --bottom-nav-height: 64px;
}

[data-theme="dark"] {
    --theme-accent: var(--accent);
    --theme-accent-rgb: var(--accent-rgb);
    --bg: #0c0c0e;
    --surface: rgba(28, 28, 32, 0.52);
    --surface-2: rgba(255, 255, 255, 0.07);
    --glass-bg: rgba(18, 18, 22, 0.48);
    --glass-bg-strong: rgba(30, 30, 38, 0.54);
    --card-glass-bg: rgba(28, 28, 36, 0.34);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --text: #f4f4f6;
    --text-muted: #9e9ea8;
    --card-border: rgba(255, 255, 255, 0.11);
    --header-bg: #16161a;
    --nav-bg: #16161a;
    --vip-bg: rgba(251, 174, 23, 0.10);
    --vip-border: rgba(251, 174, 23, 0.35);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.60);
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select {
    font-family: inherit;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.11) 0%, transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(var(--primary-rgb), 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 88%, rgba(var(--accent-rgb), 0.07) 0%, transparent 48%);
    background-attachment: fixed;
    color: var(--text);
    direction: rtl;
    transition: background-color .3s, color .3s;
    min-height: 100vh;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 15% 6%, rgba(var(--accent-rgb), 0.11) 0%, transparent 40%),
        radial-gradient(circle at 88% 26%, rgba(var(--primary-rgb), 0.13) 0%, transparent 44%),
        radial-gradient(circle at 48% 92%, rgba(var(--accent-rgb), 0.08) 0%, transparent 46%);
}

.hidden {
    display: none !important;
}

/* ---------- 3. SPLASH ---------- */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* No transition here — exit is handled by shrink-fade-out animation */
}

/* ── Checkout Order Types ── */
.order-type-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.order-type-label {
    flex: 1;
    cursor: pointer;
}

.order-type-label input {
    display: none;
}

.order-type-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    padding: 10px 5px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all .2s;
    text-align: center;
}

.order-type-label input:checked+.order-type-btn {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.order-type-label input:disabled+.order-type-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-2);
    border-color: var(--card-border);
    color: var(--text-muted);
}

/* ── Item Note Input ── */
.item-note-input {
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: .8rem;
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .2s;
}

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

/* ── Exit animation: multi-stage shrink and fade ── */
#splash-screen.shrink-fade-out {
    animation: splashBgFade 0.4s ease 0.4s forwards;
    pointer-events: none;
}

#splash-screen.shrink-fade-out #splash-logo {
    animation: logoShrink 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        logoFade 0.4s ease 0.4s forwards;
}

@keyframes splashBgFade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes logoShrink {
    0% {
        transform: scale(1);
    }

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

@keyframes logoFade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ── Splash logo — large, viewport-proportional ── */
#splash-logo {
    max-width: 80vw;
    width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    /* visible immediately */
    transition: opacity .35s ease;
    /* smooth reveal fallback */
}

/* JS adds this class after injecting the correct image src */
#splash-logo.splash-logo-visible {
    animation: splashPulse 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

    65% {
        transform: scale(1.05);
        opacity: 1;
    }

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

/* ---------- 4. HEADER ---------- */
#main-header {
    position: sticky;
    top: 0;
    z-index: 500;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* On the Order tab, #category-nav itself provides one single unified glass backdrop from top: 0 */
body[data-active-tab="order"] #main-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    pointer-events: none;
}

body[data-active-tab="order"] #main-header .header-glass-btn,
body[data-active-tab="order"] #main-header .header-logo {
    pointer-events: auto;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 14px;
    height: var(--header-height);
}

/* logo size lock + smooth hide on scroll */
.header-logo {
    height: 40px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

body.header-scrolled .header-logo {
    opacity: 0;
    transform: scale(0.84) translateY(-8px);
    pointer-events: none;
}

/* Shared macOS frosted-glass circular header button */
.header-glass-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-highlight), 0 4px 14px rgba(0, 0, 0, 0.12);
    color: var(--text);
    transition: background .2s ease, transform .18s cubic-bezier(0.22, 1, 0.36, 1), border-color .2s ease, box-shadow .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.header-glass-btn:active {
    transform: translateY(-50%) scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
    .header-glass-btn:hover {
        color: var(--primary);
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: var(--glass-highlight), 0 4px 16px rgba(var(--primary-rgb), 0.22);
        transform: translateY(-50%) scale(1.05);
    }
    [data-theme="dark"] .header-glass-btn:hover {
        color: var(--accent);
        border-color: rgba(var(--accent-rgb), 0.45);
        box-shadow: var(--glass-highlight), 0 4px 16px rgba(var(--accent-rgb), 0.25);
    }
}

.header-profile-btn {
    inset-inline-end: 14px;
    overflow: hidden;
    padding: 0;
}

.header-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Inline theme toggle inside 'أعرف أكثر' */
.theme-toggle.theme-toggle-inline {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text);
    transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1), color .2s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle.theme-toggle-inline:active {
    transform: scale(0.92);
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* ---------- 5. HERO SLIDER ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    aspect-ratio: 21 / 9;
    max-height: 400px;
}

@media (max-width: 640px) {
    .hero-slider {
        aspect-ratio: 16 / 9;
        max-height: 240px;
    }
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.82);
}

.carousel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, transparent 60%);
}

.carousel-content h2 {
    color: #fff;
    font-size: clamp(1.1rem, 3vw, 1.9rem);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    margin-bottom: 6px;
}

.carousel-price {
    color: var(--gold-light);
    font-size: clamp(.9rem, 2.5vw, 1.4rem);
    font-weight: 700;
}

.slide-countdown {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(var(--primary-rgb), .92);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: clamp(.7rem, 1.8vw, .85rem);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
    backdrop-filter: blur(4px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

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

.carousel-btn.next {
    left: 10px;
}

.carousel-btn.prev {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.carousel-indicators .dot.active {
    background: var(--primary);
    transform: scale(1.35);
}

/* ---------- 6. CATEGORY NAV (SINGLE UNIFIED GLASS PIECE FROM TOP: 0) ---------- */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 400;
    margin-top: calc(-1 * (var(--header-height) + env(safe-area-inset-top, 0px)));
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 6px);
    padding-bottom: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

[data-theme="dark"] .category-nav {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
}

.category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 12px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.category-list::-webkit-scrollbar {
    display: none;
}

/* centre on desktop — keep single-line scrollable */
@media (min-width: 768px) {
    .category-list {
        justify-content: center;
    }
}

.category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    border-radius: 999px;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .18s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-item:active {
    transform: scale(0.93);
}

@media (hover: hover) and (pointer: fine) {
    .category-item:hover {
        color: var(--primary);
        border-color: rgba(var(--primary-rgb), 0.45);
        background: rgba(var(--primary-rgb), 0.08);
    }
    [data-theme="dark"] .category-item:hover {
        color: var(--accent);
        border-color: rgba(var(--accent-rgb), 0.5);
        background: rgba(var(--accent-rgb), 0.12);
    }
}

/* Active pill: sleek frosted-glass stroke + soft brand tint (matches dark & light themes) */
.category-item.active {
    color: var(--primary);
    font-weight: 800;
    background: rgba(var(--primary-rgb), 0.12);
    border-color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 4px 14px rgba(var(--primary-rgb), 0.18);
}

[data-theme="dark"] .category-item.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.16);
    border-color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 16px rgba(var(--accent-rgb), 0.24);
}

/* ---------- 7. MAIN MENU ---------- */
#menu-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 120px;
}

.loading-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 1.1rem;
}

.menu-section {
    margin-bottom: 40px;
    scroll-margin-top: calc(var(--header-height) + 64px + env(safe-area-inset-top, 0px));
}

.section-title {
    position: relative;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    padding: 8px 0 12px;
    border-bottom: none;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 22px;
    background: var(--theme-accent);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.45);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 1.5px;
    background: linear-gradient(to left, rgba(var(--theme-accent-rgb), 0.55) 0%, rgba(var(--theme-accent-rgb), 0.12) 55%, transparent 100%);
    border-radius: 99px;
}

/* Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 640px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- 8. ITEM CARD (UNIFIED GLASSMORPHISM) ---------- */
.menu-item {
    background: var(--card-glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    transition: transform .22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .22s ease, border-color .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .menu-item:hover {
        transform: translateY(-3px);
        border-color: rgba(var(--theme-accent-rgb), 0.35);
        box-shadow: var(--glass-highlight), var(--shadow-md);
    }
}

.item-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.menu-item:hover .item-image {
    transform: scale(1.07);
}

.item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
}

.item-content {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.item-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.info-icon {
    font-size: .8rem;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: color .2s;
    user-select: none;
}

.info-icon:hover {
    color: var(--primary);
}


/* Description overlay – hidden by default, shown on image click */
.item-desc {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: .78rem;
    line-height: 1.6;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    border-radius: inherit;
    overflow: hidden;
}

.item-desc.show-overlay {
    opacity: 1;
    pointer-events: auto;
}

.countdown-timer {
    display: block;
    background: rgba(255, 51, 51, .1);
    color: #e53935;
    border: 1px dashed #e53935;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}

.variant-select {
    width: 100%;
    padding: 7px 10px 7px 28px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background-color: var(--surface-2);
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 1em;
    cursor: pointer;
    transition: border-color .2s;
}

.variant-select:focus {
    outline: none;
    border-color: var(--primary);
}

.item-price-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.original-price {
    font-size: .85rem;
    /* Increased from .72rem */
    font-weight: 700;
    /* Bolder to survive the strikethrough */
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--red);
    /* Emphasize the discount */
    text-decoration-thickness: 2px;
    /* Make the strike more deliberate */
    margin-bottom: 2px;
}

.current-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    white-space: nowrap;
}

[data-theme="dark"] .current-price {
    color: var(--accent);
}

.current-price .currency {
    font-size: .72rem;
    font-weight: 600;
}

/* VIP price tag on card */
.vip-price-tag {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    font-weight: 700;
    color: var(--vip-color);
    line-height: 1.4;
}

.vip-label-text {
    color: var(--vip-color);
    font-weight: 700;
    font-size: 0.72rem;
    display: inline-block;
    margin-left: 3px;
}

.vip-price-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--vip-color);
    white-space: nowrap;
}

/* Qty stepper */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-qty {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.12);
    color: var(--theme-accent);
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, color .18s ease, transform .15s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.btn-qty:active {
    transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
    .btn-qty:hover {
        background: var(--theme-accent);
        color: #111;
    }
    html:not([data-theme="dark"]) .btn-qty:hover {
        color: #fff;
    }
}

.btn-qty.qty-zero {
    border-color: var(--card-border);
    color: var(--text-muted);
}

.item-qty {
    width: 24px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: .8rem;
    font-weight: 700;
}

.item-qty:focus {
    outline: none;
}

.item-qty.qty-zero {
    color: var(--text-muted);
}

.cart-controls.empty .btn-minus {
    opacity: .35;
    pointer-events: none;
}

.out-of-stock-badge {
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 1.5px dashed var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* ---------- 9. FLOATING CART (HEADER ACTION BUTTON) ---------- */
.floating-cart-btn {
    inset-inline-start: 14px;
}

.floating-cart-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.45);
    transition: transform .2s ease;
}

.back-to-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 22px);
    inset-inline-end: 16px;
    z-index: 9998;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    color: var(--primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 8px 32px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, opacity .3s, visibility .3s, background .2s, color .2s, border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .back-to-top {
    color: var(--accent);
    box-shadow: var(--glass-highlight), 0 12px 40px rgba(0, 0, 0, 0.55);
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

.back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: flex !important;
}

/* ---------- 10. CART MODAL ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 93vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp .3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

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

.btn-text-danger {
    background: none;
    border: none;
    color: var(--red);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: underline;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

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

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}

.modal-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

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

.modal-item-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-item-price {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-item-total {
    font-size: .88rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 60px;
    text-align: left;
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-size: .95rem;
}

/* Modal footer */
.modal-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex-shrink: 0;
    max-height: 55vh;
}

.modal-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-inputs input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    transition: border-color .2s;
}

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

/* ---------- CONTACT PICKER BUTTON ---------- */
.mobile-input-wrapper {
    position: relative;
    width: 100%;
}

.mobile-input-wrapper input {
    width: 100%;
    padding: 11px 14px;
    padding-left: 40px;           /* reserve space for the button (LTR side = left in RTL page) */
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    transition: border-color .2s;
}

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

.btn-contact-picker {
    display: none;                 /* hidden until JS confirms API support */
    position: absolute;
    left: 8px;                     /* left side = start of LTR number field in RTL page */
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: color .2s, background-color .2s;
    line-height: 0;
}

.btn-contact-picker svg {
    width: 18px;
    height: 18px;
    display: block;
}

.btn-contact-picker:hover,
.btn-contact-picker:focus-visible {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    outline: none;
}

#delivery-area-select {
    width: 100%;
    font-family: 'Cairo', sans-serif;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--surface-2);
    color: var(--text);
}

#delivery-area-select:focus {
    outline: none;
    border-color: var(--primary);
}

.delivery-note {
    font-size: .8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Upsell Section */
.upsell-section {
    margin: 5px 0 15px;
    border-top: 1px dashed var(--card-border);
    padding-top: 12px;
}

.upsell-title {
    font-size: .9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.upsell-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.upsell-list::-webkit-scrollbar {
    display: none;
}

.upsell-card {
    flex: 0 0 110px;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

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

.upsell-name {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upsell-price {
    font-size: .8rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-add-upsell {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 700;
    width: 100%;
    transition: background .2s;
}

.btn-add-upsell:hover {
    background: var(--primary-dark);
}

.modal-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
}

.modal-total-row strong {
    font-size: 1.1rem;
    color: var(--primary);
}

/* ---------- 11. VIP SECTION ---------- */
.vip-section {
    background: var(--vip-bg);
    border: 1px solid var(--vip-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.vip-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--vip-color);
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 0;
}

.vip-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform .3s ease;
}

.vip-toggle-btn.active .vip-toggle-icon {
    transform: rotate(180deg);
}

.vip-collapse-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease, margin-top .3s ease, opacity .3s ease;
    opacity: 0;
    margin-top: 0;
}

.vip-collapse-wrapper.open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 8px;
}

.vip-collapse-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vip-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--vip-color);
}

.btn-vip-verify {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 800;
    transition: opacity .2s, transform .15s;
}

.btn-vip-verify:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.vip-result {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.vip-result.success {
    background: rgba(37, 211, 102, .15);
    color: #1a7a3a;
    border: 1px solid rgba(37, 211, 102, .4);
}

.vip-result.failure {
    background: rgba(229, 57, 53, .1);
    color: var(--red);
    border: 1px solid rgba(229, 57, 53, .3);
}

/* Savings row */
.vip-savings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--vip-bg);
    border: 1px solid var(--vip-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 700;
}

.vip-savings-row .savings-val {
    font-size: 1rem;
    color: var(--vip-color);
}

/* Checkout button */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 800;
    transition: background .2s, transform .15s;
}

.btn-checkout:hover {
    background: #1ebe59;
    transform: translateY(-1px);
}

/* ---------- 12. SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------- 13. VIP STORY OVERLAY ---------- */
.story-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    touch-action: none;
}

.story-progress-container {
    display: flex;
    gap: 4px;
    padding: 12px 8px 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

.story-header {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.story-welcome-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.story-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.story-image-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.story-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.story-zone {
    position: absolute;
    top: 80px;
    bottom: 0;
    z-index: 5;
}

.story-zone.right {
    right: 0;
    width: 30%;
}

.story-zone.left {
    left: 0;
    width: 30%;
}

/* ---------- 14. EXCLUSIVE VIP MODE (V2 STRICT PRIVACY) ---------- */
/* V2 Task 2.6: Hide ALL VIP prices by default for non-members (marketing exclusivity) */
.vip-price-tag,
.vip-price-tag.public-vip,
.vip-price-tag.hidden-vip,
.vip-price-tag.hidden { display: none !important; }

/* Show VIP prices ONLY for verified, bound Google-signed-in VIP members (body.v2-vip-active) */
body.v2-vip-active .vip-price-tag:not(.hidden) {
    display: flex !important;
    animation: vipPulse 2.4s infinite;
}
body.v2-vip-active .vip-label-text,
body.v2-vip-active .vip-price-value {
    color: var(--gold);
}

@keyframes vipPulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(212, 160, 23, 0.4); }
    100% { opacity: 0.9; }
}

/* ---------- 15. TOAST NOTIFICATIONS ---------- */
.toast-notification {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    width: max-content;
    max-width: calc(100vw - 32px);
    background: rgba(22, 22, 28, 0.92);
    color: #fff;
    padding: 10px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: normal;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Dark mode adjustment */
body.dark-mode .toast-notification {
    background: rgba(28, 28, 36, 0.94);
}

/* ============================================================
   16. MAIN FOOTER
   Responsive · Light & Dark · 1–3 dynamic columns
   ============================================================ */

#main-footer {
    display: none !important;
    background: var(--surface);
    border-top: 1px solid var(--card-border);
    color: var(--text);
    padding: 48px 24px 32px;
    margin-top: 48px;
    transition: background .3s, color .3s;
}

/* Empty footer takes up no space */
#main-footer:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;         /* mobile: stacked */
    gap: 36px 48px;
    max-width: 1280px;
    margin: 0 auto 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr; /* desktop: about gets double width */
    }
}

/* ── Column shared ── */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    width: fit-content;
    letter-spacing: .3px;
}

/* ── Column 1: About ── */
.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 100%;
}

/* ── Column 2: Contact & Branches ── */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact-list li .icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── WhatsApp phone links ── */
.footer-phone-item {
    list-style: none;
}

.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .88rem;
    transition: color .2s;
}

.footer-phone-link:hover {
    color: var(--green);
}

/* WhatsApp SVG icon */
.footer-wa-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--green);
    transition: transform .2s ease;
}

.footer-phone-link:hover .footer-wa-icon {
    transform: scale(1.15);
}

.footer-phone-number {
    /* inherits color from parent link */
}

/* ── Branch items (address + map link) ── */
.footer-branch-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    line-height: 1.5;
}

/* Inline pin SVG */
.footer-branch-pin {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--primary);
    margin-top: 2px;
}

/* Clickable branch → Google Maps */
.footer-branch-link {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color .2s, text-decoration-color .2s;
}

.footer-branch-link:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* Plain-text branch (no map URL) */
.footer-branch-text {
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Column 3: Social & Keywords ── */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* icon-only: perfect circle */
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s,
                transform .18s cubic-bezier(.34,1.56,.64,1),
                box-shadow .2s;
    flex-shrink: 0;
}

/* Fallback links are pill-shaped (wider) to fit the domain label */
.footer-social-link.footer-social-fallback {
    border-radius: 50px;
    width: auto;
    padding: 0 14px 0 10px;
    height: 44px;
}

.footer-social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform .18s ease;
}

/* Fallback domain label */
.footer-social-label {
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    color: inherit;
}

.footer-social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35);
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

/* ── Keywords sub-footer marquee ── */
.footer-keywords-bar {
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    padding: 8px 0;
    border-top: 1px solid var(--card-border);
    max-width: 1280px;
    margin: 0 auto;
    direction: ltr; /* keep scrolling LTR regardless of page RTL */
}

.footer-keywords-track {
    display: inline-block;
    animation: footerMarquee 30s linear infinite;
    padding-left: 100%; /* start off-screen right */
    will-change: transform;
}

.footer-keywords-bar:hover .footer-keywords-track {
    animation-play-state: paused;
}

@keyframes footerMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ── Bottom bar ── */
.footer-bottom {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Dark mode tweaks ── */

[data-theme="dark"] .footer-social-link {
    background: var(--surface-2);
    border-color: var(--card-border);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    #main-footer {
        padding: 36px 16px 24px;
    }

    .footer-grid {
        gap: 28px 0;
    }

    .footer-col-title {
        font-size: .95rem;
    }
}

/* ============================================================
   17. V2 APP SHELL & MCDONALD'S-STYLE 5-TAB BOTTOM NAVIGATION
   ============================================================ */

/* ---------- V2 Views Container & Transitions ---------- */
.app-views {
    width: 100%;
    min-height: calc(100vh - 60px);
}

.app-view {
    display: none;
    width: 100%;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 32px);
}

.app-view.active {
    display: block;
    animation: v2TabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Ensure sticky category navigation stays pinned cleanly to top: 0 as one unified glass piece */
#view-order .category-nav {
    position: sticky;
    top: 0;
    z-index: 400;
}

/* Extra bottom breathing room for the menu so items/cart button never overlap */
#view-order #menu-main {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 32px);
}

/* ---------- Floating Glass Bottom Nav Bar ---------- */
#bottom-nav {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    inset-inline: 12px;
    max-width: 560px;
    margin-inline: auto;
    z-index: 600;
    border-radius: 26px;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 8px 32px rgba(0, 0, 0, 0.14);
    padding-bottom: 0;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] #bottom-nav {
    box-shadow: var(--glass-highlight), 0 12px 40px rgba(0, 0, 0, 0.55);
}

.bottom-nav-inner {
    max-width: 560px;
    margin-inline: auto;
    height: 62px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding-inline: 6px;
    gap: 4px;
}

.bottom-nav-item {
    flex: 1;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    position: relative;
    border-radius: 16px;
    margin-block: 6px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    font-family: inherit;
    padding-block: 4px;
    padding-inline: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .bottom-nav-item:hover {
        color: var(--primary);
    }
    [data-theme="dark"] .bottom-nav-item:hover {
        color: var(--accent);
    }
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 800;
    background: rgba(var(--primary-rgb), 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    margin-block: 6px;
}

[data-theme="dark"] .bottom-nav-item.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bottom-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.08);
}

[data-theme="dark"] .bottom-nav-item.active .bottom-nav-icon {
    color: var(--accent);
}

.bottom-nav-label {
    white-space: nowrap;
    line-height: 1.1;
}

/* Tab toggle OFF via SETTINGS_V2 */
.bottom-nav-item.tab-hidden,
.app-view.tab-hidden {
    display: none !important;
}

/* ---------- V2 Starter Content (Home, Rewards, Branches, More) ---------- */
.v2-starter-container {
    max-width: 540px;
    margin-block: 14px;
    margin-inline: auto;
    padding-inline: 14px;
}

.v2-starter-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding-block: 20px;
    padding-inline: 16px;
    text-align: center;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.v2-starter-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1;
}

.v2-starter-card h2 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.v2-starter-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.v2-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding-block: 12px;
    padding-inline: 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.v2-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
    background: var(--primary-dark);
}

.v2-starter-badge {
    display: inline-block;
    padding-block: 6px;
    padding-inline: 18px;
    border-radius: 50px;
    background: var(--surface-2);
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
}

.v2-settings-list {
    margin-top: 20px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
    text-align: start;
}

.v2-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    padding-inline: 18px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.v2-settings-item:hover,
.v2-settings-item:focus {
    background: rgba(var(--primary-rgb), 0.08);
    outline: none;
}

.v2-settings-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.v2-settings-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.v2-settings-item-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-theme-switch-indicator {
    font-size: 1.15rem;
    padding-block: 4px;
    padding-inline: 8px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
}

/* ============================================================
   18. V2 ACCOUNT CARD & GOOGLE SIGN-IN (TASK 2.2)
   ============================================================ */

.header-profile-btn.is-signed-in {
    border-color: var(--theme-accent);
    box-shadow: var(--glass-highlight), 0 0 0 2px rgba(var(--theme-accent-rgb), 0.25);
}

.v2-account-card {
    margin-bottom: 16px;
    padding-block: 26px;
    padding-inline: 20px;
}

.v2-settings-card {
    padding-block: 20px;
    padding-inline: 20px;
    text-align: start;
}

.v2-card-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.v2-account-guest-icon {
    width: 60px;
    height: 60px;
    margin-inline: auto;
    margin-bottom: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-accent-rgb), 0.12);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.3);
    color: var(--theme-accent);
}

.v2-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding-block: 11px;
    padding-inline: 20px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-google-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--theme-accent);
    box-shadow: var(--glass-highlight), 0 6px 20px rgba(var(--theme-accent-rgb), 0.22);
}

.v2-google-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.v2-google-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.v2-google-icon {
    flex-shrink: 0;
}

.v2-auth-user {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: start;
}

.v2-account-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.v2-account-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.14);
    box-shadow: 0 4px 14px rgba(var(--theme-accent-rgb), 0.2);
}

.v2-account-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-account-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.v2-account-meta {
    flex: 1;
    min-width: 0;
}

.v2-account-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-account-name-row h2 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.v2-account-email {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-account-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--vip-bg);
    border: 1px solid var(--vip-border);
    color: var(--vip-color);
    font-size: 0.74rem;
    font-weight: 800;
}

.v2-signout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding-block: 10px;
    padding-inline: 16px;
    border-radius: 14px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-signout-btn:hover {
    background: rgba(229, 57, 53, 0.15);
    border-color: var(--red);
}

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

/* ============================================================
   19. V2 USER PROFILE & MULTI-ADDRESS BOOK (TASK 2.3)
   ============================================================ */

.v2-section-card {
    margin-bottom: 16px;
    padding-block: 20px;
    padding-inline: 18px;
    text-align: start;
}

.v2-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.v2-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-card-subdesc {
    font-size: 0.84rem !important;
    color: var(--text-muted);
    margin-bottom: 14px !important;
    line-height: 1.5;
}

.v2-count-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(var(--theme-accent-rgb), 0.14);
    color: var(--theme-accent);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.28);
}

.v2-btn-chip-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(var(--primary-rgb), 0.32);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-btn-chip-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.v2-btn-chip-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.v2-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v2-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-input,
.v2-select,
.v2-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v2-textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
}

.v2-input:focus,
.v2-select:focus,
.v2-textarea:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), 0.16);
}

.v2-btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-btn-primary-full:hover:not(:disabled) {
    background: var(--primary-dark);
}

.v2-btn-primary-full:active:not(:disabled) {
    transform: scale(0.98);
}

.v2-btn-primary-full:disabled {
    opacity: 0.6;
    cursor: wait;
}

.v2-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.v2-btn-secondary:hover {
    background: var(--glass-bg-strong);
}

.v2-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    background: var(--red);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.v2-btn-danger:hover {
    opacity: 0.9;
}

/* GPS Row */
.v2-gps-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-gps-btn {
    flex: 1;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1.5px dashed var(--glass-border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.v2-gps-btn:hover:not(:disabled) {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.v2-gps-btn.has-gps {
    border-style: solid;
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.12);
    color: #1f9d4c;
}

[data-theme="dark"] .v2-gps-btn.has-gps {
    color: #4ade80;
}

.v2-gps-clear-btn {
    width: 40px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.1);
    color: var(--red);
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Saved Addresses List */
.v2-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-addresses-empty {
    padding: 22px 14px;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed var(--glass-border);
    background: var(--surface-2);
}

.v2-addresses-empty-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}

.v2-addresses-empty p {
    font-size: 0.86rem !important;
    margin-bottom: 0 !important;
    color: var(--text-muted);
}

.v2-address-item {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v2-address-item.is-default {
    border-color: rgba(var(--theme-accent-rgb), 0.5);
    background: rgba(var(--theme-accent-rgb), 0.06);
    box-shadow: var(--glass-highlight);
}

.v2-address-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-address-title-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.v2-address-label-badge {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
}

.v2-address-default-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--theme-accent);
    color: #fff;
}

[data-theme="dark"] .v2-address-default-pill {
    color: #111;
}

.v2-address-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-addr-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.v2-addr-icon-btn:active {
    transform: scale(0.92);
}

.v2-addr-delete-btn:hover {
    border-color: rgba(229, 57, 53, 0.5);
}

.v2-address-area-line {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-accent);
}

.v2-address-details-text {
    font-size: 0.88rem !important;
    color: var(--text) !important;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.v2-address-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.v2-address-gps-chip {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1f9d4c;
    text-decoration: none;
}

[data-theme="dark"] .v2-address-gps-chip {
    color: #4ade80;
}

.v2-address-gps-muted {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.v2-set-default-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.45);
    background: transparent;
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.v2-set-default-btn:hover {
    background: rgba(var(--theme-accent-rgb), 0.14);
}

/* Label Preset Chips */
.v2-label-chips {
    display: flex;
    gap: 8px;
}

.v2-label-chip {
    flex: 1;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.v2-label-chip.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.14);
    color: var(--theme-accent);
}

.v2-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.v2-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Frosted-Glass Bottom Sheet Modal */
.v2-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.v2-sheet-content {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-radius: 26px 26px 0 0;
    box-shadow: var(--glass-highlight), var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] .v2-sheet-content {
    background: rgba(24, 24, 30, 0.88);
}

.v2-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: var(--card-border);
    margin: 10px auto 2px;
}

.v2-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 12px;
    border-bottom: 1px solid var(--glass-border);
}

.v2-sheet-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.v2-sheet-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.v2-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-top: 6px;
}

/* Frosted-Glass Confirm Dialog (Always above bottom sheets including Cart) */
.v2-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.v2-dialog-card {
    width: 100%;
    max-width: 360px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: var(--glass-highlight), var(--shadow-lg);
    text-align: center;
}

[data-theme="dark"] .v2-dialog-card {
    background: rgba(24, 24, 30, 0.92);
}

.v2-dialog-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.v2-dialog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.v2-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ============================================================
   20. COMPACT MORE SCREEN & HEADER THEME BUTTON
   ============================================================ */

/* Theme toggle button next to profile avatar — visible ONLY in #view-more */
.header-theme-btn {
    inset-inline-end: 62px;
}

body:not([data-active-tab="more"]) .header-theme-btn {
    display: none;
}

.v2-more-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-more-container .v2-account-card {
    margin-bottom: 0;
    padding-block: 16px;
    padding-inline: 16px;
}

.v2-auth-guest h2 {
    font-size: 1.08rem;
    margin-bottom: 5px;
}

.v2-auth-guest p {
    font-size: 0.83rem;
    margin-bottom: 14px;
}

.v2-auth-user-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: start;
}

.v2-auth-user-compact .v2-account-name-row h2 {
    font-size: 1.05rem;
    margin-bottom: 1px;
}

.v2-signout-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-signout-pill:hover {
    background: rgba(229, 57, 53, 0.16);
}

.v2-signout-pill:active {
    transform: scale(0.95);
}

/* Compact Frosted-Glass Menu List */
.v2-menu-list {
    display: flex;
    flex-direction: column;
    background: var(--card-glass-bg);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.v2-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text);
    text-align: start;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-menu-row:last-child {
    border-bottom: none;
}

.v2-menu-row:hover {
    background: rgba(var(--theme-accent-rgb), 0.07);
}

.v2-menu-row:active {
    background: rgba(var(--theme-accent-rgb), 0.12);
}

.v2-menu-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(var(--theme-accent-rgb), 0.12);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.v2-menu-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-menu-row-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-menu-row-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-menu-row-arrow {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.v2-sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-sheet-nested {
    z-index: 10040;
}

/* ============================================================
   21. MORE TAB POLISH: ALIGNMENT, PHONES, SUPPORT & PRIVACY
   ============================================================ */

.v2-auth-user-compact {
    min-height: 36px;
}

.v2-auth-user-compact .v2-account-name-row {
    align-items: center;
    gap: 8px;
}

.v2-auth-user-compact .v2-account-name-row h2 {
    margin: 0;
    line-height: 1.25;
}

.v2-req {
    color: var(--primary);
    font-weight: 800;
}

[data-theme="dark"] .v2-req {
    color: var(--accent);
}

/* Phone Quick-Pick Chips inside Add/Edit Address */
.v2-phone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.v2-phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.v2-phone-chip.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.16);
    color: var(--theme-accent);
}

/* Extra Phones in Profile Sheet */
.v2-extra-phones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v2-extra-phone-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.v2-extra-phone-remove {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.v2-extra-phone-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.v2-extra-phone-add-row .v2-input {
    flex: 1;
}

.v2-address-phone-line {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dynamic Contact Options Modal */
.v2-contact-options-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-contact-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
}

.v2-contact-number-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    direction: ltr;
}

.v2-contact-btns-pair {
    display: flex;
    gap: 8px;
}

.v2-contact-call-btn,
.v2-contact-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.v2-contact-call-btn {
    background: rgba(var(--theme-accent-rgb), 0.15);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.35);
    color: var(--theme-accent);
}

.v2-contact-wa-btn {
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #1f9d4c;
}

[data-theme="dark"] .v2-contact-wa-btn {
    color: #4ade80;
}

.v2-contact-call-btn:active,
.v2-contact-wa-btn:active {
    transform: scale(0.95);
}

/* Always-Visible Privacy Note */
.v2-privacy-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 10px 12px 4px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-muted);
    opacity: 0.88;
}

.v2-privacy-link-btn {
    background: none;
    border: none;
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 2px 6px;
}

.v2-privacy-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.65;
    text-align: start;
}

.v2-privacy-body ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-inline-start: 16px;
    list-style: disc;
}

.v2-privacy-body li {
    color: var(--text-muted);
}

.v2-privacy-body li strong {
    color: var(--text);
}

/* ============================================================
   22. ICONS-ONLY BOTTOM DOCK & BOTTOM-PINNED PRIVACY NOTE
   ============================================================ */

.bottom-nav-inner {
    height: 54px;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
}

.v2-more-container {
    min-height: calc(100dvh - var(--header-height) - var(--bottom-nav-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 48px);
}

.v2-privacy-note {
    margin-top: auto;
    padding-top: 22px;
    padding-bottom: 2px;
}

/* ============================================================
   23. V2 HOME SCREEN (TAB_HOME — TASK 2.4)
   ============================================================ */

.v2-home-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
}

/* 1. Compact Welcome Hero Strip */
.v2-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--card-glass-bg);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.v2-home-hero-text {
    flex: 1;
    min-width: 0;
}

.v2-home-hero-text h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.v2-home-hero-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.v2-home-order-pill {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-home-order-pill:hover {
    background: var(--primary-dark);
}

.v2-home-order-pill:active {
    transform: scale(0.95);
}

/* 2. Animated Banners & Offers Carousel */
.v2-home-banners {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-md);
    background: #141418;
}

.v2-home-banners-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    min-height: 160px;
    max-height: 235px;
}

.v2-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    cursor: pointer;
}

.v2-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.v2-banner-slide.no-img {
    background: linear-gradient(135deg, var(--primary) 0%, #7d0923 65%, #1c1015 100%);
}

.v2-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-banner-overlay {
    position: absolute;
    inset: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.28) 100%);
}

.v2-banner-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-banner-countdown {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.92);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.v2-banner-price-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.78rem;
    font-weight: 800;
}

.v2-banner-bottom h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    margin-bottom: 2px;
}

.v2-banner-bottom p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-home-banners-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}

.v2-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.v2-banner-dot.active {
    width: 20px;
    background: var(--accent);
}

/* 3. Quick Reorder Card */
.v2-home-reorder-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(var(--theme-accent-rgb), 0.1);
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.32);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.v2-home-reorder-info {
    flex: 1;
    min-width: 0;
}

.v2-home-reorder-kicker {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--theme-accent);
    margin-bottom: 2px;
}

.v2-home-reorder-summary {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.v2-home-reorder-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.v2-reorder-status {
    color: var(--text-muted);
}

.v2-reorder-total {
    color: var(--theme-accent);
    font-weight: 800;
}

.v2-home-reorder-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--theme-accent);
    background: var(--glass-bg-strong);
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.v2-home-reorder-btn:active {
    transform: scale(0.95);
}

/* 4. Featured Meals Horizontal Row */
.v2-home-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-inline: 2px;
}

.v2-home-sec-head h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
}

.v2-home-see-all {
    background: none;
    border: none;
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.v2-home-featured-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.v2-home-featured-list::-webkit-scrollbar {
    display: none;
}

.v2-featured-card {
    flex: 0 0 142px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-glass-bg);
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    text-align: start;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-featured-card:active {
    transform: scale(0.96);
}

.v2-featured-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.85;
    background: var(--surface-2);
    overflow: hidden;
}

.v2-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-featured-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.v2-featured-offer-badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
}

.v2-feat-countdown {
    position: absolute;
    bottom: 5px;
    inset-inline: 5px;
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
}

.v2-featured-body {
    padding: 8px 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-featured-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.05em;
}

.v2-featured-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.v2-featured-price {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.v2-featured-old-price {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--red);
}

/* 5. Compact Motivational Sign-In CTA (Guests Only) */
.v2-home-guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--primary-rgb), 0.1));
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.v2-home-guest-cta-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-home-guest-cta-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.v2-home-guest-cta-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.v2-home-guest-cta-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.v2-home-guest-cta-btn:hover {
    border-color: var(--theme-accent);
}

.v2-home-guest-cta-btn:active {
    transform: scale(0.95);
}

/* ============================================================
   24. SUBTLE GOLDEN AMBIENT NEON GLOW + HOME V2.1 (MINI & 3D STACK)
   ============================================================ */

/* Very subtle irregular golden-yellow (#fbae17) ambient orbs behind glass */
.v2-ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.v2-glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 174, 23, 0.29) 0%, rgba(251, 174, 23, 0.08) 48%, transparent 74%);
    filter: blur(54px);
    will-change: transform;
}

/* Light mode: gentle warm golden wash so glass frosted edges read cleanly */
html:not([data-theme="dark"]) .v2-glow-orb {
    background: radial-gradient(circle, rgba(251, 174, 23, 0.27) 0%, rgba(251, 174, 23, 0.07) 52%, transparent 76%);
}

.v2-glow-orb.orb-1 {
    width: 280px;
    height: 220px;
    top: -40px;
    inset-inline-start: -70px;
    border-radius: 62% 38% 55% 45%;
    animation: v2OrbFloat1 16s ease-in-out infinite alternate;
}

.v2-glow-orb.orb-2 {
    width: 310px;
    height: 250px;
    top: 38%;
    inset-inline-end: -110px;
    border-radius: 44% 56% 38% 62%;
    opacity: 0.78;
    animation: v2OrbFloat2 20s ease-in-out infinite alternate;
}

.v2-glow-orb.orb-3 {
    width: 260px;
    height: 200px;
    bottom: 40px;
    inset-inline-start: 18%;
    border-radius: 54% 46% 64% 36%;
    opacity: 0.65;
    animation: v2OrbFloat1 18s ease-in-out infinite alternate-reverse;
}

@keyframes v2OrbFloat1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(18px, 24px, 0) scale(1.08); }
}

@keyframes v2OrbFloat2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-20px, -18px, 0) scale(1.06); }
}

/* Points Pill inside Welcome Bar */
.v2-points-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.08));
    color: var(--text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: var(--glass-highlight), 0 4px 16px rgba(var(--accent-rgb), 0.18);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .v2-points-pill {
    color: var(--accent);
}

.v2-points-pill:active {
    transform: scale(0.94);
}

.v2-points-pill-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Small Spotlight Cards (MINI_ROW horizontal / MINI_GRID 2-col) */
.v2-mini-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.v2-mini-row::-webkit-scrollbar {
    display: none;
}

.v2-mini-row .v2-mini-card {
    flex: 0 0 210px;
}

.v2-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.v2-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
    background: var(--card-glass-bg);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    text-align: start;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-mini-card:active {
    transform: scale(0.96);
}

.v2-mini-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
}

.v2-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-mini-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v2-mini-badge {
    display: inline-block;
    width: fit-content;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--theme-accent);
    font-size: 0.66rem;
    font-weight: 800;
}

.v2-mini-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-mini-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-mini-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.v2-mini-price {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.v2-mini-old-price {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--red);
}

/* 3D Infinite Interactive Offer Card Stack (Apple Wallet / Deck Depth) */
.v2-home-stack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.v2-stack-stage {
    position: relative;
    width: 100%;
    height: 236px;
    touch-action: pan-y;
    user-select: none;
}

.v2-stack-card {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 204px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card-glass-bg);
    backdrop-filter: blur(26px) saturate(210%);
    -webkit-backdrop-filter: blur(26px) saturate(210%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), 0 14px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    will-change: transform;
}

.v2-stack-card.no-img {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.86) 0%, rgba(40, 12, 20, 0.92) 100%);
}

html:not([data-theme="dark"]) .v2-stack-card.no-img {
    background: linear-gradient(145deg, rgba(196, 16, 55, 0.94) 0%, rgba(120, 10, 34, 0.96) 100%);
}

/* Visual depth: cards #2 and #3 peek naturally underneath the front card */
.v2-stack-card[data-depth="0"] {
    z-index: 3;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    cursor: grab;
}

.v2-stack-card[data-depth="0"].is-dragging {
    cursor: grabbing;
}

.v2-stack-card[data-depth="1"] {
    z-index: 2;
    transform: translate3d(0, 16px, 0) scale(0.94);
    opacity: 0.78;
    pointer-events: none;
}

.v2-stack-card[data-depth="2"] {
    z-index: 1;
    transform: translate3d(0, 30px, 0) scale(0.88);
    opacity: 0.48;
    pointer-events: none;
}

.v2-stack-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.v2-stack-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.24) 100%);
}

.v2-stack-card.no-img .v2-stack-card-inner {
    background: radial-gradient(circle at 12% 18%, rgba(251, 174, 23, 0.24) 0%, transparent 55%);
}

.v2-stack-top-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-stack-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.v2-stack-countdown {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.v2-stack-bottom-info h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.v2-stack-bottom-info p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-stack-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v2-stack-price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.v2-stack-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.v2-stack-old-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: line-through;
}

.v2-stack-open-pill {
    margin-inline-start: auto;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.v2-stack-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.v2-stack-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    border: none;
    background: var(--card-border);
    padding: 0;
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.v2-stack-dot.active {
    width: 22px;
    background: var(--accent);
}

.v2-meal-pulse {
    animation: v2MealHighlight 1.5s ease;
}

@keyframes v2MealHighlight {
    0%, 100% { box-shadow: var(--glass-highlight), var(--shadow-sm); }
    40% { box-shadow: 0 0 0 3px var(--accent), 0 8px 28px rgba(var(--accent-rgb), 0.35); }
}

/* ============================================================
   25. UNIFIED CATEGORY-NAV FROSTED GLASS ACROSS ALL CARDS & BANNERS
   ============================================================ */

.v2-starter-card,
.v2-menu-list,
.v2-home-hero,
.v2-mini-card,
.v2-home-reorder-card,
.v2-stack-card,
.v2-home-banners {
    backdrop-filter: blur(28px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
}

.v2-home-banners {
    background: var(--card-glass-bg);
}

/* Translucent frosted-glass banners & 3D stack cards (even without background photo) */
.v2-banner-slide.no-img,
.v2-stack-card.no-img {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.42) 0%, rgba(24, 14, 18, 0.46) 100%);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
}

html:not([data-theme="dark"]) .v2-banner-slide.no-img,
html:not([data-theme="dark"]) .v2-stack-card.no-img {
    background: linear-gradient(145deg, rgba(196, 16, 55, 0.56) 0%, rgba(120, 12, 34, 0.52) 100%);
}

.v2-stack-card[data-depth="1"],
.v2-stack-card[data-depth="2"] {
    background: var(--card-glass-bg);
}

/* Hide background card text & photo while stacked behind the frosted front card so nothing bleeds through */
.v2-stack-card[data-depth="1"] .v2-stack-card-inner,
.v2-stack-card[data-depth="2"] .v2-stack-card-inner,
.v2-stack-card[data-depth="1"] .v2-stack-bg-img,
.v2-stack-card[data-depth="2"] .v2-stack-bg-img {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.v2-stack-card[data-depth="0"] .v2-stack-card-inner,
.v2-stack-card[data-depth="0"] .v2-stack-bg-img {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* ============================================================
   26. PHOTO-FIRST PORTRAIT MINI CARDS + OPTIONAL POP-OUT + SMOOTH 3D
   ============================================================ */

/* Keep background card's food image visible (dimmed) behind the front card so zero blank flash occurs */
.v2-stack-card[data-depth="1"] .v2-stack-bg-img,
.v2-stack-card[data-depth="2"] .v2-stack-bg-img {
    opacity: 0.72 !important;
    filter: brightness(0.65);
}

.v2-stack-card[data-depth="1"] .v2-stack-card-inner,
.v2-stack-card[data-depth="2"] .v2-stack-card-inner {
    opacity: 0;
}

.v2-stack-card[data-depth="1"] {
    transform: translate3d(0, 14px, 0) scale(0.94);
    opacity: 0.85;
}

.v2-stack-card[data-depth="2"] {
    transform: translate3d(0, 26px, 0) scale(0.88);
    opacity: 0.55;
}

/* Compact Horizontal Mini Cards (Image Layer Behind Text + Optional Side Pop-Out) */
.v2-mini-row {
    padding-block: 4px;
}

.v2-mini-row.has-popout-cards {
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 6px;
    padding-inline-end: 20px;
}

/* Default MINI_ROW & MINI_POPOUT: Fixed 242px width, badge on top, title & price at bottom, zero description clutter */
.v2-mini-row .v2-mini-card.v2-mini-portrait {
    flex: 0 0 242px;
    height: 106px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: 10px;
    padding-inline-start: 12px;
    padding-inline-end: 82px;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait .v2-mini-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait .v2-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Smooth lighter gradient over background photo for MINI_ROW so photo stays vivid */
.v2-mini-row .v2-mini-card.v2-mini-portrait.has-img:not(.is-popout)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to left, rgba(12, 12, 16, 0.80) 0%, rgba(12, 12, 16, 0.42) 52%, rgba(12, 12, 16, 0.04) 100%);
    pointer-events: none;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait .v2-mini-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.v2-mini-top-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 20px;
}

.v2-mini-bottom-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.has-img:not(.is-popout) .v2-mini-title {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.has-img:not(.is-popout) .v2-mini-price {
    color: var(--accent);
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.has-img:not(.is-popout) .v2-mini-old-price {
    color: rgba(255, 255, 255, 0.68);
}

.v2-mini-row .v2-mini-card.v2-mini-portrait .v2-mini-badge {
    position: static;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.64rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

/* Optional Side Pop-Out-of-Frame (MINI_POPOUT — fixed 242px width, extra end padding keeps text clear of pop-out image) */
.v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout {
    overflow: visible;
    padding-inline-end: 112px;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout .v2-mini-media {
    inset: auto;
    inset-inline-end: -14px;
    top: -18px;
    bottom: -4px;
    width: 106px;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout .v2-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout .v2-mini-content {
    z-index: 2;
}

.v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout .v2-mini-title {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

html:not([data-theme="dark"]) .v2-mini-row .v2-mini-card.v2-mini-portrait.is-popout .v2-mini-title {
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

/* Optional 2-Column Grid when user explicitly picks MINI_GRID */
.v2-mini-grid .v2-mini-card.v2-mini-portrait {
    position: relative;
    height: 112px;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 11px;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait .v2-mini-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait .v2-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait.has-img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 12, 16, 0.80) 0%, rgba(12, 12, 16, 0.14) 55%, rgba(12, 12, 16, 0.20) 100%);
    pointer-events: none;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait .v2-mini-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait.has-img .v2-mini-title {
    color: #fff;
}

.v2-mini-grid .v2-mini-card.v2-mini-portrait .v2-mini-badge {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.62rem;
    font-weight: 800;
}

.v2-mini-card.v2-mini-portrait .v2-mini-title {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lighter photo-first overlays on BANNER & STACK cards (badge top, title bottom) */
.v2-banner-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.22) 100%);
}

.v2-stack-card-inner {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.06) 54%, rgba(0, 0, 0, 0.20) 100%);
}

.v2-stack-bottom-info h3 {
    margin-bottom: 6px;
}

/* ============================================================
   27. UNIFIED FROSTED-GLASS ITEM & OFFER DETAILS BOTTOM SHEET
   ============================================================ */

.v2-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

.v2-mini-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.v2-mini-plus {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(var(--theme-accent-rgb), 0.35);
}

[data-theme="dark"] .v2-mini-plus {
    color: #111;
}

.v2-sheet-content,
.v2-dialog-card {
    background: rgba(255, 252, 248, 0.72);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
}

[data-theme="dark"] .v2-sheet-content,
[data-theme="dark"] .v2-dialog-card {
    background: rgba(20, 20, 26, 0.68);
}

/* Unified Item & Offer Sheet — Full-Height Immersive Glass Design */
.v2-sheet-overlay {
    z-index: 10010;
}

.v2-sheet-content.v2-item-sheet-content {
    height: 88dvh;
    max-height: 92dvh;
    border-radius: 32px 32px 0 0;
    background: #faf7f2;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: none;
    box-shadow: 0 -14px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .v2-sheet-content.v2-item-sheet-content {
    background: #101014;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 -18px 56px rgba(0, 0, 0, 0.72);
}

/* Full-Bleed Top Hero Photo (~40% of Sheet, Clean Cream Backdrop for Transparent PNGs in Light Mode) */
.v2-item-sheet-hero {
    position: relative;
    width: 100%;
    flex: 0 0 40%;
    min-height: 230px;
    max-height: 340px;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f3ece2 100%);
    overflow: hidden;
    margin-top: 0;
}

[data-theme="dark"] .v2-item-sheet-hero {
    background: radial-gradient(circle at 50% 42%, #2b231d 0%, #101014 100%);
}

.v2-item-sheet-hero::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 84px;
    background: linear-gradient(to top, #faf7f2 0%, rgba(250, 247, 242, 0.45) 45%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="dark"] .v2-item-sheet-hero::after {
    background: linear-gradient(to top, #101014 0%, rgba(16, 16, 20, 0.56) 45%, transparent 100%);
}

.v2-item-sheet-hero.no-img {
    flex: 0 0 60px;
    min-height: 60px;
    max-height: 60px;
    background: transparent;
}

.v2-item-sheet-hero.no-img::after {
    display: none;
}

.v2-item-sheet-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

[data-theme="dark"] .v2-item-sheet-handle {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

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

.v2-item-sheet-hero.no-img .v2-item-sheet-img {
    display: none;
}

/* Floating Circular Frosted-Glass Close Button */
.v2-item-sheet-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(20, 20, 26, 0.48);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
    transition: transform 0.16s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

html:not([data-theme="dark"]) .v2-item-sheet-close {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.v2-item-sheet-close:active {
    transform: scale(0.9);
}

/* Overlapping Translucent Frosted-Glass Details Card (Compact & More Transparent) */
.v2-item-sheet-body {
    position: relative;
    z-index: 4;
    flex: 1;
    margin-top: -42px;
    margin-inline: 12px;
    margin-bottom: 10px;
    padding: 15px 16px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

[data-theme="dark"] .v2-item-sheet-body {
    background: rgba(22, 22, 30, 0.58);
    backdrop-filter: blur(34px) saturate(215%);
    -webkit-backdrop-filter: blur(34px) saturate(215%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.v2-item-sheet-hero.no-img + .v2-item-sheet-body {
    margin-top: 6px;
}

/* Badge Row Inside Top of Details Card */
.v2-item-sheet-card-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}



.v2-item-sheet-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

/* Single-Row Title + Price Layout */
.v2-item-sheet-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.v2-item-sheet-title {
    flex: 1;
    min-width: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.28;
}

.v2-item-sheet-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}

.v2-item-sheet-price {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

[data-theme="dark"] .v2-item-sheet-price {
    color: var(--accent);
}

.v2-item-sheet-old-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    white-space: nowrap;
}

.v2-item-sheet-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Compact Rounded Pill Size Selector Chips (Fits Without Scrolling) */
.v2-item-sheet-sizes-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 9px;
    border-top: 1px solid var(--card-border);
}

.v2-size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v2-size-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--card-border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.14s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-size-chip:active:not(:disabled) {
    transform: scale(0.94);
}

.v2-size-chip.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.16);
}

[data-theme="dark"] .v2-size-chip.active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.22);
}

.v2-size-chip.is-sold-out,
.v2-size-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Floating Pill Bottom Action Dock */
.v2-item-sheet-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 7px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

[data-theme="dark"] .v2-item-sheet-footer {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(24, 24, 32, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Rounded Pill Qty Stepper (- 1 +) */
.v2-item-sheet-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: #f3efe9;
    flex-shrink: 0;
}

[data-theme="dark"] .v2-item-sheet-qty {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.v2-sheet-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.14s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .v2-sheet-qty-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.v2-sheet-qty-btn:active {
    transform: scale(0.88);
}

#v2-item-sheet-qty-plus {
    background: var(--primary);
    color: #fff;
}

[data-theme="dark"] #v2-item-sheet-qty-plus {
    background: var(--accent);
    color: #111;
}

.v2-sheet-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
}

/* Prominent Pill CTA Button */
.v2-item-sheet-action-btn {
    flex: 1;
    min-height: 45px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.34);
}

[data-theme="dark"] .v2-item-sheet-action-btn {
    background: var(--accent);
    color: #111;
    box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.36);
}

[data-theme="dark"] .v2-item-sheet-action-btn:hover:not(:disabled) {
    background: #fcc046;
}

/* ============================================================
   28. V2 ORDER / MENU TAB (TASK 2.5 — SEARCH & CLEAN CARDS)
   ============================================================ */

.v2-order-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Instant Frosted-Glass Search Bar */
.v2-menu-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-glass-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding-inline: 14px 10px;
    min-height: 44px;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v2-menu-search-wrap:focus-within {
    border-color: var(--theme-accent);
    box-shadow: var(--glass-highlight), 0 0 0 3px rgba(var(--theme-accent-rgb), 0.16);
}

.v2-menu-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-inline-end: 8px;
}

.v2-menu-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding-block: 8px;
    outline: none;
}

.v2-menu-search-input::placeholder {
    color: var(--text-muted);
}

.v2-menu-search-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.v2-menu-search-empty {
    text-align: center;
    padding: 36px 20px;
    border-radius: 20px;
    background: var(--card-glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.v2-menu-search-empty-icon {
    font-size: 2rem;
}

.v2-menu-search-empty p {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-search-hidden {
    display: none !important;
}

/* Ultra-Clean Menu Cards: Tap Anywhere to Open Master Sheet (No '+' or <select>) */
.menu-item.v2-menu-card {
    cursor: pointer;
}

.menu-item.v2-menu-card .variant-select,
.menu-item.v2-menu-card .cart-controls,
.menu-item.v2-menu-card .item-desc {
    display: none !important;
}

/* Optional Floating Qty Badge (×2) Controlled via SETTINGS_V2.MENU_QTY_BADGE */
.v2-card-qty-badge {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 4;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.4);
    pointer-events: none;
}

[data-theme="dark"] .v2-card-qty-badge {
    background: var(--accent);
    color: #111;
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.45);
}

body.v2-hide-qty-badge .v2-card-qty-badge {
    display: none !important;
}

/* Optional Item Note inside Master Product Sheet */
.v2-item-sheet-note-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

.v2-item-sheet-note-input {
    border-radius: 13px;
    font-size: 0.84rem;
    padding: 8px 12px;
}

/* ============================================================
   29. V2 ENHANCED VIP SYSTEM (TASK 2.6)
   ============================================================ */

/* Replace bulky V1 3-field VIP block in Cart with sleek V2 strip */
body.v2-vip-managed #vip-section {
    display: none !important;
}

/* Golden VIP row in More tab */
.v2-vip-menu-list {
    border-color: rgba(var(--accent-rgb), 0.42);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.04));
}

.v2-vip-row-icon {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.45);
}

/* Cart VIP Strip (Teaser for Non-VIP / PIN Bar for Bound VIP) */
.v2-cart-vip-strip {
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.48);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.05));
    overflow: hidden;
}

.v2-cart-vip-teaser {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 13px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
    transition: background 0.18s ease;
}

.v2-cart-vip-teaser strong {
    color: #b88007;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="dark"] .v2-cart-vip-teaser strong {
    color: var(--accent);
}

.v2-cart-vip-teaser:hover {
    background: rgba(var(--accent-rgb), 0.12);
}

.v2-cart-vip-teaser-arrow {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 800;
    line-height: 1;
}

.v2-cart-vip-bound {
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-cart-vip-bound-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-cart-vip-bound-title {
    font-size: 0.85rem;
    color: var(--text);
}

.v2-cart-vip-card-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.2);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    color: #9e6d04;
}

[data-theme="dark"] .v2-cart-vip-card-pill {
    color: var(--accent);
}

.v2-cart-vip-pin-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.v2-cart-vip-pin-input {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 11px;
}

.v2-vip-gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #d4960c, #fbae17);
    color: #141008;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.34);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.v2-vip-gold-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.v2-vip-gold-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.v2-vip-gold-btn-full {
    width: 100%;
    min-height: 45px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.v2-cart-vip-status {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.v2-cart-vip-status.is-success {
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #15803d;
}

[data-theme="dark"] .v2-cart-vip-status.is-success {
    color: #4ade80;
}

.v2-cart-vip-status.is-error {
    background: rgba(229, 57, 53, 0.11);
    border: 1px solid rgba(229, 57, 53, 0.32);
    color: var(--red);
}

/* VIP Bottom Sheet States */
.v2-vip-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v2-vip-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#v2-vip-state-guest {
    text-align: center;
    align-items: center;
    padding-block: 6px;
}

.v2-vip-hero-icon {
    font-size: 2.3rem;
    line-height: 1;
}

#v2-vip-state-guest h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

#v2-vip-state-guest p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.v2-vip-full-google-btn {
    max-width: 100%;
}

.v2-vip-form-intro {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.v2-vip-feedback {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.v2-vip-feedback.is-error {
    background: rgba(229, 57, 53, 0.11);
    border: 1px solid rgba(229, 57, 53, 0.35);
    color: var(--red);
}

.v2-vip-feedback.is-success {
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #15803d;
}

[data-theme="dark"] .v2-vip-feedback.is-success {
    color: #4ade80;
}

.v2-vip-support-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

[data-theme="dark"] .v2-vip-support-btn {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent);
}

/* Digital Golden VIP Card */
.v2-vip-digital-card {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1b1610 0%, #3a2a0b 55%, #19140e 100%);
    border: 1.5px solid rgba(251, 174, 23, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 235, 170, 0.35);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-vip-digital-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-vip-digital-brand {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.8px;
}

.v2-vip-digital-status {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #6ee7b7;
}

.v2-vip-digital-holder {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.v2-vip-digital-number {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fde68a;
    font-variant-numeric: tabular-nums;
}

.v2-vip-digital-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.78);
}

.v2-vip-security-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   30. V2 2-STEP CART, PAYMENT, QUEUE & LIVE TRACKING (TASK 2.7)
   ============================================================ */

.v2-cart-sheet-content {
    height: 92dvh;
    max-height: 94dvh;
}

.v2-cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-cart-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-cart-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--surface-2);
}

.v2-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-step-pill span {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--card-border);
    color: var(--text-muted);
}

.v2-step-pill.active {
    color: var(--theme-accent);
    font-weight: 800;
}

.v2-step-pill.active span {
    background: var(--theme-accent);
    color: #fff;
}

[data-theme="dark"] .v2-step-pill.active span {
    color: #111;
}

.v2-step-pill.done span {
    background: var(--green);
    color: #fff;
}

.v2-step-line {
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--card-border);
}

.v2-cart-price-alert {
    margin: 8px 16px 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.16);
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.v2-cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 16px;
}

.v2-cart-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.v2-c2-empty {
    text-align: center;
    padding: 34px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.v2-c2-empty-icon {
    font-size: 2.4rem;
}

.v2-c2-item-card {
    padding: 11px 12px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.v2-c2-item-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.v2-c2-item-price {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.v2-c2-item-price.is-vip {
    color: var(--accent);
    font-weight: 700;
}

.v2-c2-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.v2-c2-qty-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
}

.v2-c2-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-c2-qty-btn.is-plus {
    background: var(--primary);
    color: #fff;
}

[data-theme="dark"] .v2-c2-qty-btn.is-plus {
    background: var(--accent);
    color: #111;
}

.v2-c2-qty-num {
    min-width: 18px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.v2-c2-item-sub {
    min-width: 56px;
    text-align: end;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.v2-c2-note-input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px dashed var(--card-border);
    background: var(--glass-bg);
    color: var(--text);
    font-size: 0.78rem;
}

.v2-c2-note-input:focus {
    outline: none;
    border-color: var(--theme-accent);
}

/* Upsells in Step 1 */
.v2-c2-upsell-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--card-border);
}

.v2-c2-sec-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.v2-c2-upsell-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.v2-c2-upsell-list::-webkit-scrollbar {
    display: none;
}

.v2-c2-upsell-card {
    flex: 0 0 112px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.v2-c2-upsell-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.v2-c2-upsell-name {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.v2-c2-upsell-price {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--theme-accent);
}

.v2-c2-upsell-add {
    width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

/* Step 2 Blocks */
.v2-c2-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-c2-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-c2-order-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.v2-c2-type-btn {
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.18s ease;
}

.v2-c2-type-btn.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.14);
    color: var(--theme-accent);
}

.v2-c2-type-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.v2-c2-saved-addresses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-c2-addr-option {
    width: 100%;
    text-align: start;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.v2-c2-addr-option.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.1);
}

.v2-c2-addr-opt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 800;
}

.v2-c2-addr-opt-sub {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Payment Methods */
.v2-c2-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-c2-pay-option {
    width: 100%;
    padding: 11px 13px;
    border-radius: 13px;
    border: 1.5px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.v2-c2-pay-option.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.12);
    color: var(--theme-accent);
}

.v2-c2-transfer-box {
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-c2-transfer-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v2-c2-transfer-label {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
}

.v2-c2-transfer-account {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-receipt-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px dashed var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.1);
    color: var(--theme-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.v2-c2-receipt-preview-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
}

.v2-c2-receipt-preview {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.v2-c2-receipt-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.v2-c2-prep-badge {
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(var(--theme-accent-rgb), 0.1);
    border: 1px dashed rgba(var(--theme-accent-rgb), 0.4);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.v2-c2-closed-alert {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(229, 57, 53, 0.12);
    border: 1px solid rgba(229, 57, 53, 0.35);
    color: var(--red);
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
}

/* Sticky Totals Footer */
.v2-cart-footer {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.v2-cart-totals {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v2-c2-total-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.v2-c2-total-vip {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 800;
}

.v2-c2-total-main {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-total-main strong {
    color: var(--theme-accent);
    font-size: 1.12rem;
}

.v2-cart-cta-btn {
    border-radius: 999px;
    min-height: 46px;
}

.v2-cart-submit-btn {
    background: linear-gradient(135deg, #16a34a, #25d366);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.v2-cart-submit-btn:hover:not(:disabled) {
    background: #15803d;
}

/* Step 3: Sending, Busy Retry & 4-Stage Tracking */
.v2-c2-status-card {
    padding: 28px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.v2-c2-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--card-border);
    border-top-color: var(--theme-accent);
    animation: v2Spin 0.85s linear infinite;
}

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

.v2-c2-status-emoji {
    font-size: 2.6rem;
}

.v2-c2-retry-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.v2-c2-tracking-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 2px;
}

.v2-c2-track-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.v2-c2-track-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.16);
    border: 1.5px solid rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
}

.v2-c2-track-hero h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-track-hero p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.v2-c2-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
}

.v2-tl-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-tl-step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-tl-step.done {
    color: #16a34a;
}

[data-theme="dark"] .v2-tl-step.done {
    color: #4ade80;
}

.v2-tl-step.done span {
    background: #16a34a;
    color: #fff;
}

.v2-tl-step.active {
    color: var(--theme-accent);
    font-weight: 800;
}

.v2-tl-step.active span {
    background: var(--theme-accent);
    color: #fff;
}

[data-theme="dark"] .v2-tl-step.active span {
    color: #111;
}

.v2-tl-step.is-cancel {
    color: var(--red);
    font-weight: 800;
}

.v2-tl-step.is-cancel span {
    background: var(--red);
    color: #fff;
}

.v2-c2-security-box {
    padding: 14px;
    border-radius: 16px;
    border: 2px dashed var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-c2-security-box span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.v2-c2-security-box strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--theme-accent);
}

.v2-c2-track-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-c2-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 45px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* Guaranteed modal layering: Nested sheets (+ Add Address) & Confirm dialogs ALWAYS above Cart */
.v2-sheet-overlay.v2-sheet-nested {
    z-index: 10040 !important;
}

.v2-dialog-overlay {
    z-index: 10060 !important;
}

/* Compact Collapsible Address Card + Sleek GPS Pill in Step 2 */
.v2-c2-addr-selected-card {
    padding: 11px 13px;
    border-radius: 14px;
    border: 1.5px solid var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-c2-addr-selected-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-c2-addr-selected-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-addr-switch-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.45);
    background: var(--glass-bg-strong);
    color: var(--theme-accent);
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
}

.v2-c2-addr-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--glass-border);
}

.v2-c2-addr-gps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px dashed var(--card-border);
}

.v2-c2-addr-gps-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed var(--glass-border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.v2-c2-addr-gps-pill.has-gps {
    border-style: solid;
    border-color: rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.12);
    color: #15803d;
}

[data-theme="dark"] .v2-c2-addr-gps-pill.has-gps {
    color: #4ade80;
}

.v2-c2-addr-gps-remove {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 6px;
    cursor: pointer;
}

/* Slim Active Order Live-Tracking Pill on Home */
.v2-active-order-pill {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(37, 211, 102, 0.45);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(var(--accent-rgb), 0.1));
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    color: var(--text);
    text-align: start;
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.v2-active-order-pill:active {
    transform: scale(0.98);
}

.v2-active-order-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
    animation: v2PulseDot 1.6s infinite;
}

@keyframes v2PulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.v2-active-order-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.v2-active-order-text strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text);
}

.v2-active-order-text span {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-active-order-cta {
    padding: 5px 11px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Cancel Order via Branch Call Box in Tracking Screen */
.v2-c2-cancel-call-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(229, 57, 53, 0.42);
    background: rgba(229, 57, 53, 0.08);
    text-align: center;
}

.v2-c2-cancel-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(229, 57, 53, 0.45);
    background: rgba(229, 57, 53, 0.14);
    color: var(--red);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.14s ease;
}

.v2-c2-cancel-call-btn:active {
    transform: scale(0.97);
}

.v2-c2-cancel-call-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* My Orders Sheet Cards (Compact Redesign) */
.v2-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-order-card {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-order-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.v2-order-code {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.v2-order-total-inline {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--theme-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.v2-order-status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(var(--accent-rgb), 0.16);
    color: #b47800;
    white-space: nowrap;
}

[data-theme="dark"] .v2-order-status-pill {
    color: var(--accent);
}

.v2-order-status-pill.status-confirmed {
    background: rgba(37, 211, 102, 0.16);
    color: #16a34a;
}

[data-theme="dark"] .v2-order-status-pill.status-confirmed {
    color: #4ade80;
}

.v2-order-status-pill.status-cancelled {
    background: rgba(229, 57, 53, 0.14);
    color: var(--red);
}

.v2-order-items-txt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-order-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 2px;
}

.v2-order-date-txt {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.v2-order-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.v2-ord-btn-track,
.v2-ord-btn-reorder {
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-ord-btn-track {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text);
}

.v2-ord-btn-reorder {
    border: none;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.v2-ord-btn-track:active,
.v2-ord-btn-reorder:active {
    transform: scale(0.95);
}

.v2-order-cancel-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 6px;
    border-top: 1px dashed var(--card-border);
}

.v2-ord-btn-cancel-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(229, 57, 53, 0.38);
    background: rgba(229, 57, 53, 0.1);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.v2-order-cancel-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
}

.v2-orders-load-more {
    width: 100%;
    min-height: 38px;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px dashed var(--glass-border);
    background: var(--glass-bg);
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.v2-orders-load-more:hover {
    background: rgba(var(--theme-accent-rgb), 0.1);
    border-color: var(--theme-accent);
}

/* ============================================================
   31. V2 BRANCHES TAB (TAB_BRANCHES) & MORE ENHANCEMENTS (TASK 2.8)
   ============================================================ */

.v2-branches-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 680px;
}

.v2-branches-slim-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 2px;
}

.v2-branches-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-branches-slim-bar h2 {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.v2-branches-nearest-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.45);
    background: rgba(var(--theme-accent-rgb), 0.12);
    color: var(--theme-accent);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.14s ease;
}

.v2-branches-nearest-btn.active {
    background: var(--theme-accent);
    color: #fff;
}

[data-theme="dark"] .v2-branches-nearest-btn.active {
    color: #111;
}

.v2-branches-nearest-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Branch Cards */
.v2-branches-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.v2-branch-card {
    padding: 14px 15px;
    border-radius: 18px;
    background: var(--card-glass-bg);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-branch-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-branch-title-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.v2-branch-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.v2-branch-dist-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--theme-accent-rgb), 0.14);
    color: var(--theme-accent);
    font-size: 0.7rem;
    font-weight: 800;
}

.v2-branch-status-pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.v2-branch-status-pill.is-open {
    background: rgba(37, 211, 102, 0.16);
    color: #15803d;
}

[data-theme="dark"] .v2-branch-status-pill.is-open {
    color: #4ade80;
}

.v2-branch-status-pill.is-busy {
    background: rgba(251, 174, 23, 0.18);
    color: #b45309;
}

[data-theme="dark"] .v2-branch-status-pill.is-busy {
    color: var(--accent);
}

.v2-branch-status-pill.is-closed {
    background: rgba(229, 57, 53, 0.14);
    color: var(--red);
}

.v2-branch-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.v2-branch-meta-icon {
    flex-shrink: 0;
}

/* Services on the right (inline-start) | Icon-only Location & Call on the left (inline-end) */
.v2-branch-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 5px;
    flex-wrap: wrap;
}

.v2-branch-services-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.v2-branch-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text);
}

.v2-branch-icons-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.v2-branch-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.14s ease, opacity 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.v2-branch-icon-btn:active {
    transform: scale(0.92);
}

.v2-branch-icon-btn.is-dir {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

.v2-branch-icon-btn.is-call {
    background: rgba(var(--theme-accent-rgb), 0.16);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.45);
    color: var(--theme-accent);
}

.v2-branch-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Profile Modal Delete Account Danger Zone */
.v2-profile-danger-zone {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--card-border);
    text-align: center;
}

.v2-profile-delete-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(229, 57, 53, 0.32);
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.14s ease;
}

.v2-profile-delete-btn:hover:not(:disabled) {
    background: rgba(229, 57, 53, 0.15);
}

.v2-profile-delete-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.v2-sync-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 2px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px dashed var(--card-border);
}

/* Flat Minimalist Circular Monochrome Social Icons (Sheet-Controlled) */
.v2-social-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-block: 6px;
}

.v2-social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #141416;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.16s ease, opacity 0.18s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .v2-social-circle {
    background: rgba(255, 255, 255, 0.92);
    color: #111114;
}

.v2-social-circle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    display: block;
}

.v2-social-circle:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.v2-social-circle:active {
    transform: scale(0.92);
}

.v2-privacy-inline-link {
    color: var(--theme-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   32. V2 REWARDS TAB (TAB_REWARDS) & CART REDEMPTION (TASK 2.9)
   ============================================================ */

.v2-rewards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
}

.v2-rewards-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-rewards-balance-card {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--primary-rgb), 0.1));
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    padding: 16px;
}

.v2-rewards-guest-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.v2-rewards-hero-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.v2-rewards-guest-hero h2 {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text);
}

.v2-rewards-guest-hero p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}

.v2-rewards-wallet {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-rewards-wallet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.v2-rewards-wallet-kicker {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-rewards-wallet-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--theme-accent);
    line-height: 1.15;
}

.v2-rewards-wallet-num span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.v2-rewards-wallet-badge {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.2);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    color: #9e6d04;
    font-size: 0.74rem;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .v2-rewards-wallet-badge {
    color: var(--accent);
}

.v2-rewards-pending-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.v2-rewards-pending-bar strong {
    color: var(--theme-accent);
    white-space: nowrap;
}

.v2-rewards-active-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.4);
    font-size: 0.78rem;
    color: var(--text);
}

.v2-rewards-clear-btn {
    background: none;
    border: none;
    color: var(--red);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.v2-rewards-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 2px;
}

.v2-rewards-sec-head h3 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
}

.v2-rewards-sec-head span {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
}

.v2-rewards-catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 17px;
    background: var(--card-glass-bg);
    backdrop-filter: blur(24px) saturate(195%);
    -webkit-backdrop-filter: blur(24px) saturate(195%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    transition: border-color 0.2s ease;
}

.v2-reward-card.is-selected {
    border-color: rgba(37, 211, 102, 0.65);
    background: rgba(37, 211, 102, 0.08);
}

.v2-reward-media {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-reward-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-reward-emoji {
    font-size: 1.6rem;
    line-height: 1;
}

.v2-reward-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-reward-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.v2-reward-head h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.v2-reward-pts-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    color: #9e6d04;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .v2-reward-pts-pill {
    color: var(--accent);
}

.v2-reward-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.v2-reward-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.v2-reward-type-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.v2-reward-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, opacity 0.18s ease;
}

.v2-reward-btn.is-ready {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

.v2-reward-btn.is-selected {
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #15803d;
}

[data-theme="dark"] .v2-reward-btn.is-selected {
    color: #4ade80;
}

.v2-reward-btn.is-locked {
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    color: var(--theme-accent);
}

.v2-reward-btn.is-disabled {
    background: var(--surface-2);
    color: var(--text-muted);
    opacity: 0.7;
    cursor: not-allowed;
}

.v2-reward-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Cart Step 1 Reward Strip & Totals Row */
.v2-c2-reward-strip {
    border-radius: 14px;
    border: 1px solid rgba(37, 211, 102, 0.42);
    background: rgba(37, 211, 102, 0.09);
    overflow: hidden;
}

.v2-c2-reward-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

.v2-c2-reward-active-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-c2-reward-active-info strong {
    font-size: 0.84rem;
    color: var(--text);
}

.v2-c2-reward-active-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.v2-c2-reward-remove {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.1);
    color: var(--red);
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    flex-shrink: 0;
}

.v2-c2-reward-teaser {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
}

.v2-c2-total-reward {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #16a34a;
    font-weight: 800;
}

[data-theme="dark"] .v2-c2-total-reward {
    color: #4ade80;
}

/* Min Order Chip on Rewards Catalog Cards */
.v2-reward-min-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.14);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: #9e6d04;
    font-size: 0.7rem;
    font-weight: 800;
}

[data-theme="dark"] .v2-reward-min-chip {
    color: var(--accent);
}

/* Golden Progress Bar inside Cart Step 1 */
.v2-c2-reward-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 12px 10px;
    border-top: 1px dashed rgba(var(--accent-rgb), 0.32);
    background: rgba(var(--accent-rgb), 0.08);
}

.v2-c2-reward-progress:first-child {
    border-top: none;
}

.v2-c2-reward-progress.is-unlocked {
    background: rgba(37, 211, 102, 0.12);
    border-top-color: rgba(37, 211, 102, 0.35);
}

.v2-c2-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text);
}

.v2-c2-progress-head strong {
    color: var(--theme-accent);
    white-space: nowrap;
}

.v2-c2-reward-progress.is-unlocked .v2-c2-progress-head strong {
    color: #16a34a;
}

[data-theme="dark"] .v2-c2-reward-progress.is-unlocked .v2-c2-progress-head strong {
    color: #4ade80;
}

.v2-c2-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.v2-c2-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d4960c, #fbae17);
    transition: width 0.3s ease;
}

.v2-c2-reward-progress.is-unlocked .v2-c2-progress-fill {
    background: linear-gradient(90deg, #16a34a, #25d366);
}

.v2-reward-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.v2-reward-new-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.38);
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 800;
}

[data-theme="dark"] .v2-reward-new-chip {
    color: #4ade80;
}

/* ============================================================
   33. V2 SMART INSTALL BANNER & iOS GUIDE SHEET (TASK 2.10)
   ============================================================ */

.v2-install-banner {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 18px);
    inset-inline: 12px;
    max-width: 540px;
    margin-inline: auto;
    z-index: 650;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 18px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    box-shadow: var(--glass-highlight), 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-install-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface-2);
    padding: 4px;
    flex-shrink: 0;
}

.v2-install-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.v2-install-banner-text strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-install-banner-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-install-banner-cta {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.35);
    cursor: pointer;
}

.v2-install-banner-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.v2-ios-guide-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-ios-guide-intro {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.v2-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
}

.v2-ios-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="dark"] .v2-ios-step-num {
    background: var(--accent);
    color: #111;
}

.v2-ios-step-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v2-ios-step-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

.v2-ios-step-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ============================================================
   34. V2 REFERRAL SYSTEM CARD (TASK 2.5.2)
   ============================================================ */

.v2-referral-card {
    border-radius: 18px;
    background: var(--card-glass-bg);
    backdrop-filter: blur(24px) saturate(195%);
    -webkit-backdrop-filter: blur(24px) saturate(195%);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    padding: 14px;
}

.v2-ref-box {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.v2-ref-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-ref-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
}

.v2-ref-pts-chip {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    color: #9e6d04;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

[data-theme="dark"] .v2-ref-pts-chip {
    color: var(--accent);
}

.v2-ref-desc {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.v2-ref-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.v2-ref-code-pill {
    flex: 1;
    min-width: 110px;
    padding: 7px 12px;
    border-radius: 11px;
    background: var(--surface-2);
    border: 1.5px dashed rgba(var(--accent-rgb), 0.55);
    color: var(--theme-accent);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-align: center;
}

.v2-ref-mini-btn {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    color: var(--text);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.v2-ref-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-ref-wa-btn {
    flex: 1;
    min-width: 165px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.v2-ref-stat-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
}

.v2-ref-applied-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 11px;
    background: rgba(37, 211, 102, 0.13);
    border: 1px solid rgba(37, 211, 102, 0.38);
    font-size: 0.76rem;
    color: var(--text);
}

.v2-ref-manual-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 4px;
    border-top: 1px dashed var(--card-border);
}

.v2-ref-manual-input {
    flex: 1;
    padding: 7px 11px;
    font-size: 0.8rem;
    border-radius: 10px;
}

.v2-ref-loading {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
}

/* ============================================================
   35. V2 CART BRANCH PICKER (TASK 2.5.3)
   ============================================================ */

.v2-c2-branch-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.v2-c2-branch-option {
    width: 100%;
    padding: 10px 12px;
    border-radius: 13px;
    border: 1.5px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--text);
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.v2-c2-branch-option.active {
    border-color: var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.11);
}

.v2-c2-branch-option.is-closed {
    opacity: 0.65;
}

.v2-c2-branch-opt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-c2-branch-opt-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-branch-opt-status {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.v2-c2-branch-opt-status.is-open {
    background: rgba(37, 211, 102, 0.16);
    color: #15803d;
}

[data-theme="dark"] .v2-c2-branch-opt-status.is-open {
    color: #4ade80;
}

.v2-c2-branch-opt-status.is-busy {
    background: rgba(251, 174, 23, 0.18);
    color: #b45309;
}

[data-theme="dark"] .v2-c2-branch-opt-status.is-busy {
    color: var(--accent);
}

.v2-c2-branch-opt-status.is-closed {
    background: rgba(229, 57, 53, 0.14);
    color: var(--red);
}

.v2-c2-branch-opt-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.v2-c2-branch-selected-card {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--theme-accent);
    background: rgba(var(--theme-accent-rgb), 0.08);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v2-c2-branch-selected-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-c2-branch-selected-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text);
}

.v2-c2-branch-inline-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-accent);
}

.v2-c2-branch-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--glass-border);
    max-height: 210px;
    overflow-y: auto;
    padding-inline-end: 2px;
}

.v2-c2-branch-hint {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--theme-accent);
    padding: 4px 8px;
    border-radius: 9px;
    background: rgba(var(--theme-accent-rgb), 0.1);
}



