:root {
    --c-bg: #fff;
    --c-bg2: #e8e8ec;
    --c-surface: #ffffff;
    --c-surface2: #f5f5f7;
    --c-border: #e0e0e6;
    --c-border2: #d0d0d8;
    --c-accent: #1d6ef5;
    --c-accent2: #4f83f9;
    --c-accent-light: #eaf0ff;
    --c-green: #16a34a;
    --c-green-light: #dcfce7;
    --c-amber: #d97706;
    --c-amber-light: #fef3c7;
    --c-text: #111827;
    --c-text2: #374151;
    --c-muted: #6b7280;
    --c-muted2: #9ca3af;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.content { position: relative; z-index: 1; }

/* ── Card base ── */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.card-inner {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-inner:active { transform: scale(0.97); }

/* ── Section heading line ── */
.section-title::before {
    content: '';
    display: inline-block;
    width: 3px; height: 14px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #1d6ef5, #4f83f9);
    margin-right: 8px;
    vertical-align: middle;
}

/* ── Bottom nav ── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--c-border);
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.4s ease both; }
.anim-2 { animation: fadeUp 0.4s 0.07s ease both; }
.anim-3 { animation: fadeUp 0.4s 0.14s ease both; }
.anim-4 { animation: fadeUp 0.4s 0.21s ease both; }
.anim-5 { animation: fadeUp 0.4s 0.28s ease both; }

/* badge live */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.badge-live {
    background: linear-gradient(90deg, #16a34a 0%, #4ade80 50%, #16a34a 100%);
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress bar */
.progress-bar {
    height: 5px;
    border-radius: 99px;
    background: var(--c-border);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #1d6ef5, #4f83f9);
}

/* avatar ring */
.avatar-ring {
    background: linear-gradient(135deg, #1d6ef5, #60a5fa);
    padding: 2.5px;
    border-radius: 999px;
}

/* Hero card */
.hero-card {
    background: linear-gradient(135deg, #1a5ce8 0%, #1d6ef5 50%, #4f83f9 100%);
    box-shadow: 0 6px 28px rgba(29,110,245,0.28);
}

.stat-mono {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* inset surface for stats section bg */
.inset-surface {
    background: var(--c-bg2);
    border-radius: 14px;
    border: 1px solid var(--c-border);
}

/* ── Tab bar ── */
.tab-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(240,240,242,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-border);
}
.tab-btn {
    position: relative;
    flex: 1;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.tab-btn.active { color: var(--c-text); }
.tab-indicator {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #1d6ef5, #4f83f9);
    transition: opacity 0.2s;
}
.tab-btn:not(.active) .tab-indicator { opacity: 0; }

/* ── Panel ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Riwayat card ── */
.riwayat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease;
}
.riwayat-card:active { transform: scale(0.985); }

/* ── Status badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
}
.badge-selesai { background: #dcfce7; color: #15803d; }
.badge-proses  { background: #fef3c7; color: #b45309; }
.badge-jadwal  { background: #eaf0ff; color: #1d6ef5; }
.badge-dibayar { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-gagal   { background: #fee2e2; color: #b91c1c; }

/* ── Progress mini ── */
.prog-bar {
    height: 4px;
    border-radius: 99px;
    background: var(--c-border);
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    border-radius: 99px;
}

/* ── Icon box ── */
.icon-box {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Filter chips ── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    background: var(--c-surface);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chip.active {
    background: var(--c-accent-light);
    border-color: rgba(29,110,245,0.35);
    color: #1d6ef5;
}

/* ── Bottom nav ── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--c-border);
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-anim { animation: fadeUp 0.35s ease both; }
.card-anim:nth-child(1) { animation-delay: 0.00s; }
.card-anim:nth-child(2) { animation-delay: 0.06s; }
.card-anim:nth-child(3) { animation-delay: 0.12s; }
.card-anim:nth-child(4) { animation-delay: 0.18s; }
.card-anim:nth-child(5) { animation-delay: 0.24s; }
.card-anim:nth-child(6) { animation-delay: 0.30s; }

.mono { font-family: 'DM Mono', monospace; }

/* Divider inside card */
.card-divider {
    border-top: 1px solid var(--c-border);
    background: var(--c-surface2);
}

/* Summary strip */
.summary-strip {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Search bar */
.search-bar {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    color: var(--c-text);
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.search-bar::placeholder { color: var(--c-muted2); }
.search-bar:focus { border-color: rgba(29,110,245,0.45); }

/* Month label */
.month-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted2);
}

/* Earnings banner */
.earnings-banner {
    background: linear-gradient(135deg, #1a5ce8 0%, #1d6ef5 50%, #4f83f9 100%);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(29,110,245,0.22);
}