:root {
    /* Primary Colors - Enhanced Green Palette */
    --primary: #00ff88;
    --primary-light: #33ffaa;
    --primary-dark: #00cc6a;
    --primary-glow: rgba(0, 255, 136, 0.4);
    
    /* Secondary Colors - Blue Palette */
    --secondary: #5b9aff;
    --secondary-light: #7db3ff;
    --secondary-dark: #4a7fd9;
    --secondary-glow: rgba(91, 154, 255, 0.4);
    
    /* Accent Colors */
    --accent: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ff6b9d;
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffd700;
    --danger: #ff4757;
    --info: #00d4ff;
    
    /* Background Colors - Enhanced Dark Theme */
    --dark-bg: #0a0e1a;
    --dark-bg-secondary: #0d1117;
    --card-bg: #141824;
    --card-bg-hover: #1a1f2e;
    --card-bg-active: #1e2433;
    
    /* Border Colors */
    --border-color: #1e2433;
    --border-color-light: #2a3142;
    --border-color-active: #00ff88;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #8b92a7;
    --text-muted: #5a6175;
    --text-disabled: #3a3f52;
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #5b9aff 0%, #a855f7 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #5b9aff 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b9d 0%, #ffd700 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #141824 100%);
    
    /* Shadow Effects */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-green: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
    
    /* 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-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.logo p {
    color: #94a3b8;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
}

.info-text {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.info-text p {
    margin: 5px 0;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Dashboard */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6366f1;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Mining Section */
.mining-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.mining-card, .balance-card {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 30px;
}

.mining-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #a855f7;
}

.miner-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.miner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.miner-circle.mining {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.8); }
}

.miner-icon {
    font-size: 80px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bonus-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bonus-item {
    position: absolute;
    font-size: 24px;
    animation: fall 2s linear;
}

@keyframes fall {
    from {
        top: -20px;
        opacity: 1;
    }
    to {
        top: 100%;
        opacity: 0;
    }
}

.mining-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #6366f1;
}

.timer {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 20px;
}

