html, html.dark {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card2: #16161f;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255,255,255,0.08);
}

/* Light Mode */
html.light {
    --bg: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card2: #f1f3f9;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --border: rgba(0,0,0,0.1);
    --primary-light: rgba(124,58,237,0.08);
}
html.light .navbar { background: rgba(248,249,252,0.95); }
html.light .navbar.scrolled { background: rgba(248,249,252,0.75); }
html.light .nav-links a { color: #475569; }
html.light .nav-links a:hover { color: #0f172a; }
html.light body { background: #f8f9fc; color: #0f172a; }

/* ============================================
   vProject - Main Stylesheet
   Dark Theme - 2026 Modern Design
   ============================================ */

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

:root {
    --primary: #7C3AED;
    --primary-dark: #5b21b6;
    --primary-light: rgba(124,58,237,0.15);
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card2: #16161f;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --transition: all 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-light); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #a78bfa; }

/* ─── Container ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Navbar ─── */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.navbar.scrolled {
    background: rgba(10,10,15,0.6);
    border-bottom-color: rgba(255,255,255,0.06);
    backdrop-filter: blur(28px) saturate(180%);
}
.nav-container { display: flex; align-items: center; gap: 0; position: relative; padding: 0.625rem 1.75rem; width: 100%; }
.nav-brand { flex-shrink: 0; margin-right: .875rem; }
.nav-logo-img { height: 34px; }
.nav-logo-text { font-size: 1.1875rem; font-weight: 800; background: linear-gradient(135deg, #fff 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.01em; }
.nav-search { position: relative; flex: 0 0 auto; width: 175px; }
.nav-search input { width: 100%; padding: 0.4375rem 1rem 0.4375rem 2.25rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; color: var(--text); font-size: 0.8125rem; transition: var(--transition); }
.nav-search::before { content: '\f002'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.6875rem; }
.nav-search input:focus { outline: none; border-color: var(--primary); background: rgba(124,58,237,.08); width: 220px; }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: none; z-index: 100; }
.search-dropdown.show { display: block; }
.search-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; transition: var(--transition); cursor: pointer; }
.search-item:hover { background: var(--primary-light); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-item-name { font-weight: 600; font-size: 0.875rem; color: #fff; }
.search-item-price { font-size: 0.75rem; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 0.125rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { padding: 0.4375rem 0.75rem; border-radius: var(--radius-sm); color: var(--text-light); font-size: 0.875rem; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.nav-links a:hover { color: #fff; background: var(--bg-card); }
.nav-auth { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; margin-left: auto; padding-right: 0; }
.btn-balance { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--primary-light); border: 1px solid var(--primary); border-radius: 20px; color: #a78bfa; font-size: 0.875rem; font-weight: 600; transition: var(--transition); }
.btn-balance:hover { background: var(--primary); color: #fff; }
.nav-user-menu { position: relative; }
.nav-avatar-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; color: var(--text); cursor: pointer; font-size: 0.875rem; transition: var(--transition); }
.nav-avatar-btn:hover { border-color: var(--primary); }
.nav-avatar-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: #fff; }
.nav-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: none; z-index: 100; box-shadow: var(--shadow); }
.nav-user-menu:hover .nav-dropdown,
.nav-user-menu:focus-within .nav-dropdown { display: block; }
.nav-dropdown a, .nav-dropdown button { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text-light); font-size: 0.875rem; width: 100%; background: none; border: none; cursor: pointer; transition: var(--transition); }
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--primary-light); color: #fff; }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; padding: 0.5rem; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem; transition: var(--transition); cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Cards ─── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: var(--transition); }
.card:hover { border-color: var(--border-hover); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 700; color: #fff; }

/* ─── Flash Messages ─── */
.flash-container { position: fixed; top: 80px; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; max-width: 380px; }
.flash { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; animation: slideIn 0.3s ease; }
.flash button { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.7; color: inherit; padding: 0; }
.flash-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.flash-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.flash-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.flash-info    { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.875rem; transition: var(--transition); font-family: var(--font); }
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(124,58,237,0.05); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; color-scheme: dark; }
select.form-control option { background: #16161f; color: #e2e8f0; padding: 0.5rem 1rem; }
select.form-control option:checked,
select.form-control option:focus  { background: #7C3AED; color: #fff; }
select.form-control option:hover  { background: #1e1e2e; color: #fff; }
html.light select.form-control { color-scheme: light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
html.light select.form-control option { background: #fff; color: #0f172a; }
html.light select.form-control option:checked { background: #7C3AED; color: #fff; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ─── Badges ─── */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-error   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-info    { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* ─── Hero ─── */
.hero { padding: 5rem 0 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%); pointer-events: none; }
.hero-title { margin-bottom: 1rem; }
.hero-title span { background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Product Grid ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,0.2); }
.product-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-card2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.product-cats { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.product-name { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.product-desc { font-size: 0.8125rem; color: var(--text-muted); flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.product-price { font-size: 1.25rem; font-weight: 800; color: #fff; }
.product-original-price { font-size: 0.875rem; color: var(--text-muted); text-decoration: line-through; }
.product-delivery { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }

/* ─── Product Detail ─── */
.product-detail { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.product-images { border-radius: var(--radius-lg); overflow: hidden; }
.product-main-img { aspect-ratio: 4/3; background: var(--bg-card2); }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.product-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.product-thumb.active { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 80px; }

/* ─── Stats Bar ─── */
.stats-bar { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #fff 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* ─── Section ─── */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; padding: 0.25rem 1rem; background: var(--primary-light); border: 1px solid var(--primary); border-radius: 20px; font-size: 0.8125rem; font-weight: 600; color: #a78bfa; margin-bottom: 0.75rem; }
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ─── Features ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); background: var(--bg-card2); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--primary-light); border: 1px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #a78bfa; margin-bottom: 1rem; }
.feature-title { font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--text-muted); }

/* ─── Reviews ─── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.review-author { font-weight: 700; color: #fff; }
.review-content { font-size: 0.875rem; color: var(--text-light); font-style: italic; margin: 0.75rem 0; }

/* ─── References ─── */
.references-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.reference-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; transition: var(--transition); }
.reference-item:hover { border-color: var(--primary); color: #fff; }
.reference-item img { height: 24px; opacity: 0.7; }

/* ─── FAQ ─── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; }
.faq-question { padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: #fff; transition: var(--transition); background: var(--bg-card); }
.faq-question:hover { background: var(--bg-card2); }
.faq-question .icon { transition: transform 0.3s ease; font-size: 0.875rem; color: var(--text-muted); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-light); font-size: 0.9375rem; }
.faq-item.open .faq-answer { max-height: 500px; padding: 1rem 1.5rem 1.25rem; }

/* ─── Table ─── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--bg-card2); border-bottom: 1px solid var(--border); text-align: left; }
tbody td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.875rem; color: var(--text); }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Pagination ─── */
.pagination { display: flex; gap: 0.375rem; justify-content: center; margin-top: 2rem; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Auth Pages ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.auth-logo { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.auth-title { text-align: center; font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; border-top:1px solid var(--border); }
.auth-divider span { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Admin Settings Tab Nav ─── */
.admin-settings-tab-nav {
    position: sticky;
    top: 57px; /* admin-topbar height */
    z-index: 10;
    background: var(--bg);
    padding-bottom: .875rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

/* ─── Admin Sidebar ─── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; }
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-sidebar-logo { font-size: 1.125rem; font-weight: 800; color: #fff; }
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-group { margin-bottom: 0.25rem; }
.admin-nav-label { padding: 0.5rem 0.75rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-light); transition: var(--transition); margin-bottom: 0.125rem; }
.admin-nav a:hover { background: var(--bg-card2); color: #fff; }
.admin-nav a.active { background: var(--primary-light); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.admin-nav a .badge { margin-left: auto; }
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0.875rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.admin-page-title { font-size: 1.125rem; font-weight: 700; }
.admin-content { padding: 1.5rem; flex: 1; }

/* ─── Stats Cards ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-card-value { font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Checkboxes / Toggles ─── */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider { width: 44px; height: 24px; background: var(--border); border-radius: 20px; transition: var(--transition); position: relative; }
.toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; }
.toggle input:checked ~ .toggle-slider { background: var(--primary); }
.toggle input:checked ~ .toggle-slider::after { transform: translateX(20px); }

/* ─── Credit/Bakiye ─── */
.balance-display { text-align: center; padding: 2rem; background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%); border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
.balance-amount { font-size: 3rem; font-weight: 800; color: #fff; }
.balance-label { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

/* ─── Support Tickets ─── */
.ticket-status { display: inline-flex; align-items: center; gap: 0.375rem; }
.ticket-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.status-open .ticket-status::before { background: var(--success); }
.status-answered .ticket-status::before { background: var(--info); }
.status-closed .ticket-status::before { background: var(--text-muted); }
.chat-bubble { max-width: 70%; border-radius: var(--radius); padding: 1rem 1.25rem; }
.chat-user { background: var(--bg-card2); margin-right: auto; }
.chat-admin { background: var(--primary-light); border: 1px solid var(--primary); margin-left: auto; }

/* ─── License Card ─── */
.license-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.license-key { font-family: monospace; font-size: 0.875rem; color: #a78bfa; background: rgba(124,58,237,0.1); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid rgba(124,58,237,0.2); }

/* ─── Code delivery box ─── */
.code-box { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.code-value { font-family: monospace; font-size: 1.25rem; color: #a78bfa; word-break: break-all; }

/* ─── Footer ─── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.875rem; transition: var(--transition); }
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-links h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links a { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.8125rem; }

/* ─── Breadcrumb ─── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }

/* ─── Page Header ─── */
.page-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.page-header-title { font-size: 1.75rem; margin-bottom: 0.375rem; }
.page-header-sub { color: var(--text-muted); }

/* ─── Filters ─── */
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.filter-btn { padding: 0.375rem 0.875rem; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; background: transparent; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Empty state ─── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; color: var(--text-muted); margin-bottom: 1rem; opacity: 0.5; }
.empty-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.empty-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ─── Variants ─── */
.variants { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.variant-btn { padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; transition: var(--transition); }
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Blog ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-card2); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.25rem; }
.blog-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.blog-excerpt { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
}
@media (max-width: 768px) {
    .nav-search { display: none; }
    .nav-links { display: none; position: static; transform: none; }
    .nav-mobile-toggle { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg-card); padding: 1rem; border-bottom: 1px solid var(--border); z-index: 999; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { gap: 1.5rem; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .auth-card { padding: 1.5rem; }
}


