/* Font and color palette */
:root {
    --brand: #0b5ed7;
    --primary: #0b5ed7;
    --background: #f4f6fb;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #f97316;
    --border: #e5e7eb;
    --radius: 1.25rem;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #0f172a;
    color: rgba(255,255,255,0.65);
    font-size: 0.73rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 51; position: relative;
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.42rem 0; gap: 0.5rem;
}
.top-bar-left, .top-bar-right {
    display: flex; align-items: center; gap: 0.55rem;
}
.top-bar-left span, .top-bar-right a {
    display: flex; align-items: center; gap: 0.28rem; white-space: nowrap;
}
.top-bar-left i, .top-bar-right i { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.top-bar-left strong { color: rgba(255,255,255,0.92); font-weight: 600; }
.top-bar-right a {
    color: rgba(255,255,255,0.6); transition: color 0.18s;
    text-decoration: none;
}
.top-bar-right a:hover { color: rgba(255,255,255,0.92); }
.top-bar-sep { color: rgba(255,255,255,0.12); padding: 0 0.05rem; }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.site-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}

.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0; gap: 2rem;
}

/* ── Logo ── */
.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon-wrap {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(11,94,215,0.25);
    transition: transform 0.22s ease;
}
.logo:hover .logo-icon-wrap { transform: scale(1.07); }
.logo-text {
    display: flex; flex-direction: column; line-height: 1;
}
.logo-name {
    font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--primary);
}
.logo-tagline {
    font-size: 0.58rem; font-weight: 500; color: var(--muted);
    letter-spacing: 0.07em; text-transform: uppercase; margin-top: 3px;
}

/* ── Navigation ── */
.main-nav {
    display: flex; align-items: center; gap: 0.25rem; flex: 1;
    justify-content: center;
}
.nav-link {
    position: relative; display: flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.8rem; border-radius: 8px;
    font-weight: 500; font-size: 0.875rem; color: #4b5563;
    text-decoration: none; transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-link span { position: relative; }
.nav-link:hover { color: var(--primary); background: rgba(11,94,215,0.06); }
.nav-link.active-link { color: var(--primary); font-weight: 600; background: rgba(11,94,215,0.07); }
.nav-link.active-link span::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; right: 0; height: 2px;
    background: var(--primary); border-radius: 2px;
}

/* Nav badges */
.nav-badge-count, .nav-badge-new {
    font-style: normal; font-size: 0.58rem; font-weight: 700;
    padding: 1px 5px; border-radius: 4px; line-height: 1.5;
}
.nav-badge-count {
    background: rgba(11,94,215,0.1); color: var(--primary);
}
.nav-badge-new {
    background: #ef4444; color: #fff;
}

/* ── Header Actions ── */
.header-actions {
    display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
}
.header-action-btn {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--muted);
    background: transparent; border: none; cursor: pointer;
    transition: all 0.2s; position: relative;
}
.header-action-btn:hover {
    background: rgba(37,99,235,0.08);
    color: var(--primary); transform: translateY(-1px);
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: relative; font-size: 1.2rem; color: var(--text);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    transition: all 0.2s; cursor: pointer; border: none;
}
.cart-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: #ef4444; color: #fff;
    font-size: 0.62rem; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 50px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

/* Hamburger */
.hamburger-btn {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px; border-radius: 10px;
    background: transparent; border: 1.5px solid var(--border);
    cursor: pointer; transition: all 0.2s;
}
.hamburger-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger-btn:hover { background: var(--bg); border-color: var(--primary); }

/* ── Search Bar ── */
.header-search-bar {
    border-top: 1px solid var(--border);
    background: var(--bg);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s;
    padding: 0;
}
.header-search-bar.open {
    max-height: 120px; padding: 1rem 0;
}
.header-search-inner {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 0.6rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.header-search-inner i { font-size: 1.2rem; color: var(--muted); flex-shrink: 0; }
.header-search-inner input {
    flex: 1; border: none; background: transparent;
    font-size: 0.95rem; color: var(--text); font-family: inherit;
    outline: none;
}
.header-search-inner input::placeholder { color: var(--muted); }
.search-close-btn {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border: 1px solid var(--border);
    cursor: pointer; color: var(--muted); font-size: 1rem;
    transition: all 0.2s; flex-shrink: 0;
}
.search-close-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }
.search-quick-tags {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.6rem; flex-wrap: wrap;
}
.search-quick-tags span {
    font-size: 0.75rem; color: var(--muted); font-weight: 600;
}
.search-quick-tags a {
    font-size: 0.76rem; padding: 0.25rem 0.65rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50px; color: var(--text); text-decoration: none;
    transition: all 0.2s; font-weight: 600;
}
.search-quick-tags a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   HERO SECTION — Premium 2-Column
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    padding: 5rem 0 4rem;
    background: #f8faff;
    min-height: 88vh;
    display: flex; align-items: center;
}

/* Background blobs */
.hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none; z-index: 0;
}
.hero-blob-1 {
    width: 600px; height: 600px; top: -15%; left: -10%;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
    animation: blobFloat1 8s ease-in-out infinite;
}
.hero-blob-2 {
    width: 500px; height: 500px; bottom: -20%; right: -5%;
    background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 70%);
    animation: blobFloat2 10s ease-in-out infinite;
}
.hero-blob-3 {
    width: 300px; height: 300px; top: 40%; left: 40%;
    background: radial-gradient(circle, rgba(249,115,22,0.07), transparent 70%);
    animation: blobFloat1 12s ease-in-out infinite reverse;
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-30px) scale(1.05); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-20px,25px) scale(1.08); }
}

/* Dot grid */
.hero-grid-dots {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(37,99,235,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 75%);
}

/* 2-column layout */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}

/* ── LEFT: Content ── */
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.18);
    border-radius: 50px; padding: 0.35rem 0.9rem;
    font-size: 0.8rem; font-weight: 700; color: var(--primary);
    letter-spacing: 0.04em; width: fit-content;
}
.hero-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em; color: #0f172a; margin: 0;
}
.hero-title-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; display: inline-block;
}
.hero-title-outline {
    color: var(--primary);
}

.hero-desc {
    font-size: 1rem; color: #4b5563; line-height: 1.75;
    max-width: 480px; margin: 0;
}
.hero-desc strong { color: var(--primary); font-weight: 600; }

