:root {
    --bg-0: #05060d;
    --bg-1: #0b0e1f;
    --bg-2: #120d28;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.06);
    --text: #f2f3fa;
    --text-muted: #9297b5;
    --text-dim: #5c6187;
    --accent-blue: #5b8cff;
    --accent-violet: #a06bff;
    --accent-cyan: #34e2e2;
    --accent-amber: #f2b84b;
    --accent-green: #3ee6a3;
    --accent-gradient: linear-gradient(120deg, var(--accent-blue), var(--accent-violet));
    --success-gradient: linear-gradient(120deg, #22c55e, #16a34a);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

/* Grossflaechiger Verlaufshintergrund ueber die gesamte Seite, plus weiche
   Glow-Flecken fuer die Tiefenwirkung. Fixed, damit er beim Scrollen ruhig bleibt. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, rgba(91, 140, 255, 0.20), transparent 40%),
        radial-gradient(circle at 88% 15%, rgba(160, 107, 255, 0.18), transparent 38%),
        radial-gradient(circle at 50% 95%, rgba(52, 226, 226, 0.10), transparent 45%);
    filter: blur(10px);
}

.wrap {
    max-width: 990px;
    margin: 0 auto;
    padding: 72px 24px 56px;
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    margin-bottom: 56px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-title-row img.hero-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: none;
}

.hero h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero h1 .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero p + p {
    margin-top: 6px;
}

.hero p a,
.support-card p a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--text-dim);
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.hero p a:hover,
.support-card p a:hover {
    color: var(--accent-blue);
    text-decoration-color: var(--accent-blue);
}

/* ---------- Cards (gemeinsame Basis) ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 24px 60px -24px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 32px;
    margin-bottom: 28px;
}

/* ---------- Download-Karte ---------- */

.downloads-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.folder-icon {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -10px rgba(91, 140, 255, 0.5);
}

.folder-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.downloads-card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.downloads-card-header .meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Dateiliste ---------- */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.file-row:hover {
    border-color: rgba(91, 140, 255, 0.45);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.file-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 19px;
    height: 19px;
}

.file-icon.blue   { background: rgba(91, 140, 255, 0.16); }
.file-icon.blue   svg { color: var(--accent-blue); }
.file-icon.violet { background: rgba(160, 107, 255, 0.16); }
.file-icon.violet svg { color: var(--accent-violet); }
.file-icon.cyan   { background: rgba(52, 226, 226, 0.16); }
.file-icon.cyan   svg { color: var(--accent-cyan); }
.file-icon.amber  { background: rgba(242, 184, 75, 0.16); }
.file-icon.amber  svg { color: var(--accent-amber); }
.file-icon.gray   { background: rgba(255, 255, 255, 0.08); }
.file-icon.gray   svg { color: var(--text-muted); }

.file-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-new {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 224, 155, 0.14);
    border: 1px solid rgba(52, 224, 155, 0.45);
    color: #3ee6a3;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 14px rgba(52, 224, 155, 0.3);
}

.badge-new .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ee6a3;
    box-shadow: 0 0 0 0 rgba(62, 230, 163, 0.6);
    animation: badge-pulse 1.8s infinite;
}

@keyframes badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(62, 230, 163, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(62, 230, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 230, 163, 0); }
}

.file-meta {
    flex: none;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.file-meta .size {
    display: block;
    color: var(--text);
    font-weight: 600;
}

.file-meta .date {
    display: block;
    color: var(--text-dim);
}

.file-copy-btn {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.file-copy-btn svg {
    width: 15px;
    height: 15px;
}

.file-copy-btn:hover {
    background: rgba(91, 140, 255, 0.16);
    border-color: rgba(91, 140, 255, 0.5);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.file-copy-btn.copied {
    background: rgba(62, 230, 163, 0.16);
    border-color: rgba(62, 230, 163, 0.55);
    color: var(--accent-green);
}

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

/* ---------- Support-Karte ---------- */

.support-card {
    text-align: center;
}

.support-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.support-card p {
    max-width: 640px;
    margin: 14px auto 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.support-card p + h2 {
    margin-top: 40px;
}

.wallet-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 24px auto 0;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    max-width: 100%;
}

.wallet-address code {
    overflow-x: auto;
    white-space: nowrap;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(91, 140, 255, 0.55);
    transition: transform .15s ease, box-shadow .15s ease;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(91, 140, 255, 0.7);
}

.support-btn svg {
    width: 16px;
    height: 16px;
}

.support-btn.copied {
    background: var(--success-gradient);
    box-shadow: 0 14px 30px -12px rgba(34, 197, 94, 0.55);
}

/* ---------- Footer ---------- */

footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}

@media (max-width: 560px) {
    .wrap { padding: 48px 16px 40px; }
    .hero h1 { font-size: 32px; }
    .hero-title-row img.hero-logo { width: 36px; height: 36px; }
    .card { padding: 22px; border-radius: 20px; }
    .file-meta { font-size: 11px; }
    .file-name { font-size: 13px; }
}
