.scan-stage { position: relative; min-width: 0; padding: 22px 18px 0 0; }
.scan-stage::before { content: ""; position: absolute; inset: -35px -15px 10px -30px; background: radial-gradient(circle at 55% 40%, rgba(245,184,75,.14), transparent 63%); pointer-events: none; }
.scan-panel, .translator-panel, .free-panel { position: relative; border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); box-shadow: 0 25px 65px rgba(0,0,0,.16); }
.scan-panel { padding: 22px; }
.panel-top, .scan-result, .phone-head, .alert-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-top { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--good); }
.demo { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--amber); font-size: 14px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.scan-panel label { font-size: 14px; font-weight: 700; }
.input-row { display: flex; gap: 9px; margin-top: 7px; }
.scan-panel .form-message { margin: 8px 0 0; }
.scan-panel .form-message:empty { min-height: 0; margin: 0; }
.scan-panel input { margin: 0; min-width: 0; font-family: ui-monospace, monospace; }
.scanner { display: flex; align-items: center; gap: 18px; padding: 22px 0 15px; }
.scanner strong, .scanner small { display: block; }
.scanner small { margin-top: 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 14px; overflow-wrap: anywhere; }
.scan-ring { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border: 2px solid var(--amber); border-radius: 50%; color: var(--amber); font-size: 21px; }
.scan-ring.running { animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: grid; grid-template-columns: 75px minmax(0,1fr) 38px; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; opacity: .25; transition: opacity .2s, transform .2s; transform: translateY(5px); }
.check-list li.done { opacity: 1; transform: none; }
.check-list time { color: var(--muted); font-family: ui-monospace, monospace; font-size: 14px; }
.check-list b { color: var(--good); font-family: ui-monospace, monospace; font-size: 14px; text-align: right; }
.check-list .warning b { color: var(--warn); }
.scan-result { padding-top: 16px; border-top: 1px solid var(--line); color: var(--warn); font-size: 14px; font-weight: 700; }
.scan-result button { border: 0; background: transparent; color: var(--amber); font-weight: 800; white-space: nowrap; }
.phone { position: relative; margin: -2px 0 0 auto; width: 250px; padding: 14px; border: 5px solid #34484a; border-radius: 28px; background: var(--bg); box-shadow: 0 22px 50px rgba(0,0,0,.34); animation: phone-in .4s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(35px); } }
.phone-head { font-size: 14px; font-weight: 800; }
.phone-label { color: var(--amber); font-size: 14px; font-weight: 800; letter-spacing: .1em; margin: 22px 0 9px; }
.bubble { min-height: 95px; padding: 12px; border-radius: 14px 14px 14px 3px; background: var(--surface2); font-size: 14px; line-height: 1.55; }
.phone small { color: var(--muted); font-size: 14px; }
.toggle { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.toggle button { flex: 1; border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 11px 13px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.toggle button.selected { background: var(--amber); color: var(--amber-text); }
.translator-panel { padding: 16px; }
.alert-content { min-height: 294px; padding: 30px 22px 8px; transition: opacity .18s; }
.alert-content.changing { opacity: 0; }
.alert-meta { color: var(--muted); font-family: ui-monospace, monospace; font-size: 14px; }
.alert-content h3 { margin: 26px 0 14px; }
.alert-content p { margin-bottom: 0; }
.readout { border-left: 2px solid var(--warn); padding-left: 18px; color: var(--muted); font: 12px/1.9 ui-monospace, monospace; overflow-wrap: anywhere; }
.free-panel { padding: 17px; }
.free-toggle { border-radius: 14px; }
.free-list { list-style: none; margin: 20px 0 0; padding: 0; }
.free-list li { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 15px 9px; font-size: 14px; animation: row-in .3s both; }
.free-list li:nth-child(2) { animation-delay: .04s; }
.free-list li:nth-child(3) { animation-delay: .08s; }
.free-list li:nth-child(4) { animation-delay: .12s; }
.free-list li:nth-child(5) { animation-delay: .16s; }
@keyframes row-in { from { opacity: 0; transform: translateY(7px); } }
.free-list strong { text-align: right; font-size: 14px; }
.free-list .yes { color: var(--good); }
.free-list .maybe { color: var(--warn); }
.free-list .no { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s, transform .5s; }
.reveal.shown { opacity: 1; transform: none; }
@media (max-width: 800px) { .scan-stage { max-width: 630px; } }
@media (max-width: 600px) {
  .scan-stage { padding: 0; }
  .scan-panel { padding: 16px; }
  .phone { width: 220px; }
  .toggle { border-radius: 14px; }
  .toggle button { flex: 1 1 100%; }
  .check-list li { grid-template-columns: 65px minmax(0,1fr) 34px; font-size: 14px; }
  .check-list time { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-ring.running { animation: none; }
  .phone, .free-list li { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
