:root {
    color-scheme: light dark;
    --bg: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-light: #ffffff;
    --accent: #00d4ff;
    --accent-strong: #0088cc;
    --success: #10c876;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --pill-bg: rgba(0, 136, 204, 0.09);
    --pill-text: #0088cc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, oxygen, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #020617;
        --bg-card: rgba(30, 41, 59, 0.8);
        --bg-card-light: rgba(30, 41, 59, 0.9);
        --text: rgba(241, 245, 249, 0.95);
        --text-muted: rgba(148, 163, 184, 0.85);
        --border: rgba(148, 163, 184, 0.1);
        --pill-bg: rgba(34, 197, 94, 0.18);
        --pill-text: #34d399;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, rgba(0, 136, 204, 0.08), var(--bg) 45%);
    min-height: 100vh;
    padding: 16px;
    color: var(--text);
}

.app {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(0, 136, 204, 0.18);
    backdrop-filter: blur(12px);
}

.app__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app__logo {
    font-size: 32px;
}

.app__tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.app__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 14px;
    color: var(--text-muted);
}

h1, h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 18px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

.highlight {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--bg-card-light);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(14px);
}

.card--timeline {
    gap: 16px;
}

.card--wallet .stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.card--wallet .stat__label {
    font-size: 14px;
    color: var(--text-muted);
}

.card--wallet .stat__value {
    font-weight: 600;
    font-size: 18px;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.card__header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pill-bg);
    color: var(--pill-text);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.pill--outline {
    border: 1px solid rgba(0, 136, 204, 0.35);
    background: transparent;
}

.pill[data-status="approved"],
.pill[data-status="paid"] {
    background: rgba(16, 200, 118, 0.18);
    color: var(--success);
}

.pill[data-status="pending"] {
    background: rgba(245, 158, 11, 0.18);
    color: var(--warning);
}

.pill[data-status="needs_info"] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    counter-reset: step;
}

.timeline li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.timeline li::before {
    counter-increment: step;
    content: counter(step);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.15);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.timeline li[data-status="done"]::before {
    content: "✓";
    background: rgba(16, 200, 118, 0.2);
    color: var(--success);
}

.timeline li[data-status="current"]::before {
    content: "•";
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    font-size: 20px;
    line-height: 1;
}

.timeline__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline__title {
    font-weight: 600;
    font-size: 14px;
}

.timeline__meta {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline__note {
    font-size: 12px;
    color: var(--accent-strong);
}

.progress {
    width: 100%;
    height: 12px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress__bar {
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.85), rgba(0, 212, 255, 0.75));
    border-radius: inherit;
}

.progress__bar--accent {
    background: linear-gradient(135deg, rgba(16, 200, 118, 0.8), rgba(52, 211, 153, 0.7));
}

.progress__label {
    font-size: 13px;
    color: var(--text-muted);
}

.claims-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.claims-list.expanded {
    max-height: 400px;
}

.claim-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.claim-item__id {
    font-weight: 600;
    font-size: 14px;
}

.claim-item__status {
    font-size: 12px;
    color: var(--text-muted);
}

.claim-item__amount {
    font-weight: 600;
    color: var(--accent-strong);
}

.ghost-button {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-button:hover {
    border-color: var(--accent-strong);
}

.wallet__address {
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular;
    font-size: 12px;
    word-break: break-all;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 136, 204, 0.08);
}

@media (max-width: 720px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 14px;
    }

    .card--status {
        order: 1;
    }

    .card--wallet {
        order: 2;
    }
}

