/* ============================================
   NODE NETWORK v2.0 - CSS Styles
   ============================================ */

/* === CSS Variables (from TZ Part 8) === */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    
    --accent-primary: #CDFF00;
    --accent-secondary: #a8e000;
    --accent-tertiary: #b8ff33;
    --accent-glow: rgba(205, 255, 0, 0.3);
    --accent-dim: rgba(205, 255, 0, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    
    --success: #00ff88;
    --warning: #ffcc00;
    --error: #ff4757;
    --info: #00d4ff;
    --premium: #ffd700;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(205, 255, 0, 0.3);
    
    /* Typography */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(205, 255, 0, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease-out;
    
    /* Z-index */
    --z-sidebar: 1000;
    --z-overlay: 999;
    --z-header: 100;
    --z-bottom-nav: 100;
    --z-toast: 2000;
    --z-loading: 3000;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === Typography === */
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }

.text-accent { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-dim);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.card-glow {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

/* === Sidebar Overlay === */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.brand-version {
    font-size: 10px;
    color: var(--text-muted);
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
}

.nav-section {
    padding: 0 var(--spacing-sm);
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-sm) var(--spacing-md);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-dim);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-rank {
    font-size: 12px;
    color: var(--accent-primary);
}

/* === App Container === */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* === Header === */
.app-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--bg-card);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.header-balance {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.balance-icon {
    width: 20px;
    height: 20px;
}

.balance-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* === Page Container === */
.page-container {
    flex: 1;
    padding: var(--spacing-md);
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
}

.page-earnings {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

/* === Bottom Navigation === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    z-index: var(--z-bottom-nav);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-width: 60px;
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    color: var(--accent-primary);
}

.nav-btn .nav-icon {
    font-size: 20px;
}

.nav-btn .nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* === Node Card === */
.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.node-carousel {
    position: relative;
    height: 200px;
    margin-bottom: var(--spacing-md);
}

.node-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.node-slide.active {
    opacity: 1;
}

.node-image {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(205, 255, 0, 0.4));
    animation: nodeFloat 3s ease-in-out infinite;
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.node-info {
    margin-bottom: var(--spacing-md);
}

.node-id {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

.node-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.node-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.node-status.online {
    color: var(--success);
}

.node-status.offline {
    color: var(--error);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.node-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value span {
    color: var(--accent-primary);
}

.stat-change {
    font-size: 12px;
    margin-top: var(--spacing-xs);
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* === Power Card === */
.power-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.power-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.power-title {
    font-size: 14px;
    font-weight: 600;
}

.power-level {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

.power-progress {
    
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* === Quick Actions === */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.quick-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.quick-icon {
    font-size: 24px;
}

.quick-text {
    font-size: 11px;
    font-weight: 500;
}

/* === Daily Bonus Card === */
.daily-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.daily-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.daily-icon {
    font-size: 24px;
}

.daily-title {
    font-size: 16px;
    font-weight: 600;
}

.daily-streak {
    margin-bottom: var(--spacing-md);
}

.streak-days {
    display: flex;
    gap: var(--spacing-xs);
}

.streak-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.streak-day.claimed {
    background: var(--accent-dim);
    border-color: var(--accent-primary);
}

.streak-day.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.streak-day.active .day-num,
.streak-day.active .day-reward {
    color: var(--bg-primary);
}

.streak-day.special {
    background: linear-gradient(135deg, var(--premium), var(--accent-primary));
    border-color: var(--premium);
}

.streak-day.special .day-num,
.streak-day.special .day-reward {
    color: var(--bg-primary);
}

.day-num {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.day-reward {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* === Sections === */
.section {
    margin-bottom: var(--spacing-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.section-link {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
}

.section-badge {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--accent-dim);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* === Hot Tasks === */
.hot-tasks {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hot-task {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.hot-task:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.hot-task.premium {
    border-color: var(--premium);
}

.task-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.task-info {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.task-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.task-tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-tag.premium {
    background: var(--premium);
    color: var(--bg-primary);
}

.task-tag.hot {
    background: var(--error);
    color: white;
}

.task-tag.new {
    background: var(--info);
    color: var(--bg-primary);
}

.task-reward {
    text-align: right;
}

.reward-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.reward-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* === Earn Grid === */
.earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.earn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.earn-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.earn-icon {
    font-size: 28px;
}

.earn-title {
    font-size: 12px;
    font-weight: 600;
}

.earn-desc {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   TASKS PAGE STYLES
   ============================================ */

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.filter-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Promoted Banner */
.promoted-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(205, 255, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid var(--premium);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.promoted-badge {
    padding: 4px 8px;
    background: var(--premium);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.promoted-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.promoted-icon {
    font-size: 32px;
}

.promoted-info {
    flex: 1;
}

.promoted-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.promoted-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.promoted-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--premium);
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.task-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.task-card:hover {
    background: var(--bg-card-hover);
}

.task-card.premium {
    border-color: var(--premium);
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.05));
}

.task-card.standard {
    border-color: #c0c0c0;
}

.task-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.task-card-content {
    flex: 1;
    min-width: 0;
}

.task-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.task-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.task-card-right {
    text-align: right;
    flex-shrink: 0;
}

.task-card-reward {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.task-card-time {
    font-size: 11px;
    color: var(--text-muted);
}

.task-card-btn {
    margin-top: var(--spacing-sm);
}

/* ============================================
   CONTENT PAGE STYLES
   ============================================ */

.content-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.content-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.content-stat .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.content-stat .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.video-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb-icon {
    font-size: 32px;
    opacity: 0.5;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 10px;
}

.video-info {
    padding: var(--spacing-sm);
}

.video-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-reward-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

.video-watch-btn {
    padding: 4px 12px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

/* App Wall */
.app-wall {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.app-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.app-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.app-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-requirements {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.app-right {
    text-align: right;
}

.app-reward {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Surveys List */
.surveys-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.survey-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.survey-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.survey-info {
    flex: 1;
}

.survey-title {
    font-size: 14px;
    font-weight: 500;
}

.survey-questions {
    font-size: 12px;
    color: var(--text-secondary);
}

.survey-reward {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ============================================
   MINING PAGE STYLES
   ============================================ */

.mining-stats {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.mining-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.mining-stat .stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.mining-stat .stat-value {
    font-size: 14px;
    font-weight: 700;
}

/* Mining Area */
.mining-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
}

.mining-node {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.mining-node-img {
    max-width: 180px;
    max-height: 180px;
    filter: drop-shadow(0 0 40px rgba(205, 255, 0, 0.5));
    animation: miningPulse 2s ease-in-out infinite;
}

@keyframes miningPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(205, 255, 0, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 60px rgba(205, 255, 0, 0.7));
    }
}

.tap-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tap-effect .tap-num {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    animation: tapFloat 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes tapFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
}

.tap-btn {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(205, 255, 0, 0.4), inset 0 -4px 0 rgba(0,0,0,0.2);
    transition: all var(--transition-fast);
    margin-bottom: var(--spacing-md);
}

.tap-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(205, 255, 0, 0.6);
}

.tap-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(205, 255, 0, 0.3), inset 0 4px 0 rgba(0,0,0,0.2);
}

.mining-counter {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(205, 255, 0, 0.5);
}

/* Energy Card */
.energy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.energy-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.energy-icon {
    font-size: 20px;
}

.energy-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.energy-value {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

.energy-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--accent-primary));
    border-radius: 6px;
    transition: width var(--transition-slow);
}

/* Upgrades List */
.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.upgrade-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.upgrade-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-size: 14px;
    font-weight: 600;
}

.upgrade-effect {
    font-size: 12px;
    color: var(--accent-primary);
}

.upgrade-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Boosts Grid */
.boosts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.boost-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.boost-card:hover {
    border-color: var(--border-accent);
}

.boost-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.boost-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.boost-effect {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.boost-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ============================================
   ARENA PAGE STYLES
   ============================================ */

.arena-stats {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.arena-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.arena-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.arena-stat .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Arena Pass Banner */
.arena-pass-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(205, 255, 0, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--info);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.pass-info {
    display: flex;
    flex-direction: column;
}

.pass-title {
    font-size: 14px;
    font-weight: 600;
}

.pass-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.game-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-sm);
}

.game-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.game-entry {
    color: var(--warning);
}

.game-prize {
    color: var(--success);
}

.game-online {
    font-size: 10px;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.game-online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: var(--radius-full);
}

/* Tournaments List */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tournament-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.tournament-card.featured {
    border-color: var(--premium);
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.05));
}

.tournament-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tournament-info {
    flex: 1;
}

.tournament-name {
    font-size: 14px;
    font-weight: 600;
}

.tournament-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.tournament-prize {
    text-align: right;
}

.tournament-prize-label {
    font-size: 10px;
    color: var(--text-muted);
}

.tournament-prize-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--premium);
}

/* ============================================
   ACADEMY PAGE STYLES
   ============================================ */

.academy-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.academy-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.academy-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.academy-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.category-tab:hover {
    background: var(--bg-card-hover);
}

.category-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Featured Course */
.featured-course {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-card), rgba(205, 255, 0, 0.05));
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.featured-badge {
    position: absolute;
    top: -8px;
    left: var(--spacing-md);
    padding: 4px 8px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.course-thumbnail {
    width: 80px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info {
    flex: 1;
    min-width: 0;
}

.course-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.course-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.course-reward {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reward-icon {
    width: 16px;
    height: 16px;
}

.course-reward span {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.course-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.course-card:hover {
    border-color: var(--border-accent);
}

.course-card-thumb {
    width: 64px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.course-card-info {
    flex: 1;
    min-width: 0;
}

.course-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.course-card-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.course-card-right {
    text-align: right;
}

.course-card-reward {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.course-card-progress {
    width: 60px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: var(--spacing-xs);
}

.course-card-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ============================================
   NETWORK (BANDWIDTH) PAGE STYLES
   ============================================ */

.network-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
}

.network-indicator {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.indicator-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-slow);
}

.network-indicator.online .indicator-ring {
    border-color: var(--success);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.indicator-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.network-indicator.online .indicator-text {
    color: var(--success);
}

/* Calculator Card */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.calculator-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.calculator-slider {
    margin-bottom: var(--spacing-md);
}

.calculator-slider input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.calculator-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(205, 255, 0, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

.slider-labels span:nth-child(2) {
    color: var(--accent-primary);
    font-weight: 600;
}

.calculator-result {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.calculator-result span {
    color: var(--accent-primary);
    font-weight: 700;
}

/* APK Banner */
.apk-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--info);
    border-radius: var(--radius-lg);
}

.apk-icon {
    font-size: 32px;
}

.apk-info {
    flex: 1;
}

.apk-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.apk-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   TEAM PAGE STYLES
   ============================================ */

/* Invite Card */
.invite-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(205, 255, 0, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.invite-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.invite-subtitle {
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-lg);
}

.referral-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.referral-code .code {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-primary);
}

.copy-btn {
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--bg-card-hover);
}

.invite-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Team Stats */
.team-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.team-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
}

.team-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.team-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Levels List */
.levels-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.level-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.level-item:last-child {
    border-bottom: none;
}

.level-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.level-people {
    width: 60px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.level-earned {
    width: 80px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Rank Card */
.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.rank-current {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.rank-badge {
    font-size: 28px;
}

.rank-name {
    font-size: 18px;
    font-weight: 700;
}

.rank-progress {
    
}

.rank-next {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    display: block;
    margin-top: var(--spacing-sm);
}

/* Referrals List */
.referrals-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.referral-item:last-child {
    border-bottom: none;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-primary);
}

.referral-info {
    flex: 1;
}

.referral-name {
    font-size: 14px;
    font-weight: 500;
}

.referral-status {
    font-size: 12px;
    color: var(--text-muted);
}

.referral-status.active {
    color: var(--success);
}

.referral-earned {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Empty State */
.empty-state {
    padding: var(--spacing-xl);
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.empty-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */

/* Shop will be added to HTML in continuation */

/* ============================================
   MARKETPLACE PAGE STYLES  
   ============================================ */

/* Marketplace will be added to HTML in continuation */

/* ============================================
   LEADERBOARD PAGE STYLES
   ============================================ */

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.leaderboard-tab {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: all var(--transition-normal);
}

.leaderboard-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Top 3 Podium */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-place.first {
    order: 2;
}

.podium-place.second {
    order: 1;
}

.podium-place.third {
    order: 3;
}

.podium-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    border: 3px solid var(--border);
}

.podium-place.first .podium-avatar {
    width: 80px;
    height: 80px;
    border-color: var(--premium);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-place.second .podium-avatar {
    border-color: #c0c0c0;
}

.podium-place.third .podium-avatar {
    border-color: #cd7f32;
}

.podium-medal {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.podium-place.first .podium-medal {
    font-size: 32px;
}

.podium-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

.podium-stand {
    width: 70px;
    background: var(--bg-card);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-top: var(--spacing-sm);
}

.podium-place.first .podium-stand {
    height: 80px;
    background: linear-gradient(180deg, var(--premium), #b8860b);
}

.podium-place.second .podium-stand {
    height: 60px;
    background: linear-gradient(180deg, #c0c0c0, #808080);
}

.podium-place.third .podium-stand {
    height: 40px;
    background: linear-gradient(180deg, #cd7f32, #8b4513);
}

/* Leaderboard List */
.leaderboard-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: var(--bg-card-hover);
}

.leaderboard-item.you {
    background: var(--accent-dim);
    border-color: var(--border-accent);
}

.leaderboard-rank {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.leaderboard-item:nth-child(-n+3) .leaderboard-rank {
    color: var(--premium);
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-primary);
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-size: 14px;
    font-weight: 500;
}

.leaderboard-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.leaderboard-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Your Position Card */
.your-position {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.position-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.position-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ============================================
   WALLET PAGE STYLES
   ============================================ */

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(205, 255, 0, 0.1));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(205, 255, 0, 0.1), transparent);
    pointer-events: none;
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.balance-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.balance-value img {
    width: 36px;
    height: 36px;
}

.balance-usd {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Token Balances */
.token-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.token-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.token-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.token-icon img {
    width: 24px;
    height: 24px;
}

.token-info {
    flex: 1;
}

.token-name {
    font-size: 14px;
    font-weight: 600;
}

.token-balance-small {
    font-size: 12px;
    color: var(--text-secondary);
}

.token-value {
    text-align: right;
}

.token-amount {
    font-size: 16px;
    font-weight: 700;
}

.token-usd {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Wallet Actions */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.wallet-action:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.wallet-action-icon {
    font-size: 24px;
}

.wallet-action-text {
    font-size: 11px;
    font-weight: 500;
}

/* Transaction History */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.transactions-title {
    font-size: 16px;
    font-weight: 600;
}

.transactions-filter {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}

.transactions-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.transaction-icon.earning {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.transaction-icon.withdrawal {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.transaction-icon.purchase {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 14px;
    font-weight: 500;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.positive::before {
    content: '+';
}

.transaction-amount.negative {
    color: var(--error);
}

.transaction-amount.negative::before {
    content: '-';
}

/* Staking Card */
.staking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.staking-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.staking-icon {
    font-size: 24px;
}

.staking-title {
    font-size: 16px;
    font-weight: 600;
}

.staking-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.staking-option {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.staking-option:hover {
    border-color: var(--border-accent);
}

.staking-option.selected {
    border-color: var(--accent-primary);
    background: var(--accent-dim);
}

.staking-period {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.staking-apy {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.staking-min {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

.settings-section {
    margin-bottom: var(--spacing-lg);
}

.settings-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

.settings-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: var(--bg-card-hover);
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.settings-info {
    flex: 1;
}

.settings-label {
    font-size: 14px;
    font-weight: 500;
}

.settings-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.settings-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--transition-normal);
}

.toggle.active {
    background: var(--accent-primary);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform var(--transition-normal);
}

.toggle.active::after {
    transform: translateX(20px);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    pointer-events: auto;
    animation: toastIn 0.3s ease;
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-icon {
    font-size: 24px;
}

.toast.success {
    border-color: var(--success);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning {
    border-color: var(--warning);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info {
    border-color: var(--info);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.toast-close {
    padding: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    z-index: var(--z-loading);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    flex: 1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 360px) {
    :root {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix wallet buttons clickability */
.wallet-action {
    position: relative;
    z-index: 100;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.wallet-actions {
    position: relative;
    z-index: 100;
}

/* Fix - ensure buttons are clickable */
#page-wallet button,
#page-wallet .wallet-action {
    position: relative;
    z-index: 50;
}
#page-wallet > div {
    position: relative;
    z-index: 10;
}
.balance-card {
    z-index: 1;
}
