/* ============================================================
   WEALTH NATION — Design System
   ============================================================ */

:root {
    /* Brand Purple Hierarchy */
    --purple-deep: #2E1065;
    --purple-dark: #4C1D95;
    --primary-purple: #6B21A8;
    --purple-violet: #7C3AED;
    --purple-light: #9333EA;
    --purple-soft: #A78BFA;
    --lavender: #EDE9FE;
    --lavender-light: #F7F5FF;
    --lavender-muted: #DDD6FE;
    --lavender-bg: #FAF8FF;

    /* Gold Accent — achievement, wealth, rewards */
    --gold: #C99A3D;
    --gold-dark: #A87822;
    --gold-light: #F5E8C5;
    --gold-soft: #FBF5E7;

    /* Neutrals */
    --background: #FAFBFC;
    --surface: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --text: #1A1625;
    --text-secondary: #4B4563;
    --muted: #6E6A7B;
    --border: #E6E2EE;
    --border-light: #F0ECF6;

    /* Semantic */
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --info: #2563EB;
    --info-bg: #EFF6FF;

    /* Tier Colors */
    --tier-starter: #78716C;
    --tier-silver: #64748B;
    --tier-gold: #C99A3D;
    --tier-platinum: #7C3AED;
    --tier-elite: #2E1065;

    /* Typography */
    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 22, 37, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 22, 37, 0.06);
    --shadow-lg: 0 12px 40px rgba(26, 22, 37, 0.08);
    --shadow-purple: 0 8px 24px rgba(107, 33, 168, 0.18);

    /* Layout */
    --header-height: 72px;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --container-max: 1200px;
    --container-wide: 1400px;

    /* Transitions */
    --transition: 0.25s ease;
    --transition-fast: 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-purple); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--purple-light); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide { max-width: var(--container-wide); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(107, 33, 168, 0.22);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-purple);
    border-color: var(--lavender-muted);
}
.btn-secondary:hover {
    background: var(--lavender-light);
    color: var(--purple-dark);
    border-color: var(--purple-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--lavender-light); color: var(--primary-purple); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--lavender-light); color: var(--muted); }
.badge-purple { background: var(--lavender); color: var(--primary-purple); }
.badge-gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid var(--gold-light); }

