*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f1419;
    --panel: #1a2332;
    --inner: #121a24;
    --accent: #5eead4;
    --accent2: #a78bfa;
    --warn: #fbbf24;
    --danger: #f87171;
    --ok: #4ade80;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: 3px solid #000;
    --shadow: 5px 5px 0 #000;
}

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: "TikTok Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 16px;
    background-image: radial-gradient(#1e293b 12%, transparent 12%);
    background-size: 14px 14px;
}

.page {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header {
    text-align: center;
    padding: 20px 16px;
    background: var(--panel);
    border: var(--border);
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header h1 span {
    color: var(--accent);
}

.header p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--inner);
    border: 2px solid #000;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.step-pill .num {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: var(--accent2);
    color: #000;
    font-weight: 900;
    border: 2px solid #000;
}

.step-pill.is-active {
    outline: 2px solid var(--accent);
}

.panel {
    background: var(--panel);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
}

.drop-zone {
    display: block;
    border: 3px dashed var(--accent);
    background: var(--inner);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
    background: #152032;
    transform: translate(-2px, -2px);
}

.drop-zone i {
    font-size: 2.2rem;
    color: var(--accent);
}

.drop-title {
    margin-top: 10px;
    font-weight: 800;
    font-size: 1rem;
}

.drop-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .preview-row {
        grid-template-columns: 1fr;
    }
}

.preview-box {
    background: var(--inner);
    border: 2px solid #000;
    padding: 10px;
    min-height: 120px;
}

.preview-box h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
}

.preview-box img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: 2px solid #000;
}

.preview-empty {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 8px;
}

.report {
    margin-top: 14px;
    background: var(--inner);
    border: 2px solid #000;
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 160px;
    overflow-y: auto;
}

.report li {
    margin-left: 18px;
    color: var(--muted);
}

.report .tag-ok {
    color: var(--ok);
    font-weight: 700;
}

.report .tag-warn {
    color: var(--warn);
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 18px;
    border: var(--border);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(145deg, var(--accent), #2dd4bf);
    color: #042f2e;
}

.btn-secondary {
    background: #334155;
    color: var(--text);
}

.btn-download {
    background: linear-gradient(145deg, var(--accent2), #8b5cf6);
    color: #fff;
}

.note {
    margin-top: 14px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 2px solid rgba(251, 191, 36, 0.35);
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.note strong {
    color: var(--warn);
}

.opt-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    background: var(--inner);
    border: 2px solid #000;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    cursor: pointer;
}

.opt-row input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent2);
}

.footer-link {
    text-align: center;
    padding-bottom: 8px;
}

.footer-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pick-btn {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.pick-btn:hover {
    color: var(--accent2);
}
