/* =========================================================
   VIN SOCIALHUB — Dashboard v3 (ActiveStore-style shell)
   ========================================================= */

:root {
    --db-sidebar-w: 280px;
    --db-topbar-h: 64px;
    --db-botnav-h: 76px;
}

/* ---------- Shell ---------- */
.db-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}

.db-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.db-main {
    flex: 1;
    padding: 1.25rem 1rem calc(var(--db-botnav-h) + 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- Topbar ---------- */
.db-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.db-topbar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--db-topbar-h);
    padding: 0 1rem;
}
.db-topbar .db-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(245,158,11,0.6);
    white-space: nowrap;
}
.db-topbar .db-topbar-logo {
    display: none;
    align-items: center;
    margin: 0 auto;
}
.db-topbar .db-topbar-logo img { height: 34px; }
.db-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.db-topbar-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.db-topbar-btn:hover { background: var(--bg); color: var(--text); }
.db-balance-pill {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
}
.db-balance-pill .lbl { color: var(--text-muted); font-weight: 500; }
.db-balance-pill .val {
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #a855f7;
}

/* Mobile menu button */
.db-menu-btn {
    display: flex;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- Sidebar ---------- */
.db-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--db-sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.db-sidebar.open { transform: translateX(0); }

.db-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.db-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.db-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.db-sidebar-brand img { height: 42px; }
.db-sidebar-close {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--bg);
    border: none;
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.db-nav {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.db-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.18s;
}
.db-nav-item:hover { background: var(--bg); color: var(--text); }
.db-nav-item.active {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 700;
}
.db-nav-item .ic {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: currentColor;
}
.db-nav-item.active .ic { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.db-nav-item .chev {
    margin-left: auto;
    transition: transform 0.25s;
    color: var(--text-muted);
}
.db-nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.db-nav-item .vip-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.db-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-left: 1rem;
    margin-left: 1.35rem;
    border-left: 2px solid var(--border);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.2s;
}
.db-subnav.open {
    max-height: 1200px;
    opacity: 1;
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
}
.db-subnav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.15s;
}
.db-subnav a:hover { color: var(--primary); background: var(--bg); }
.db-subnav a.active { color: var(--primary); font-weight: 700; }
.db-subnav a img,
.db-subnav a .sub-ic {
    width: 20px; height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 800;
}

.db-sidebar-foot {
    padding: 0.75rem 1rem 1.25rem;
    border-top: 1px solid var(--border);
}
.db-sidebar .logout {
    color: #dc2626 !important;
}
.db-sidebar .logout .ic {
    background: rgba(239,68,68,0.1) !important;
    color: #dc2626;
}

/* ---------- Welcome card ---------- */
.db-welcome {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.5rem 1.35rem;
    color: #fff;
    background:
        radial-gradient(ellipse at top right, rgba(255,255,255,0.15), transparent 60%),
        linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #4c1d95 100%);
    box-shadow: 0 20px 40px -20px rgba(99,102,241,0.6);
    margin-bottom: 1.5rem;
}
.db-welcome::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.db-welcome-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
}
.db-welcome-avatar {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.db-welcome-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.db-welcome-name .check {
    width: 18px; height: 18px;
    color: #93c5fd;
}
.db-welcome-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.1rem;
}
.db-welcome-balance {
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1rem 1.15rem;
}
.db-welcome-balance .lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.db-welcome-balance .amt-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.db-welcome-balance .amt {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.db-welcome-balance .actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}
.db-welcome-balance .actions a,
.db-welcome-balance .actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.db-welcome-balance .actions a:hover,
.db-welcome-balance .actions button:hover {
    background: rgba(255,255,255,0.25);
}
.db-welcome-balance .actions .primary {
    background: #fff;
    color: #4c1d95;
    border-color: transparent;
}
.db-welcome-balance .actions .primary:hover {
    background: #f8fafc;
    color: #4338ca;
}