.tier-badge {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.tier-starter { background: #F5F5F4; color: var(--tier-starter); }
.tier-bronze { background: #F5F5F4; color: var(--tier-starter); }
.tier-silver { background: #F1F5F9; color: var(--tier-silver); }
.tier-gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid var(--gold-light); }
.tier-platinum { background: var(--lavender); color: var(--tier-platinum); }
.tier-elite { background: #EDE9FE; color: var(--tier-elite); }

/* ============================================================
   SITE HEADER / NAVBAR
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-lg);
}

.logo-link { flex-shrink: 0; }
.logo-img { width: 52px; height: 52px; object-fit: contain; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}
.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.is-active {
    color: var(--primary-purple);
    background: var(--lavender-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.mobile-menu-toggle:hover { background: var(--lavender-light); }
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 46, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--surface);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    border-radius: var(--radius-sm);
}
.mobile-nav-close:hover { background: var(--lavender-light); color: var(--text); }

.mobile-nav-list {
    list-style: none;
    padding: var(--space-md);
}
.mobile-nav-link {
    display: block;
    padding: 0.85rem var(--space-md);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}
.mobile-nav-link:hover, .mobile-nav-link.is-active {
    background: var(--lavender-light);
    color: var(--primary-purple);
}
.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) 0;
}
.mobile-nav-list .btn { margin-top: var(--space-sm); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: var(--purple-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,7,100,0.92) 0%, rgba(107,33,168,0.75) 50%, rgba(76,29,149,0.85) 100%);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-4xl) 0;
}

.hero-text { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: var(--lavender);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(8px);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #34D399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}
.hero-title span {
    background: linear-gradient(135deg, #E9D5FF, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}
.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.15rem;
}

.hero-visual {
    position: relative;
}
.hero-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.hero-visual-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}
.hero-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-visual-card:first-child { grid-row: span 2; aspect-ratio: auto; }
.hero-visual-card-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 2;
}
.hero-visual-accent-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: var(--space-4xl) 0;
}
.section-alt { background: var(--lavender-light); }
.section-dark {
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-dark));
    color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}
.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-purple);
    margin-bottom: var(--space-sm);
}
.section-dark .section-label { color: var(--lavender-muted); }
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.7;
}
.section-dark .section-desc { color: rgba(255,255,255,0.75); }

/* Value Cards */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.value-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    text-align: center;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lavender-muted);
}
.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--lavender), var(--lavender-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
}
.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}
.value-card p {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-category-tag {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.25rem 0.65rem;
    background: rgba(255,255,255,0.95);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-purple);
    border-radius: var(--radius-full);
}
.product-card-body { padding: var(--space-lg); }
.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}
.product-card-body p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}
.product-availability {
    font-size: 0.8125rem;
    font-weight: 600;
}
.product-availability.in-stock { color: var(--success); }
.product-availability.low-stock { color: var(--warning); }
.product-availability.seasonal { color: var(--info); }

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--lavender-muted), var(--primary-purple), var(--lavender-muted));
    z-index: 0;
}
.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}
.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-light));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-purple);
}
.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}
.step-card p {
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Distributor CTA Section */
.distributor-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}
.distributor-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}
.distributor-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.distributor-features li svg {
    flex-shrink: 0;
    color: var(--primary-purple);
    margin-top: 2px;
}
.distributor-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}
.distributor-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Performance Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.stat-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--purple-light));
}
.stat-card-icon {
    width: 40px;
    height: 40px;
    background: var(--lavender-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    margin-bottom: var(--space-md);
}
.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
}
.stat-card.featured {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border: none;
    color: #fff;
}
.stat-card.featured .stat-value,
.stat-card.featured .stat-label { color: #fff; }
.stat-card.featured .stat-label { opacity: 0.8; }
.stat-card.featured .stat-card-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.stat-card.featured::before { display: none; }

/* Rewards Preview */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.reward-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    text-align: center;
}
.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lavender-muted);
}
.reward-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--lavender), #FDE68A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.reward-card h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
}
.reward-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.reward-tier {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.testimonial-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
}
.testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    color: var(--lavender-muted);
    font-family: Georgia, serif;
    margin-bottom: var(--space-sm);
}
.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.9375rem;
}
.testimonial-meta {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Final CTA */
.cta-section {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--primary-purple) 50%, var(--purple-light) 100%);
    border-radius: var(--radius-xl);
    margin: 0 var(--space-lg);
    max-width: calc(var(--container-max) - var(--space-lg) * 2);
    margin-left: auto;
    margin-right: auto;
}
.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: var(--space-md);
}
.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* Page Hero (inner pages) */
.page-hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--lavender-light) 0%, var(--background) 100%);
    text-align: center;
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.page-hero-desc {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.75);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}
.footer-logo { margin-bottom: var(--space-md); }
.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}
.footer-tagline { font-size: 0.9375rem; margin-bottom: var(--space-lg); }
.social-links { display: flex; gap: var(--space-sm); }
.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
}
.social-link:hover {
    background: var(--primary-purple);
    color: #fff;
}
.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.footer-bottom-tagline { color: var(--lavender-muted); font-weight: 500; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
    outline: none;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.form-hint {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: var(--space-xs);
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.form-checkbox input { margin-top: 4px; accent-color: var(--primary-purple); }

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-visual {
    background: linear-gradient(135deg, var(--purple-deep), var(--primary-purple));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-3xl);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--auth-visual-image, none) center/cover;
    opacity: 0.18;
}
.auth-visual-content { position: relative; z-index: 1; }
.auth-visual img.logo-img { width: 80px; height: 80px; margin: 0 auto var(--space-xl); }
.auth-visual h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: var(--space-md);
}
.auth-visual p { color: rgba(255,255,255,0.8); max-width: 360px; }

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--surface);
}
.auth-form-container { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-form-container h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}
.auth-form-container .subtitle {
    color: var(--muted);
    margin-bottom: var(--space-2xl);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--muted);
    font-size: 0.875rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-footer-link {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    color: #fff;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}
.contact-info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.contact-info-item svg { flex-shrink: 0; opacity: 0.8; }
.contact-info-item h4 { font-size: 0.875rem; opacity: 0.75; margin-bottom: 0.25rem; color: #fff; }
.contact-info-item p { font-size: 1rem; color: #fff; }
.contact-form-card {
    background: var(--surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: width var(--transition), transform var(--transition);
    overflow: hidden;
}
.dashboard-sidebar.collapsed { width: var(--sidebar-collapsed); }
.dashboard-sidebar.collapsed .sidebar-brand,
.dashboard-sidebar.collapsed .sidebar-profile-info,
.dashboard-sidebar.collapsed .sidebar-link span,
.dashboard-sidebar.collapsed .sidebar-admin-badge { display: none; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    min-height: 72px;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
}
.sidebar-collapse-btn {
    width: 32px;
    height: 32px;
    background: var(--lavender-light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-collapse-btn:hover { background: var(--lavender); color: var(--primary-purple); }

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}
.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-profile-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-admin-badge { padding: var(--space-md) var(--space-lg); }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
}
.sidebar-nav-list { list-style: none; padding: 0 var(--space-sm); }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.7rem var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.sidebar-link:hover { background: var(--lavender-light); color: var(--primary-purple); }
.sidebar-link.is-active {
    background: linear-gradient(135deg, var(--lavender), var(--lavender-light));
    color: var(--primary-purple);
    font-weight: 600;
}
.sidebar-link-muted { color: var(--muted); }
.sidebar-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border-light); margin: var(--space-md) var(--space-lg); }

.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.dashboard-sidebar.collapsed + .dashboard-main,
body.sidebar-collapsed .dashboard-main { margin-left: var(--sidebar-collapsed); }

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    min-height: 72px;
    gap: var(--space-lg);
}
.topbar-left { display: flex; align-items: center; gap: var(--space-md); }
.sidebar-toggle-mobile {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: var(--radius-sm);
}
.sidebar-toggle-mobile:hover { background: var(--lavender-light); }
.topbar-title { font-size: 1.375rem; font-weight: 700; }
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 2px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-purple); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 12px;
    color: var(--muted);
    pointer-events: none;
}
.topbar-search-input {
    width: 240px;
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    transition: all var(--transition-fast);
}
.topbar-search-input:focus {
    width: 280px;
    border-color: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    outline: none;
}
.topbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.topbar-icon-btn:hover { background: var(--lavender-light); color: var(--primary-purple); }
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--surface);
}
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.topbar-user-btn:hover { border-color: var(--lavender-muted); background: var(--lavender-light); }
.topbar-avatar { border-radius: 50%; object-fit: cover; }
.topbar-user-name { display: none; }

