:root {
    --primary: #0066ff;
    --primary-light: #4d94ff;
    --primary-glow: rgba(0, 102, 255, 0.15);
    --secondary: #ff3366;
    --bg-main: #fcfdfe;
    --bg-card: #ffffff;
    --text-main: #0a1128;
    --text-muted: #5f6c8d;
    --accent: #00cc99;
    --border-soft: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    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-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 204, 153, 0.02) 0%, transparent 50%);
    animation: bgPulse 15s ease infinite alternate;
}

@keyframes bgPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.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(3rem, 10vw, 5rem);
    font-weight: 850;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 450;
    opacity: 0.85;
}

.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: #ffffff;
    border-radius: 32px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

.balance-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.balance-amount {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 850;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.btn-withdraw-header {
    background: var(--primary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 100px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    margin-bottom: 2.5rem;
    width: auto;
    min-width: 240px;
    border: none;
    box-shadow: 0 15px 35px -5px rgba(0, 102, 255, 0.35);
    font-size: 1rem;
}

.btn-withdraw-header:hover {
    background: var(--primary-light);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 45px -5px rgba(0, 102, 255, 0.45);
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 1rem 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 0.95rem;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.tab-btn.active i {
    color: var(--primary) !important;
}

.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: #ffffff;
    border-radius: 32px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
    box-shadow: var(--card-shadow);
}

.ad-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-glow);
}

/* Stats Badges */
.stat-badge-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    min-width: 180px;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.stat-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.stat-badge i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Auth Inputs */
.input-group input {
    width: 100%;
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-group input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1.2rem;
    border-radius: 20px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(67, 56, 202, 0.4);
    opacity: 0.95;
}

/* 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);
    }
}