:root {
    --bg-main: #0a0a0a;
    --bg-card: #111113;
    --bg-inner: #18181b;
    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(255,255,255,0.13);
    --accent: #3b82f6;
    --accent-glow: rgba(59,130,246,0.18);
    --success: #10b981;
    --purple: #7c3aed;
    --text-primary: #ffffff;
    --text-muted: rgba(255,255,255,0.42);
    --text-secondary: rgba(255,255,255,0.68);
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    filter: brightness(1.2);
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Dot grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ── */
.shop-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.shop-topbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.shop-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.shop-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 12px;
}

.shop-name { color: #fff; }
.shop-name span { color: var(--accent); }

.shop-topnav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.shop-topnav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.shop-topnav a:hover, .shop-topnav a.active { color: #fff; }

.btn-primary {
    background: #fff !important;
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700 !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.shop-topnav-balance {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.shop-topnav-user {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── PAGE ── */
.shop-page { position: relative; z-index: 1; padding-top: 60px; min-height: 100vh; display: block; }

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: transparent;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1.0;
    margin-bottom: 24px;
    color: #fff;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

.btn-large {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border-bright);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ── FEATURES ── */
.features { padding: 80px 48px; max-width: 1280px; margin: 0 auto; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.feature:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
}

.feature h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0; color: #fff; }
.feature p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin: 0; }

/* ── FOOTER ── */
/* ── ALIASES FOR RESELLER PANEL ── */
.reseller-body .page, .reseller-body .shop-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 60px 0 0 0;
    min-height: 100vh;
}

.topbar, .shop-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.topbar-inner, .shop-topbar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.brand, .shop-brand {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.brand-mark { color: var(--accent); font-size: 1.5rem; margin-right: 8px; }
.brand-sub { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; margin-left: 4px; }

.topbar-user { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; }
.topbar-balance { color: var(--text-secondary); }
.topbar-balance strong { color: var(--accent); }
.topbar-username { font-weight: 600; color: #fff; }

.sidebar, .shop-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-nav, .shop-sidenav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav .nav-item, .shop-sidenav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.sidebar-nav .nav-item:hover, .shop-sidenav .nav-item:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.sidebar-nav .nav-item.active, .shop-sidenav .nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.shop-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.shop-card-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.shop-card-link { font-size: 0.75rem; color: var(--accent); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }

.main-content, .shop-main {
    padding: 40px 48px;
    background: var(--bg-main);
    min-width: 0;
}

.page-footer, .shop-footer {
    border-top: 1px solid var(--border);
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 1280px;
    margin: 0 auto;
}

.shop-footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.shop-footer a:hover { color: #fff; }

/* ── DASHBOARD LAYOUT ── */
.shop-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 60px 0 0 0;
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.shop-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
}

.shop-sidenav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-sidenav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-sidenav .nav-item:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.shop-sidenav .nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.shop-main {
    padding: 40px 48px;
    background: var(--bg-main);
    min-width: 0;
}

/* ── CARDS & STATS ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-meta {
    margin-top: 12px;
    font-size: 0.85rem;
}

.stat-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.stat-meta a:hover { color: #fff; }

/* ── TABLES ── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
}

.data-table th {
    text-align: left;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }

/* ── HEADINGS ── */
.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

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

/* ── PRICING ── */
.pricing-hero {
    text-align: center;
    padding: 80px 24px 40px;
}

.pricing-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 16px;
}

.pricing-section {
    padding: 40px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
}

.pricing-card-popular {
    border-color: var(--accent);
}

.pricing-popular-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-amount {
    margin-bottom: 24px;
}

.pricing-amount-value {
    font-size: 2.5rem;
    font-weight: 900;
}

.pricing-amount-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.pricing-amount-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-cta {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    transition: all 0.2s;
}

.pricing-card:hover .pricing-cta {
    background: var(--accent);
    color: #fff;
}

/* ── AUTH ── */
.auth-container {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    text-align: center;
}

.auth-meta {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.auth-meta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ── FORMS ── */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form select,
.form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form input:focus, .form select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .shop-page {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        display: none;
    }
    .shop-main {
        padding: 40px 20px;
    }
}