.dashboard-content {
    flex: 1;
    padding: var(--space-xl);
    padding-bottom: calc(var(--space-xl) + 70px);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    gap: var(--space-lg);
}
.dashboard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dashboard-grid-3 { grid-template-columns: repeat(3, 1fr); }
.dashboard-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid-main { grid-template-columns: 2fr 1fr; }

.metric-card {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.metric-card:hover { box-shadow: var(--shadow-md); }
.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}
.metric-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.metric-icon {
    width: 36px;
    height: 36px;
    background: var(--lavender-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
}
.metric-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-xs);
}
.metric-change {
    font-size: 0.8125rem;
    font-weight: 600;
}
.metric-change.positive { color: var(--success); }
.metric-change.negative { color: var(--danger); }

.panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}
.panel-title {
    font-size: 1rem;
    font-weight: 700;
}
.panel-body { padding: var(--space-lg); }
.panel-body-flush { padding: 0; }

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--lavender-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--purple-light));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* Tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: var(--background);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}
.data-table tr:hover td { background: var(--lavender-light); }
.data-table .text-right { text-align: right; }
.data-table .font-mono { font-family: monospace; font-size: 0.8125rem; color: var(--primary-purple); }

/* Mobile card view for tables */
.table-cards { display: none; }
.table-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.table-card-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
}
.table-card-label { color: var(--muted); font-weight: 500; }

