/* Campaign page - vibrant refresh on 2026-04-15. Gradient hero card
   with the big raised amount, progress bar, donate CTA. Colorful
   emoji milestones, live-looking activity feed, avatar leaderboard. */

.wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px 80px; }

/* Gradient hero card */
.camp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 28px 28px 30px;
    margin-bottom: 28px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(600px 220px at 80% 10%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(500px 200px at 20% 100%, rgba(255,255,255,0.12), transparent 60%),
        linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.22);
}
.camp-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.camp-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.2;
    color: #fff;
}
.camp-hero-desc {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.92;
    max-width: 520px;
    margin: 0 auto 18px;
}
.camp-hero-money {
    font-size: 62px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.camp-hero-goal {
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 14px;
}
.camp-hero-goal strong { color: #fff; }
.camp-hero-bar {
    height: 14px;
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}
.camp-hero-fill {
    height: 100%;
    background: linear-gradient(90deg, #fef3c7, #fde68a, #fbbf24);
    border-radius: 10px;
    transition: width 0.8s ease-out;
    min-width: 8px;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.5);
}
.camp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 22px;
}
.camp-hero-stats .dot { opacity: 0.5; }
.camp-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: #fff;
    color: var(--accent);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.camp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.2);
    text-decoration: none;
}
.camp-hero-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.85;
}

        /* Milestones */
        .milestones { margin-bottom: 24px; }
        .milestones h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .milestone { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border);
            border-radius: 10px; margin-bottom: 8px; background: white; }
        .milestone.achieved { border-color: var(--accent); background: #f0f4ff; }
        .milestone .icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
            justify-content: center; background: #e5e7eb; color: #999; flex-shrink: 0; }
        .milestone.achieved .icon { background: var(--accent); color: white; }
        .milestone .info { flex: 1; }
        .milestone .info .label { font-size: 14px; font-weight: 600; }
        .milestone .info .reward { font-size: 12px; color: var(--text-muted); }
        .milestone .amount { font-size: 13px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
        .milestone.achieved .amount { color: var(--accent); }

        /* Leaderboard */
        .board { background: white; border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
        .board h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
        .board-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
        .board-tab { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
            border: 1.5px solid var(--border); background: white; color: var(--text-secondary); }
        .board-tab.active { background: var(--accent); color: white; border-color: var(--accent); }
        .lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--border); }
        .lb-row:last-child { border-bottom: none; }
        .lb-rank { width: 26px; font-size: 15px; font-weight: 800; color: var(--text-muted); text-align: center; flex-shrink: 0; }
        .lb-rank.gold { color: #f59e0b; font-size: 18px; }
        .lb-rank.silver { color: #94a3b8; font-size: 18px; }
        .lb-rank.bronze { color: #d97706; font-size: 18px; }
        .lb-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        .lb-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .lb-amount { font-size: 14px; font-weight: 800; color: var(--accent); flex-shrink: 0; }
        .lb-bar-wrap { width: 72px; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
        .lb-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #7c3aed); border-radius: 3px; }

        .empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; }
        .loading { text-align: center; padding: 60px; color: var(--text-muted); }

        .find-me { text-align: center; margin-bottom: 24px; }
        .find-me a { display: inline-block; padding: 12px 24px; border: 1.5px solid var(--accent); color: var(--accent);
            border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
        .find-me a:hover { background: var(--accent); color: white; }

        /* Emoji milestone rows */
        .milestone-list { display: flex; flex-direction: column; gap: 10px; }
        .milestone-row {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            background: #fff;
            transition: border-color 0.2s, background 0.2s, transform 0.15s;
        }
        .milestone-row.hit {
            border-color: var(--accent);
            background: linear-gradient(135deg, var(--accent-light) 0%, #f5f3ff 100%);
        }
        .milestone-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: #f8fafc;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 1.5px solid var(--border);
        }
        .milestone-icon i { width: 22px; height: 22px; }
        .milestone-row.hit .milestone-icon {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .milestone-check {
            width: 22px;
            height: 22px;
            color: var(--accent);
            flex-shrink: 0;
        }
        .milestone-main { flex: 1; min-width: 0; }
        .milestone-reward {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.25;
        }
        .milestone-amt {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .milestone-row.hit .milestone-amt { color: var(--accent); }

        /* Activity feed - real donor names, messages, timestamps */
        .activity { margin-bottom: 24px; }
        .activity h2 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .activity-list { display: flex; flex-direction: column; gap: 10px; }
        .activity-row {
            display: flex;
            gap: 12px;
            padding: 14px 16px;
            background: #fff;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            transition: border-color 0.15s, transform 0.15s;
        }
        .activity-row:hover { border-color: var(--accent); transform: translateY(-1px); }
        .activity-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            color: #fff;
            font-weight: 800;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        .activity-main { flex: 1; min-width: 0; }
        .activity-top {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 2px;
        }
        .activity-donor { font-size: 14px; font-weight: 700; color: var(--text); }
        .activity-amount { font-size: 15px; font-weight: 800; color: var(--accent); }
        .activity-meta { font-size: 12px; color: var(--text-muted); }
        .activity-meta strong { color: var(--text-secondary); font-weight: 600; }
        .activity-msg {
            margin-top: 8px;
            padding: 10px 12px;
            background: var(--accent-light);
            border-left: 3px solid var(--accent);
            border-radius: 6px;
            font-size: 13px;
            font-style: italic;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        /* Make leaderboard rows clickable links - previously <div>s with
           no affordance. */
        a.lb-row {
            text-decoration: none;
            color: inherit;
            border-radius: 10px;
            padding: 10px 8px;
            transition: background 0.15s;
        }
        a.lb-row:hover { background: var(--accent-light); }
        .lb-chevron {
            color: var(--text-muted);
            flex-shrink: 0;
            opacity: 0.5;
        }
        a.lb-row:hover .lb-chevron { color: var(--accent); opacity: 1; }

        .branding { text-align: center; font-size: 11px; color: var(--text-muted); }
