html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 28%),
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 22%),
        linear-gradient(180deg, #081120 0%, #0b1730 52%, #0f1b2d 100%);
    color: #e5edf9;
}

.page-shell {
    min-height: 100vh;
}

.hero-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(11, 20, 39, 0.82);
    backdrop-filter: blur(18px);
}

.hero-panel,
.form-panel {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .hero-panel,
    .form-panel {
        padding: 2rem;
    }
}

.hero-panel {
    background:
        linear-gradient(180deg, rgba(8, 18, 38, 0.94), rgba(10, 17, 31, 0.86)),
        linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(168, 85, 247, 0.12));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 992px) {
    .hero-panel {
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 0;
    }
}

.form-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(12, 22, 36, 0.8));
}

.eyebrow,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.14);
}

.display-title {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 6vw, 3.55rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f8fbff;
}

.lead-copy,
.panel-copy,
.result-copy,
.footer-note {
    color: #c3d3ea;
    line-height: 1.65;
}

.feature-stack {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #eff6ff;
}

.feature-pill i {
    font-size: 1.1rem;
    color: #7dd3fc;
}

.system-card,
.mapping-card,
.result-card {
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
}

.system-head,
.result-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .8rem;
}

.system-row,
.mapping-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .7rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #d7e5f8;
}

.system-row:first-of-type,
.mapping-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.mapping-row code {
    color: #bfdbfe;
    font-size: .95rem;
}

.panel-header {
    margin-bottom: 1.25rem;
}

.panel-title {
    margin-top: .95rem;
    margin-bottom: .5rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
}

.form-control,
.btn,
.upload-zone,
.alert {
    border-radius: 18px;
}

.form-control {
    min-height: 3.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f8fbff;
}

.form-control::placeholder {
    color: #93a9c7;
}

.form-control:focus {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 0 .25rem rgba(59, 130, 246, 0.18);
}

.pin-wrap {
    position: relative;
}

.pin-input {
    text-align: center;
    letter-spacing: .42em;
    font-weight: 800;
    font-size: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
}

.btn-outline-secondary {
    color: #d7e5f8;
    border-color: rgba(255,255,255,0.18);
}

.btn-outline-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}

.upload-zone {
    position: relative;
    border: 2px dashed rgba(125, 211, 252, 0.45);
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.02)),
        rgba(255,255,255,0.03);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.upload-zone.dragover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.9);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

.upload-zone-inner {
    padding: 1.5rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .upload-zone-inner {
        padding: 2.35rem 1.5rem;
    }
}

.upload-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.8rem;
    color: #7dd3fc;
}

.upload-zone h3 {
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    font-weight: 700;
    color: #ffffff;
}

.selected-file {
    color: #bfdbfe;
    font-weight: 600;
}

.progress-modern {
    height: 1rem;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
}

.result-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.result-icon {
    font-size: 2rem;
    line-height: 1;
    color: #34d399;
}

.alert-danger,
.alert-success {
    border: 1px solid rgba(255,255,255,0.1);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.alert-success {
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
}

.footer-note {
    margin-top: 1.15rem;
    text-align: center;
    font-size: .94rem;
}

code {
    color: #fde68a;
    word-break: break-word;
}
