:root {
    --bg: #0b0e14;
    --bg-panel: #12161f;
    --bg-panel-2: #171c27;
    --border: #232a38;
    --gold: #d4af37;
    --red: #c41e3a;
    --navy: #1e3a8a;
    --text: #eef0f4;
    --text-dim: #9aa3b2;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 0%, #151a26 0%, var(--bg) 55%);
    color: var(--text);
}

.wrap {
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.brand {
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    margin-left: 18px;
    transition: color .15s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }

.card {
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gold), #f3d97e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}

.subtitle {
    color: var(--text-dim);
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    flex-shrink: 0;
}

.progress-outer {
    background: #0a0c12;
    border: 1px solid var(--border);
    border-radius: 999px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
    border-radius: 999px;
    transition: width .6s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
    flex-shrink: 0;
}
.progress-stats strong { color: var(--text); }

label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 5px;
    margin-top: 10px;
    flex-shrink: 0;
}

input[type=text], input[type=tel], input[type=number] {
    width: 100%;
    padding: 10px 12px;
    background: #0a0c12;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease;
    flex-shrink: 0;
}
input:focus { border-color: var(--gold); }

button.submit {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--red), #8f1729);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter .15s ease;
    flex-shrink: 0;
}
button.submit:hover { filter: brightness(1.1); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.error-msg {
    background: rgba(196,30,58,0.12);
    border: 1px solid rgba(196,30,58,0.4);
    color: #ff9daa;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 10px;
    display: none;
    flex-shrink: 0;
}

.donor-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.donor-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.donor-list li:last-child { border-bottom: none; }
.donor-name { color: var(--text); font-weight: 500; }
.donor-amount { color: var(--gold); font-weight: 600; font-size: 14px; }
.donor-date { color: var(--text-dim); font-size: 12px; display: block; margin-top: 2px; }

.empty {
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

.status-center {
    text-align: center;
    padding: 30px 0;
}
.spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}
.status-icon.success { background: rgba(52,199,89,0.15); color: #34c759; }
.status-icon.failed { background: rgba(196,30,58,0.15); color: #ff6b81; }

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