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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: white;
    padding-top: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.header-nav-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-nav-link:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.header-nav-link:active,
.header-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.logo-small {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.welcome-text {
    font-size: 12px;
    color: #94a3b8;
}

.username {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.level-icon {
    font-size: 16px;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.balance-usd {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.balance-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

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

.stat-value.positive {
    color: #22c55e;
}

/* Click Section */
.click-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.click-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.click-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.click-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

.clicks-remaining {
    text-align: center;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 15px 25px;
    border-radius: 12px;
}

.clicks-count {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.clicks-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.click-action {
    text-align: center;
    margin-bottom: 30px;
}

.click-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 20px 60px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.click-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}

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

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

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

.next-reset {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 14px;
}

.click-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-time {
    color: #94a3b8;
    font-size: 13px;
}

.history-amount {
    font-weight: 600;
    color: #22c55e;
    font-size: 15px;
}

/* Referral Stats */
.referral-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.referral-stats h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.referral-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.referral-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

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

.referral-value {
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
}

.referral-label {
    font-size: 12px;
    color: #94a3b8;
}

.referral-link-section {
    margin-top: 25px;
}

.referral-link-label {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.referral-link-box {
    display: flex;
    gap: 10px;
}

.referral-link-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
}

.copy-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.action-card.deposit .action-icon {
    background: rgba(16, 185, 129, 0.2);
}

.action-card.withdraw .action-icon {
    background: rgba(59, 130, 246, 0.2);
}

.action-card.team .action-icon {
    background: rgba(245, 158, 11, 0.2);
}

.action-card.about .action-icon {
    background: rgba(139, 92, 246, 0.2);
}

.action-content h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.action-content p {
    font-size: 13px;
    color: #94a3b8;
}

/* Level Progress */
.level-progress-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.level-progress-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.level-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.level-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.current-level {
    font-size: 18px;
    font-weight: 700;
    color: #60a5fa;
}

.level-perks {
    font-size: 13px;
    color: #94a3b8;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    color: #cbd5e1;
}

.level-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.benefit-card.highlight {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.benefit-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #60a5fa;
}

.benefit-card ul {
    list-style: none;
}

.benefit-card li {
    padding: 8px 0;
    font-size: 14px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-card li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .header-left {
        width: 100%;
    }

    .header-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .header-nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .balance-amount {
        font-size: 36px;
    }

    .balance-stats {
        grid-template-columns: 1fr;
    }

    .click-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .click-btn {
        width: 100%;
        padding: 18px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .level-benefits {
        grid-template-columns: 1fr;
    }
}