/* ---------- Section title ---------- */
.db-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 1.5rem 0 0.85rem;
    color: var(--text);
}
.db-section-title .ic {
    width: 28px; height: 28px;
    border-radius: 9px;
    background: var(--grad-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Action tiles ---------- */
.db-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.db-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 100px;
    padding: 0.85rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tile-color, var(--primary)) 50%, transparent);
    box-shadow: 0 12px 24px -14px var(--tile-color, rgba(99,102,241,0.5));
}
.db-tile-icon {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.35);
    flex-shrink: 0;
}
.db-tile-label {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}
.db-tile-full {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.75rem;
    min-height: 76px;
}

/* ---------- Product list ---------- */
.db-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.db-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #ec4899 100%);
    color: #fff;
}
.db-panel-head h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0;
}
.db-panel-head .p-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.db-panel-head .see-more {
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.db-panel-head .see-more:hover { color: #fff; }

.db-product-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.db-product-row:last-child { border-bottom: none; }
.db-product-row:hover { background: var(--bg); }
.db-product-thumb {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.db-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.db-product-thumb .ph { font-size: 1.4rem; opacity: 0.5; }

.db-product-main { min-width: 0; }
.db-product-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.db-product-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.db-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.db-chip.stock { background: rgba(16,185,129,0.12); color: #059669; }
.db-chip.stock-empty { background: rgba(239,68,68,0.12); color: #dc2626; }
.db-chip.price {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.db-product-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4d9fff, #4f46e5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    margin-left: auto;
    box-shadow: 0 6px 14px -6px rgba(79,70,229,0.6);
    transition: transform 0.2s;
}
.db-product-buy:hover { transform: translateY(-1px); }
.db-product-buy.disabled {
    background: var(--bg);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid var(--border);
}

/* ---------- Bottom nav (mobile) ---------- */
.db-botnav {
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 45;
    width: calc(100% - 1.5rem);
    max-width: 480px;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0.5rem;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.25);
}
.db-botnav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
}
.db-botnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 58px;
    border-radius: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.db-botnav-item svg { width: 20px; height: 20px; }
.db-botnav-item.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.db-botnav-item.center {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(124,58,237,0.7);
}
.db-botnav-item.center svg { width: 22px; height: 22px; }

/* ---------- Floating chat button ---------- */
.db-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--db-botnav-h) + 1rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 32px -12px rgba(99,102,241,0.7);
    cursor: pointer;
    transition: transform 0.2s;
}
.db-fab:hover { transform: translateY(-2px) scale(1.05); }

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 1024px) {
    .db-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
        width: var(--db-sidebar-w);
        flex-shrink: 0;
    }
    .db-sidebar-close { display: none; }
    .db-sidebar-backdrop { display: none !important; }
    .db-menu-btn { display: none; }

    .db-topbar .db-topbar-logo { display: none; }
    .db-topbar .db-cat-btn { display: none; }
    .db-balance-pill { display: inline-flex; }

    .db-main {
        padding: 2rem 2rem 3rem;
    }

    .db-tiles { grid-template-columns: repeat(4, 1fr); }
    .db-tiles .db-tile-full { grid-column: span 2; }
    .db-tile-label { font-size: 0.82rem; }

    .db-product-row {
        grid-template-columns: 60px 1fr auto;
        align-items: center;
    }
    .db-product-row .db-product-buy { margin-left: 0; }
    .db-product-thumb { width: 60px; height: 60px; }

    .db-botnav { display: none; }
    .db-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 60px; height: 60px;
    }
}