.hero-actions {
    display: flex; gap: 0.9rem; flex-wrap: wrap;
}
.hero-btn-main {
    font-size: 0.95rem; font-weight: 700; padding: 0.85rem 1.8rem;
    border-radius: 14px; gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    transition: all 0.25s cubic-bezier(0.34,1.2,0.64,1);
}
.hero-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37,99,235,0.45);
}
.hero-btn-ghost {
    font-size: 0.95rem; font-weight: 700; padding: 0.85rem 1.6rem;
    border-radius: 14px; gap: 0.5rem;
    background: rgba(255,255,255,0.8); border: 1.5px solid var(--border);
    color: var(--text); backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.hero-btn-ghost:hover {
    background: #fff; border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px);
}

/* Trust row */
.hero-trust {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1.2rem;
    background: rgba(255,255,255,0.8); border: 1px solid var(--border);
    border-radius: 14px; width: fit-content;
    backdrop-filter: blur(8px);
}
.trust-item {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.trust-item i { font-size: 1rem; color: var(--primary); }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

/* ── RIGHT: Visual ── */
.hero-visual {
    display: flex; flex-direction: column; gap: 1rem;
    position: relative;
}

/* Main phone card */
.hero-phone-card {
    position: relative; border-radius: 24px; overflow: hidden;
    background: linear-gradient(145deg, #fff, #f0f4ff);
    border: 1px solid rgba(37,99,235,0.12);
    box-shadow: 0 30px 80px rgba(37,99,235,0.15), 0 8px 24px rgba(0,0,0,0.06);
    padding: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 340px;
    animation: heroCardFloat 5s ease-in-out infinite;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.hero-phone-card:hover {
    border-color: rgba(11,94,215,0.3);
    box-shadow: 0 36px 90px rgba(37,99,235,0.22), 0 10px 30px rgba(0,0,0,0.08);
    animation-play-state: paused;
}
/* Hover overlay "Xem sản phẩm" */
.hero-phone-card::after {
    content: 'Xem sản phẩm →';
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(11,94,215,0.92), rgba(11,94,215,0));
    color: #fff; font-size: 0.82rem; font-weight: 600;
    padding: 2rem 1rem 1rem;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; transition: opacity 0.22s;
    letter-spacing: 0.02em;
}
.hero-phone-card:hover::after { opacity: 1; }

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-phone-glow {
    position: absolute; inset: -20px;
    background: radial-gradient(circle at center, rgba(37,99,235,0.15), transparent 65%);
    pointer-events: none; border-radius: 50%;
}
.hero-phone-img {
    max-height: 280px; width: auto; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    position: relative; z-index: 1;
    transition: transform 0.25s;
}
.hero-phone-card:hover .hero-phone-img { transform: scale(1.03); }

/* Floating product tag */
.hero-float-tag {
    position: absolute; display: flex; align-items: center; gap: 0.65rem;
    background: rgba(255,255,255,0.95); border: 1px solid var(--border);
    border-radius: 16px; padding: 0.55rem 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px); z-index: 5;
    animation: floatTagBob 4s ease-in-out infinite;
}
.hero-float-tag-top { top: -16px; left: -20px; }
@keyframes floatTagBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-tag-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.float-tag-title { font-size: 0.78rem; font-weight: 700; color: #0f172a; }
.float-tag-sub { font-size: 0.68rem; color: var(--muted); margin-top: 1px; }

/* Floating rating badge */
.hero-float-badge {
    position: absolute; display: flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.95); border: 1px solid var(--border);
    border-radius: 16px; padding: 0.55rem 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 5;
    font-size: 0.78rem; animation: floatTagBob 5s ease-in-out infinite reverse;
}
.hero-float-badge-bottom { bottom: -14px; right: -16px; }
.hero-float-badge i { font-size: 1.1rem; flex-shrink: 0; }
.hero-float-badge strong { font-size: 0.92rem; font-weight: 800; color: #0f172a; display: block; }
.hero-float-badge span { font-size: 0.68rem; color: var(--muted); }

/* Mini product cards */
.hero-mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.hero-mini-card {
    display: flex; align-items: center; gap: 0.65rem;
    background: rgba(255,255,255,0.9); border: 1px solid var(--border);
    border-radius: 14px; padding: 0.65rem 0.75rem;
    position: relative; cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.hero-mini-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37,99,235,0.15);
    transform: translateY(-2px);
}
.hero-mini-card img {
    width: 42px; height: 42px; object-fit: contain;
    border-radius: 8px; background: var(--bg); flex-shrink: 0;
}
.mini-card-name { font-size: 0.73rem; font-weight: 700; color: #0f172a; }
.mini-card-price { font-size: 0.68rem; color: var(--primary); font-weight: 700; margin-top: 1px; }
.mini-card-badge {
    position: absolute; top: -6px; right: 8px;
    font-size: 0.6rem; font-weight: 800; padding: 2px 7px;
    border-radius: 50px; letter-spacing: 0.04em;
    background: #1d4ed8; color: #fff;
}
.mini-card-badge.sale { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* Stats row */
.hero-stats {
    display: flex; gap: 0; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
}
.hero-stat {
    flex: 1; text-align: center; padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 2px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong { font-size: 1.3rem; font-weight: 900; color: var(--primary); letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.7rem; color: var(--muted); font-weight: 600; }

/* Keep text-gradient for other sections */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(11,94,215,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(11,94,215,0.4);
    background: #094eb8;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.25rem;
}
.btn-icon:hover {
    transform: scale(1.1);
    background: #094eb8;
}

.w-100 { width: 100%; }

/* Sections */
.section {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(11,94,215,0.1);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 1.25rem;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.about-card:hover .icon-box {
    transform: rotate(0) scale(1.1);
    background: var(--brand);
    color: #fff;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 260px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f9;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    background: var(--surface);
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--brand);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.site-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.site-footer p {
    color: #94a3b8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-note {
    text-align: center;
    color: #475569;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
}

/* Sidebar Cart */
.cart-overlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active, .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--surface);
    z-index: 101;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header, .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-header h2, .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text);
    transition: var(--transition);
}

.close-btn:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--muted);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 1rem;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.75rem;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.qty-btn:hover {
    background: #cbd5e1;
}

.remove-btn {
    color: #ef4444;
    margin-left: auto;
    font-size: 1.25rem;
    padding: 0.25rem;
}

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

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: var(--surface);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background: var(--surface);
    border-radius: 1.5rem;
    z-index: 102;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide for simplicity on mobile, or implement a burger menu */
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
    color: var(--text);
    font-size: 0.9rem;
}

.qv-specs li i {
    color: var(--brand);
    font-size: 1.2rem;
}

.qv-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.wishlist-btn {
    background: var(--background);
    color: var(--muted);
}
.wishlist-btn.active {
    color: #ef4444;
    background: #fee2e2;
}

@media (max-width: 768px) {
    .quickview-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        width: 100%;
    }
}

/* Sort Select */
.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--background);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    min-width: 140px;
}

.sort-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
}

/* Product Badges */
.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}

.badge-new {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}

.badge-sale {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.35);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 5.8rem;
    right: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(11,94,215,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11,94,215,0.4);
}

/* Product Count */
.product-count {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Product Image - better sizing for SVG */
.product-image {
    background-color: #f0f1f5;
}

/* Animation on card appear */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card {
    animation: cardFadeIn 0.4s ease both;
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }

/* --- New Feature Styles --- */
/* Toolbar: Search and Filter */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    width: 300px;
    max-width: 100%;
}

.search-bar i {
    color: var(--muted);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}
.filter-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    background: var(--background);
    color: var(--muted);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: var(--brand);
    color: #fff;
}

/* Product Card Enhancements */
.wishlist-btn-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.wishlist-btn-card.active {
    color: #ef4444;
}

/* Quick View Modal */
.quickview-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.quickview-modal.active {
    opacity: 1;
    visibility: visible;
}

.quickview-content {
    background: var(--surface);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 1.5rem;
    position: relative;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.quickview-modal.active .quickview-content {
    transform: scale(1) translateY(0);
}

.quickview-content .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quickview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.quickview-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: var(--background);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image-container img {
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.thumbnail-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.thumb-item.active {
    border-color: var(--brand);
}

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

.quickview-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quickview-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.qv-rating {
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
}

.qv-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.qv-specs {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qv-specs li {
    display: flex;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
}

.qv-specs li i {
    color: var(--brand);
    font-size: 1.2rem;
}

.qv-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.wishlist-btn {
    background: var(--background);
    color: var(--muted);
}
.wishlist-btn.active {
    color: #ef4444;
    background: #fee2e2;
}

@media (max-width: 768px) {
    .quickview-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        width: 100%;
    }
}

/* Sort Select */
.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--background);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    min-width: 140px;
}

.sort-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
}


/* ============================================================
   ABOUT SECTION — Enhanced Brand Story
   ============================================================ */

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* Brand Story 2-column layout */
.brand-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.brand-story-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-story-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: .95rem;
}

.brand-story-text strong {
    color: var(--text);
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.2rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(59,130,246,.15));
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,.15);
    transition: all .3s;
}

.brand-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,.15);
}

/* Store Card Visual */
.store-image-container {
    display: flex;
    justify-content: center;
}

.store-mock {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
    width: 100%;
    max-width: 400px;
    transition: transform .3s, box-shadow .3s;
}

.store-mock:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