/* Tabs */
.tabs { margin-bottom: var(--space-xl); }
.tab-list {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.tab-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.tab-btn:hover { color: var(--primary-purple); }
.tab-btn.is-active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 300;
}
.dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: block;
    padding: 0.6rem var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
.dropdown-item:hover { background: var(--lavender-light); color: var(--primary-purple); }
.dropdown-divider { height: 1px; background: var(--border); margin: var(--space-xs) 0; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 46, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition);
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.125rem; font-weight: 700; }
.modal-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--lavender-light); }
.modal-body { padding: var(--space-lg); }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Chart placeholder */
.chart-container {
    height: 260px;
    position: relative;
    padding: var(--space-md) 0;
}
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
}
.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--purple-light), var(--primary-purple));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
    transition: height 1s ease;
    position: relative;
    cursor: pointer;
}
.chart-bar:hover { opacity: 0.85; }
.chart-bar-label {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--muted);
    margin-top: var(--space-sm);
}
.chart-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.chart-bar:hover .chart-bar-tooltip { opacity: 1; }

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.leaderboard-item:hover { background: var(--lavender-light); }
.leaderboard-item.is-you {
    background: var(--lavender-light);
    border: 1px solid var(--lavender-muted);
}
.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: 50%;
    background: var(--background);
    color: var(--muted);
    flex-shrink: 0;
}
.leaderboard-rank.top { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--gold-dark); }
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaderboard-location { font-size: 0.75rem; color: var(--muted); }
.leaderboard-sales {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-purple);
    white-space: nowrap;
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-xl);
}
.filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.filter-search input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface);
}
.filter-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}
.filter-select {
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface);
    cursor: pointer;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--muted);
}
.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--lavender-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
}
.empty-state h3 { color: var(--text); margin-bottom: var(--space-sm); }

/* Dashboard mobile nav */
.dashboard-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 150;
    padding: var(--space-xs) 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-xs);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.is-active { color: var(--primary-purple); }

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.category-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.category-pill:hover, .category-pill.is-active {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
}

/* Tier cards */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.tier-card {
    background: var(--surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-card.current { border-color: var(--primary-purple); box-shadow: var(--shadow-purple); }
.tier-card-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.tier-card h3 { margin-bottom: var(--space-sm); }
.tier-card-requirement {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: var(--space-lg);
}
.tier-benefits { list-style: none; text-align: left; }
.tier-benefits li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.tier-benefits li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}
.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.values-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}
.value-item {
    text-align: center;
    padding: var(--space-xl);
}
.value-item-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: var(--space-sm);
}

/* Settings */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-xl);
}
.settings-nav { list-style: none; }
.settings-nav-link {
    display: block;
    padding: 0.75rem var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 2px;
}
.settings-nav-link:hover, .settings-nav-link.is-active {
    background: var(--lavender-light);
    color: var(--primary-purple);
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--lavender-light), var(--surface));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}
.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-md);
}

/* Delivery timeline */
.timeline { position: relative; padding-left: var(--space-xl); }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: var(--space-lg);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) + 3px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--surface);
}
.timeline-item.completed::before { background: var(--success); }
.timeline-item.active::before { background: var(--primary-purple); box-shadow: 0 0 0 4px var(--lavender); }
.timeline-time { font-size: 0.75rem; color: var(--muted); }
.timeline-title { font-weight: 600; font-size: 0.875rem; }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.65rem;
    background: var(--text);
    color: #fff;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
