* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #25304a, #090b10 48%, #05060a);
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}

.portal {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.card {
    width: 100%;
    max-width: 760px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background: rgba(10, 14, 24, 0.88);
    box-shadow: 0 24px 80px rgba(0,0,0,0.38);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 0.95;
}

.badge {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.intro {
    margin: 0 0 26px;
    color: #cbd5e1;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 16px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #e2e8f0;
    font-weight: 800;
}

input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: rgba(255,255,255,0.38);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dropzone {
    position: relative;
    margin: 8px 0 18px;
    padding: 30px;
    border: 2px dashed rgba(255,255,255,0.22);
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    cursor: pointer;
    transition: 0.18s ease;
}

.dropzone.dragover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.09);
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-inner {
    display: grid;
    gap: 8px;
    text-align: center;
    pointer-events: none;
}

.dropzone-inner strong {
    font-size: 18px;
}

.dropzone-inner span {
    color: #94a3b8;
    line-height: 1.5;
}

.file-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.045);
    color: #dbeafe;
    font-size: 14px;
}

.file-item small {
    color: #94a3b8;
}

.progress-wrap {
    display: none;
    margin: 20px 0;
}

.progress-top,
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.progress-meta {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.progress-bar {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: #ffffff;
    transition: width 0.16s ease;
}

button {
    width: 100%;
    padding: 15px 18px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    color: #090b10;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.message {
    margin: 16px 0 0;
    font-weight: 800;
    line-height: 1.5;
}

.message.success {
    color: #86efac;
}

.message.error {
    color: #fca5a5;
}

@media (max-width: 680px) {
    .portal {
        padding: 16px;
    }

    .card {
        padding: 22px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .brand {
        display: block;
    }

    .badge {
        display: inline-block;
        margin-top: 16px;
    }
}