/* ---------- Small phone tweaks ---------- */
@media (max-width: 400px) {
    .db-tiles { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .db-tile { min-height: 92px; padding: 0.7rem 0.4rem; }
    .db-tile-icon { width: 36px; height: 36px; border-radius: 11px; }
    .db-tile-label { font-size: 0.68rem; }
    .db-welcome-balance .amt { font-size: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .db-sidebar, .db-sidebar-backdrop, .db-tile, .db-fab { transition: none !important; }
}
[data-theme="light"] #db-theme-toggle .moon { display: none; }
[data-theme="dark"]  #db-theme-toggle .sun  { display: none; }

/* =========================================================
   REFERRALS / VIP COMING SOON
   ========================================================= */

.ref-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(139,92,246,0.55), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(236,72,153,0.45), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #4c1d95 100%);
    box-shadow: 0 30px 60px -25px rgba(99,102,241,0.5);
    margin-bottom: 0.5rem;
}
.ref-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.07) 0, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.07) 0, transparent 35%);
    pointer-events: none;
}
.ref-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    animation: refFloat 12s ease-in-out infinite;
}
.ref-orb-1 {
    top: -60px; left: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
}
.ref-orb-2 {
    bottom: -80px; right: -50px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    animation-delay: -6s;
}
@keyframes refFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(20px,-15px) scale(1.08); }
}

.ref-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}
.ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.ref-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 1rem;
}
.ref-title-grad {
    background: linear-gradient(135deg, #a5b4fc 0%, #e879f9 55%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e879f9;
}
.ref-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    margin: 0 auto 2rem;
    max-width: 520px;
}

.ref-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    max-width: 460px;
    margin: 0 auto;
}
.ref-count-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.ref-count-item .num {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ref-count-item .lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* Feature grid */
.ref-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ref-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.35rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}
.ref-feature:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    box-shadow: 0 16px 32px -18px rgba(99,102,241,0.35);
}
.ref-feature-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.28);
}
.ref-feature h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 0.4rem;
    color: var(--text);
}
.ref-feature p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* CTA panel */
.ref-cta {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    background:
        radial-gradient(ellipse at top left, rgba(139,92,246,0.5), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(236,72,153,0.45), transparent 60%),
        linear-gradient(135deg, #1e1b4b, #4c1d95);
    text-align: center;
    color: #fff;
    box-shadow: 0 25px 50px -25px rgba(99,102,241,0.5);
}
.ref-cta::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    pointer-events: none;
}
.ref-cta-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.ref-cta-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin: 0 auto 1.15rem;
}
.ref-cta h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}
.ref-cta p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.ref-cta-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .ref-hero { padding: 2.25rem 1rem 2rem; border-radius: 20px; }
    .ref-title { font-size: 1.6rem; }
    .ref-sub { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .ref-count-item .num { font-size: 1.15rem; }
    .ref-count-item { padding: 0.7rem 0.35rem; border-radius: 12px; }
    .ref-count-item .lbl { font-size: 0.58rem; }
    .ref-features { grid-template-columns: 1fr; }
    .ref-feature { padding: 1.1rem; }
    .ref-cta { padding: 2rem 1.25rem; border-radius: 20px; }
    .ref-cta h3 { font-size: 1.15rem; }
    .ref-cta-actions { flex-direction: column; }
    .ref-cta-actions a { width: 100%; justify-content: center; }
}
/* =========================================================
   STICKY TOPBAR + STICKY SIDEBAR
   ========================================================= */

/* Root variables */
:root {
    --db-topbar-h: 64px;
    --db-sidebar-w: 280px;
    --db-botnav-h: 76px;
}

/* Body must allow sticky (clip, not hidden) */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* Kill any inherited body padding on account pages */
body.has-db-shell {
    padding-top: 0 !important;
}

/* ---------- TOPBAR — sticks to viewport top ---------- */
.db-topbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ---------- SHELL — flex-start so sidebar can shrink ---------- */
.db-shell {
    display: flex !important;
    align-items: flex-start !important;
    min-height: calc(100vh - var(--db-topbar-h)) !important;
    gap: 0 !important;
}