[data-tooltip]:hover::after { opacity: 1; }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-purple { color: var(--primary-purple); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-md { gap: var(--space-md); }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .main-nav, .header-actions .btn-ghost { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .distributor-section { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rewards-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid-main { grid-template-columns: 1fr; }
    .tier-cards { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .topbar-search { display: none; }
    .topbar-user-name { display: inline; }
}

@media (max-width: 768px) {
    :root { --space-4xl: 4rem; --space-3xl: 2.5rem; }
    .value-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .rewards-grid { grid-template-columns: 1fr; }
    .distributor-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-grid-4,
    .dashboard-grid-3,
    .dashboard-grid-2 { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }
    .dashboard-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .dashboard-main { margin-left: 0 !important; }
    .sidebar-toggle-mobile { display: flex; }
    .sidebar-collapse-btn { display: none; }
    .dashboard-mobile-nav { display: flex; }
    .dashboard-content { padding: var(--space-md); padding-bottom: calc(70px + var(--space-md)); }
    .data-table { display: none; }
    .table-cards { display: block; }
    .settings-layout { grid-template-columns: 1fr; }
    .values-list { grid-template-columns: 1fr; }
    .tier-cards { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .cta-section { margin: 0 var(--space-md); border-radius: var(--radius-lg); }
}

@media (max-width: 390px) {
    .hero-stats { flex-direction: column; gap: var(--space-lg); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
}

/* ============================================================
   PREMIUM REFINEMENT — Homepage & Global Polish
   ============================================================ */

.section-soft { background: var(--lavender-bg); }
.section-title-left { text-align: left; }
.prototype-note { font-style: normal; font-size: 0.875rem; color: var(--muted); font-weight: 400; }

/* Header refinement */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border-light);
}
.nav-link { font-size: 0.875rem; letter-spacing: 0.01em; }
.logo-img { width: 48px; height: 48px; }

/* Hero premium */
.hero-premium {
    min-height: min(92vh, 880px);
    background: var(--purple-deep);
}
.hero-premium .hero-bg-overlay {
    background: linear-gradient(105deg, rgba(46, 16, 101, 0.94) 0%, rgba(76, 29, 149, 0.82) 45%, rgba(107, 33, 168, 0.72) 100%);
}
.hero-premium .hero-title {
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.hero-premium .hero-title span { -webkit-text-fill-color: unset; color: #E9D5FF; background: none; }
.hero-premium .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    font-weight: 400;
}
.hero-btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.hero-btn-light:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.hero-stat { min-width: 0; }
.hero-visual-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}
.hero-visual-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.hero-visual-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/10;
}
.hero-visual-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-premium .hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-md);
    align-items: stretch;
}
.hero-floating-card {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--surface);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border: 1px solid var(--border-light);
    z-index: 2;
}
.hero-floating-icon {
    width: 44px;
    height: 44px;
    background: var(--lavender-light);
    color: var(--primary-purple);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-floating-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
}
.hero-floating-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
}

/* Value cards premium */
.value-card-premium {
    text-align: left;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.value-card-premium .value-icon {
    margin: 0 0 var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--lavender-light);
    border: 1px solid var(--border-light);
}
.value-card-premium h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.value-card-premium p { font-size: 0.9375rem; line-height: 1.65; }
.value-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--lavender-muted);
}

/* Ecosystem flow */
.ecosystem-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: var(--space-xl) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ecosystem-node {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.ecosystem-node:hover {
    border-color: var(--lavender-muted);
    box-shadow: var(--shadow-md);
}
.ecosystem-node-hub {
    border-color: var(--primary-purple);
    background: linear-gradient(180deg, var(--lavender-light) 0%, var(--surface) 100%);
    box-shadow: var(--shadow-purple);
}
.ecosystem-node-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-md);
    background: var(--lavender-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
}
.ecosystem-node-icon-hub {
    background: var(--surface);
    border: 2px solid var(--lavender-muted);
    padding: 6px;
}
.ecosystem-node-icon-hub img { width: 100%; height: 100%; object-fit: contain; }
.ecosystem-node-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.ecosystem-node-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.45;
}
.ecosystem-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 32px;
    position: relative;
}
.ecosystem-connector span {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--lavender-muted), var(--primary-purple), var(--lavender-muted));
    position: relative;
}
.ecosystem-connector span::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--primary-purple);
}

