/* ============================================================
   Rz Market — Premium Redesign
   Inspired by: Claude.ai (clean spacing), Venice.ai (dark elegance),
   Nebula Market (product card style). Sombre, sobre, premium.
   ============================================================ */

:root {
    /* Core palette — muted violet, no neon */
    --accent: #8b5cf6;
    --accent-soft: #a78bfa;
    --accent-dim: rgba(139, 92, 246, 0.15);
    --accent-glow: rgba(139, 92, 246, 0.08);

    /* Surfaces — deeper, richer blacks */
    --bg: #050507;
    --bg-raised: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(139, 92, 246, 0.06);
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Text */
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #63637a;

    /* Borders */
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(139, 92, 246, 0.2);
    --border-accent: rgba(139, 92, 246, 0.3);

    /* Misc */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;

    /* Layout */
    --max-w: 1200px;
    --header-h: 64px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
select { color-scheme: dark; }
option { background: var(--bg-raised); color: var(--text); }

body {
    font-family: var(--font);
    font-optical-sizing: auto;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: -0.006em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.brand-name, .hero-logo, .hero-title, .section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

button, input, textarea, select { letter-spacing: -0.008em; }

/* Smooth scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

a { color: var(--accent-soft); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ===================== BACKGROUND ===================== */
.bg-glow {
    position: fixed; inset: 0; z-index: -3;
    background:
        radial-gradient(ellipse 60% 40% at 50% -5%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 100%, rgba(139, 92, 246, 0.06), transparent 50%);
    pointer-events: none;
}

.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 80%);
    pointer-events: none;
}

.bg-particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.4; }
.cursor-spotlight { display: none; }
.cursor-trail { display: none; }
.cursor-arrow { display: none; }

/* ===================== HEADER ===================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { height: 32px; width: 32px; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

.lang-switch { display: flex; gap: 4px; margin-left: 8px; }
.lang-btn {
    font-size: 1rem; padding: 4px 6px; border-radius: 6px;
    opacity: 0.5; transition: opacity var(--transition);
    background: none; border: none; cursor: pointer;
}
.lang-btn.active, .lang-btn:hover { opacity: 1; }

.nav {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
    padding: 6px 12px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; white-space: nowrap;
    color: var(--text-secondary); transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-card-hover); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: grid; place-items: center;
    transition: background var(--transition);
}
.icon-btn:hover { background: var(--bg-card-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600;
    transition: all var(--transition); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover { background: #7c3aed; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35); }
.btn-ghost {
    background: var(--bg-card); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-hover); }
.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-card); }
.btn-lg { padding: 12px 24px; font-size: 0.9rem; border-radius: var(--radius); }

/* User menu */
.user-wrap { display: flex; align-items: center; gap: 10px; position: relative; }
.header-balance {
    font-size: 0.8rem; font-weight: 600; color: var(--accent-soft);
    background: var(--accent-dim); padding: 4px 10px; border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.header-balance:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--border-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}
.header-balance::before {
    content: "+ ";
    opacity: 0;
    transition: opacity 0.2s ease;
}
.header-balance:hover::before { opacity: 1; }
.user-menu {
    display: flex; align-items: center; gap: 8px; padding: 4px 8px;
    border-radius: var(--radius-sm); transition: background var(--transition);
}
.user-menu:hover { background: var(--bg-card-hover); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; }
.user-name { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }
.user-caret { width: 16px; height: 16px; color: var(--text-muted); }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px; min-width: 180px;
    box-shadow: var(--shadow-lg); z-index: 200;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 0.82rem; color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none; box-sizing: border-box;
}
a.dropdown-item { color: var(--text-secondary); }
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text); }
.dropdown-item svg { width: 16px; height: 16px; opacity: 0.6; }

/* ===================== VIP BADGE & PROFILE ===================== */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    text-transform: uppercase;
    animation: vip-glow 2s ease-in-out infinite alternate;
}

@keyframes vip-glow {
    from { box-shadow: 0 0 4px rgba(251, 191, 36, 0.2); }
    to { box-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
}

.is-vip .user-menu {
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
}

.is-vip .user-name {
    color: #fbbf24;
}

/* VIP Profile Card in dropdown */
.vip-profile-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 6px;
}

.vip-profile-banner {
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706, #92400e);
    position: relative;
}

.vip-profile-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 5l3 9h9l-7 5 3 9-8-6-8 6 3-9-7-5h9z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.vip-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px 12px;
    margin-top: -20px;
    position: relative;
}

.vip-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    object-fit: cover;
}

.vip-profile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 6px;
}

.vip-profile-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: 2px;
    padding: 2px 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
}

/* Burger */
.burger-btn {
    display: none; width: 36px; height: 36px; border-radius: var(--radius-sm);
    place-items: center; transition: background var(--transition);
}
.burger-btn:hover { background: var(--bg-card-hover); }
.burger-btn svg { width: 20px; height: 20px; }

/* ===================== MOBILE NAV ===================== */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 150; }
.mobile-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 151;
    background: var(--bg-raised); border-right: 1px solid var(--border);
    padding: 24px 20px; display: flex; flex-direction: column; gap: 2px;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-nav[aria-hidden="false"] { transform: translateX(0); }
.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.mobile-nav-head .brand-name { font-size: 1.05rem; }
.mobile-nav-link {
    display: block; text-decoration: none;
    padding: 11px 14px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
    transition: all 0.15s ease;
}
.mobile-nav-link:hover { background: var(--bg-card-hover); color: var(--text); }
.mobile-nav-link.discord { color: var(--accent-soft); margin-top: auto; }

