/* ====== RESET & VARIABLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #f44336;
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-success: 0 0 15px rgba(76, 175, 80, 0.4);
    --glow-warning: 0 0 15px rgba(255, 152, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* ====== BLOB BACKGROUND ====== */
#blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--color);
    filter: blur(40px);
    opacity: 0.4;
    animation: float var(--duration) ease-in-out var(--delay) infinite;
}

.blob:nth-child(1) {
    top: 10%;
    left: 10%;
    --color: #667eea;
    --delay: 0s;
    --duration: 25s;
    --size: 120px;
}

.blob:nth-child(2) {
    bottom: 15%;
    right: 10%;
    --color: #764ba2;
    --delay: 2s;
    --duration: 30s;
    --size: 150px;
}

.blob:nth-child(3) {
    top: 50%;
    right: 30%;
    --color: #4CAF50;
    --delay: 4s;
    --duration: 20s;
    --size: 100px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -30px) scale(1.1); }
    50% { transform: translate(30px, 20px) scale(0.9); }
    75% { transform: translate(-10px, 40px) scale(1.05); }
}

/* ====== GLASSMORPHISM BASE ====== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--glass-shadow), var(--glow-primary);
}

/* ====== NAVIGATION ====== */
.navbar {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glow-primary);
}

/* ====== BUTTONS ====== */
.btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ====== TIMER STYLES ====== */
.timer-display {
    margin: 2rem 0;
    text-align: center;
}

.timer-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.timer-label {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.timer-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--success));
    width: 100%;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

/* ====== STATUS MESSAGES ====== */
.status-message {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.status-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.status-warning {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

.status-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* ====== STATS GRID ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
}

.stat-card h4 {
    opacity: 0.8;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

/* ====== DASHBOARD ====== */
.balance-display {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 18px;
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: var(--glow-success);
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
}

/* ====== WITHDRAW ====== */
.withdraw-summary {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.8rem;
    border-radius: 18px;
    margin: 1.5rem 0;
}

.withdraw-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.withdraw-summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
    margin-top: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .landing-section {
        padding: 2rem 0;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}