/* Category strip */
.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}
.category-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: all var(--transition-fast);
    min-width: 120px;
}
.category-chip span { font-weight: 600; font-size: 0.875rem; }
.category-chip small { font-size: 0.6875rem; color: var(--muted); margin-top: 2px; }
.category-chip:hover {
    border-color: var(--primary-purple);
    background: var(--lavender-light);
    color: var(--primary-purple);
    transform: translateY(-1px);
}

/* Wholesale product cards */
.wholesale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.wholesale-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.wholesale-card:hover {
    border-color: var(--lavender-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.wholesale-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--lavender-bg);
}
.wholesale-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.wholesale-card:hover .wholesale-card-image img { transform: scale(1.03); }
.wholesale-category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.2rem 0.55rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-purple);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wholesale-card-body { padding: var(--space-lg); }
.wholesale-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.35;
}
.wholesale-pack {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.wholesale-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}
.wholesale-price-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 2px;
}
.wholesale-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.wholesale-note {
    font-size: 0.8125rem;
    color: var(--primary-purple);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

/* Steps premium */
.steps-premium .step-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.steps-premium .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
    background: var(--primary-purple);
    box-shadow: none;
}
.steps-premium::before { display: none; }

/* Distributor opportunity */
.distributor-opportunity { background: var(--surface); }
.distributor-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}
.distributor-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
}
.distributor-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.check-icon {
    width: 24px;
    height: 24px;
    background: var(--lavender-light);
    color: var(--primary-purple);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.distributor-visual-premium {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
}
.distributor-visual-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.distributor-visual-badge {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.distributor-visual-badge p {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: var(--space-xs);
}

/* Performance showcase */
.performance-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}
.performance-stat {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.performance-stat:hover {
    border-color: var(--lavender-muted);
    box-shadow: var(--shadow-md);
}
.performance-stat-featured {
    background: linear-gradient(160deg, var(--purple-deep) 0%, var(--primary-purple) 100%);
    border-color: transparent;
    color: #fff;
}
.performance-stat-featured .performance-stat-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.performance-stat-featured .performance-stat-value,
.performance-stat-featured .performance-stat-label { color: #fff; }
.performance-stat-featured .performance-stat-label { opacity: 0.8; }
.performance-stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto var(--space-md);
    background: var(--lavender-light);
    color: var(--primary-purple);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.performance-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.performance-stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
}

/* Tier showcase */
.tier-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}
.tier-showcase-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.tier-showcase-card:hover {
    border-color: var(--lavender-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.tier-showcase-card.is-current {
    border: 2px solid var(--primary-purple);
    background: linear-gradient(180deg, var(--lavender-light) 0%, var(--surface) 100%);
    box-shadow: var(--shadow-purple);
    transform: scale(1.02);
    z-index: 1;
}
.tier-current-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.tier-showcase-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-sm);
}
.tier-showcase-threshold {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: var(--space-sm);
}
.tier-showcase-multiplier {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    background: var(--lavender-light);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}
.tier-showcase-benefits {
    list-style: none;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.tier-showcase-benefits li {
    padding: 0.3rem 0;
    border-top: 1px solid var(--border-light);
}
.tier-showcase-benefits li:first-child { border-top: none; }

/* Rewards marketplace */
.rewards-marketplace {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.reward-market-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.reward-market-card:hover {
    border-color: var(--lavender-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.reward-market-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.reward-market-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.reward-market-card:hover .reward-market-image img { transform: scale(1.04); }
.reward-market-value {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    border: 1px solid var(--border-light);
}
.reward-market-body { padding: var(--space-lg); }
.reward-market-body h3 { font-size: 1rem; font-weight: 600; }
.reward-market-body p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: var(--space-sm) 0 var(--space-md);
    line-height: 1.55;
}

/* Testimonials premium */
.testimonial-premium { text-align: left; box-shadow: var(--shadow-sm); }
.testimonial-premium .testimonial-quote { display: none; }
.testimonial-rating {
    color: var(--tier-gold);
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}
.testimonial-premium .testimonial-text {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* CTA premium */
.section-cta { padding-top: var(--space-2xl); }
.cta-premium {
    margin: 0;
    max-width: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--primary-purple) 55%, var(--purple-violet) 100%);
    padding: var(--space-3xl) var(--space-xl);
}
.cta-premium h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Section typography polish */
.section-title {
    font-weight: 700;
    letter-spacing: -0.025em;
}
.section-desc {
    font-size: 1rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.section-label {
    background: var(--lavender-light);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

/* Footer subtle refinement */
.site-footer {
    background: var(--text);
    margin-top: 0;
}

/* Premium responsive */
@media (max-width: 1200px) {
    .wholesale-grid { grid-template-columns: repeat(2, 1fr); }
    .performance-showcase { grid-template-columns: repeat(3, 1fr); }
    .tier-showcase { grid-template-columns: repeat(3, 1fr); }
    .rewards-marketplace { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-premium .hero-visual { display: none; }
    .hero-premium .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .ecosystem-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow-x: visible;
    }
    .ecosystem-node { max-width: 320px; width: 100%; }
    .ecosystem-connector {
        width: 2px;
        height: 28px;
        flex-direction: column;
    }
    .ecosystem-connector span {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--lavender-muted), var(--primary-purple));
    }
    .ecosystem-connector span::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: var(--primary-purple);
        border-left-color: transparent;
    }
    .distributor-benefits { grid-template-columns: 1fr; }
    .section-title-left { text-align: center; }
    .distributor-lead { margin-left: auto; margin-right: auto; text-align: center; }
    .distributor-content { text-align: center; }
    .distributor-content .btn { margin: 0 auto; }
    .distributor-benefits { text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .hero-premium { min-height: auto; padding-bottom: var(--space-3xl); }
    .hero-premium .hero-content { padding: var(--space-3xl) 0 var(--space-2xl); }
    .hero-premium .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
        justify-content: space-between;
    }
    .hero-stat { flex: 1 1 30%; min-width: 90px; }
    .hero-stat-value { font-size: 1.375rem; }
    .wholesale-grid { grid-template-columns: 1fr; }
    .performance-showcase { grid-template-columns: 1fr 1fr; }
    .performance-stat-gold { grid-column: span 2; }
    .tier-showcase { grid-template-columns: 1fr; }
    .tier-showcase-card.is-current { transform: none; }
    .rewards-marketplace { grid-template-columns: 1fr; }
    .category-strip { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-sm); }
    .category-chip { flex-shrink: 0; }
    .cta-premium { padding: var(--space-2xl) var(--space-lg); }
    .container { padding: 0 var(--space-md); }
    .mobile-nav-link { min-height: 48px; display: flex; align-items: center; }
    .mobile-menu-toggle { min-width: 44px; min-height: 44px; }
}

@media (max-width: 414px) {
    .hero-premium .hero-actions .btn { width: 100%; }
    .hero-stat { flex: 1 1 100%; }
    .performance-showcase { grid-template-columns: 1fr; }
    .performance-stat-gold { grid-column: span 1; }
    .distributor-visual-premium { aspect-ratio: 16/10; }
}

/* ============================================================
   GOLD ACCENT SYSTEM — Purple primary, gold for achievement
   ============================================================ */

.text-gold { color: var(--gold-dark); }
.text-gold-soft { color: var(--gold); font-weight: 600; }
.pts-label { font-weight: 700; color: var(--gold); }

/* Hero gold details */
.hero-gold-accent {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}
.hero-floating-card-gold { border-color: var(--gold-light); }
.hero-floating-icon-gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
}
.hero-premium .hero-bg-image { object-position: center 20%; }
.hero-visual-main img { object-position: center 25%; }
.distributor-visual-premium img { object-position: center 20%; }

