* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #e6e8eb;
    background: #0b1220 url('background.jpg') center/cover no-repeat fixed;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100vh;
    padding: 24px;
    background: none;
}

.progress { width: 100%; max-width: 880px; padding-top: 8px; }

.progress-bar { position: relative; height: 64px; }
.progress-line {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    height: 6px; background: rgba(255,255,255,0.10); border-radius: 999px; overflow: hidden;
}
.progress-fill {
    position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
    background: #5b86e5; transition: width 300ms ease;
}
.progress-steps { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; }
.step { position: relative; flex: 0 0 auto; text-align: center; padding-top: 44px; }
.step .dot { width: 18px; height: 18px; border-radius: 999px; background: #2b354d; border: 3px solid #a7b0c0; transition: all 200ms ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.step.active .dot { border-color: #5b86e5; background: #5b86e5; }
.step.completed .dot { border-color: #22c55e; background: #22c55e; }
.step.error .dot { border-color: #ef4444; background: #ef4444; }
.step .label { font-size: 12px; color: #a7b0c0; margin-top: 12px; }

.container {
    width: 100%;
    max-width: 880px;
    background: rgba(18, 26, 45, 0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    min-height: 64vh;
    transform: translateY(-4vh);
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.header.centered {
    justify-content: center;
    text-align: center;
}
.header.centered img { display: none; }

.title {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: #a7b0c0;
}

.content { margin-top: 16px; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.intro-card { margin-top: 8px; }

.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font-size: 13px; color: #a7b0c0; }
.input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #e6e8eb;
}
.input::placeholder { color: #7e89a3; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.actions { margin-top: auto; justify-content: center; padding-bottom: 12px; }

.btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #e6e8eb;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}
.btn.primary { background: linear-gradient(90deg, #36d1dc, #5b86e5); border: none; color: #0b1220; font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }

.notice { font-size: 13px; color: #a7b0c0; }
.status {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}
.status.success { border-color: rgba(0, 200, 145, 0.6); color: #a7f3d0; }
.status.error { border-color: rgba(255, 99, 132, 0.6); color: #fecaca; }

.card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.card + .card { margin-top: 10px; }

.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.socials a { text-decoration: none; }
.socials .title { color: #ffffff; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: #a7b0c0; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.break { overflow-wrap: anywhere; word-break: break-word; }

/* Loading */
.loader-wrap { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 40vh; }
.loader-wrap img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }

/* Page enter animation */
@keyframes fade-slide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: fade-slide 260ms ease both; }

@media (max-width: 720px) {
    .results-grid { grid-template-columns: 1fr; }
    .title { font-size: 20px; }
    .card .title { font-size: 16px !important; }
}


