* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #1a1a1a;
}
.container {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
h2 { margin-top: 0; }
input, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}
button {
    background: #5b3df0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
button:hover { background: #4a2fd0; }
.error { color: #c0392b; font-size: 14px; }
.success { color: #1e8f4e; font-size: 14px; }
a { color: #5b3df0; }
.intro-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Dashboard */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}
.balance {
    font-weight: 700;
    font-size: 18px;
}
.feed {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
}
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.earn-btn {
    background: #1e8f4e;
}
.earn-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.progress-bar {
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    height: 14px;
    margin: 10px 0;
}
.progress-fill {
    background: #5b3df0;
    height: 100%;
}
.logout-link {
    font-size: 14px;
}
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.task-item:last-child {
    border-bottom: none;
}
.task-desc {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}
.task-btn {
    width: auto;
    padding: 8px 14px;
    background: #1e8f4e;
    white-space: nowrap;
}
.task-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
#scrollStatus {
    display: block;
    margin-top: 8px;
    color: #5b3df0;
    font-weight: 600;
}