/* Value card gold accent */
.value-icon-gold {
    background: var(--gold-soft) !important;
    border-color: var(--gold-light) !important;
    color: var(--gold-dark) !important;
}
.value-card-gold { border-color: var(--gold-light); }
.value-card-gold:hover { border-color: var(--gold); }

/* Ecosystem gold node */
.ecosystem-node-gold { border-color: var(--gold-light); }
.ecosystem-node-icon-gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
}
.ecosystem-node-gold + .ecosystem-connector span {
    background: linear-gradient(90deg, var(--primary-purple), var(--gold), var(--lavender-muted));
}

/* Tier showcase — Gold tier luxury treatment */
.tier-showcase-card.tier-gold.is-current {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--surface) 85%);
    box-shadow: 0 8px 28px rgba(201, 154, 61, 0.15);
}
.tier-showcase-card.tier-gold.is-current .tier-current-badge {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
}
.tier-showcase-card.tier-gold.is-current .tier-showcase-multiplier {
    background: var(--gold-soft);
    color: var(--gold-dark);
    border: 1px solid var(--gold-light);
}
.tier-showcase-card.tier-gold.is-current .tier-showcase-name {
    color: var(--gold-dark);
}

/* Performance stats gold */
.performance-stat-gold {
    background: var(--surface);
    border-color: var(--gold-light);
}
.performance-stat-icon-gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
}
.performance-stat-points .performance-stat-value,
.performance-stat-rank .performance-stat-value { letter-spacing: -0.02em; }
.performance-stat-gold .performance-stat-label { color: var(--text-secondary); }

