:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0b0f1a;
    --bg-card: #161e2d;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --glass: rgba(22, 30, 45, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 35%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Landing Page Specific */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    gap: 3rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    /* Reduced from 5rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    /* Reduced from 1.4rem */
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Dashboard Header */
.header-card {
    background: var(--bg-card);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0, transparent 50%);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.balance-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-withdraw-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    width: auto;
    min-width: 200px;
}

.btn-withdraw-header:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.6rem;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: var(--bg-card);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Grids */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 1rem;
}

.ads-grid>a {
    display: block;
    text-decoration: none;
}

@media (min-width: 992px) {
    .ads-grid.five-cols {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ad-card {
    background: white;
    color: #1e293b;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.ad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Badges */
.stat-badge-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    border-radius: 24px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Auth Inputs */
.input-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .tab-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 20px;
        width: 100%;
    }

    .tab-btn {
        justify-content: center;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .header-card {
        padding: 1.5rem 1rem;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Global Animations */
.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--glass-border);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: block;
    margin: 4rem auto;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}