/* Mobile nav user section */
.mobile-nav-user {
    padding: 12px 14px; margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-login-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 10px 16px; border-radius: 8px;
    background: #5865F2; color: white; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: opacity .15s;
}
.mobile-nav-login-btn:hover { opacity: 0.9; color: white; }
.mobile-nav-profile { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-profile-row { display: flex; align-items: center; gap: 10px; }
.mobile-nav-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mobile-nav-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.mobile-nav-balance {
    font-size: 0.85rem; font-weight: 700; color: var(--accent-soft);
    background: var(--accent-dim); padding: 8px 14px; border-radius: 20px;
    text-align: center;
}
.mobile-nav-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.mobile-nav-logout { color: #f87171 !important; }


/* ===================== HERO ===================== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px;
    position: relative;
}

.discord-profiles {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 32px;
}
.discord-profile {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.dp-avatar-wrap { position: relative; }
.dp-avatar { width: 32px; height: 32px; border-radius: 50%; }
.dp-status-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--bg-raised); background: #71717a;
}
.dp-status-dot.online { background: #22c55e; }
.dp-status-dot.idle { background: #f59e0b; }
.dp-status-dot.dnd { background: #ef4444; }
.dp-info { text-align: left; }
.dp-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.dp-badge { font-size: 0.65rem; color: var(--text-muted); }
.dp-badge.online { color: #22c55e; }
.dp-badge.idle { color: #f59e0b; }
.dp-badge.dnd { color: #ef4444; }
.dp-custom-status { font-size: 0.7rem; color: var(--text-muted); }

.hero-logo {
    font-size: 3rem; font-weight: 900; letter-spacing: -0.04em;
    color: var(--text); margin-bottom: 16px;
}
.hero-logo span { color: var(--accent); }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
    background: var(--accent-dim); color: var(--accent-soft);
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.pill-top { margin-bottom: 16px; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.03em;
    margin-bottom: 16px; max-width: 700px;
}
.accent { color: var(--accent-soft); }
.accent-soft { color: var(--accent-soft); }

.hero-sub {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 520px; margin-bottom: 32px; line-height: 1.7;
}

.features { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    background: var(--bg-card); border: 1px solid var(--border);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--accent); }
.dot-cyan { background: #06b6d4; }
.dot-amber { background: #f59e0b; }
.dot-sky { background: #38bdf8; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    animation: float 2.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.mouse {
    width: 22px; height: 34px; border: 2px solid var(--border-hover);
    border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.wheel { width: 3px; height: 8px; background: var(--text-muted); border-radius: 3px; animation: scroll-wheel 1.5s infinite; }
@keyframes scroll-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(6px); } }
.scroll-label { font-size: 0.6rem; letter-spacing: 0.15em; font-weight: 600; }

/* ===================== SECTIONS ===================== */

/* Featured carousel */
.featured-section, .categories-section {
    padding: 80px 24px;
    max-width: var(--max-w); margin: 0 auto;
}
.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card {
    flex: 0 0 280px;
}
.carousel-arrow {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.carousel-arrow:hover { border-color: var(--border-accent); color: var(--accent); }

/* Category grid on homepage */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s ease;
}
.category-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
}
.cat-icon { width: 28px; height: 28px; color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 100%; height: 100%; }
.cat-name { font-size: 0.8rem; font-weight: 600; }

@media (max-width: 768px) {
    .featured-section, .categories-section { padding: 48px 16px; }
    .carousel-track .card { flex: 0 0 240px; }
    .carousel-arrow { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 100%; }
    .category-card { padding: 18px 10px; }
    .cat-icon { width: 22px; height: 22px; }
    .cat-name { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.products, .reviews {
    padding: 80px 24px;
    max-width: var(--max-w); margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub { font-size: 0.95rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* ===================== PRODUCT GRID ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Product card — glassmorphism subtle */
.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product-card .card-media {
    width: 100%; aspect-ratio: 16/10;
    background: var(--bg-raised); display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.product-card .card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .card-media img { transform: scale(1.03); }

.product-card .card-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 8px; border-radius: 6px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    background: rgba(139, 92, 246, 0.9); color: #fff;
}
.product-card .card-badge.out-of-stock { background: rgba(239, 68, 68, 0.9); }

.product-card .card-body { padding: 14px 16px; }
.product-card .card-title {
    font-size: 0.88rem; font-weight: 600; color: var(--text);
    margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .card-desc {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .card-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.product-card .card-price {
    font-size: 0.95rem; font-weight: 700; color: var(--accent-soft);
}
.product-card .card-stock {
    font-size: 0.7rem; color: var(--text-muted); font-weight: 500;
}
.product-card .card-stock.in-stock { color: #22c55e; }

/* ===================== REVIEWS ===================== */
.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.vouches-panel, .reviews-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.vouches-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.vouches-list { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; }
.vouches-empty { color: var(--text-muted); font-size: 0.85rem; }

.vouch-card {
    display: flex; gap: 10px; padding: 12px;
    background: var(--bg-raised); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.vouch-card .vouch-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.vouch-card .vouch-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.vouch-card .vouch-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.vouch-card .vouch-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

.review-grid { display: flex; flex-direction: column; gap: 12px; }
.review-card {
    padding: 16px; background: var(--bg-raised);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-dim); color: var(--accent-soft);
    display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.review-name { font-size: 0.82rem; font-weight: 600; }
.review-stars { font-size: 0.75rem; color: #f59e0b; }
.review-body { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* Review form */
.review-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.review-login-wall { color: var(--text-secondary); font-size: 0.9rem; }
.review-login-wall a { color: var(--accent-soft); font-weight: 600; }
.form-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.star-input { display: flex; gap: 2px; }
.star-input .star {
    font-size: 1.3rem; color: var(--text-muted); cursor: pointer;
    transition: color var(--transition); background: none; border: none; padding: 2px;
}
.star-input .star.active, .star-input .star:hover { color: #f59e0b; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }


/* ===================== INPUTS ===================== */
.input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 0.85rem; outline: none;
    transition: border-color var(--transition);
}
.input:focus { border-color: var(--accent); }
.textarea { min-height: 80px; resize: vertical; }

/* ===================== PRODUCT MODAL ===================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: var(--bg-overlay); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal {
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-lg); max-width: 520px; width: 100%;
    max-height: 85vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.5); display: grid; place-items: center;
    transition: background var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-close svg { width: 18px; height: 18px; color: #fff; }

.modal-media {
    width: 100%; aspect-ratio: 16/10;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    background: var(--accent); color: #fff;
}

.modal-panel { padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.modal-scroll { display: flex; flex-direction: column; gap: 16px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.modal-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }

/* Options */
.modal-options { margin-top: 4px; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-list .option-btn {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition);
}
.option-list .option-btn:hover { border-color: var(--border-hover); color: var(--text); }
.option-list .option-btn.active { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }

/* Quantity */
.modal-qty { display: flex; flex-direction: column; gap: 8px; }
.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    display: grid; place-items: center; transition: all var(--transition);
}
.qty-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.qty-value { min-width: 40px; text-align: center; font-size: 0.95rem; font-weight: 600; }
.bulk-hint { font-size: 0.75rem; color: var(--accent-soft); }

/* Modal foot */
.modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto;
}
.modal-price { font-size: 1.3rem; font-weight: 800; color: var(--accent-soft); }

/* ===================== CHECKOUT ===================== */
.checkout-page {
    position: fixed; inset: 0; z-index: 300;
    background: var(--bg); overflow-y: auto;
    padding: 24px;
}
.checkout-page[hidden] { display: none; }
.checkout-inner { max-width: 900px; margin: 0 auto; }

.checkout-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.85rem; color: var(--text-secondary);
    transition: all var(--transition); margin-bottom: 24px;
}
.checkout-back:hover { color: var(--text); background: var(--bg-card); }
.checkout-back svg { width: 18px; height: 18px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.checkout-head { margin-bottom: 24px; }
.checkout-title { font-size: 1.5rem; font-weight: 800; margin-top: 8px; }
.checkout-order-id { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.checkout-section-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; margin-top: 24px; }

.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; transition: all var(--transition);
}
.pay-method:hover:not(:disabled) { border-color: var(--border-hover); background: var(--bg-card-hover); }
.pay-method.active { border-color: var(--accent); background: var(--accent-dim); }
.pay-method:disabled { opacity: 0.4; cursor: not-allowed; }
.pay-icon { font-size: 1.3rem; }
.pay-info { display: flex; flex-direction: column; gap: 2px; }
.pay-info strong { font-size: 0.85rem; color: var(--text); }
.pay-info small { font-size: 0.72rem; color: var(--text-muted); }
.pay-check {
    margin-left: auto; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); transition: all var(--transition);
}
.pay-method.active .pay-check { border-color: var(--accent); background: var(--accent); }

.checkout-pay-btn { width: 100%; justify-content: center; margin-top: 24px; }
.checkout-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.checkout-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Crypto details */
.crypto-details { margin-top: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.crypto-amount-box, .crypto-addr-box { margin-bottom: 12px; }
.crypto-amount-label, .crypto-addr-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.crypto-amount-row, .crypto-addr-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.crypto-amount { font-size: 1.1rem; font-weight: 700; color: var(--accent-soft); }
.crypto-addr { font-size: 0.75rem; color: var(--text); word-break: break-all; background: var(--bg); padding: 8px; border-radius: var(--radius-sm); flex: 1; }
.crypto-rate { font-size: 0.72rem; color: var(--text-muted); }
.crypto-copy {
    padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
    background: var(--accent-dim); color: var(--accent-soft);
    cursor: pointer; transition: background var(--transition);
}
.crypto-copy:hover { background: var(--accent); color: #fff; }

.pay-note-box {
    margin-top: 16px; padding: 14px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}

/* Order summary sidebar */
.checkout-summary {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; height: fit-content;
    position: sticky; top: 24px;
}
.checkout-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.checkout-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkout-totals { border-top: 1px solid var(--border); padding-top: 12px; }
.checkout-total-line { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); padding: 4px 0; }
.checkout-total-line.total { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ===================== CART DRAWER ===================== */
.cart-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 400; }
.cart-overlay[hidden] { display: none; }
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 360px; z-index: 401;
    background: var(--bg-raised); border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 32px 0; }
.cart-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }
.cart-total { color: var(--accent-soft); }
#cart-checkout { width: 100%; justify-content: center; }

/* Cart items */
.cart-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-option { font-size: 0.72rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.82rem; font-weight: 600; color: var(--accent-soft); }
.cart-item-qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 4px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.85rem; display: grid; place-items: center; }
.cart-item-qty span { font-size: 0.78rem; min-width: 20px; text-align: center; }
.cart-item-remove { font-size: 0.7rem; color: var(--text-muted); cursor: pointer; margin-top: 4px; transition: color var(--transition); }
.cart-item-remove:hover { color: #ef4444; }

/* FABs */
.cart-fab, .scroll-top-fab {
    position: fixed; z-index: 90; width: 48px; height: 48px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-raised); border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: all var(--transition);
    opacity: 0; pointer-events: none;
}
.cart-fab.visible, .scroll-top-fab.visible { opacity: 1; pointer-events: auto; }
.cart-fab { bottom: 24px; right: 24px; }
.scroll-top-fab { bottom: 24px; right: 80px; }
.cart-fab:hover, .scroll-top-fab:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.cart-fab svg, .scroll-top-fab svg { width: 20px; height: 20px; }
.cart-fab .cart-count { position: absolute; top: -4px; right: -4px; }


/* ===================== ORDERS / BALANCE MODALS ===================== */
.orders-box {
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-lg); max-width: 560px; width: 100%;
    max-height: 85vh; overflow-y: auto; padding: 32px;
    position: relative; box-shadow: var(--shadow-lg);
}
.orders-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.orders-empty { color: var(--text-muted); font-size: 0.85rem; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }

.order-card {
    padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color var(--transition);
}
.order-card:hover { border-color: var(--border-hover); }
.order-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.order-status { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 12px; }
.order-status.paid { background: rgba(34,197,94,0.15); color: #22c55e; }
.order-status.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.order-status.delivered { background: rgba(139,92,246,0.15); color: var(--accent-soft); }

/* Delivery modal */
.delivery-box { text-align: center; }
.delivery-icon { font-size: 2.5rem; margin-bottom: 12px; }
.delivery-sub { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.delivery-content { text-align: left; font-size: 0.82rem; }

/* Balance */
.balance-card {
    background: linear-gradient(135deg, var(--accent-dim), var(--bg-card));
    border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
    padding: 24px; text-align: center; margin-bottom: 24px;
}
.balance-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.balance-amount { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-soft); margin: 8px 0; }
.balance-bonus-note { font-size: 0.75rem; color: var(--text-secondary); }
.balance-sub { font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; margin-top: 20px; }
.balance-amounts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.amount-pill {
    padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; transition: all var(--transition);
}
.amount-pill:hover, .amount-pill.active { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }
.balance-credit-preview { font-size: 0.78rem; color: var(--text-muted); }
.balance-methods { margin-top: 16px; }
.balance-method-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.balance-history { max-height: 200px; overflow-y: auto; }

/* ===================== SUPPORT CHAT ===================== */
.support-fab {
    position: fixed; bottom: 24px; left: 24px; z-index: 90;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 28px;
    background: var(--accent); color: #fff;
    font-size: 0.82rem; font-weight: 600;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transition: all var(--transition);
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(139, 92, 246, 0.4); }
.support-fab svg { width: 18px; height: 18px; }

.support-widget, .order-chat-widget {
    position: fixed; bottom: 80px; left: 24px; z-index: 200;
    width: 360px; max-height: 480px;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.support-widget[hidden], .order-chat-widget[hidden] { display: none; }
.order-chat-widget { left: auto; right: 24px; bottom: 24px; }

.support-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.support-title { display: flex; align-items: center; gap: 10px; }
.support-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.support-title strong { font-size: 0.85rem; }
.support-title small { font-size: 0.7rem; color: var(--text-muted); display: block; }
.support-close {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; transition: background var(--transition);
}
.support-close:hover { background: var(--bg-card-hover); }
.support-close svg { width: 16px; height: 16px; }

.support-body {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 200px;
}
.support-intro { text-align: center; padding: 24px 16px; color: var(--text-secondary); font-size: 0.85rem; }
.support-intro p { margin-bottom: 12px; }

.support-msg {
    max-width: 80%; padding: 10px 14px; border-radius: 12px;
    font-size: 0.82rem; line-height: 1.5;
}
.support-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.support-msg.staff { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.support-msg.system { align-self: center; background: var(--accent-dim); color: var(--accent-soft); font-size: 0.75rem; border-radius: 8px; }

.support-attachments { padding: 8px 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.support-attachments[hidden] { display: none; }

.support-input {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-top: 1px solid var(--border);
}
.support-input[hidden] { display: none; }
.support-attach {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    transition: background var(--transition);
}
.support-attach:hover { background: var(--bg-card-hover); }
.support-attach svg { width: 16px; height: 16px; color: var(--text-muted); }
.support-input input[type="text"] {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 0.82rem;
}
.support-input input[type="text"]::placeholder { color: var(--text-muted); }
.support-send {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); display: grid; place-items: center;
    transition: background var(--transition);
}
.support-send:hover { background: #7c3aed; }
.support-send svg { width: 14px; height: 14px; color: #fff; }

/* Order chat actions */
.order-chat-actions { display: flex; align-items: center; gap: 8px; }
.order-received-btn {
    padding: 6px 12px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
    background: rgba(34,197,94,0.15); color: #22c55e;
    transition: all var(--transition);
}
.order-received-btn:hover { background: rgba(34,197,94,0.25); }
.order-chat-btn {
    display: block; width: 100%; padding: 10px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text-secondary); text-align: center;
    transition: all var(--transition);
}
.order-chat-btn:hover { border-color: var(--border-hover); color: var(--text); }

/* ===================== SOCIAL TOAST ===================== */
.social-toast {
    position: fixed; bottom: 90px; left: 24px; z-index: 80;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-radius: var(--radius);
    background: var(--bg-raised); border: 1px solid var(--border-accent);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(0,0,0,0.3);
    font-size: 0.85rem; color: var(--text);
    animation: toast-slide-in 0.4s ease;
    max-width: 320px;
}
.social-toast[hidden] { display: none; }
.social-toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.social-toast-text { line-height: 1.4; }
.social-toast-text strong { color: var(--accent-soft); }
@keyframes toast-slide-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ===================== ADMIN ===================== */
.admin-page {
    position: fixed; inset: 0; z-index: 600;
    background: var(--bg); overflow: hidden;
    display: flex; flex-direction: column;
}
.admin-page[hidden] { display: none; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
}
.admin-brand { font-weight: 700; font-size: 0.9rem; }
.admin-exit {
    padding: 6px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); transition: all var(--transition);
}
.admin-exit:hover { border-color: var(--border-hover); color: var(--text); }

.admin-layout { display: flex; flex: 1; overflow: hidden; }
.admin-nav {
    width: 220px; padding: 16px 12px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
    background: var(--bg-raised);
}
.admin-tab {
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.82rem; text-align: left;
    color: var(--text-secondary); transition: all var(--transition);
}
.admin-tab:hover { background: var(--bg-card-hover); color: var(--text); }
.admin-tab.active { background: var(--accent-dim); color: var(--accent-soft); }

.admin-content { flex: 1; overflow-y: auto; padding: 24px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-toolbar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.admin-btn {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); transition: all var(--transition);
}
.admin-btn:hover { border-color: var(--border-hover); color: var(--text); }
.admin-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-btn.primary:hover { background: #7c3aed; }
.admin-btn.danger { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.admin-btn.danger:hover { background: rgba(239,68,68,0.2); }

/* Admin tables */
.admin-table {
    width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.admin-table th {
    text-align: left; padding: 10px 12px;
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 12px; border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.admin-table tr:hover td { background: var(--bg-card); }


/* ===================== IMAGE CROPPER ===================== */
.crop-box { max-width: 480px; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1; background: #000; border-radius: var(--radius-sm); overflow: hidden; margin: 16px 0; }
.crop-stage canvas { width: 100%; height: 100%; }
.crop-frame { position: absolute; inset: 0; border: 2px dashed var(--accent-soft); border-radius: var(--radius-sm); pointer-events: none; }
.crop-controls { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-muted); }
.crop-controls input[type="range"] { flex: 1; accent-color: var(--accent); }

/* ===================== SPINNER ===================== */
.spinner {
    display: inline-block; width: 28px; height: 28px;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Waiting modal */
.waiting-info { font-size: 0.82rem; color: var(--text-secondary); margin-top: 12px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .header { padding: 0 16px; }
    .nav { display: none; }
    .burger-btn { display: grid; }

    /* Hide Discord button + login on mobile (available in the nav drawer) */
    .header-actions > .btn-ghost,
    .header-actions > #login-btn { display: none; }
    /* Hide the balance chip on mobile (shown in nav drawer instead) */
    .header-balance { display: none; }
    /* Keep user avatar compact */
    .user-name { display: none; }
    .user-caret { display: none; }

    .hero { padding: 100px 16px 60px; }
    .hero-title { font-size: 1.8rem; }
    .discord-profiles { gap: 8px; }
    .discord-profile { padding: 6px 10px; }
    .dp-avatar { width: 24px; height: 24px; }

    .products, .reviews { padding: 48px 16px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

    .reviews-layout { grid-template-columns: 1fr; }

    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }

    .cart-drawer { width: 100%; }

    .support-widget, .order-chat-widget { left: 12px; right: 12px; bottom: 72px; width: auto; }

    .admin-layout { flex-direction: column; }
    .admin-nav { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; }

    /* Header mobile fixes */
    .header-actions { gap: 6px; }
    .user-wrap { gap: 6px; }
    .user-menu { gap: 5px; padding: 3px 6px; }
    .user-name { font-size: 0.72rem; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-avatar { width: 24px; height: 24px; }
    .header-balance { font-size: 0.7rem; padding: 3px 8px; }
    .vip-badge { font-size: 0.55rem; padding: 2px 5px; }

    /* Orders modal mobile */
    .orders-box { padding: 20px 16px; max-width: 100%; margin: 12px; }
    .order-card { padding: 12px; }
}

@media (max-width: 480px) {
    .hero-logo { font-size: 2.2rem; }
    .features { gap: 6px; }
    .chip { padding: 6px 10px; font-size: 0.7rem; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-row .btn { justify-content: center; }
    .product-grid { grid-template-columns: 1fr 1fr; }

    /* Extra small screens */
    .user-name { max-width: 60px; }
    .header-balance { font-size: 0.65rem; padding: 2px 6px; }
    .brand-name { font-size: 0.9rem; }
    .brand-logo img { height: 26px; width: 26px; }
}

/* ===================== MISC UTILITIES ===================== */
[hidden] { display: none !important; }

/* Google translate element (hidden) */
#google_translate_element { display: none !important; }

/* Smooth reveal animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.section-head { animation: fade-up 0.5s ease both; }

/* Checkout item in summary */
.checkout-item {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.checkout-item-info { flex: 1; }
.checkout-item-title { font-size: 0.78rem; font-weight: 600; }
.checkout-item-meta { font-size: 0.7rem; color: var(--text-muted); }
.checkout-item-price { font-size: 0.82rem; font-weight: 600; color: var(--accent-soft); }

/* No-result */
.no-products { text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.85rem; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection { background: var(--accent-dim); color: var(--text); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===================== DEPOSIT PROOF / PROOF MODAL ===================== */
#deposit-proof-modal .orders-box,
#proof-modal .orders-box { max-width: 420px; }

/* ===================== PROMO BANNER (if used from admin) ===================== */
.promo-banner {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    padding: 10px 24px; text-align: center;
    background: linear-gradient(90deg, var(--accent-dim), var(--bg-card));
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem; color: var(--accent-soft); font-weight: 500;
}

/* ===================== TOOLTIP (generic) ===================== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    padding: 4px 10px; border-radius: 6px;
    background: var(--bg-raised); border: 1px solid var(--border);
    font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
[data-tooltip]:hover::after { opacity: 1; }


/* ===================== PRODUCT CARDS (JS-generated classes) ===================== */
/* The JS uses .card, .card-media, .card-body, etc. (not .product-card) */
.product-grid .card,
.carousel-track .card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
}
.product-grid .card:hover,
.carousel-track .card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-grid .card .card-media,
.carousel-track .card .card-media {
    width: 100%; aspect-ratio: 16/10;
    background: var(--bg-raised);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.product-grid .card .card-media.has-image,
.carousel-track .card .card-media.has-image { background-size: cover; background-position: center; }

.product-grid .card .card-body,
.carousel-track .card .card-body {
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
}
/* Card meta: stock + instant badges */
.card-meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card-stock {
    font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
    border-radius: 12px;
}
.card-stock.in { background: rgba(34,197,94,0.12); color: #22c55e; }
.card-stock.low { background: rgba(245,158,11,0.12); color: #f59e0b; }
.card-stock.out { background: rgba(239,68,68,0.12); color: #ef4444; }
.card-instant {
    font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
    border-radius: 12px;
    background: rgba(6,182,212,0.12); color: #06b6d4;
}
/* Hide meta on carousel for clean look */
.carousel-track .card .card-meta { display: none; }
.product-grid .card .card-title,
.carousel-track .card .card-title {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-grid .card .price,
.carousel-track .card .price {
    font-size: 0.88rem; font-weight: 700; color: var(--accent-soft);
}
.product-grid .card .price .price-old,
.carousel-track .card .price .price-old {
    text-decoration: line-through; color: var(--text-muted);
    font-size: 0.75rem; margin-right: 4px;
}


/* ===================== VOUCH ITEMS (JS-generated) ===================== */
.vouch-item {
    display: flex; gap: 10px; padding: 12px;
    background: var(--bg-raised); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.vouch-item img {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
}
.vouch-item .vouch-author { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.vouch-item .vouch-text { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }
.vouch-item .vouch-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

/* ===================== CHAT MESSAGES (JS-generated) ===================== */
.msg {
    max-width: 80%; padding: 10px 14px; border-radius: 12px;
    font-size: 0.82rem; line-height: 1.5; word-break: break-word;
}
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.staff { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; background: var(--accent-dim); color: var(--accent-soft); font-size: 0.75rem; border-radius: 8px; padding: 6px 12px; }
.msg-author { display: block; font-size: 0.7rem; font-weight: 600; color: var(--accent-soft); margin-bottom: 2px; }
.msg-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-attachments img { max-width: 200px; border-radius: var(--radius-sm); cursor: pointer; }
.msg-file {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.72rem; color: var(--accent-soft);
    text-decoration: none;
}
.msg-file:hover { border-color: var(--border-hover); }

/* Attachment chips (pending upload) */
.attach-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.72rem;
}
.attach-name { color: var(--text-secondary); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-remove { font-size: 0.85rem; color: var(--text-muted); cursor: pointer; padding: 0 2px; }
.attach-remove:hover { color: #ef4444; }

/* FAB hidden state */
.support-fab.hidden { display: none; }

/* Mobile nav open */
.mobile-nav.open { transform: translateX(0); }

/* ===================== SHOP.JS SPECIFIC ===================== */
/* Option pills in product modal (used by shop.js) */
.option-pill {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition);
}
.option-pill:hover { border-color: var(--border-hover); color: var(--text); }
.option-pill.active { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-dim); }

/* Card tilt (3D hover effect — kept subtle) */
.product-grid .card { transform-style: preserve-3d; perspective: 800px; }


/* ===================== CART/CHECKOUT DYNAMIC ELEMENTS ===================== */
.cart-item-media {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--bg); background-size: cover; background-position: center;
    flex-shrink: 0;
}
.cart-drawer.open { transform: translateX(0); }

/* FAB show/hide (JS uses .show class) */
.cart-fab.show, .scroll-top-fab.show { opacity: 1; pointer-events: auto; }

/* Checkout line items */
.checkout-line {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.checkout-line:last-child { border-bottom: none; }
.checkout-line-media {
    width: 40px; height: 40px; border-radius: 6px;
    background: var(--bg); background-size: cover; background-position: center;
    flex-shrink: 0;
}
.checkout-line-info { flex: 1; }
.checkout-line-title { font-size: 0.8rem; font-weight: 600; }
.checkout-line-meta { font-size: 0.7rem; color: var(--text-muted); }
.checkout-line-price { font-size: 0.82rem; font-weight: 600; color: var(--accent-soft); }

/* Orders dynamic */
.order-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; font-size: 0.8rem;
}
.order-links { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.order-link-item, .delivery-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    background: var(--accent-dim); border: 1px solid var(--border-accent);
    color: var(--accent-soft); font-size: 0.78rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition);
}
.order-link-item:hover, .delivery-link:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Option pill out of stock */
.option-pill.out-of-stock {
    opacity: 0.4; cursor: not-allowed; text-decoration: line-through;
}

/* Modal media styles (gradient fallbacks) */
.modal-media.has-image { background-size: cover; background-position: center; }
.modal-media .media-1, .card-media.media-1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.card-media.media-2 { background: linear-gradient(135deg, #0f0f23, #1a0a2e); }
.card-media.media-3 { background: linear-gradient(135deg, #0a1628, #071020); }

/* Crypto copy "copied" state */
.crypto-copy.copied { background: var(--accent); color: #fff; }

/* ===================== BALANCE MODAL EXTRAS ===================== */
.balance-history .bal-entry {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}
.balance-history .bal-entry:last-child { border-bottom: none; }
.bal-entry .bal-amount { font-weight: 600; }
.bal-entry .bal-amount.credit { color: #22c55e; }
.bal-entry .bal-amount.debit { color: #ef4444; }
.bal-entry .bal-date { font-size: 0.7rem; color: var(--text-muted); }

/* ===================== HEADER NAV — active section highlight ===================== */
.nav a.active {
    color: var(--text);
    background: var(--accent-dim);
}

/* Hide Google Translate bar */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ===================== PRINT / ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
    .header, .support-fab, .cart-fab, .scroll-top-fab, .bg-glow, .bg-grid, .bg-particles { display: none !important; }
    body { background: #fff; color: #111; }
}


/* ===================== TRANSACTION HISTORY ===================== */
.tx-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}
.tx-row:last-child { border-bottom: none; }
.tx-row .tx-label { color: var(--text-secondary); }
.tx-row .tx-amount { font-weight: 600; }
.tx-row .tx-amount.positive { color: #22c55e; }
.tx-row .tx-amount.negative { color: #ef4444; }
.tx-row .tx-date { font-size: 0.7rem; color: var(--text-muted); }
.tx-row .tx-status { font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 8px; }
.tx-row .tx-status.confirmed { background: rgba(34,197,94,0.12); color: #22c55e; }
.tx-row .tx-status.pending { background: rgba(245,158,11,0.12); color: #f59e0b; }


/* ===================== ADMIN PANEL REDESIGN ===================== */
.admin-page { background: var(--bg); }
.admin-topbar {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}
.admin-brand { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.admin-nav {
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
    padding: 16px 10px;
    width: 200px;
}
.admin-tab {
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 500; text-align: left;
    color: var(--text-secondary); transition: all 0.15s;
    display: flex; align-items: center; gap: 8px;
}
.admin-tab:hover { background: var(--bg-card-hover); color: var(--text); }
.admin-tab.active { background: var(--accent-dim); color: var(--accent-soft); font-weight: 600; }

.admin-content {
    padding: 28px 32px;
    overflow-y: auto; flex: 1;
}

/* Admin stats cards */
.admin-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.admin-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    display: flex; flex-direction: column; gap: 4px;
}
.admin-stat-card .stat-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-stat-card .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.admin-stat-card .stat-value.accent { color: var(--accent-soft); }
.admin-stat-card .stat-value.green { color: #22c55e; }
.admin-stat-card .stat-sub { font-size: 0.7rem; color: var(--text-muted); }

/* ========== Affiliation admin (Phase 2) ========== */
.aff-head { margin-bottom: 4px; }
.aff-lead { margin-bottom: 14px; }
.aff-subnav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.aff-subtab {
    appearance: none; border: 1px solid var(--border);
    background: var(--bg-raised); color: var(--text-secondary);
    font-size: 0.75rem; font-weight: 600;
    padding: 9px 14px; border-radius: var(--radius);
    cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
    min-height: 40px;
}
.aff-subtab:hover { border-color: var(--accent); color: var(--text); }
.aff-subtab.active {
    background: rgba(139, 92, 246, 0.14);
    border-color: var(--accent);
    color: var(--accent-soft);
}
.aff-subpanel { position: relative; min-height: 120px; }

.aff-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.aff-hero-stats--detail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aff-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex; flex-direction: column; gap: 6px;
    transition: border-color 0.15s, transform 0.15s;
}
.aff-stat-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.aff-stat-card.accent { border-color: rgba(139, 92, 246, 0.35); }
.aff-stat-card.warn { border-color: rgba(245, 158, 11, 0.35); }
.aff-stat-label {
    font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.aff-stat-value {
    font-size: 1.55rem; font-weight: 800; color: var(--text); line-height: 1.1;
}
.aff-stat-card.accent .aff-stat-value,
.aff-stat-value.accent { color: var(--accent-soft); }
.aff-stat-sub { font-size: 0.7rem; color: var(--text-muted); }

.aff-section { margin-bottom: 22px; }
.aff-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.aff-section-title {
    font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 0 0 12px;
}

.aff-activity {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.aff-activity-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.aff-activity-row:last-child { border-bottom: none; }
.aff-activity-row:hover { background: var(--bg-card-hover); }
.aff-activity-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aff-activity-main strong {
    font-size: 0.84rem; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aff-activity-main span { font-size: 0.72rem; color: var(--text-muted); }
.aff-activity-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.aff-activity-side time { font-size: 0.65rem; color: var(--text-muted); }

.aff-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px 14px;
    align-items: center; margin-bottom: 16px;
}
.aff-search-wrap { flex: 1 1 200px; min-width: 160px; }
.aff-input, .aff-textarea {
    width: 100%; box-sizing: border-box;
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius);
    padding: 10px 12px; font-size: 0.82rem; outline: none;
}
.aff-input:focus, .aff-textarea:focus { border-color: var(--accent); }
.aff-textarea { resize: vertical; min-height: 72px; }
.aff-label {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); margin: 10px 0 6px;
}
.aff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aff-chip {
    appearance: none; border: 1px solid var(--border);
    background: var(--bg-raised); color: var(--text-secondary);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 8px 12px; border-radius: 999px; cursor: pointer;
    min-height: 36px; transition: all 0.15s;
}
.aff-chip:hover { color: var(--text); border-color: var(--border-hover); }
.aff-chip.active {
    background: rgba(139, 92, 246, 0.16);
    border-color: var(--accent); color: var(--accent-soft);
}

.aff-card-list { display: flex; flex-direction: column; gap: 10px; }
.aff-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    transition: border-color 0.15s, background 0.15s;
}
.aff-card:hover { border-color: var(--border-hover); }
.aff-card.compact { padding: 12px 14px; }
.aff-card-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 8px;
}
.aff-card-top strong {
    font-size: 0.9rem; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aff-card-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.aff-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: 0.72rem; color: var(--text-muted);
}
.aff-card-meta code, .aff-person-id code { font-size: 0.7rem; color: var(--text-secondary); }
.aff-card-meta .accent, .aff-person-grid .accent { color: var(--accent-soft); font-weight: 700; }
.aff-order { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.aff-row-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--border);
}

.aff-badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px;
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; white-space: nowrap;
    background: rgba(148, 163, 184, 0.14); color: var(--text-secondary);
}
.aff-badge--ACTIVE, .aff-badge--APPROVED, .aff-badge--PAID { background: rgba(34,197,94,0.14); color: #22c55e; }
.aff-badge--PENDING, .aff-badge--PROCESSING, .aff-badge--REVIEW { background: rgba(245,158,11,0.14); color: #f59e0b; }
.aff-badge--SUSPENDED, .aff-badge--REJECTED, .aff-badge--FAILED, .aff-badge--REVERSED { background: rgba(239,68,68,0.14); color: #ef4444; }

.aff-person-list { display: flex; flex-direction: column; gap: 10px; }
.aff-person-card {
    width: 100%; text-align: left; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px;
    color: inherit; transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.aff-person-card:hover {
    border-color: var(--accent); background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.aff-person-top {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.aff-person-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aff-person-id strong {
    font-size: 0.92rem; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aff-person-id span { font-size: 0.72rem; color: var(--text-muted); }
.aff-person-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.aff-person-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aff-person-grid > div {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--bg-raised); border-radius: var(--radius);
    padding: 8px 10px;
}
.aff-person-grid span { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.aff-person-grid strong { font-size: 0.82rem; color: var(--text); }

.aff-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(139, 92, 246, 0.18); color: var(--accent-soft);
    display: grid; place-items: center; flex-shrink: 0;
    font-weight: 800; font-size: 0.95rem; overflow: hidden; position: relative;
}
.aff-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aff-avatar-fallback { z-index: 0; }

.aff-back {
    appearance: none; border: none; background: transparent;
    color: var(--accent-soft); font-size: 0.8rem; font-weight: 600;
    padding: 0 0 12px; cursor: pointer;
}
.aff-back:hover { text-decoration: underline; }
.aff-detail-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.aff-detail-hero-text { flex: 1; min-width: 160px; }
.aff-detail-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aff-detail-name-row h3 { margin: 0; font-size: 1.1rem; }
.aff-detail-hero-text p { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.aff-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aff-detail-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.aff-tier-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.aff-tier-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 16px;
    text-align: center; transition: border-color 0.15s, transform 0.15s;
}
.aff-tier-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.aff-tier-level { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.aff-tier-rate { font-size: 1.8rem; font-weight: 800; color: var(--accent-soft); margin: 8px 0; }
.aff-tier-rule { font-size: 0.75rem; color: var(--text-secondary); }
.aff-config-note {
    display: inline-block; margin-bottom: 14px;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(148, 163, 184, 0.12); color: var(--text-secondary);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.aff-empty {
    text-align: center; padding: 36px 16px;
    border: 1px dashed var(--border); border-radius: var(--radius-lg);
    color: var(--text-muted);
}
.aff-empty-title { font-size: 0.95rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.aff-empty-sub { font-size: 0.8rem; margin: 0; }
.aff-error {
    padding: 14px 16px; border-radius: var(--radius);
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; font-size: 0.85rem;
}

.aff-skel .aff-skel-line {
    height: 10px; border-radius: 6px; margin-bottom: 10px;
    background: linear-gradient(90deg, var(--bg-raised), var(--bg-card-hover), var(--bg-raised));
    background-size: 200% 100%;
    animation: aff-shimmer 1.2s ease-in-out infinite;
}
.aff-skel-line.w40 { width: 40%; }
.aff-skel-line.w55 { width: 55%; }
.aff-skel-line.w70 { width: 70%; }
@keyframes aff-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.aff-toast {
    position: sticky; bottom: 12px; left: 0; right: 0;
    margin: 16px auto 0; max-width: 360px;
    padding: 10px 14px; border-radius: var(--radius);
    font-size: 0.8rem; font-weight: 600; text-align: center;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s; z-index: 5;
}
.aff-toast.show { opacity: 1; transform: translateY(0); }
.aff-toast--ok { background: rgba(34,197,94,0.16); color: #22c55e; border: 1px solid rgba(34,197,94,0.35); }
.aff-toast--err { background: rgba(239,68,68,0.16); color: #ef4444; border: 1px solid rgba(239,68,68,0.35); }

.aff-modal-root {
    position: fixed; inset: 0; z-index: 12000;
    display: grid; place-items: center; padding: 16px;
}
.aff-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.aff-modal {
    position: relative; z-index: 1; width: min(420px, 100%);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.aff-modal-title { margin: 0 0 10px; font-size: 1rem; }
.aff-modal-body { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.aff-modal-body p { margin: 0 0 8px; }
.aff-modal-actions {
    display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .aff-person-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .aff-hero-stats,
    .aff-hero-stats--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-detail-cols { grid-template-columns: 1fr; }
    .aff-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .aff-subtab { flex: 1 1 auto; text-align: center; }
    .aff-hero-stats,
    .aff-hero-stats--detail,
    .aff-person-grid,
    .aff-person-grid--5 { grid-template-columns: 1fr 1fr; }
    .aff-card-top { flex-wrap: wrap; }
    .aff-activity-row { flex-direction: column; align-items: flex-start; }
    .aff-activity-side { align-items: flex-start; flex-direction: row; gap: 8px; }
    .aff-detail-actions { width: 100%; }
    .aff-detail-actions .admin-btn { flex: 1; }
    .aff-row-actions .admin-btn { flex: 1 1 auto; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .aff-skel-line { animation: none; }
    .aff-stat-card, .aff-person-card, .aff-tier-card { transition: none; }
}

/* Revenue chart area */
.admin-chart-wrap {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-chart-wrap h3 { font-size: 0.9rem; font-weight: 700; }
.chart-total { font-size: 1.1rem; font-weight: 800; color: var(--accent-soft); }
.area-chart {
    width: 100%; height: 200px; display: block;
    overflow: visible;
}
.chart-dot { transition: r 0.15s; cursor: pointer; }
.chart-dot:hover { r: 5; }
.chart-x-label { font-size: 9px; fill: var(--text-muted); }
.chart-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 0.72rem; color: var(--text-muted); }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.chart-legend .dot { width: 8px; height: 8px; border-radius: 2px; }

/* Admin order cards */
.admin-order-list { display: flex; flex-direction: column; gap: 10px; }
.admin-order-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px;
    transition: border-color 0.15s;
}
.admin-order-card:hover { border-color: var(--border-hover); }
.admin-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-order-id { font-size: 0.82rem; font-weight: 700; font-family: monospace; color: var(--text); }
.admin-order-total { font-size: 0.85rem; font-weight: 700; color: var(--accent-soft); }
.admin-order-meta { font-size: 0.72rem; color: var(--text-muted); }
.admin-order-items { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }
.admin-order-actions { display: flex; align-items: center; gap: 8px; }
.admin-order-actions select {
    padding: 5px 8px; border-radius: 6px; font-size: 0.72rem;
    background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
}

/* Admin user cards */
.admin-user-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 8px;
}
.admin-user-card .user-info { flex: 1; }
.admin-user-card .user-name { font-size: 0.85rem; font-weight: 600; }
.admin-user-card .user-id { font-size: 0.65rem; color: var(--text-muted); font-family: monospace; }
.admin-user-card .user-stats { font-size: 0.72rem; color: var(--text-secondary); }
.admin-user-card .user-balance { font-size: 0.85rem; font-weight: 700; color: var(--accent-soft); }

/* Admin search/filter bar */
.admin-search {
    display: flex; gap: 10px; margin-bottom: 16px; align-items: center;
}
.admin-search input {
    flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.82rem; outline: none;
}
.admin-search input:focus { border-color: var(--accent); }

/* Section heading in admin */
.admin-section-title {
    font-size: 1.1rem; font-weight: 800; margin-bottom: 16px;
}

/* Payment method breakdown */
.admin-breakdown {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; margin-top: 16px;
}
.breakdown-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: border-color 0.2s;
}
.breakdown-card:hover { border-color: var(--border-accent); }
.breakdown-card .breakdown-icon { color: var(--accent-soft); display: flex; }
.breakdown-card .breakdown-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.breakdown-card .breakdown-value { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.breakdown-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.breakdown-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; }
.breakdown-pct { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }


/* ===================== ADMIN EXISTING CLASSES OVERRIDE ===================== */
/* Override the existing admin.js generated classes to match the new theme */
.admin-h {
    font-size: 1.3rem; font-weight: 800; margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.admin-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }

.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-num { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stat-card .stat-label { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card.accent .stat-num { color: var(--accent-soft); }

/* Admin order items rendered by admin.js */
.admin-content .order-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.admin-content .order-item:hover { border-color: var(--border-hover); }

/* Admin selects */
.admin-content select {
    padding: 6px 10px; border-radius: 6px;
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.75rem; cursor: pointer;
    color-scheme: dark;
}
.admin-content select:focus { border-color: var(--accent); outline: none; }

/* Store balance page */
.admin-content .balance-total {
    font-size: 1.8rem; font-weight: 800; color: var(--accent-soft);
    margin-bottom: 4px;
}
.admin-content .method-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.admin-content .method-row:last-child { border-bottom: none; }
.admin-content .method-icon { font-size: 1.2rem; }
.admin-content .method-name { font-weight: 600; flex: 1; }
.admin-content .method-amount { font-weight: 700; color: var(--accent-soft); }

/* Admin user items */
.admin-content .user-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 8px;
}
.admin-content .user-item:hover { border-color: var(--border-hover); }

/* Admin product cards */
.admin-content .product-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 8px;
}
.admin-content .product-row:hover { border-color: var(--border-hover); }
.admin-content .product-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

/* Admin log entries */
.admin-content .log-entry {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-secondary);
}
.admin-content .log-entry:last-child { border-bottom: none; }
.admin-content .log-time { font-size: 0.65rem; color: var(--text-muted); }

/* Promotions */
.admin-content .promo-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}

/* Admin panel inputs */
.admin-content input[type="text"],
.admin-content input[type="number"],
.admin-content input[type="url"],
.admin-content textarea {
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.82rem; width: 100%;
    outline: none; font-family: inherit;
}
.admin-content input:focus, .admin-content textarea:focus { border-color: var(--accent); }


/* ===================== ADMIN.JS GENERATED CLASSES ===================== */
/* These classes are generated by admin.js — style them to match the theme */

.admin-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 8px;
    transition: border-color 0.15s;
}
.admin-row:hover { border-color: var(--border-hover); }

.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title {
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-row-meta {
    font-size: 0.7rem; color: var(--text-muted); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; margin-left: 6px; vertical-align: middle;
    background: rgba(139,92,246,0.12); color: var(--accent-soft);
}
/* Status-specific badge colors */
.admin-badge:is([class*="complet"]) { background: rgba(34,197,94,0.12); color: #22c55e; }

.admin-select {
    padding: 6px 10px; border-radius: 6px;
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.72rem; cursor: pointer;
    color-scheme: dark; outline: none;
    min-width: 120px;
}
.admin-select:focus { border-color: var(--accent); }

.balance-sub {
    font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
    margin: 16px 0 8px;
}

/* Admin form modals (products, promotions, admins) */
.admin-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 16px;
}
.admin-form label {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 6px; margin-top: 12px;
}
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.82rem; outline: none;
    font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    border-color: var(--accent);
}
.admin-form textarea { min-height: 80px; resize: vertical; }

/* Admin product grid */
.admin-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.admin-product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px; overflow: hidden;
    cursor: pointer; transition: border-color 0.15s;
}
.admin-product-card:hover { border-color: var(--border-hover); }
.admin-product-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: var(--radius-sm); margin-bottom: 8px;
}
.admin-product-card .card-title { font-size: 0.8rem; font-weight: 600; }
.admin-product-card .card-price { font-size: 0.78rem; color: var(--accent-soft); font-weight: 700; }

/* Admin confirm dialogs override */
.admin-content button { cursor: pointer; }

/* Admin inline edit fields */
.admin-content [contenteditable] {
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}
.admin-content [contenteditable]:focus {
    border-color: var(--accent); outline: none;
    background: var(--bg-raised);
}

/* Drag handle for products */
.drag-handle { cursor: grab; opacity: 0.4; font-size: 1rem; }
.drag-handle:hover { opacity: 0.8; }

/* Admin responsive */
@media (max-width: 768px) {
    .admin-row { flex-wrap: wrap; }
    .admin-row-main { flex-basis: 100%; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* ===================== VOUCH IMAGES ===================== */
.vouch-images {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.vouch-img {
    width: 100%; max-width: 280px; height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    object-fit: contain;
}
.vouch-img:hover { transform: scale(1.02); border-color: var(--accent); }

/* Lightbox (click to zoom) */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out; padding: 24px;
    animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
    max-width: 90vw; max-height: 90vh;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    object-fit: contain;
}


/* Vouch count badge */
.vouches-count {
    font-size: 0.75rem; font-weight: 700; color: var(--accent-soft);
    background: var(--accent-dim); padding: 2px 8px; border-radius: 10px;
    margin-left: 6px;
}


/* ===================== DELIVERY RECEIPT ===================== */
.delivery-receipt {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    text-align: left; margin-top: 12px;
}
.receipt-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.receipt-id { font-size: 0.82rem; font-weight: 700; font-family: monospace; color: var(--text); }
.receipt-method {
    font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 10px;
    background: var(--accent-dim); color: var(--accent-soft); text-transform: uppercase;
}
.receipt-items {
    font-size: 0.8rem; color: var(--text-secondary); white-space: pre-line;
    line-height: 1.6; margin-bottom: 10px;
}
.receipt-total {
    font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.receipt-divider {
    height: 1px; background: var(--border); margin: 12px 0;
}
.receipt-credentials-label {
    font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.receipt-credentials { display: flex; flex-direction: column; gap: 8px; }
.receipt-cred-line {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 14px; background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cred-title { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.cred-value {
    font-size: 0.85rem; font-weight: 500; color: var(--text);
    font-family: monospace; word-break: break-all;
    user-select: all; cursor: text;
}


/* Admin topbar DailyStore balance */
.admin-topbar-info { display: flex; align-items: center; gap: 12px; margin-left: auto; margin-right: 16px; }
.admin-ds-balance {
    font-size: 0.78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 20px;
    background: rgba(34, 197, 94, 0.1); color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}


/* Deposit coin picker */
.deposit-coin-picker { margin-top: 12px; }
.deposit-coin-picker[hidden] { display: none; }


/* Waiting info rows */
.wi-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 0.82rem; color: var(--text-secondary);
}
.wi-addr {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-top: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); word-break: break-all;
}
.wi-addr code {
    flex: 1; font-size: 0.78rem; color: var(--text);
    user-select: all; cursor: text;
}


/* PayPal address */
.paypal-addr {
    display: inline-block; padding: 8px 14px; margin-top: 8px;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700;
    color: var(--accent-soft); user-select: all;
}


/* Admin orders table */
.admin-orders-table {
    overflow-x: auto; margin-top: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 4px;
}
.admin-orders-table table { width: 100%; }
.admin-orders-table code { font-size: 0.72rem; color: var(--text); }


/* ===================== FAQ ===================== */
.faq {
    padding: 80px 24px;
    max-width: var(--max-w); margin: 0 auto;
}
.faq-list {
    max-width: 700px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 8px;
}
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-accent); }
.faq-question {
    padding: 18px 20px; cursor: pointer;
    font-size: 0.9rem; font-weight: 600; color: var(--text);
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-soft); }
.faq-question::after {
    content: '+'; font-size: 1.2rem; font-weight: 300;
    color: var(--text-muted); transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { content: '−'; color: var(--accent-soft); }
.faq-question::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 20px 18px;
    font-size: 0.84rem; color: var(--text-secondary); line-height: 1.7;
}


/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin product section headers */
.admin-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 8px;
    margin-top: 16px;
    border-bottom: 1px solid var(--border);
}
.admin-section-header:first-child { margin-top: 0; }
.admin-section-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-soft);
}
.admin-section-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
}
.search-box {
    width: 100%; max-width: 560px;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.search-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.search-icon { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-header input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 1rem; font-family: inherit;
}
.search-header input::placeholder { color: var(--text-muted); }
.search-close-btn {
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 600;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
}
.search-results {
    max-height: 400px; overflow-y: auto;
    padding: 8px;
}
.search-empty {
    text-align: center; padding: 24px;
    color: var(--text-muted); font-size: 0.85rem;
}
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none; color: var(--text);
    transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-img {
    width: 48px; height: 32px; border-radius: 6px;
    background: var(--bg-card); background-size: cover; background-position: center;
    flex-shrink: 0;
}
.search-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result-title { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 0.72rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .search-overlay { padding-top: 80px; padding-left: 12px; padding-right: 12px; }
    .search-box { max-width: 100%; }
}

/* Admin search bars */
.admin-search {
    margin: 12px 0;
}
.admin-search input {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}
.admin-search input:focus { border-color: var(--accent); }

/* Crypto deposit TXID input */
.wi-txid { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.wi-txid label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.wi-txid-row { display: flex; gap: 8px; }
.wi-txid-row input {
    flex: 1; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--text); font-size: 0.8rem; outline: none; font-family: monospace;
}
.wi-txid-row input:focus { border-color: var(--accent); }
.wi-txid-row .btn { padding: 10px 16px; white-space: nowrap; }
.wi-txid-status { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; min-height: 16px; }

/* Crypto waiting transaction status */
.wi-status {
    display: flex; align-items: center; gap: 8px;
    margin-top: 14px; padding: 10px 14px;
    background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem; color: #f59e0b; font-weight: 600;
}
.wi-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: pulse-dot 1.2s infinite; }
.wi-dot.ok { background: #22c55e; animation: none; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.wi-status:has(.wi-dot.ok) { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #22c55e; }