.btn-mining {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-mining:hover {
    transform: scale(1.02);
}

.btn-mining:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.balance-card h3 {
    color: #a855f7;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #6366f1;
}

.token-status, .token-price {
    color: #94a3b8;
    margin: 10px 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid #334155;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: #6366f1;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Referral */
.referral-card {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 30px;
}

.referral-card h3 {
    color: #a855f7;
    margin-bottom: 10px;
}

.referral-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

.referral-code, .referral-link {
    margin: 20px 0;
}

.referral-code label, .referral-link label {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
}

.code-box {
    display: flex;
    gap: 10px;
}

.code-box input {
    flex: 1;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
}

.code-box button {
    padding: 12px 24px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

.social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid #6366f1;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

/* Wallet */
.wallet-container {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 30px;
}

.wallet-balances {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.balance-item {
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    text-align: center;
}

.balance-item span {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
}

.balance-item strong {
    font-size: 24px;
    color: #6366f1;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-action {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mining-section {
        grid-template-columns: 1fr;
    }
    
    .mining-stats {
        grid-template-columns: 1fr;
    }
    
    .wallet-balances {
        grid-template-columns: 1fr;
    }
}


/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--dark-bg);
    position: relative;
    padding-bottom: 80px;
}

/* Top Header */
.top-header {
    background: var(--card-bg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(91, 154, 255, 0.12);
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.back-btn:hover {
    background: rgba(91, 154, 255, 0.2);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.95);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-spacer {
    width: 42px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(91, 154, 255, 0.12);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(91, 154, 255, 0.18);
}

.user-info i {
    color: var(--primary);
    font-size: 18px;
}

/* Main Container */
.main-container {
    padding: 20px;
}

/* Balance Overview */
.balance-overview {
    background: var(--gradient-1);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.balance-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.balance-amount .amount {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.balance-amount .currency {
    font-size: 22px;
    font-weight: 700;
    opacity: 0.9;
}

.balance-usd {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 20px;
    font-weight: 500;
}

.token-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-info {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
}

/* Mining Section */
.mining-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 19px;
    font-weight: 700;
}

.section-header i {
    color: var(--primary);
    font-size: 20px;
}

.miner-display {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 28px;
}

.miner-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 50px rgba(91, 154, 255, 0.5);
    border: 3px solid rgba(91, 154, 255, 0.3);
}

.miner-circle.mining {
    animation: pulse-mining 2s infinite;
}

@keyframes pulse-mining {
    0%, 100% {
        box-shadow: 0 0 50px rgba(91, 154, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 80px rgba(124, 92, 255, 0.7);
        transform: scale(1.03);
    }
}

.miner-icon {
    font-size: 90px;
    animation: rotate 4s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.bonus-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bonus-item {
    position: absolute;
    font-size: 24px;
    animation: fall 2s linear;
}

@keyframes fall {
    from {
        top: -20px;
        opacity: 1;
    }
    to {
        top: 100%;
        opacity: 0;
    }
}

.mining-timer {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(91, 154, 255, 0.3);
}

.mining-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    background: rgba(91, 154, 255, 0.08);
    border: 1px solid rgba(91, 154, 255, 0.15);
    border-radius: 18px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(91, 154, 255, 0.12);
    border-color: rgba(91, 154, 255, 0.3);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.btn-mining {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(91, 154, 255, 0.4);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 15px;
}

.btn-mining:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91, 154, 255, 0.5);
}

.btn-mining:active {
    transform: translateY(-1px);
}

.btn-mining:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.action-card:active {
    transform: translateX(4px) scale(0.98);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(91, 154, 255, 0.3);
    flex-shrink: 0;
}

.action-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.action-value {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.action-card i.fa-chevron-right {
    color: var(--text-muted);
    font-size: 14px;
    transition: transform 0.3s;
}

.action-card:hover i.fa-chevron-right {
    transform: translateX(4px);
    color: var(--primary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s;
}

.nav-item i {
    font-size: 22px;
    transition: all 0.3s;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    width: 40px;
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Referral Page */
.referral-stats-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-box {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-box i {
    font-size: 32px;
    color: var(--primary);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.info-card {
    background: var(--gradient-1);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.info-content p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 500;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.referral-code-section,
.referral-link-section {
    margin-bottom: 24px;
}

.code-display {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.link-display {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.link-display input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.btn-copy {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.share-section {
    margin-bottom: 24px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-btn {
    padding: 16px;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.facebook {
    background: #1877f2;
}

.how-it-works {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tasks Page */
.tasks-header {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.tasks-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tasks-info i {
    font-size: 40px;
}

.tasks-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.tasks-info p {
    font-size: 14px;
    opacity: 0.9;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.task-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.task-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(91, 154, 255, 0.3);
}

.task-info {
    flex: 1;
}

.task-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.task-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 14px;
    font-weight: 700;
}

.task-reward i {
    font-size: 16px;
}

.btn-task {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(91, 154, 255, 0.3);
}

.btn-task:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(91, 154, 255, 0.4);
}

.btn-task:active {
    transform: scale(0.95);
}

/* Wallet Page */
.wallet-balances-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.balance-card-wallet {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.balance-card-wallet:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.balance-card-wallet.zayrx {
    background: var(--gradient-1);
    border: none;
    box-shadow: 0 8px 24px rgba(91, 154, 255, 0.4);
}

.balance-card-wallet.sol {
    background: linear-gradient(135deg, #14f195 0%, #9945ff 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(153, 69, 255, 0.4);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.coin-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.coin-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.wallet-actions-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.wallet-action-btn:hover {
    border-color: var(--primary);
    background: var(--card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wallet-action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.wallet-action-btn i {
    font-size: 26px;
    color: var(--primary);
}

.wallet-action-btn span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.exchange-rate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.rate-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-info i {
    font-size: 24px;
    color: var(--primary);
}

.rate-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.rate-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.transactions-section {
    margin-bottom: 20px;
}

.transactions-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    min-height: 200px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 12px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.task-details {
    text-align: center;
}

.task-reward-big {
    background: var(--gradient-1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.verification-section {
    margin: 20px 0;
}

.verification-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.verification-section input {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--gradient-1);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: var(--success);
}

.btn-full {
    width: 100%;
    margin-bottom: 12px;
}

.deposit-qr {
    text-align: center;
    margin-bottom: 20px;
}

.deposit-qr img {
    max-width: 200px;
    border-radius: 16px;
}

.wallet-address-box {
    margin-bottom: 20px;
}

.wallet-address-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.address-display {
    display: flex;
    gap: 8px;
}

.address-display input {
    flex: 1;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.swap-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.swap-input-group {
    background: var(--dark-bg);
    border-radius: 16px;
    padding: 16px;
}

.swap-input-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.swap-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.swap-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    outline: none;
}

.currency-badge {
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.balance-info,
.rate-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.swap-icon {
    text-align: center;
    color: var(--primary);
    font-size: 24px;
}

/* Loading & Empty States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .balance-amount .amount {
        font-size: 40px;
    }
    
    .mining-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-balances-section {
        grid-template-columns: 1fr;
    }
}


/* Mining Stats Compact */
.mining-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-compact {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.stat-compact i {
    font-size: 22px;
    color: var(--primary);
}

.stat-compact div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-compact .stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-compact .stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Mining Control */
.mining-control {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* Play to Earn Section */
.play-to-earn-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.play-to-earn-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.games-badge {
    padding: 6px 14px;
    background: var(--gradient-1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.game-info-card {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.game-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.game-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.game-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.btn-play {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    border: none;
    border-radius: 18px;
    color: #0a0e1a;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5);
}

.btn-play:active {
    transform: translateY(-1px);
}

.cooldown-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: var(--warning);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.referral-bonus-info {
    margin-top: 16px;
    padding: 14px;
    background: rgba(91, 154, 255, 0.08);
    border: 1px solid rgba(91, 154, 255, 0.2);
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-modal.show {
    display: flex;
}

.game-container {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.game-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-game {
    width: 36px;
    height: 36px;
    background: rgba(255, 71, 87, 0.1);
    border: none;
    border-radius: 12px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-score {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 14px;
}

.game-score span {
    font-size: 14px;
    color: var(--text-secondary);
}

.game-score strong {
    color: var(--primary);
    font-size: 16px;
}

#gameCanvas {
    width: 100%;
    border-radius: 16px;
    background: #0a0e1a;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-over h2 {
    font-size: 28px;
    color: var(--primary);
}

.game-over p {
    font-size: 18px;
}

.game-over strong {
    font-size: 32px;
    color: var(--primary);
}

/* Web3 Wallet Section */
.web3-wallet-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.wallet-connect-card {
    background: var(--gradient-1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.wallet-connect-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a0e1a;
}

.wallet-connect-card p {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(10, 14, 26, 0.8);
}

.btn-connect-wallet {
    width: 100%;
    padding: 18px;
    background: #0a0e1a;
    border: none;
    border-radius: 16px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-connect-wallet:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wallet-connected {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.wallet-address {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

.claim-info {
    background: rgba(91, 154, 255, 0.08);
    border: 1px solid rgba(91, 154, 255, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .mining-stats-compact {
        grid-template-columns: 1fr;
    }
    
    .stat-compact {
        justify-content: center;
    }
}


/* Game Stats Card */
.game-stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item-game {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-item-game i {
    font-size: 28px;
    color: var(--primary);
}

.stat-item-game div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item-game .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-item-game .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Game Rules */
.game-rules {
    background: rgba(91, 154, 255, 0.08);
    border: 1px solid rgba(91, 154, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.game-rules h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.game-rules ul {
    list-style: none;
    padding: 0;
}

.game-rules li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.game-rules li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 480px) {
    .game-stats-card {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Animations */
@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

.pulse-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Balance Toggle */
.balance-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-primary);
}

.balance-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.balance-toggle:active {
    transform: scale(0.95);
}

/* Enhanced Balance Overview */
.balance-overview {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow-green);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.balance-overview:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}

.balance-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

/* Enhanced Cards */
.mining-stats-compact,
.game-stats-card {
    animation: slideInUp 0.5s ease-out;
}

.stat-compact,
.stat-item-game {
    transition: var(--transition-base);
}

.stat-compact:hover,
.stat-item-game:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Enhanced Buttons */
.btn-mining,
.btn-play,
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-mining::before,
.btn-play::before,
.btn-primary::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.6s, height 0.6s;
}

.btn-mining:active::before,
.btn-play:active::before,
.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

/* Loading States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0%,
        var(--card-bg-hover) 50%,
        var(--card-bg) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Modal */
.modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Print Styles */
@media print {
    .bottom-nav,
    .top-header,
    .btn-mining,
    .btn-play {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .balance-overview {
        padding: 24px 20px;
    }
    
    .balance-amount .amount {
        font-size: 44px;
    }
    
    .mining-stats-compact,
    .game-stats-card {
        gap: 10px;
    }
    
    .stat-compact,
    .stat-item-game {
        padding: 14px 12px;
    }
    
    .modal-content {
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        max-width: 600px;
    }
}

/* Large Screen Optimization */
@media (min-width: 1025px) {
    .app-container {
        max-width: 480px;
        box-shadow: var(--shadow-xl);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .balance-overview {
        padding: 16px 20px;
    }
    
    .balance-amount .amount {
        font-size: 32px;
    }
    
    .mining-timer {
        font-size: 28px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .action-card,
    .task-card,
    .wallet-action-btn {
        min-height: 60px;
    }
    
    button,
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--primary);
    color: var(--dark-bg);
}

/* Improved Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading Bar */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: var(--z-tooltip);
}

.loading-bar.active {
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}
