* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f7f9fc;
    color: #111827;
}

body.dark-mode {
    background: #0f172a;
    color: #f8fafc;
}

.header {
    height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark-mode .header {
    background: #111827;
    border-bottom: 1px solid #334155;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #2563eb;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

nav a, nav button {
    text-decoration: none;
    color: #111827;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

body.dark-mode nav a,
body.dark-mode nav button {
    color: #f8fafc;
}

.hero {
    max-width: 1050px;
    margin: 70px auto;
    padding: 55px 25px;
    text-align: center;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 20px;
    line-height: 1.05;
}

.hero h1 span {
    color: #2563eb;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
}

body.dark-mode .hero p {
    color: #cbd5e1;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 40px auto;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

body.dark-mode .feature-card,
body.dark-mode .card {
    background: #111827;
    border-color: #334155;
}

.feature-card .icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    padding: 15px 34px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 8px;
}

.btn-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.card {
    max-width: 620px;
    margin: 55px auto;
    background: white;
    padding: 34px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    text-align: center;
}

input {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 14px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

.ad {
    background: #eef4ff;
    border: 1px dashed #93c5fd;
    color: #2563eb;
    padding: 25px;
    margin: 20px auto;
    border-radius: 14px;
    max-width: 728px;
    text-align: center;
    font-weight: 700;
}

body.dark-mode .ad {
    background: #1e293b;
    border-color: #475569;
    color: #93c5fd;
}

.footer {
    margin-top: 90px;
    padding: 35px;
    background: white;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

body.dark-mode .footer {
    background: #111827;
    border-color: #334155;
}

.footer a {
    margin: 0 14px;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 0 5%;
    }

    nav {
        gap: 8px;
    }
}






.balance {
    font-size: 26px;
    font-weight: 800;
    color: #16a34a;
}


.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef4ff;
    border: 1px solid #dbeafe;
}

body.dark-mode .theme-btn {
    background: #1e293b;
    border-color: #334155;
}


.admin-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.table-box {
    overflow-x: auto;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 15px;
}

body.dark-mode .table-box {
    background: #111827;
    border-color: #334155;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

body.dark-mode th,
body.dark-mode td {
    border-color: #334155;
}


.search-box {
    max-width: 600px;
    margin: 25px 0;
    display: flex;
    gap: 10px;
}

.search-box input {
    margin: 0;
}



.small-btn {
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    margin: 2px;
    font-size: 12px;
}

.small-btn.danger {
    background: #dc2626;
}





.small-btn.warning {
    background: #f59e0b;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}


.badge.warning {
    background: #fef3c7;
    color: #92400e;
}




textarea {
    width: 100%;
    min-height: 90px;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

label {
    display: block;
    text-align: left;
    font-weight: 700;
    margin-top: 18px;
}



.task-layout {
    max-width: 1300px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 25px;
    align-items: start;
    padding: 0 20px;
}

.task-card {
    margin: 0 auto;
    width: 100%;
}

.side-ad {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-box {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .task-layout {
        display: block;
        padding: 0 15px;
    }

    .side-ad {
        display: none;
    }
}



.home-hero {
    max-width: 1150px;
    margin: 45px auto 20px;
    padding: 70px 24px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 22px;
}

body.dark-mode .hero-badge {
    background: #1e293b;
    color: #93c5fd;
}

.home-hero h1 {
    font-size: 64px;
    line-height: 1.02;
    margin: 0 0 22px;
    letter-spacing: -1.5px;
}

.home-hero h1 span {
    color: #2563eb;
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    color: #4b5563;
    line-height: 1.6;
}

body.dark-mode .hero-subtitle {
    color: #cbd5e1;
}

.hero-actions {
    margin-top: 28px;
}

.btn-large {
    padding: 17px 38px;
    font-size: 18px;
}

.secondary-btn {
    background: white;
    color: #2563eb !important;
    border: 1px solid #bfdbfe;
}

body.dark-mode .secondary-btn {
    background: #111827;
    color: #93c5fd !important;
    border-color: #334155;
}

.trust-line {
    margin-top: 18px;
    font-weight: 700;
    color: #16a34a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 42px auto 0;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

body.dark-mode .stat-card {
    background: #111827;
    border-color: #334155;
}

.stat-card h3 {
    font-size: 34px;
    color: #2563eb;
    margin: 0 0 8px;
}

.stat-card p {
    margin: 0;
    color: #4b5563;
    font-weight: 600;
}

body.dark-mode .stat-card p {
    color: #cbd5e1;
}

.how-it-works,
.cta-section {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 24px;
    text-align: center;
}

.how-it-works h2,
.cta-section h2 {
    font-size: 38px;
    margin-bottom: 14px;
}

.cta-section {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 26px;
    padding: 55px 24px;
}

.cta-section p {
    font-size: 18px;
}

.cta-section .btn {
    background: white;
    color: #2563eb !important;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 70px;
        padding: 14px 18px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        font-size: 14px;
    }

    .home-hero {
        margin-top: 20px;
        padding: 45px 18px 25px;
    }

    .home-hero h1 {
        font-size: 42px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .btn,
    .btn-large {
        width: 100%;
        max-width: 330px;
        margin: 8px auto;
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .stat-card {
        padding: 22px;
    }

    .how-it-works,
    .cta-section {
        margin: 45px 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .how-it-works h2,
    .cta-section h2 {
        font-size: 30px;
    }

    .cta-section {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .card {
        width: calc(100% - 28px);
        margin: 30px auto;
        padding: 24px 18px;
    }

    .footer {
        padding: 25px 15px;
    }

    .footer a {
        display: block;
        margin: 10px 0;
    }

    .table-box {
        padding: 10px;
    }

    th, td {
        font-size: 12px;
        padding: 9px;
    }
}