* {
    box-sizing: border-box;
}

:root {
    --primary: #081f35;
    --accent: #00c4b4;
    --white: #fff;
    --muted: #d7e1ec;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 72% 24%, rgba(0, 196, 180, 0.22), transparent 38%),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.05), transparent 50%),
        var(--primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.hero-inner {
    width: min(680px, 92%);
    margin: 0 auto;
    padding: clamp(42px, 10vh, 96px) 0;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(25px, 6vw, 32px);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    font: 700 13px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    border: 1px solid var(--white);
    border-radius: 999px;
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 196, 180, 0.22);
}

.upload-form .btn-primary {
    gap: 8px;
    white-space: nowrap;
}

.upload-form .btn-primary:disabled {
    cursor: progress;
}

.upload-form .btn-primary:disabled::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: upload-spin 0.7s linear infinite;
}

@keyframes upload-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .upload-form .btn-primary:disabled::before {
        animation: none;
    }
}

.btn-secondary {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.btn-primary:enabled:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(0, 196, 180, 0.12);
}

.hero-panel {
    margin-top: 24px;
    padding: clamp(18px, 4vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.panel-label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

p {
    color: var(--muted);
}

.hero-panel p,
.file-list {
    margin: 0;
}

.file-list {
    padding: 0;
    list-style: none;
}

.panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.file-actions img {
    filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
    .hero-inner {
        padding: 28px 0;
    }

    .upload-form .btn-primary {
        min-height: 44px;
        padding-inline: 14px;
    }

    .hero-panel {
        padding: 14px;
    }

    .panel-item {
        gap: 8px;
    }
}
