/* ========== GENZ MODERN PROFESSIONAL THEME ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Modern Professional Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Subtle Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
    --gradient-6: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    /* Base Colors - Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ========== LOADER ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    margin-top: 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-link i {
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.wallet-btn {
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.wallet-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.wallet-btn i {
    font-size: 14px;
}
.wallet-btn:hover::before {
    width: 300px;
    height: 300px;
}

.wallet-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.6);
}

.wallet-btn.disconnect {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.wallet-btn.disconnect:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-purple);
}

.nav-toggle {
    display: none;
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

/* ========== REGISTRATION CARD ========== */
.registration-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xl);
}

.registration-content i {
    font-size: 36px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.registration-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.registration-content p {
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.registration-card .form-group input {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.registration-card .form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);    background: rgba(255, 255, 255, 0.2);
}

.registration-card .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon { background: var(--gradient-1); }
.stat-card:nth-child(2) .stat-icon { background: var(--gradient-2); }
.stat-card:nth-child(3) .stat-icon { background: var(--gradient-3); }
.stat-card:nth-child(4) .stat-icon { background: var(--gradient-4); }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-change {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ========== INFO GRID ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.info-header i {
    font-size: 16px;
    color: var(--primary);
}

.rank-badge {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(121, 40, 202, 0.5); }
    50% { box-shadow: 0 0 25px rgba(121, 40, 202, 0.8); }
}

.progress-item {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.progress-label span:first-child {
    color: var(--text-secondary);
}

.progress-bar {
    height: 12px;
    background: rgba(121, 40, 202, 0.15);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.progress-bar.large {
    height: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: fillShimmer 1.5s infinite;
}

@keyframes fillShimmer {
    to { transform: translateX(200%); }
}

.rank-reward {
    margin-top: 28px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.rank-reward i {
    color: var(--neon-yellow);
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--neon-yellow));
    animation: rewardGlow 1.5s ease-in-out infinite;
}

@keyframes rewardGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--neon-yellow)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--neon-yellow)); }
}

/* ========== INCOME CHART ========== */
.info-content canvas {
    max-height: 220px;
    margin-bottom: 24px;
}

.income-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.income-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: rgba(121, 40, 202, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(121, 40, 202, 0.2);
    transition: all 0.3s;
}

.income-item:hover {
    background: rgba(121, 40, 202, 0.15);
    transform: translateX(5px);
    border-color: rgba(121, 40, 202, 0.4);
}

.income-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.income-value {
    font-weight: 800;
    font-size: 18px;
    background: var(--gradient-5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== REFERRAL CARD ========== */
.referral-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.referral-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    animation: referralGlow 8s linear infinite;
}

@keyframes referralGlow {
    to { transform: rotate(360deg); }
}

.referral-content {
    display: flex;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.referral-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.referral-info i {
    font-size: 36px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shareIcon 3s ease-in-out infinite;
}

@keyframes shareIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.referral-info h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
}

.referral-info p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.referral-link {
    flex: 1;
    display: flex;
    gap: 12px;
}

.referral-link input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(121, 40, 202, 0.08);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.referral-link input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ========== VESTING CARD ========== */
.vesting-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.vesting-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.08) 0%, transparent 50%);
    animation: vestingGlow 10s linear infinite;
}

@keyframes vestingGlow {
    to { transform: rotate(360deg); }
}

.vesting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.vesting-header h3 {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vesting-header i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vesting-badge {
    padding: 8px 16px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(121, 40, 202, 0.3);
}

.vesting-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.vesting-stat {
    padding: 20px;
    background: rgba(121, 40, 202, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.vesting-stat:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 4px 16px rgba(121, 40, 202, 0.2);
    transform: translateY(-2px);
}

.vesting-stat.highlight {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.15), rgba(255, 0, 128, 0.15));
    border-color: var(--neon-pink);
}

.vesting-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vesting-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vesting-progress {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.vesting-note {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.08);
    border-left: 4px solid var(--neon-cyan);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.vesting-note i {
    color: var(--neon-cyan);
    font-size: 18px;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--glow-pink);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.5);
}