.db-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.db-main {
    padding: 1.25rem 1rem calc(var(--db-botnav-h) + 1.5rem) !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- DESKTOP — sidebar sticks just below topbar ---------- */
@media (min-width: 1024px) {
    .db-sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--db-topbar-h) !important;
        height: calc(100vh - var(--db-topbar-h)) !important;
        max-height: calc(100vh - var(--db-topbar-h)) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: flex-start !important;
        flex: 0 0 var(--db-sidebar-w) !important;
        width: var(--db-sidebar-w) !important;
        transform: none !important;
        z-index: 40 !important;
        overscroll-behavior: contain;
    }

    .db-main {
        padding: 2rem 2rem 3rem !important;
    }

    /* Slim scrollbar inside the sticky sidebar */
    .db-sidebar::-webkit-scrollbar { width: 6px; }
    .db-sidebar::-webkit-scrollbar-track { background: transparent; }
    .db-sidebar::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }
    .db-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}

/* ---------- MOBILE — topbar stays sticky ---------- */
@media (max-width: 1023px) {
    .db-topbar {
        position: sticky !important;
        top: 0 !important;
    }
    /* Sidebar remains a fixed drawer on mobile — do not override */
    .db-sidebar {
        position: fixed !important;
    }
}

/* ---------- Fallback for browsers without color-mix() ---------- */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .db-topbar {
        background: var(--surface) !important;
    }
}
/* =========================================================
   SUBMENU — Brand icon avatars
   ========================================================= */

.db-subnav a .sub-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow:
        0 2px 6px -2px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.2s;
}
.db-subnav a:hover .sub-brand {
    transform: scale(1.08);
}
.db-subnav a.active .sub-brand {
    box-shadow:
        0 4px 10px -3px rgba(99,102,241,0.6),
        0 0 0 2px var(--surface),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

/* =========================================================
   SHOP / CATEGORY / PRODUCT inside the account shell
   ========================================================= */

/* Shop wrapper inside the shell — no extra max-width, shell already constrains */
.shop-wrap-account {
    display: block;
}

/* Legacy shop page wrappers removed when inside db-shell */
.db-shell .shop-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.db-shell .shop-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
}

/* Hide the old shop filter sidebar (categories are in the account sidebar) */
.db-shell .shop-sidebar {
    display: none !important;
}

.db-shell .filter-toggle {
    display: none !important;
}

/* Product detail wrap — let the shell handle padding */
.db-shell .pd-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Page hero used inside shop/product/category — flatten it */
.db-shell .page-hero {
    padding: 1rem 0 1.5rem !important;
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 1.5rem !important;
}
.db-shell .page-hero h1 { font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important; }

/* Category chip row for shop page */
.shop-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}
.shop-chip:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.shop-chip.active {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px -6px rgba(99,102,241,0.55);
}
.shop-chip .count {
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    background: var(--bg);
    border-radius: 999px;
    color: var(--text-muted);
}
.shop-chip.active .count { background: rgba(255,255,255,0.25); color: #fff; }

/* Product grid — a bit tighter inside the shell */
/* =========================================================
   Product list — row layout (thumbnail left, details right)
   Overrides any earlier grid/stacked card styling
   ========================================================= */

.db-shell .product-grid,
.shop-main .product-grid,
.pd-related .product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
}

/* ---------- Card wrapper — horizontal row ---------- */
.db-shell .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 0.85rem !important;
    min-height: 120px !important;
}

