:root {
    --bg: #0f0f13;
    --card-bg: #1a1a24;
    --primary: #5c62ec;
    --text: #ffffff;
    --text-dim: #8ba1b5;
    --green: #00e08f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

.container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--card-bg), #242436);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Clash Display';
}

.balance-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Pages */
.page {
    display: none;
    opacity: 0;
}

.page.active {
    display: block;
    animation: fadeIn 0.25s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Section Title */
h2 {
    font-family: 'Clash Display';
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Offer Cards */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.task-card:active {
    transform: scale(0.98);
    background: #20202d;
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #2a2a38;
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.task-reward {
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    background: rgba(0, 224, 143, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Referral Card */
.ref-card {
    background: linear-gradient(135deg, #5c62ec, #7c82ff);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.ref-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.ref-stat {
    flex: 1;
    text-align: center;
}

.ref-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.ref-stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.ref-link-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.ref-link {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: #fff;
    color: #5c62ec;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Withdrawal */
.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
button {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter';
}

button {
    background: var(--primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:active {
    transform: scale(0.97);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    font-size: 13px;
}

.nav-item.active {
    background: var(--primary);
}

.loader {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
}