.store-mock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.store-mock-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.store-mock-header p {
    font-size: .78rem;
    color: var(--muted);
}

.store-stats-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
}

.store-stats-mini div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-mock-brands {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.store-mock-brands span {
    background: var(--bg);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(59,130,246,.2);
}

.stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    padding: 2rem 1rem;
    text-align: center;
    transition: background .3s;
}

.stat-item:hover {
    background: rgba(255,255,255,.12);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Why Choose Us header */
.why-choose-header {
    text-align: center;
    margin-bottom: 2rem;
}

.why-choose-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* About grid — now 3x2 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Partners Section */
.partners-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partners-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    transition: all .3s;
    cursor: default;
    color: var(--muted);
}

.partner-logo:hover {
    background: var(--card);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    color: var(--primary);
    transform: translateY(-4px);
}

.partner-logo span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.partner-logo small {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 500;
}

/* Testimonials */
.testimonials-section {
    margin-bottom: 1rem;
}

.testimonials-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .08;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-text {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: .9rem;
    color: var(--text);
}

.testimonial-author small {
    font-size: .75rem;
    color: var(--muted);
}

/* ===== Responsive About ===== */
@media (max-width: 768px) {
    .brand-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .partners-logos {
        gap: 1rem;
    }

    .partner-logo {
        padding: .8rem 1rem;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .brand-badges {
        flex-direction: column;
    }
}

/* ============================================================
   BRAND REVIEWS SECTION (below product grid)
   ============================================================ */

.brand-reviews-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--primary), #6366f1, transparent) 1;
}

.brand-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.brand-reviews-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.reviews-summary {
    display: flex;
    align-items: center;
}

.summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 12px;
}

.score-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.summary-stars {
    color: #f59e0b;
    font-size: .95rem;
    display: flex;
    gap: 1px;
    margin-bottom: 2px;
}

.summary-score small {
    font-size: .75rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .brand-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-reviews-header h3 {
        font-size: 1.25rem;
    }
}

/* Price Block Additions */
.price-block {
    display: flex;
    flex-direction: column;
}

.old-price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2px;
}

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

.discount-tag {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.qv-price .price-block .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
}

/* ============================================================
   VARIANT SELECTION MODAL - Premium Redesign
   ============================================================ */

.variant-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 12, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.variant-modal-overlay.active { opacity: 1; pointer-events: all; }

.variant-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    width: min(520px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 24px;
    z-index: 1501;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.38s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease;
    opacity: 0; pointer-events: none;
}
.variant-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: all;
}
.variant-modal::-webkit-scrollbar { width: 4px; }
.variant-modal::-webkit-scrollbar-track { background: transparent; }
.variant-modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.variant-modal-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.25rem;
    gap: 1rem; position: relative;
}
.variant-modal-header::after {
    content: ''; position: absolute; bottom: 0; left: 1.5rem; right: 1.5rem;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}
