:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --sidebar: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* Landing Page Specific */
.landing-body {
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.landing-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login { background: transparent; color: var(--text-light); margin-right: 1rem; }
.btn-login:hover { background: var(--glass-border); }
.btn-register { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); 
    color: white; 
    border-radius: 12px;
}
.btn-register:hover { 
    background: linear-gradient(135deg, var(--primary-hover), var(--primary)); 
}

/* Dashboard Specific */
.dashboard-body {
    display: flex;
}

.sidebar {
    width: 260px;
    background: var(--sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
}

.sidebar .logo { margin-bottom: 3rem; -webkit-text-fill-color: initial; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { list-style: none; flex: 1; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a { display: flex; align-items: center; padding: 0.8rem 1rem; color: var(--text-muted); text-decoration: none; border-radius: 10px; transition: all 0.3s ease; }
.nav-links a i { margin-right: 1rem; font-size: 1.1rem; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-bg); color: var(--primary); }

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem 3rem;
    background-image: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.balance-card { background: var(--glass); padding: 0.5rem 1rem; border-radius: 12px; border: 1px solid var(--glass-border); display: flex; align-items: center; }
.balance-card i { color: #fbbf24; margin-right: 0.5rem; }

/* Common Components */
.card { background: var(--dark-light); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--glass-border); }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center; align-items: center;
}

.modal-content {
    background: var(--dark-light);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--glass-border);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal { position: absolute; top: 1rem; right: 1rem; color: var(--text-muted); cursor: pointer; font-size: 1.5rem; }
.modal-content h2 { margin-bottom: 1.5rem; font-family: 'Outfit', sans-serif; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-group input { width: 100%; padding: 0.8rem; background: var(--dark); border: 1px solid var(--glass-border); border-radius: 8px; color: white; outline: none; }
.form-group input:focus { border-color: var(--primary); }
.btn-submit { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 1rem; }

/* Utility Classes */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); 
    border-radius: 12px;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-hover), var(--primary)); 
}

.btn-success { background: #10b981; }
.btn-success:hover { background: #059669; }

.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: #f59e0b; color: #0f172a; }
.btn-warning:hover { background: #d97706; }

.btn-info { background: #0ea5e9; }
.btn-info:hover { background: #0284c7; }

.btn-claim {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 1.2rem 3.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.btn-claim:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}


.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-primary { background: rgba(99, 102, 241, 0.1); color: #818cf8; border-color: rgba(99, 102, 241, 0.2); }
.alert-success { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.2); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.alert-info { background: rgba(14, 165, 233, 0.1); color: #38bdf8; border-color: rgba(14, 165, 233, 0.2); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--dark-light); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--glass-border); }
.stat-card h3 { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; }

/* Responsive Design */
@media (max-width: 992px) {
    .main-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 1.2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-header {
        margin-bottom: 0 !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--glass-border);
        animation: slideDown 0.3s ease-out;
    }

    .sidebar.active {
        height: auto;
        background: var(--dark);
    }

    .sidebar.active .nav-links {
        display: block;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .top-bar h2 {
        font-size: 1.4rem;
    }

    .top-bar .balance-card {
        display: none;
    }

    .mobile-balance {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Redesigned Landing Page Styles
   ========================================================================== */

.landing-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section styling */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 850px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-cta {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.7);
}

.btn-hero-secondary {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

/* Section Title */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Ways to Earn Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.earn-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.earn-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.3);
}

.earn-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.card-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Card Gradients */
.icon-faucet { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15)); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.icon-ptc { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15)); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.icon-shortlink { background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(2, 132, 199, 0.15)); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.2); }
.icon-achieve { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15)); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.icon-ref { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.15)); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.2); }
.icon-ai { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15)); color: #06b6d4; border: 1px solid rgba(99, 102, 241, 0.2); }
.icon-articles { background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.15)); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); }

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.card-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-faucet { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.badge-ptc { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.badge-shortlink { background: rgba(14, 165, 233, 0.1); color: #38bdf8; }
.badge-achieve { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.badge-ref { background: rgba(236, 72, 153, 0.1); color: #f472b6; }
.badge-ai { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.badge-articles { background: rgba(249, 115, 22, 0.1); color: #fb923c; }

/* stats strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2rem;
    margin: 4rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* FAQ accordion styling */
.faq-container {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.faq-item {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    user-select: none;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
    border-color: rgba(255,255,255,0.02);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stats-strip { grid-template-columns: 1fr; gap: 2rem; }
    .section-title { font-size: 2.2rem; }
}
