/* Tuner-Portal: nur, was über shared.css hinausgeht. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 18px 20px; }
main.page { max-width: 1080px; margin: 0 auto; padding: 4px 20px 72px; display: flex; flex-direction: column; gap: 18px; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(22, 117, 255, 0.45); display: grid; place-items: center; font-weight: 750; color: #ffb3b6; }
.layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-head { text-align: center; margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.auth-head .brand { font-size: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #050d1c; border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { border: 0; border-radius: 9px; padding: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.seg button.active { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 150px; padding: 18px;
  border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop.has-file { border-style: solid; border-color: rgba(31, 224, 143, 0.5); background: var(--green-soft); color: var(--text); }
.drop .big { font-size: 15px; font-weight: 650; color: var(--text); }
.file-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.vin-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; color: var(--muted); font-size: 14px; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: #b9d6ff; font-weight: 750; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.steps b { color: var(--text); }

.result { border-color: rgba(31, 224, 143, 0.5); background: linear-gradient(180deg, rgba(31, 224, 143, 0.1), var(--card)); display: flex; flex-direction: column; gap: 12px; }

/* Geführter Ablauf (Stepper) */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 4px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.stepper .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 750; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted); }
.stepper li.active { color: var(--text); }
.stepper li.active .dot { border-color: var(--accent); color: #b9d6ff; background: var(--accent-soft); }
.stepper li.done { color: var(--green); }
.stepper li.done .dot { border-color: rgba(31, 224, 143, 0.5); background: var(--green-soft); color: var(--green); }

/* Deutlicher Speicherbereich nach dem Verschlüsseln (#4) */
.save-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed rgba(31, 224, 143, 0.5); background: var(--green-soft); }
.save-box .btn.primary { background: var(--green); border-color: var(--green); color: #04120b; box-shadow: none; }
.save-box .btn.primary:hover { background: #2ff0a0; border-color: #2ff0a0; }

/* Angaben prüfen (Review) */
.review { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; border-bottom: 1px solid rgba(30, 42, 48, 0.7); font-size: 14px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row > span:last-child { text-align: right; word-break: break-word; }

/* Kundenbereich: klare nächste Aktion */
.next-action { border-color: rgba(76, 155, 255, 0.4); background: linear-gradient(180deg, rgba(76, 155, 255, 0.08), var(--card)); display: flex; flex-direction: column; gap: 12px; }
.next-action svg { flex: none; color: var(--blue); margin-top: 2px; }

@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