/* ---------- Thumbnail — small square on the left ---------- */
.db-shell .product-card-media {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 110px !important;
    border-radius: 12px !important;
    align-self: center !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Shrink the brand tile so it fits inside the small thumbnail */
.db-shell .product-card-media .product-card-placeholder,
.db-shell .product-card-media .product-card-brand {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.db-shell .product-card-media .sub-brand {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25) !important;
}
.db-shell .product-card-media .sub-brand svg {
    width: 38px !important;
    height: 38px !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

/* Image thumbnail */
.db-shell .product-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ---------- Body — everything else on the right ---------- */
.db-shell .product-card-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    padding: 0.2rem 0 !important;
    justify-content: space-between !important;
}

/* ---------- Title + description ---------- */
.db-shell .product-card-category {
    font-size: 0.68rem !important;
    margin-bottom: 0 !important;
}

.db-shell .product-card-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.db-shell .product-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ---------- Footer — price + buy on one line ---------- */
.db-shell .product-card-footer {
    margin-top: auto !important;
    padding-top: 0.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
}

.db-shell .product-card-price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.3rem !important;
    margin: 0 !important;
}
.db-shell .product-card-price .currency {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
}
.db-shell .product-card-price .amount {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
}
.db-shell .product-card-price .price-compare {
    font-size: 0.76rem !important;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
}

.db-shell .product-card-footer .btn,
.db-shell .product-card-footer .btn-primary {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    width: auto !important;
    white-space: nowrap !important;
}

.db-shell .product-card-service-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
    .db-shell .product-card-media {
        flex: 0 0 88px !important;
        width: 88px !important;
        height: 88px !important;
    }
    .db-shell .product-card-media .sub-brand {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
    }
    .db-shell .product-card-media .sub-brand svg {
        width: 30px !important;
        height: 30px !important;
    }
    .db-shell .product-card-title {
        font-size: 0.88rem !important;
    }
    .db-shell .product-card-desc {
        display: none !important;
    }
    .db-shell .product-card-price .amount {
        font-size: 0.9rem !important;
    }
    .db-shell .product-card-footer .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.72rem !important;
    }
}
/* Base brand badge (sidebar) */
/* ============================================================
   Brand badge (sidebar + product cards)
   ============================================================ */

/* Base — small coloured tile used in the sidebar and the category chip */
.sub-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    color: #fff;
    line-height: 0;
}
.sub-brand svg { display: block; }

/* Small variant — used in the product-page category chip */
.sub-brand.sub-brand-sm {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

/* XL variant (kept for compatibility if you still use it elsewhere) */
.sub-brand.sub-brand-xl {
    width: auto;
    height: auto;
    padding: 1rem;
    border-radius: 20px;
}

/* ---- Plain variant — used in product cards ---- */
.sub-brand.sub-brand-plain {
    width: auto;
    height: auto;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: none;
    /* background set inline by the helper (10% tint of brand colour) */
}
.sub-brand.sub-brand-plain svg {
    width: 72px;
    height: 72px;
    /* The SVG is already brand-coloured by the helper. */
}

/* Fallback if for any reason the inline size didn't take */
.pd-placeholder-brand .sub-brand svg,
.product-card-brand .sub-brand svg {
    width: 72px;
    height: 72px;
}

/* Product-card media area — centre the tile */
.product-card-placeholder.product-card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg);
    min-height: 180px;
}

/* Product-page hero placeholder */
.pd-placeholder-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg);
    min-height: 320px;
}
/* ---- Hero variant — product detail main gallery ---- */
.sub-brand.sub-brand-plain.sub-brand-hero {
    width: auto;
    height: auto;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: none;
    max-width: none;
}
.sub-brand.sub-brand-plain.sub-brand-hero svg {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
}

/* Defeat aggressive `svg { max-width: 100% }` resets inside both placeholders */
.product-card-brand .sub-brand svg,
.pd-placeholder-brand .sub-brand svg {
    max-width: none !important;
    max-height: none !important;
}