.variant-modal-product {
    display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0;
}
.variant-modal-product img {
    width: 76px; height: 76px; object-fit: contain; border-radius: 16px;
    background: var(--bg); border: 1px solid var(--border);
    flex-shrink: 0; padding: 4px; transition: transform 0.3s ease;
}
.variant-modal-product img:hover { transform: scale(1.04); }
.variant-modal-product h3 {
    font-size: 1rem; font-weight: 700; line-height: 1.3;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.variant-modal-product .price-block { margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.variant-modal-product .price { font-size: 1.1rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.variant-modal-product .old-price-container { display: flex; align-items: center; gap: 0.35rem; }
.variant-modal-product .old-price { font-size: 0.75rem; }
.variant-modal-product .discount-tag { font-size: 0.68rem; padding: 2px 7px; border-radius: 50px; }
.variant-modal-header .close-btn {
    flex-shrink: 0; width: 36px; height: 36px;
    border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; color: var(--muted); transition: all 0.2s;
}
.variant-modal-header .close-btn:hover {
    background: var(--primary); color: #fff;
    border-color: var(--primary); transform: rotate(90deg);
}
.variant-modal-body {
    padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1.6rem;
}
.variant-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.74rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.variant-label::before {
    content: ''; display: inline-block; width: 3px; height: 14px;
    background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.variant-selected-label {
    color: var(--text); text-transform: none;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.color-swatch {
    position: relative; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; border: none; outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.color-swatch::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%; border: 2.5px solid transparent;
    transition: border-color 0.2s; pointer-events: none;
}
.color-swatch:hover { transform: scale(1.18); }
.color-swatch.active { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.color-swatch.active::after { border-color: var(--primary); }
.color-swatch.active::before {
    content: '\2713'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5); pointer-events: none;
}
.storage-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.storage-pill {
    padding: 0.55rem 1.15rem; border: 1.5px solid var(--border); border-radius: 12px;
    font-size: 0.84rem; font-weight: 700; cursor: pointer;
    background: var(--bg); color: var(--muted); letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.storage-pill:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.storage-pill.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}
.variant-modal-footer {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border); background: var(--bg);
}
.variant-modal-footer .btn {
    font-size: 0.9rem; font-weight: 700; padding: 0.8rem 1rem;
    border-radius: 14px; display: flex; align-items: center;
    justify-content: center; gap: 0.5rem; letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.variant-modal-footer .btn:hover { transform: translateY(-2px); }
.variant-modal-footer .btn-secondary { border: 1.5px solid var(--border); background: var(--surface); }
.variant-modal-footer .btn-primary { box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.cart-item-variant {
    font-size: 0.72rem; color: var(--muted); margin-top: 3px;
    display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.cart-item-variant span {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 1px 7px; font-weight: 600; letter-spacing: 0.01em;
}
/* ============================================================
   DIRECT BUY-NOW ORDER FLOW (DBO) — 3-Step Modal
   ============================================================ */

/* Overlay */
.dbo-overlay {
    position: fixed; inset: 0;
    background: rgba(10,12,20,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1600;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.dbo-overlay.active { opacity: 1; pointer-events: all; }

/* Modal */
.dbo-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    width: min(540px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    z-index: 1601;
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
    opacity: 0; pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1), opacity 0.28s ease;
}
.dbo-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: all;
}
.dbo-modal::-webkit-scrollbar { width: 4px; }
.dbo-modal::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* Header with steps */
.dbo-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #f1f3f5;
    position: sticky; top: 0;
    background: #fff; z-index: 5;
}
.dbo-steps {
    display: flex; align-items: center; gap: 0;
}
.dbo-step {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
    background: #f1f3f5; color: #9ca3af;
    transition: all 0.25s;
    flex-shrink: 0;
}
.dbo-step.active {
    background: var(--primary); color: #fff;
    box-shadow: 0 3px 10px rgba(11,94,215,0.35);
}
.dbo-step.done {
    background: #22c55e; color: #fff;
    font-size: 0.85rem;
}
.dbo-step-line {
    width: 36px; height: 2px;
    background: #e5e7eb; transition: background 0.3s;
    flex-shrink: 0;
}
.dbo-step-line.done { background: #22c55e; }

.dbo-close-btn {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f3f5; border: none; cursor: pointer;
    font-size: 1.1rem; color: #6b7280;
    transition: all 0.18s;
}
.dbo-close-btn:hover { background: #fee2e2; color: #ef4444; }

/* Product bar (mini summary in step 2) */
.dbo-product-bar {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.75rem 1.4rem;
    background: #f8faff;
    border-bottom: 1px solid #e9edf5;
}
.dbo-product-bar img {
    width: 48px; height: 48px; object-fit: contain;
    border-radius: 10px; background: #fff;
    border: 1px solid #e5e7eb; padding: 3px; flex-shrink: 0;
}
.dbo-bar-info { flex: 1; min-width: 0; }
.dbo-bar-name {
    font-size: 0.82rem; font-weight: 700; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dbo-bar-variant { font-size: 0.72rem; color: #6b7280; margin-top: 1px; }
.dbo-bar-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); flex-shrink: 0; }

/* Body */
.dbo-body { padding: 1.2rem 1.4rem; }
.dbo-title {
    font-size: 0.9rem; font-weight: 700; color: #111827;
    display: flex; align-items: center; gap: 0.45rem;
    margin-bottom: 1rem;
}
.dbo-title i { color: var(--primary); font-size: 1.05rem; }

/* Form fields */
.dbo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dbo-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.dbo-field:last-child { margin-bottom: 0; }
.dbo-field label {
    font-size: 0.78rem; font-weight: 600; color: #374151;
    display: flex; align-items: center; gap: 0.3rem;
}
.req { color: #ef4444; }
.opt { font-weight: 400; color: #9ca3af; font-size: 0.72rem; }
.dbo-field input, .dbo-field textarea {
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 0.55rem 0.75rem; font-family: inherit;
    font-size: 0.875rem; color: #111827; background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none; resize: vertical;
}
.dbo-field input:focus, .dbo-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
}
.dbo-field input.error, .dbo-field textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
.field-err { font-size: 0.72rem; color: #ef4444; min-height: 14px; }

/* Review card (product) */
.dbo-review-card {
    display: flex; gap: 1rem; align-items: center;
    background: #f8faff; border: 1px solid #e9edf5;
    border-radius: 14px; padding: 1rem;
    margin-bottom: 1rem;
}
.dbo-review-card img {
    width: 70px; height: 70px; object-fit: contain;
    border-radius: 10px; background: #fff;
    border: 1px solid #e5e7eb; padding: 4px; flex-shrink: 0;
}
.dbo-review-product-info { flex: 1; }
.dbo-rev-name { font-size: 0.92rem; font-weight: 700; color: #111827; margin-bottom: 0.25rem; }
.dbo-rev-variant {
    font-size: 0.75rem; color: #6b7280; margin-bottom: 0.4rem;
    display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.dbo-rev-variant span {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 5px; padding: 1px 7px; font-weight: 600;
}
.dbo-rev-price { font-size: 1rem; font-weight: 800; color: var(--primary); }

/* Review section (customer info) */
.dbo-review-section {
    border: 1px solid #e9edf5; border-radius: 12px;
    overflow: hidden; margin-bottom: 1rem;
}
.dbo-review-section-title {
    padding: 0.55rem 0.9rem;
    background: #f8faff; font-size: 0.76rem;
    font-weight: 700; color: #374151;
    display: flex; align-items: center; gap: 0.4rem;
    border-bottom: 1px solid #e9edf5;
}
.dbo-review-section-title i { color: var(--primary); }
.dbo-review-rows { padding: 0.5rem 0.9rem; }
.dbo-review-row {
    display: flex; justify-content: space-between;
    gap: 1rem; padding: 0.35rem 0;
    border-bottom: 1px solid #f3f4f6; font-size: 0.8rem;
}
.dbo-review-row:last-child { border-bottom: none; }
.dbo-review-row .label { color: #6b7280; font-weight: 500; flex-shrink: 0; }
.dbo-review-row .value { color: #111827; font-weight: 600; text-align: right; }

/* Price summary */
.dbo-price-summary {
    background: #f8faff; border: 1px solid #e9edf5;
    border-radius: 12px; padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}
.dbo-price-row {
    display: flex; justify-content: space-between;
    align-items: center; padding: 0.3rem 0;
    font-size: 0.82rem; border-bottom: 1px solid #f1f3f5;
}
.dbo-price-row:last-child { border-bottom: none; }
.dbo-price-row.total {
    font-size: 0.95rem; font-weight: 800;
    color: var(--primary); padding-top: 0.5rem; margin-top: 0.15rem;
}
.text-green { color: #22c55e; font-weight: 600; }

/* Confirm note */
.dbo-confirm-note {
    font-size: 0.75rem; color: #6b7280;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 8px; padding: 0.6rem 0.8rem;
    display: flex; align-items: flex-start; gap: 0.4rem; line-height: 1.5;
}
.dbo-confirm-note i { color: #f59e0b; font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

/* Footer */
.dbo-footer {
    display: flex; gap: 0.65rem;
    padding: 1rem 1.4rem 1.2rem;
    border-top: 1px solid #f1f3f5;
    background: #fff;
    position: sticky; bottom: 0;
}
.dbo-btn-back {
    padding: 0.7rem 1.1rem; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; gap: 0.35rem;
    background: #f1f3f5; color: #374151; border: none;
    display: flex; align-items: center; transition: all 0.18s;
    flex-shrink: 0;
}
.dbo-btn-back:hover { background: #e5e7eb; }
.dbo-btn-next, .dbo-btn-confirm {
    flex: 1; padding: 0.7rem 1.2rem;
    border-radius: 10px; font-size: 0.88rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    transition: all 0.2s;
}
.dbo-btn-confirm {
    background: #16a34a; border-color: #16a34a;
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}
.dbo-btn-confirm:hover {
    background: #15803d; transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22,163,74,0.4);
}

/* ============================================================
   ORDERS SIDEBAR + ORDER DETAIL MODAL
   ============================================================ */

/* Header badge */
.orders-header-badge {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444; border: 2px solid #fff;
}
#ordersBtn { position: relative; }

/* Sidebar overlay */
.orders-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(10,12,20,0.45);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s;
}
.orders-overlay.active { opacity: 1; pointer-events: all; }

/* Sidebar */
.orders-sidebar {
    position: fixed; top: 0; right: -460px; height: 100vh;
    max-height: 100vh;
    width: 440px; max-width: 96vw;
    background: #fff; z-index: 1101;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
}
.orders-sidebar.open { right: 0; }

.orders-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}
.orders-header-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1rem; font-weight: 700; color: #111827;
}
.orders-header-title i { font-size: 1.2rem; color: var(--primary); }

/* Filter tabs */
.orders-tabs {
    display: flex; gap: 0;
    padding: 0 1rem;
    border-bottom: 1px solid #f1f3f5;
    overflow-x: auto; flex-shrink: 0;
}
.orders-tabs::-webkit-scrollbar { display: none; }
.orders-tab {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem; font-weight: 600; color: #6b7280;
    border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
}
.orders-tab:hover { color: var(--primary); }
.orders-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Orders list */
.orders-list {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 3rem;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.orders-list::-webkit-scrollbar { width: 7px; }
.orders-list::-webkit-scrollbar-track { background: #f8fafc; }
.orders-list::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 99px; }
.orders-list::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Empty state */
.orders-empty {
    text-align: center; padding: 3rem 1rem; color: #9ca3af;
}
.orders-empty i { font-size: 3rem; display: block; margin-bottom: 0.75rem; color: #d1d5db; }
.orders-empty p { font-size: 0.88rem; }

/* Order card */
.order-card {
    border: 1px solid #e9edf5; border-radius: 14px;
    overflow: hidden; cursor: pointer;
    flex-shrink: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.order-card:hover { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(11,94,215,0.1); }

.order-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 0.9rem;
    background: #f8faff; border-bottom: 1px solid #e9edf5;
}
.order-card-id { font-size: 0.72rem; font-weight: 700; color: #374151; }
.order-card-date { font-size: 0.68rem; color: #9ca3af; }
.order-status-badge {
    font-size: 0.62rem; font-weight: 700; padding: 2px 8px;
    border-radius: 50px; letter-spacing: 0.03em;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-shipping  { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-card-body {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.8rem 0.9rem;
}
.order-card-img {
    width: 52px; height: 52px; object-fit: contain;
    border-radius: 8px; background: #f8faff;
    border: 1px solid #e5e7eb; padding: 3px; flex-shrink: 0;
}
.order-card-info { flex: 1; min-width: 0; }
.order-card-name { font-size: 0.82rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.order-card-variant { font-size: 0.7rem; color: #6b7280; }
.order-card-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); flex-shrink: 0; }

/* Mini progress bar on card */
.order-card-progress {
    padding: 0 0.9rem 0.75rem;
    display: flex; gap: 0; align-items: center;
}
.order-prog-step {
    flex: 1; height: 3px; background: #e5e7eb; border-radius: 2px;
    margin: 0 1px;
    transition: background 0.3s;
}
.order-prog-step.done { background: #22c55e; }
.order-prog-step.active { background: var(--primary); }

/* Cancel timer */
.order-cancel-timer {
    padding: 0 0.9rem 0.7rem;
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.68rem; color: #f59e0b;
    font-weight: 600;
}
.order-cancel-timer i { font-size: 0.8rem; }

/* ===== ORDER DETAIL MODAL ===== */
.order-detail-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(10,12,20,0.5);
    backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s;
}
.order-detail-overlay.active { opacity: 1; pointer-events: all; }

.order-detail-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: min(560px, 96vw); max-height: 92vh;
    overflow-y: auto; background: #fff;
    border-radius: 20px; z-index: 1201;
    box-shadow: 0 24px 70px rgba(0,0,0,0.2);
    opacity: 0; pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.34,1.2,0.64,1), opacity 0.27s;
}
.order-detail-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: all;
}
.order-detail-modal::-webkit-scrollbar { width: 4px; }
.order-detail-modal::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.order-detail-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid #f1f3f5;
    position: sticky; top: 0; background: #fff; z-index: 5;
}
.order-detail-id { font-size: 1rem; font-weight: 800; color: #111827; }
.order-detail-date { font-size: 0.74rem; color: #9ca3af; margin-top: 2px; }

.order-detail-body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }

/* Timeline */
.order-timeline {
    display: flex; align-items: flex-start; gap: 0;
    padding: 1rem;
    background: #f8faff; border: 1px solid #e9edf5; border-radius: 14px;
    overflow-x: auto;
}
.tl-step {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; min-width: 72px; position: relative;
}
.tl-step:not(:last-child)::after {
    content: ''; position: absolute;
    top: 14px; left: 50%; width: 100%; height: 2px;
    background: #e5e7eb; z-index: 0;
}
.tl-step.done:not(:last-child)::after { background: #22c55e; }
.tl-step.active:not(:last-child)::after { background: #bfdbfe; }

.tl-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; z-index: 1; position: relative;
    background: #e5e7eb; color: #9ca3af; flex-shrink: 0;
    transition: all 0.3s;
}
.tl-step.done .tl-icon { background: #22c55e; color: #fff; }
.tl-step.active .tl-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 0 4px rgba(11,94,215,0.15);
    animation: tlPulse 2s infinite;
}
.tl-step.cancelled .tl-icon { background: #ef4444; color: #fff; }
@keyframes tlPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(11,94,215,0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(11,94,215,0.08); }
}
.tl-label { font-size: 0.62rem; font-weight: 600; color: #9ca3af; margin-top: 5px; text-align: center; }
.tl-step.done .tl-label { color: #16a34a; }
.tl-step.active .tl-label { color: var(--primary); }
.tl-step.cancelled .tl-label { color: #ef4444; }
.tl-time { font-size: 0.58rem; color: #d1d5db; text-align: center; margin-top: 1px; }

/* Detail sections */
.od-section-title {
    font-size: 0.78rem; font-weight: 700; color: #374151;
    display: flex; align-items: center; gap: 0.4rem;
}
.od-section-title i { color: var(--primary); }

.od-product-card {
    display: flex; gap: 0.9rem; align-items: center;
    background: #f8faff; border: 1px solid #e9edf5;
    border-radius: 12px; padding: 0.9rem;
}
.od-product-card img {
    width: 64px; height: 64px; object-fit: contain;
    border-radius: 10px; background: #fff;
    border: 1px solid #e5e7eb; padding: 3px; flex-shrink: 0;
}
.od-prod-name { font-size: 0.88rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.od-prod-variant { font-size: 0.72rem; color: #6b7280; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.od-prod-variant span {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 5px; padding: 1px 7px; font-weight: 600;
}
.od-prod-price { font-size: 1rem; font-weight: 800; color: var(--primary); margin-top: 4px; }

.od-info-table {
    border: 1px solid #e9edf5; border-radius: 12px; overflow: hidden;
}
.od-info-row {
    display: flex; gap: 1rem;
    padding: 0.5rem 0.85rem; border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
}
.od-info-row:last-child { border-bottom: none; }
.od-info-label { color: #6b7280; font-weight: 500; width: 90px; flex-shrink: 0; }
.od-info-value { color: #111827; font-weight: 600; }

.od-price-table {
    background: #f8faff; border: 1px solid #e9edf5;
    border-radius: 12px; padding: 0.6rem 0.85rem;
}
.od-price-row {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; padding: 0.28rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.od-price-row:last-child { border-bottom: none; }
.od-price-row.total { font-size: 0.92rem; font-weight: 800; color: var(--primary); padding-top: 0.45rem; margin-top: 0.1rem; }

/* Detail footer */
.order-detail-footer {
    padding: 1rem 1.4rem 1.2rem;
    border-top: 1px solid #f1f3f5;
    display: flex; gap: 0.65rem;
    position: sticky; bottom: 0; background: #fff;
}
.od-btn-close {
    flex: 1; padding: 0.7rem; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600;
    background: #f1f3f5; border: none; cursor: pointer;
    transition: background 0.18s;
}
.od-btn-close:hover { background: #e5e7eb; }
.od-btn-cancel {
    flex: 1; padding: 0.7rem; border-radius: 10px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer;
    background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    transition: all 0.18s;
}
.od-btn-cancel:hover { background: #fecaca; }
.od-cancel-info {
    width: 100%; text-align: center; font-size: 0.72rem; color: #f59e0b;
    font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}

/* ============================================================
   WISHLIST SIDEBAR
   ============================================================ */

/* Header badge on heart icon */
#wishlistHeaderBtn { position: relative; }
.wl-header-badge {
    position: absolute; top: 4px; right: 4px;
    min-width: 16px; height: 16px; border-radius: 50px;
    background: #ef4444; border: 2px solid #fff;
    color: #fff; font-size: 0.55rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1;
}
#wishlistHeaderBtn.has-items i { color: #ef4444; }

/* Overlay */
.wl-overlay {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(10,12,20,0.45); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.wl-overlay.active { opacity: 1; pointer-events: all; }

/* Sidebar panel */
.wl-sidebar {
    position: fixed; top: 0; right: -460px; height: 100vh;
    max-height: 100vh;
    width: 440px; max-width: 96vw;
    background: #fff; z-index: 1051;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
}
.wl-sidebar.open { right: 0; }

/* Header */
.wl-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5; flex-shrink: 0;
}
.wl-header-title {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 1rem; font-weight: 700; color: #111827;
}
.wl-header-title i { color: #ef4444; font-size: 1.2rem; }
.wl-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wl-clear-btn {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; font-weight: 600; color: #9ca3af;
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: all 0.18s;
}
.wl-clear-btn:hover { color: #ef4444; background: #fef2f2; }

/* Filter bar */
.wl-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid #f1f3f5; flex-shrink: 0;
    background: #fafafa;
}
.wl-count { font-size: 0.75rem; color: #6b7280; font-weight: 600; }
.wl-sort-select {
    font-size: 0.72rem; font-weight: 600; color: #374151;
    border: 1px solid #e5e7eb; border-radius: 7px;
    padding: 0.28rem 0.55rem; background: #fff; cursor: pointer;
    outline: none; font-family: inherit;
    transition: border-color 0.18s;
}
.wl-sort-select:focus { border-color: var(--primary); }

/* Items list */
.wl-list {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 3rem;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.wl-list::-webkit-scrollbar { width: 7px; }
.wl-list::-webkit-scrollbar-track { background: #f8fafc; }
.wl-list::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 99px; }
.wl-list::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Empty state */
.wl-empty {
    text-align: center; padding: 3rem 1rem; color: #9ca3af;
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.75rem;
}
.wl-empty-icon { font-size: 3.5rem; color: #fecaca; }
.wl-empty h4 { font-size: 0.95rem; color: #374151; font-weight: 700; margin: 0; }
.wl-empty p { font-size: 0.8rem; margin: 0; }
.wl-empty .btn { margin-top: 0.5rem; font-size: 0.82rem; padding: 0.55rem 1.2rem; }

/* Wishlist item card */
.wl-item {
    display: flex; align-items: center; gap: 0.75rem;
    background: #fff; border: 1px solid #e9edf5; border-radius: 14px;
    padding: 0.75rem 0.85rem; position: relative;
    flex-shrink: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.wl-item:hover { border-color: #bfdbfe; box-shadow: 0 3px 12px rgba(11,94,215,0.08); }

.wl-item-img {
    width: 60px; height: 60px; object-fit: contain;
    border-radius: 10px; background: #f8faff;
    border: 1px solid #e5e7eb; padding: 4px; flex-shrink: 0;
    cursor: pointer; transition: opacity 0.18s;
}
.wl-item-img:hover { opacity: 0.85; }

.wl-item-info { flex: 1; min-width: 0; }
.wl-item-name {
    font-size: 0.82rem; font-weight: 700; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer; margin-bottom: 2px;
}
.wl-item-name:hover { color: var(--primary); }
.wl-item-badge {
    display: inline-block; font-size: 0.58rem; font-weight: 800;
    padding: 1px 6px; border-radius: 4px; margin-bottom: 3px;
    letter-spacing: 0.03em;
}
.wl-item-rating {
    font-size: 0.68rem; color: #f59e0b; font-weight: 600;
    display: flex; align-items: center; gap: 2px; margin-bottom: 3px;
}
.wl-item-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.wl-item-old-price { font-size: 0.7rem; color: #9ca3af; text-decoration: line-through; margin-left: 4px; }

.wl-item-actions { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.wl-btn-cart {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; transition: all 0.18s;
}
.wl-btn-cart:hover { background: #1d4ed8; transform: scale(1.06); }
.wl-btn-remove {
    width: 34px; height: 34px; border-radius: 9px;
    background: #fef2f2; color: #ef4444; border: 1px solid #fecaca;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; transition: all 0.18s;
}
.wl-btn-remove:hover { background: #fee2e2; transform: scale(1.06); }

/* Added-date label */
.wl-item-date {
    position: absolute; top: 6px; right: 6px;
    font-size: 0.58rem; color: #d1d5db;
}

/* Footer */
.wl-footer {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #f1f3f5; flex-shrink: 0;
}
.wl-add-all-btn {
    width: 100%; padding: 0.75rem;
    font-size: 0.88rem; font-weight: 700;
    border-radius: 12px; gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(11,94,215,0.25);
}

/* ============================================================
   LIVE CHAT BOX WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    font-family: inherit;
}

/* Floating Toggle Button */
.chat-toggle-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5ed7 0%, #1e40af 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 94, 215, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.5);
}

.chat-toggle-btn .chat-icon-close {
    display: none;
}

.chat-widget.active .chat-toggle-btn .chat-icon-open {
    display: none;
}

.chat-widget.active .chat-toggle-btn .chat-icon-close {
    display: block;
    font-size: 1.9rem;
}

/* Green Online Dot */
.chat-online-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2.5px solid #fff;
    border-radius: 50%;
}

.chat-online-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    opacity: 0.6;
    animation: chatPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes chatPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Tooltip message next to button */
.chat-toggle-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #fff;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-toggle-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.chat-toggle-tooltip i {
    color: #facc15;
    font-size: 1rem;
}

.chat-widget.active .chat-toggle-tooltip,
.chat-toggle-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 530px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.active .chat-window {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #1e40af 100%);
    color: #fff;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    flex-shrink: 0;
}

.chat-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #0b5ed7;
    border-radius: 50%;
}

.chat-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.chat-header-subtitle {
    font-size: 0.72rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.online-indicator {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chat-header-actions {
    display: flex;
    gap: 0.35rem;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.2s;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chat-msg-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-end;
}

.chat-msg-row.user {
    justify-content: flex-end;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b5ed7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.chat-bubble {
    padding: 0.7rem 0.95rem;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 86%;
}

.chat-bubble.user {
    background: #0b5ed7;
    color: #ffffff;
    border-radius: 16px 16px 4px 16px;
    max-width: 82%;
    box-shadow: 0 2px 8px rgba(11, 94, 215, 0.2);
}

.chat-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 4px;
    text-align: right;
}

.chat-bubble.user .chat-time {
    color: rgba(255, 255, 255, 0.75);
}

/* Chat Product Card */
.chat-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.chat-product-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-product-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 3px 10px rgba(11, 94, 215, 0.08);
}

.chat-product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.chat-product-info {
    flex: 1;
    min-width: 0;
}

.chat-product-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-product-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0b5ed7;
    margin-top: 2px;
}

.chat-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-btn-view, .chat-btn-buy {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}

.chat-btn-view {
    background: #eff6ff;
    color: #0b5ed7;
    border: 1px solid #bfdbfe;
}
.chat-btn-view:hover {
    background: #dbeafe;
}

.chat-btn-buy {
    background: #0b5ed7;
    color: #fff;
}
.chat-btn-buy:hover {
    background: #1d4ed8;
}

/* Quick Chips Bar */
.chat-quick-chips {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.55rem 0.8rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.chat-quick-chips::-webkit-scrollbar {
    height: 3px;
}

.chat-quick-chips::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.chat-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-chip:hover {
    background: #eff6ff;
    color: #0b5ed7;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

/* Input Area */
.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    align-items: center;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 99px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.chat-input-area input:focus {
    border-color: #0b5ed7;
    background: #ffffff;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b5ed7;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.18s, background 0.18s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

@keyframes chatBlink {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.15); opacity: 1; }
}

/* Gemini API Panel */
.chat-api-panel {
    background: #0f172a;
    color: #f8fafc;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
    animation: slideDown 0.25s ease forwards;
}

.chat-api-panel.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-api-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.chat-api-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.chat-api-desc {
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.55rem;
}

.chat-api-form {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.chat-api-form input {
    flex: 1;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    outline: none;
    font-family: inherit;
}

.chat-api-form input:focus {
    border-color: #60a5fa;
}

.chat-api-form button {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.chat-api-form button:hover {
    background: #1d4ed8;
}

.chat-api-status {
    font-size: 0.74rem;
    margin-bottom: 0.3rem;
    min-height: 16px;
}

.chat-api-status.success { color: #4ade80; }
.chat-api-status.error { color: #f87171; }

.chat-api-links a {
    color: #93c5fd;
    text-decoration: underline;
    font-size: 0.73rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Chat Alert Box & API Activation */
.chat-alert-box {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0.35rem 0;
}

.chat-alert-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.chat-alert-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.chat-alert-title {
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-alert-box.warning .chat-alert-title {
    color: #b45309;
}

.chat-btn-enable-api {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    background: #0b5ed7;
    color: #ffffff !important;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(11, 94, 215, 0.25);
    transition: transform 0.18s, background 0.18s;
}

.chat-btn-enable-api:hover {
    background: #0947a7;
    transform: translateY(-1px);
}

/* ============================================================
   USER AUTHENTICATION, LOGIN (GOOGLE / PHONE OTP), & PROFILE
   ============================================================ */

/* ── Top Bar Auth Link ── */
.top-bar-auth-btn {
    color: inherit;
    font-weight: 600;
    transition: color 0.18s;
}
.top-bar-auth-btn:hover {
    color: #93c5fd;
}

/* ── Header Auth Button ── */
.auth-header-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.auth-header-btn {
    width: auto !important;
    min-height: 40px;
    padding: 0 12px !important;
    border-radius: 99px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(11, 94, 215, 0.08) !important;
    color: #0b5ed7 !important;
    border: 1px solid rgba(11, 94, 215, 0.22) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    white-space: nowrap;
}

.auth-header-btn:hover {
    background: #0b5ed7 !important;
    color: #ffffff !important;
    border-color: #0b5ed7 !important;
    box-shadow: 0 4px 14px rgba(11, 94, 215, 0.35);
    transform: translateY(-1px);
}

.auth-header-btn.logged-in {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    padding-left: 6px !important;
}

.auth-header-btn.logged-in:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #0b5ed7 !important;
    box-shadow: 0 4px 14px rgba(11, 94, 215, 0.15);
}

.auth-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.auth-avatar-circle-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b5ed7;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.auth-btn-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-arrow-icon {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.auth-header-wrap.open .auth-arrow-icon {
    transform: rotate(180deg);
}

/* ── User Dropdown Menu ── */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    z-index: 1200;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.user-menu-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b5ed7;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(11, 94, 215, 0.25);
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-sub {
    font-size: 0.74rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.user-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
}

.user-menu-badge.customer-badge {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bfdbfe;
}

.user-menu-badge.admin-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}

.user-menu-body {
    padding: 8px 6px;
}

.user-menu-item {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s;
}

.user-menu-item:hover {
    background: #f1f5f9;
    color: #0b5ed7;
}

.user-menu-item i {
    font-size: 1.15rem;
    color: #64748b;
    transition: color 0.18s;
}

.user-menu-item:hover i {
    color: #0b5ed7;
}

.user-item-counter {
    margin-left: auto;
    background: #0b5ed7;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 50px;
}

.user-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.user-menu-logout {
    color: #dc2626 !important;
}

.user-menu-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.user-menu-logout i {
    color: #dc2626 !important;
}

/* ── SMS Toast Banner (Phone OTP incoming simulation) ── */
.sms-toast-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    color: #ffffff;
    border-radius: 20px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2500;
    max-width: 480px;
    width: calc(100% - 32px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.sms-toast-banner.show {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.sms-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sms-toast-content {
    flex: 1;
    min-width: 0;
}

.sms-toast-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.sms-toast-body {
    font-size: 0.82rem;
    color: #f1f5f9;
    line-height: 1.35;
}

.sms-code-highlight {
    color: #38bdf8;
    font-size: 0.98rem;
    letter-spacing: 2px;
    font-family: monospace;
}

.sms-toast-action {
    background: #0b5ed7;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
}

.sms-toast-action:hover {
    background: #1d4ed8;
    transform: scale(1.04);
}

.sms-toast-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    transition: color 0.18s;
}

.sms-toast-close:hover {
    color: #ffffff;
}

/* ── Auth Modal Overlay & Box ── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: min(440px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    z-index: 1301;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.auth-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal::-webkit-scrollbar {
    width: 4px;
}
.auth-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.4rem 0.5rem;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0b5ed7;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 50px;
}

.auth-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.auth-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.auth-modal-body {
    padding: 0.6rem 1.5rem 1.5rem;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 1.1rem;
    line-height: 1.4;
}

/* Google Login Button */
.btn-google-login {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    font-family: inherit;
}

.btn-google-login:hover {
    background: #f8fafc;
    border-color: #c2c7d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.google-badge-fast {
    position: absolute;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    padding: 2px 7px;
    border-radius: 50px;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 9px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #0b5ed7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Auth Form Fields */
.auth-input-group {
    margin-bottom: 0.85rem;
}

.auth-input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.auth-phone-field {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-country-flag {
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border-right: 1px solid #cbd5e1;
    height: 46px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.auth-phone-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #0f172a;
}

.auth-phone-field:focus-within {
    border-color: #0b5ed7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}

.auth-text-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-text-input:focus {
    border-color: #0b5ed7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}

.auth-submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.6rem;
    cursor: pointer;
}

.auth-quick-hint {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.75rem;
}

.auth-quick-hint a {
    color: #0b5ed7;
    text-decoration: underline;
    font-weight: 600;
}

/* OTP Verification UI */
.auth-otp-meta {
    margin-bottom: 0.85rem;
}

.auth-back-btn {
    background: none;
    border: none;
    color: #0b5ed7;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-bottom: 6px;
}

.auth-otp-instruction {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.4;
}

.otp-inputs-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1rem 0 0.4rem;
}

.otp-digit {
    width: 44px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
    font-family: inherit;
}

.otp-digit:focus {
    border-color: #0b5ed7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.15);
}

.otp-digit.filled {
    border-color: #0b5ed7;
    background: #eff6ff;
}

.otp-quick-test {
    text-align: center;
    margin: 0.6rem 0;
}

.btn-quick-otp {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-quick-otp:hover {
    background: #dcfce7;
    transform: translateY(-1px);
}

.otp-resend-box {
    text-align: center;
    font-size: 0.76rem;
    color: #64748b;
    margin: 0.5rem 0 0.8rem;
}

.btn-resend-link {
    background: none;
    border: none;
    color: #0b5ed7;
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Password Form Fields */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-size: 0.72rem;
    color: #0b5ed7;
    text-decoration: underline;
    font-weight: 600;
}

.auth-pwd-field {
    position: relative;
    display: flex;
    align-items: center;
}

.pwd-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
}

.auth-switch-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 1rem;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: #0b5ed7;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.auth-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1.1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
}

.auth-field-error {
    display: block;
    font-size: 0.72rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 3px;
    min-height: 14px;
}

/* ── Google Sign-in Picker Modal ── */
.google-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.google-picker-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.google-picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: min(420px, 94vw);
    background: #ffffff;
    border-radius: 28px;
    padding: 2rem 1.6rem 1.6rem;
    z-index: 1401;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    text-align: center;
}

.google-picker-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.google-picker-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 8px 0 2px;
}

.google-picker-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.2rem;
}

.google-picker-accounts {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    text-align: left;
}

.google-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.18s;
    border-bottom: 1px solid #f1f5f9;
}

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

.google-account-item:hover {
    background: #f8fafc;
}

.google-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-avatar-circle.custom-icon {
    background: #f1f5f9;
    color: #475569;
    font-size: 1.2rem;
}

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

.google-account-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.google-badge-you {
    font-size: 0.64rem;
    font-weight: 700;
    background: #eff6ff;
    color: #0b5ed7;
    padding: 1px 6px;
    border-radius: 50px;
}

.google-account-email {
    font-size: 0.75rem;
    color: #64748b;
}

.google-custom-form {
    text-align: left;
    margin-bottom: 1rem;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.google-custom-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.google-loading-state {
    padding: 2rem 1rem;
}

.google-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.google-loading-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.google-picker-footer p {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
}

.btn-google-cancel {
    background: none;
    border: none;
    color: #0b5ed7;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 4px 12px;
}

/* ── Profile Modal ── */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.profile-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.profile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: min(520px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    z-index: 1301;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.profile-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.profile-modal-body {
    padding: 1.4rem;
}

.profile-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 1.2rem;
}

.profile-avatar-big {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b5ed7;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
}

.profile-user-summary h4 {
    margin: 0 0 3px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    color: #0b5ed7;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 3px;
}

.profile-joined-text {
    font-size: 0.72rem;
    color: #64748b;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.2rem 0;
}

.profile-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.profile-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b5ed7;
}

.profile-stat-label {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.profile-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .auth-btn-text {
        display: none;
    }
    .auth-header-btn {
        width: 40px !important;
        padding: 0 !important;
        justify-content: center;
    }
    .auth-header-btn .auth-arrow-icon {
        display: none;
    }
    .otp-digit {
        width: 38px;
        height: 46px;
        font-size: 1.15rem;
    }
}

/* ============================================================
   STORE OWNER ADMIN DASHBOARD & REAL-TIME ORDER ALERTS
   ============================================================ */

/* ── Admin Header Button ── */
.admin-header-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 99px !important;
    padding: 0 14px !important;
    gap: 7px;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
    transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
}

.admin-header-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.admin-header-btn i {
    font-size: 1.15rem;
    color: #fef3c7;
}

.admin-orders-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: adminBadgePulse 2s infinite;
}

@keyframes adminBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

.user-menu-admin-item {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    margin-bottom: 6px;
}

.user-menu-admin-item:hover {
    background: #fef3c7 !important;
}

.admin-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d97706;
    margin-left: auto;
    animation: pulseDot 1.5s infinite;
}

.auth-admin-quick-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.btn-quick-admin-login {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s;
}

.btn-quick-admin-login:hover {
    background: #fef3c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.google-badge-admin {
    font-size: 0.64rem;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
    padding: 1px 7px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Real-Time Order Popup Alert ── */
.admin-new-order-popup {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 32px);
    background: #ffffff;
    border-left: 5px solid #ef4444;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 2600;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.admin-new-order-popup.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.aop-icon-pulse {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.aop-content {
    flex: 1;
    min-width: 0;
}

.aop-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.aop-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.04em;
}

.aop-time {
    font-size: 0.68rem;
    color: #94a3b8;
}

.aop-customer {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
}

.aop-product {
    font-size: 0.78rem;
    color: #0b5ed7;
    font-weight: 700;
}

.aop-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.btn-aop-view {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s;
}

.btn-aop-view:hover {
    background: #b91c1c;
}

.btn-aop-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.btn-aop-close:hover {
    color: #0f172a;
}

/* ── Store Owner Admin Portal Modal ── */
.admin-portal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.admin-portal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-portal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: min(1180px, 96vw);
    height: 92vh;
    max-height: 92vh;
    background: #f8fafc;
    border-radius: 24px;
    z-index: 1501;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.admin-portal-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* Admin Header */
.admin-portal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1.2rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.admin-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-crown-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.admin-portal-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 3px;
    color: #ffffff;
}

.admin-portal-sub {
    font-size: 0.76rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-portal-sub strong {
    color: #f8fafc;
}

.dot-sep {
    color: #64748b;
}

.admin-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

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

.btn-admin-ctrl {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-admin-ctrl:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-admin-accent {
    background: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    color: #ffffff !important;
}

.btn-admin-accent:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.4);
}

.admin-portal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 6px;
}

.admin-portal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Admin Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 1.2rem 1.6rem 0.6rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.admin-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.card-revenue .admin-stat-icon { background: #dcfce7; color: #166534; }
.card-orders .admin-stat-icon { background: #eff6ff; color: #1d4ed8; }
.card-pending .admin-stat-icon { background: #fef3c7; color: #b45309; }
.card-shipping .admin-stat-icon { background: #e0e7ff; color: #4338ca; }
.card-delivered .admin-stat-icon { background: #d1fae5; color: #065f46; }

.admin-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

/* Admin View Panels */
.admin-view-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#adminTelegramViewPanel {
    overflow-y: auto;
    padding: 1.5rem;
}

/* Admin Toolbar */
.admin-toolbar {
    flex-shrink: 0;
    padding: 1rem 1.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.admin-search-wrap {
    position: relative;
    width: min(340px, 100%);
}

.admin-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.admin-search-wrap input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 0 14px 0 36px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.admin-search-wrap input:focus {
    border-color: #0b5ed7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.admin-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-filter-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
}

.admin-filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-filter-pill.active {
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0b5ed7;
    box-shadow: 0 2px 8px rgba(11, 94, 215, 0.25);
}

/* Orders Feed Table */
.admin-table-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.6rem 2.5rem;
    background: #f8fafc;
}

.admin-table-container::-webkit-scrollbar {
    width: 8px;
}
.admin-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
.admin-table-container::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}
.admin-table-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.admin-orders-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Order Item Card (Store Owner Perspective) */
.admin-order-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
    display: grid;
    grid-template-columns: 200px 1fr 220px 180px;
    gap: 16px;
    align-items: center;
}

.admin-order-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 20px rgba(11, 94, 215, 0.08);
}

.admin-order-card.highlight-new {
    border-color: #ef4444;
    background: #fffafa;
}

/* Column 1: Order ID & Date */
.aoc-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aoc-id {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0b5ed7;
    font-family: monospace;
}

.aoc-time {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aoc-status-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    margin-top: 4px;
}

/* Column 2: Customer Details */
.aoc-customer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aoc-cust-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aoc-cust-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.aoc-phone-num {
    font-weight: 700;
    color: #334155;
}

.admin-call-btn, .admin-zalo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.18s;
}

.admin-call-btn {
    background: #dcfce7;
    color: #15803d;
}
.admin-call-btn:hover { background: #bbf7d0; transform: translateY(-1px); }

.admin-zalo-btn {
    background: #eff6ff;
    color: #0284c7;
}
.admin-zalo-btn:hover { background: #e0f2fe; transform: translateY(-1px); }

.aoc-cust-address {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

.aoc-cust-note {
    font-size: 0.7rem;
    color: #b45309;
    background: #fffbeb;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2px;
}

/* Column 3: Product & Total */
.aoc-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aoc-prod-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px;
    flex-shrink: 0;
}

.aoc-prod-info {
    flex: 1;
    min-width: 0;
}

.aoc-prod-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aoc-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
}
.aoc-items-list::-webkit-scrollbar {
    width: 4px;
}
.aoc-items-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.aoc-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
}
.aoc-item-row-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.aoc-item-row-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #1e293b;
}
.aoc-item-row-qty {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.aoc-prod-variant {
    font-size: 0.7rem;
    color: #64748b;
}

.aoc-total-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0b5ed7;
    margin-top: 2px;
}

/* Column 4: Status Changer & Actions */
.aoc-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.admin-status-select {
    width: 100%;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 8px;
    outline: none;
    background: #ffffff;
    cursor: pointer;
}

.aoc-btn-row {
    display: flex;
    gap: 5px;
    width: 100%;
    justify-content: flex-end;
}

.btn-aoc-action {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s;
}

.btn-aoc-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-aoc-del {
    color: #ef4444;
}
.btn-aoc-del:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Telegram Settings View */
.admin-subpanel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 1.6rem 0.6rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.btn-admin-back {
    background: none;
    border: none;
    color: #0b5ed7;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-telegram-guide-box {
    margin: 1.2rem 1.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 18px;
    color: #166534;
}

.admin-telegram-guide-box h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-telegram-guide-box ol {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    line-height: 1.6;
}

.admin-telegram-form {
    padding: 0 1.6rem 1.6rem;
    max-width: 600px;
}

.telegram-checkbox-wrap {
    margin: 1rem 0;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
}

.telegram-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.2rem;
}

/* ── Printable Invoice Modal ── */
.invoice-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.invoice-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.invoice-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    width: min(680px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    z-index: 1601;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s;
}

.invoice-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.invoice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.invoice-sheet {
    padding: 2rem;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.5;
}

.inv-brand-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0b5ed7;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.inv-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b5ed7;
}

.inv-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 1rem 0;
    color: #0f172a;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}

.inv-table th, .inv-table td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.inv-table th {
    background: #f8fafc;
    font-weight: 700;
}

.inv-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
}

@media print {
    body * { visibility: hidden; }
    .invoice-modal, .invoice-modal * { visibility: visible; }
    .invoice-modal {
        position: absolute;
        left: 0; top: 0; width: 100%;
        box-shadow: none; border-radius: 0;
        transform: none !important;
    }
    .no-print { display: none !important; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-order-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .aoc-actions {
        align-items: flex-start;
    }
    .admin-header-controls .btn-admin-ctrl span {
        display: none;
    }
}