/* Rewards marketplace gold */
.reward-market-value {
    color: var(--gold-dark);
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.96);
}

/* Dashboard gold accents */
.panel-welcome {
    background: linear-gradient(135deg, var(--lavender-light), var(--surface));
    border: 1px solid var(--border-light);
}
.panel-rewards-header {
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--primary-purple) 70%);
    border: none;
    color: #fff;
}
.panel-rewards-header .tier-badge.tier-gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
    border-color: var(--gold-light);
}
.reward-points-display {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-light);
}
.metric-card-gold { border-color: var(--gold-light); }
.metric-card-gold:hover { border-color: var(--gold); }
.metric-icon-gold {
    background: var(--gold-soft) !important;
    color: var(--gold-dark) !important;
}
.metric-change-gold { color: var(--gold-dark); font-weight: 600; }

/* Utility */
.text-purple { color: var(--primary-purple); }

/* ============================================================
   DEVELOPMENT NOTICE POPUP
   ============================================================ */

.wn-dev-popup-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wn-dev-popup-root.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.wn-dev-popup-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 10, 30, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: auto;
}

.wn-dev-popup-root.is-visible .wn-dev-popup-backdrop {
    opacity: 1;
}

.wn-dev-popup-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 24px 64px rgba(46, 16, 101, 0.18);
    border: 1px solid var(--border-light);
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.wn-dev-popup-root.is-visible .wn-dev-popup-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wn-dev-popup-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-sm);
}

.wn-dev-popup-logo {
    object-fit: contain;
}

.wn-dev-popup-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-purple);
}

.wn-dev-popup-eyebrow {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: var(--space-sm);
}

.wn-dev-popup-title {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    text-align: center;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}

.wn-dev-popup-body {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.wn-dev-popup-body p + p {
    margin-top: var(--space-sm);
}

.wn-dev-popup-highlight {
    color: var(--text);
}

.wn-dev-popup-form {
    margin-bottom: var(--space-md);
}

.wn-dev-popup-input {
    margin-bottom: var(--space-md);
}

.wn-dev-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wn-dev-popup-privacy {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 0;
}

.wn-dev-popup-success {
    text-align: center;
    padding-top: var(--space-md);
}

.wn-dev-popup-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: var(--gold-soft);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.wn-dev-popup-open {
    overflow: hidden;
}

body.wn-dev-popup-open > *:not(#wnDevelopmentPopupRoot) {
    pointer-events: none;
    user-select: none;
}

@media (max-width: 480px) {
    .wn-dev-popup-root {
        padding: 18px;
        align-items: flex-end;
    }

    .wn-dev-popup-dialog {
        padding: var(--space-xl) var(--space-lg) var(--space-lg);
        border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
    }
}