/* Give the product-detail placeholder room for the bigger tile */
.pd-placeholder-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: var(--bg);
}
/* ---- Plain variant — product cards ---- */
.sub-brand.sub-brand-plain {
    width: auto;
    height: auto;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.sub-brand.sub-brand-plain svg {
    width: 72px;
    height: 72px;
    max-width: none;
    max-height: none;
}

/* ---- Hero variant — product detail main gallery ---- */
.sub-brand.sub-brand-plain.sub-brand-hero {
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.sub-brand.sub-brand-plain.sub-brand-hero svg {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
}

/* Kill `svg { max-width:100% }` resets inside both placeholders */
.product-card-brand .sub-brand svg,
.pd-placeholder-brand .sub-brand svg {
    max-width: none !important;
    max-height: none !important;
}
/* ============================================================
   Product-detail hero brand tile
   Fully self-contained — overrides any inherited opacity/filter
   ============================================================ */

/* Neutralise the global .placeholder fade for this specific case */
.pd-placeholder-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 420px !important;
    background: var(--bg) !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Anything inside the hero placeholder must be fully opaque */
.pd-placeholder-brand,
.pd-placeholder-brand * {
    opacity: 1 !important;
    filter: none !important;
}

/* The tile itself — sized purely by CSS so nothing can crop it */
.pd-placeholder-brand .brand-hero-tile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: 3rem !important;
    border-radius: 40px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.28) !important;
    overflow: visible !important;
    line-height: 0 !important;
    flex-shrink: 0 !important;
}

/* The SVG inside — locked at 140px, no caps, no fade */
.pd-placeholder-brand .brand-hero-tile svg {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
    overflow: visible !important;
}

/* Popular Products — solid brand tile in place of the missing image */
.db-product-thumb .db-brand-tile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    line-height: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
}
.db-product-thumb .db-brand-tile svg {
    width: 26px !important;
    height: 26px !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Keep the wrapper centred if it has its own size */
.db-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* =========================================================
   Dashboard marquee — announcement bar
   ========================================================= */

.db-marquee {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #ec4899 100%);
    box-shadow:
        0 10px 28px -12px rgba(124, 58, 237, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    isolation: isolate;
}

/* Soft top-highlight so it feels glassy, not flat */
.db-marquee::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 20% 0%,
        rgba(255, 255, 255, 0.18),
        transparent 55%
    );
    pointer-events: none;
    z-index: 0;
}

/* Optional subtle grain/gradient sweep on hover */
.db-marquee::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 1;
}
.db-marquee:hover::after {
    animation: dbMarqueeSheen 1.8s ease-out;
}

@keyframes dbMarqueeSheen {
    to { transform: translateX(100%); }
}

/* ---------- Track ---------- */
.db-marquee-track {
    position: relative;
    z-index: 2;
    display: flex;
    width: max-content;
    animation: dbMarqueeScroll 45s linear infinite;
    will-change: transform;
    padding: 0.7rem 0;
}
.db-marquee:hover .db-marquee-track {
    animation-play-state: paused;
}

/* ---------- Group of items ---------- */
.db-marquee-group {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.005em;
}
.db-marquee-group strong {
    font-weight: 800;
    color: #fff;
}
.db-marquee-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    font-size: 0.7rem;
}

/* Links inside the marquee */
.db-marquee a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.db-marquee a:hover {
    border-bottom-color: #fff;
    opacity: 0.9;
}

/* ---------- Scroll animation ----------
   We translate by -50% because the track contains two identical groups.
   That produces a seamless infinite loop. */
@keyframes dbMarqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Fade edges so text doesn't visibly cut off */
.db-marquee::before {
    /* Reuse ::before for edge mask too */
    background:
        linear-gradient(90deg, #7c3aed 0%, transparent 6%, transparent 94%, #ec4899 100%),
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.18), transparent 55%);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .db-marquee {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    .db-marquee-track {
        padding: 0.55rem 0;
        animation-duration: 32s;
    }
    .db-marquee-group {
        font-size: 0.76rem;
        gap: 1rem;
        padding-right: 1rem;
    }
    .db-marquee-sep {
        font-size: 0.6rem;
    }
}

/* ---------- Accessibility: honour reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .db-marquee-track {
        animation: none !important;
        transform: none !important;
    }
    .db-marquee::after {
        display: none;
    }
    /* Let the user scroll the content horizontally */
    .db-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}