.btn-secondary {
    background: var(--gradient-3);
    color: white;
    box-shadow: var(--glow-cyan);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* ========== BUY PACKAGE ========== */
.buy-package-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.buy-package-card h3 {
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.buy-package-card h3 i {
    color: var(--primary);
    font-size: 18px;
}

.package-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-hint strong {
    color: var(--primary);
    font-size: 13px;
}

.package-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
}

.summary-item strong {
    color: var(--primary);
    font-size: 15px;
}

/* ========== PACKAGES LIST ========== */
.packages-list {
    display: grid;
    gap: 24px;
}

.package-item {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.package-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.package-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(121, 40, 202, 0.3);
    border-color: rgba(121, 40, 202, 0.5);
}

.package-item:hover::before {
    opacity: 0.05;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.package-header h4 {
    font-size: 22px;
    font-weight: 800;
}

.package-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-badge.active {
    background: var(--gradient-4);
    color: white;
    box-shadow: 0 0 15px rgba(67, 233, 123, 0.5);
}

.package-badge.inactive {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.package-badge.booster {
    background: var(--gradient-5);
    color: white;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
    animation: boosterBadge 1.5s ease-in-out infinite;
}

@keyframes boosterBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.package-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.package-stat {
    padding: 18px;
    background: rgba(121, 40, 202, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(121, 40, 202, 0.2);
    transition: all 0.3s;
}

.package-stat:hover {
    background: rgba(121, 40, 202, 0.15);
    transform: scale(1.05);
}

.package-stat label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.package-stat value {
    font-size: 20px;
    font-weight: 800;
    display: block;
    background: var(--gradient-5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ========== TEAM ========== */
.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.team-stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.team-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(121, 40, 202, 0.1) 0%, transparent 50%);
    animation: teamGlow 6s linear infinite;
}

@keyframes teamGlow {
    to { transform: rotate(360deg); }
}

.team-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(121, 40, 202, 0.3);
}

.team-stat-card i {
    font-size: 36px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.team-stat-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.team-stat-card p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-table-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.team-table-card h3 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
}

.team-table-card h3 i {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-responsive {
    overflow-x: auto;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
}

.team-table th {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.team-table td {
    padding: 18px 14px;
    border-bottom: 1px solid rgba(121, 40, 202, 0.1);
    font-weight: 600;
}

.team-table tr {
    transition: all 0.3s;
}

.team-table tr:hover {
    background: rgba(121, 40, 202, 0.08);
    transform: scale(1.01);
}

.text-center {
    text-align: center !important;
}

/* ========== INCOME OVERVIEW ========== */
.income-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.income-overview-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.income-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.income-overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(121, 40, 202, 0.3);
}

.income-overview-card:hover::before {
    opacity: 0.1;
}

.income-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.income-overview-card:nth-child(1) .income-icon { background: var(--gradient-1); box-shadow: var(--glow-purple); }
.income-overview-card:nth-child(2) .income-icon { background: var(--gradient-2); box-shadow: var(--glow-pink); }
.income-overview-card:nth-child(3) .income-icon { background: var(--gradient-3); box-shadow: var(--glow-cyan); }
.income-overview-card:nth-child(4) .income-icon { background: var(--gradient-4); box-shadow: 0 0 20px rgba(67, 233, 123, 0.5); }

.income-overview-card > div {
    position: relative;
    z-index: 1;
}

.income-overview-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.income-overview-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.income-details-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.income-details-card h3 {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.income-details-card h3 i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.income-progress-item {
    margin-bottom: 40px;
}

.income-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 14px;
}

.income-progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.reward-claim-section {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border: 2px solid rgba(121, 40, 202, 0.3);
    position: relative;
    overflow: hidden;
}

.reward-claim-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rewardShimmer 3s infinite;
}

@keyframes rewardShimmer {
    to { transform: translateX(100%); }
}

.reward-info {
    position: relative;
    z-index: 1;
}

.reward-info h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.reward-amount {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 16px 0;
    filter: drop-shadow(0 0 15px rgba(255, 235, 59, 0.4));
}

.reward-note {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.reward-claim-section .btn {
    position: relative;
    z-index: 1;
}

/* ========== WITHDRAW ========== */
.withdraw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
}

.withdraw-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.withdraw-card h3 {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.withdraw-card h3 i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.available-balance {
    text-align: center;
    padding: 40px;
    background: var(--gradient-6);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.available-balance::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: balancePattern 15s linear infinite;
}

@keyframes balancePattern {
    to { transform: translate(40px, 40px); }
}

.available-balance span {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.available-balance h2 {
    font-size: 36px;
    font-weight: 700;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.withdraw-form .form-group {
    margin-bottom: 28px;
}

.max-btn {
    position: absolute;
    right: 10px;
    top: 40px;
    padding: 8px 20px;
    border: none;
    background: var(--gradient-2);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.max-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-pink);
}

.withdraw-breakdown {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.08) 0%, rgba(255, 0, 128, 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(121, 40, 202, 0.3);
}

.withdraw-breakdown h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item strong {
    background: var(--gradient-5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
}

.withdraw-history-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.withdraw-history-card h3 {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.withdraw-history-card h3 i {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: rgba(121, 40, 202, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(121, 40, 202, 0.2);
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(121, 40, 202, 0.15);
    transform: translateX(5px);
}

.history-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(67, 233, 123, 0.5);
}

.history-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
}

.history-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: modalSlide 0.3s ease;
    box-shadow: var(--shadow-xl);
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 16px;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.modal-loader {
    text-align: center;
    padding: 32px;
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

@keyframes slideInRight {
    from {
        transform: translateX(350px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.info {
    border-left: 3px solid var(--accent);
}

.toast i {
    font-size: 18px;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--accent); }

.toast span {
    font-weight: 500;
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .nav-container {
        height: 58px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    
    .nav-brand i {
        font-size: 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        background: transparent;
        border-radius: var(--radius-md);
        cursor: pointer;
        color: var(--text-primary);
        font-size: 18px;
    }
    
    .wallet-btn span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .section-header h1 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 13px;
    }
    
    .registration-card {
        padding: 28px 20px;
        border-radius: var(--radius-md);
    }
    
    .registration-content h2 {
        font-size: 20px;
    }
    
    .registration-content i {
        font-size: 32px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .main-container {
        padding: 20px 16px;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .main-container {
        padding: 16px 12px;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ========== SELECTION ========== */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}
