/* ========================================================================== 
   SO Wetter-Globus · Base, Tokens & Shared Components
   ========================================================================== */
:root {
  --bg-0: #02060d;
  --bg-1: #06111d;
  --bg-2: #0a1d2e;
  --panel: rgba(6, 19, 32, .76);
  --panel-strong: rgba(4, 15, 27, .91);
  --line: rgba(97, 210, 255, .24);
  --line-strong: rgba(92, 221, 255, .58);
  --cyan: #65dcff;
  --blue: #3b8fff;
  --green: #63eda9;
  --amber: #ffd264;
  --orange: #ff9d52;
  --red: #ff5f72;
  --violet: #b598ff;
  --text: #effaff;
  --muted: #9eb8c8;
  --faint: #6e8898;
  --shadow: 0 18px 55px rgba(0, 0, 0, .44);
  --radius: 18px;
  --header-h: 74px;
  --footer-h: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 28% 18%, rgba(34, 97, 132, .18), transparent 28%),
    radial-gradient(circle at 75% 68%, rgba(33, 78, 143, .12), transparent 34%),
    var(--bg-0);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.app-shell { width: 100%; height: 100vh; height: 100svh; height: 100dvh; overflow: hidden; position: relative; isolation: isolate; }
.stage { position: absolute; inset: 0; overflow: hidden; background: #02060c; }
.globe-stage { position: absolute; inset: 0; z-index: 1; outline: 0; touch-action: none; cursor: grab; }
.globe-stage:active { cursor: grabbing; }
.globe-stage canvas { display: block; width: 100%; height: 100%; }

.space-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 34%, rgba(1, 5, 11, .15) 64%, rgba(0, 2, 7, .74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 17%, transparent 78%, rgba(0, 0, 0, .36));
}

.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 33, 50, .76), rgba(3, 14, 25, .82));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.topbar {
  position: absolute; z-index: 20; top: max(10px, var(--safe-top)); left: max(10px, var(--safe-left)); right: max(10px, var(--safe-right));
  height: var(--header-h); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-orbit { width: 42px; height: 42px; border: 1px solid rgba(96, 221, 255, .58); border-radius: 50%; position: relative; flex: 0 0 auto; box-shadow: 0 0 24px rgba(73, 207, 255, .18); }
.brand-orbit::before, .brand-orbit::after { content: ""; position: absolute; inset: 8px -4px; border: 1px solid rgba(87, 223, 255, .3); border-radius: 50%; transform: rotate(38deg); }
.brand-orbit::after { transform: rotate(-38deg); }
.brand-orbit span { position: absolute; width: 11px; height: 11px; left: 14px; top: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #dffaff, var(--cyan) 32%, #1b6796 75%); box-shadow: 0 0 17px var(--cyan); }
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { color: #f3fcff; letter-spacing: .075em; font-size: .94rem; white-space: nowrap; }
.brand-copy small { color: var(--muted); font-size: .7rem; letter-spacing: .08em; white-space: nowrap; }

.live-strip, .top-actions { display: flex; align-items: center; gap: 8px; }
.live-strip { margin-left: auto; }
.status-pill { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(110, 195, 226, .18); border-radius: 999px; background: rgba(3, 14, 23, .56); padding: 0 11px; font-size: .69rem; color: var(--muted); letter-spacing: .04em; }
.status-pill b { color: var(--text); font-size: .64rem; letter-spacing: .11em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: statusPulse 1.9s infinite; }
.status-pill.is-error i { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes statusPulse { 0%,100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.1); } }

.icon-button { height: 38px; min-width: 38px; border: 1px solid rgba(91, 203, 242, .24); border-radius: 11px; background: rgba(4, 18, 30, .72); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: .2s ease; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--line-strong); background: rgba(14, 48, 67, .82); transform: translateY(-1px); outline: 0; }
.icon-button.is-active { color: var(--green); border-color: rgba(99, 237, 169, .38); }
.button-label { font-size: .72rem; font-weight: 750; letter-spacing: .04em; }

.eyebrow { color: var(--cyan); font-size: .61rem; font-weight: 800; letter-spacing: .16em; }
.panel-heading { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.panel-heading h1, .panel-heading h2 { margin: 4px 0 0; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.1; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .73rem; }
.compact-heading { align-items: center; }

.search-panel, .weather-panel, .layers-panel, .globe-controls, .globe-readout, .legend, .layer-drawer { position: absolute; z-index: 10; border-radius: var(--radius); }

.search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 15px; }
.search-input-wrap { height: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(101, 207, 246, .22); border-radius: 12px; background: rgba(0, 7, 14, .56); }
.search-input-wrap:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(66, 190, 235, .08); }
.search-input-wrap > span { color: var(--cyan); }
.search-input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-input-wrap input::placeholder { color: #748d9d; }
.clear-button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.clear-button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.primary-button, .secondary-button { border-radius: 11px; cursor: pointer; font-weight: 760; letter-spacing: .025em; transition: .2s ease; }
.primary-button { border: 1px solid rgba(80, 220, 255, .7); background: linear-gradient(135deg, #157ea8, #195691); color: white; box-shadow: 0 8px 22px rgba(17, 118, 165, .22); }
.primary-button:hover, .primary-button:focus-visible { filter: brightness(1.14); transform: translateY(-1px); outline: 0; }
.search-submit { min-width: 82px; padding: 0 14px; }
.secondary-button { min-height: 38px; padding: 0 11px; border: 1px solid rgba(102, 204, 237, .22); background: rgba(6, 28, 43, .66); color: var(--muted); }
.secondary-button:hover, .secondary-button:focus-visible { color: var(--text); border-color: rgba(101, 220, 255, .48); outline: 0; }

.search-results { position: absolute; left: 14px; right: 14px; top: 121px; max-height: min(42vh, 370px); overflow: auto; z-index: 20; border: 1px solid rgba(92, 214, 255, .3); border-radius: 13px; background: rgba(2, 12, 21, .97); box-shadow: 0 18px 46px rgba(0,0,0,.55); }
.search-result { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; padding: 11px 12px; border: 0; border-bottom: 1px solid rgba(98, 181, 211, .12); background: transparent; cursor: pointer; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible { background: rgba(35, 118, 151, .19); outline: 0; }
.search-result b { font-size: .82rem; }
.search-result small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; }
.search-result span { color: var(--faint); font-size: .63rem; align-self: center; }
.search-empty { padding: 16px; color: var(--muted); font-size: .75rem; text-align: center; }

.quick-cities { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.quick-cities button { border: 1px solid rgba(89, 183, 215, .16); border-radius: 999px; background: rgba(5, 24, 38, .66); color: var(--muted); padding: 5px 9px; font-size: .66rem; cursor: pointer; }
.quick-cities button:hover { color: var(--cyan); border-color: rgba(94, 216, 255, .42); }
.search-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.privacy-note { margin: 9px 0 0; color: var(--faint); font-size: .6rem; line-height: 1.45; }

.weather-symbol { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(98, 218, 255, .22); border-radius: 15px; background: radial-gradient(circle at 35% 30%, rgba(107, 225, 255, .18), rgba(2, 13, 24, .24)); color: var(--cyan); font-size: 1.55rem; box-shadow: inset 0 0 22px rgba(71, 196, 235, .08); }
.weather-primary { display: flex; align-items: center; gap: 15px; margin: 13px 0 12px; }
.temperature { display: flex; align-items: flex-start; line-height: .82; }
.temperature strong { font-size: clamp(2.6rem, 5vw, 4.1rem); letter-spacing: -.07em; font-weight: 300; }
.temperature span { margin: 3px 0 0 4px; color: var(--cyan); font-size: 1rem; }
.weather-primary > div:last-child { display: grid; gap: 5px; min-width: 0; }
.weather-primary > div:last-child strong { font-size: .89rem; }
.weather-primary > div:last-child span { color: var(--muted); font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.metric-grid article { min-width: 0; min-height: 62px; padding: 9px 10px; border: 1px solid rgba(86, 183, 219, .13); border-radius: 12px; background: rgba(1, 10, 18, .38); display: grid; align-content: center; gap: 3px; }
.metric-grid span { color: var(--muted); font-size: .62rem; }
.metric-grid strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-grid small { color: var(--faint); font-size: .58rem; }

.weather-alert { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; margin-top: 9px; padding: 9px 10px; border: 1px solid rgba(102, 192, 223, .15); border-radius: 12px; background: rgba(5, 19, 31, .52); }
.weather-alert .alert-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(99, 220, 255, .1); color: var(--cyan); }
.weather-alert b { font-size: .7rem; }
.weather-alert p { margin: 2px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.35; }
.weather-alert.is-watch { border-color: rgba(255, 210, 100, .32); background: rgba(74, 52, 10, .22); }
.weather-alert.is-watch .alert-icon { color: var(--amber); background: rgba(255, 210, 100, .12); }
.weather-alert.is-warning { border-color: rgba(255, 95, 114, .46); background: rgba(91, 15, 29, .26); }
.weather-alert.is-warning .alert-icon { color: var(--red); background: rgba(255, 95, 114, .13); animation: warningFlash 1.2s infinite; }
@keyframes warningFlash { 50% { box-shadow: 0 0 18px rgba(255, 95, 114, .45); } }

.forecast-block { margin-top: 11px; }
.subheading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.subheading span { color: var(--cyan); font-size: .59rem; font-weight: 800; letter-spacing: .13em; }
.subheading small { color: var(--faint); font-size: .58rem; }
.hourly-forecast { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(49px, 1fr); gap: 5px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 3px; }
.hour-card { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 7px 4px; border: 1px solid rgba(92, 187, 218, .12); border-radius: 10px; background: rgba(0, 8, 15, .34); }
.hour-card time { color: var(--muted); font-size: .56rem; }
.hour-card i { color: var(--cyan); font-style: normal; font-size: .83rem; }
.hour-card b { font-size: .65rem; }
.hour-card small { color: #80b7ca; font-size: .52rem; }

.jarvis-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(89, 181, 215, .15); }
.jarvis-line p { min-width: 0; margin: 0; color: var(--muted); font-size: .61rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jarvis-line p b { color: var(--green); letter-spacing: .1em; }
.jarvis-line button { width: 28px; height: 28px; border: 1px solid rgba(98, 226, 170, .25); border-radius: 50%; background: rgba(22, 83, 61, .28); color: var(--green); cursor: pointer; }
.jarvis-pulse { width: 24px; height: 20px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.jarvis-pulse i { width: 2px; height: 7px; border-radius: 3px; background: var(--green); animation: jarvisBars 1s ease-in-out infinite; }
.jarvis-pulse i:nth-child(2) { animation-delay: .15s; height: 13px; }
.jarvis-pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes jarvisBars { 0%,100% { transform: scaleY(.45); opacity: .45; } 50% { transform: scaleY(1.1); opacity: 1; } }

.layers-panel { padding: 12px; display: grid; gap: 3px; }
.layers-panel > .eyebrow { padding: 2px 6px 7px; }
.layers-panel label { min-width: 160px; height: 32px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 0 7px; border-radius: 8px; cursor: pointer; }
.layers-panel label:hover { background: rgba(78, 178, 211, .08); }
.layers-panel input { position: absolute; opacity: 0; }
.layers-panel label span { font-size: .68rem; color: var(--muted); }
.layers-panel label i { width: 28px; height: 15px; border-radius: 999px; background: rgba(83, 111, 127, .5); position: relative; transition: .2s ease; }
.layers-panel label i::after { content: ""; position: absolute; width: 11px; height: 11px; left: 2px; top: 2px; border-radius: 50%; background: #9db1bc; transition: .2s ease; }
.layers-panel input:checked ~ i { background: rgba(40, 162, 194, .65); }
.layers-panel input:checked ~ i::after { left: 15px; background: #e7fbff; box-shadow: 0 0 8px var(--cyan); }

.globe-controls { display: flex; align-items: center; gap: 3px; padding: 5px; }
.globe-controls button { min-width: 52px; min-height: 46px; display: grid; place-items: center; gap: 2px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; }
.globe-controls button:hover, .globe-controls button:focus-visible, .globe-controls button.is-active { color: var(--text); border-color: rgba(88, 202, 239, .22); background: rgba(36, 110, 139, .15); outline: 0; }
.globe-controls button.is-active span { color: var(--cyan); }
.globe-controls button span { font-size: 1rem; }
.globe-controls button b { font-size: .58rem; letter-spacing: .04em; }
.control-separator { width: 1px; height: 30px; background: rgba(111, 190, 218, .16); margin: 0 3px; }

.globe-readout { display: grid; grid-template-columns: repeat(4, auto); gap: 0; padding: 8px 10px; }
.globe-readout span { min-width: 84px; display: grid; gap: 2px; padding: 0 10px; border-right: 1px solid rgba(104, 186, 214, .15); }
.globe-readout span:last-child { border-right: 0; }
.globe-readout b { font-size: .68rem; color: var(--text); }
.globe-readout small { color: var(--faint); font-size: .49rem; letter-spacing: .13em; }

.legend { display: flex; align-items: center; gap: 12px; padding: 7px 10px; }
.legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .56rem; }
.legend small { padding-left: 8px; border-left: 1px solid rgba(111, 190, 218, .16); color: var(--faint); font-size: .53rem; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.legend-dot.rain { color: #53bfff; background: currentColor; }
.legend-dot.snow { color: #e8fbff; background: currentColor; }
.legend-dot.storm { color: #c49aff; background: currentColor; }
.legend-dot.wind { color: #ffd264; background: currentColor; }

.focus-reticle { position: absolute; z-index: 8; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1px solid rgba(93, 224, 255, .22); border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.65); transition: .35s ease; }
.focus-reticle.is-active { opacity: 1; transform: scale(1); }
.focus-reticle::before, .focus-reticle::after { content: ""; position: absolute; background: rgba(91, 220, 255, .4); }
.focus-reticle::before { width: 1px; height: 90px; left: 35px; top: -10px; }
.focus-reticle::after { height: 1px; width: 90px; top: 35px; left: -10px; }
.focus-reticle span { position: absolute; inset: 8px; border: 1px dashed rgba(103, 236, 255, .42); border-radius: 50%; animation: reticleSpin 6s linear infinite; }
@keyframes reticleSpin { to { transform: rotate(360deg); } }

.loading-screen { position: absolute; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: radial-gradient(circle at center, #0a2033, #02060d 58%); transition: opacity .7s ease, visibility .7s ease; }
.loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-screen strong { letter-spacing: .2em; font-size: .9rem; }
.loading-screen span { color: var(--muted); font-size: .68rem; }
.loader-globe { width: 90px; height: 90px; position: relative; border: 1px solid rgba(88, 219, 255, .38); border-radius: 50%; box-shadow: 0 0 45px rgba(55, 188, 239, .13), inset 0 0 28px rgba(55, 188, 239, .08); }
.loader-globe i { position: absolute; inset: 13px -4px; border: 1px solid rgba(92, 222, 255, .33); border-radius: 50%; animation: globeLoad 2.4s linear infinite; }
.loader-globe i:nth-child(2) { transform: rotate(60deg); animation-delay: -.8s; }
.loader-globe i:nth-child(3) { transform: rotate(-60deg); animation-delay: -1.6s; }
@keyframes globeLoad { to { transform: rotate(360deg); } }
.loading-progress { width: 230px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(111, 187, 215, .13); }
.loading-progress i { display: block; width: 6%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); box-shadow: 0 0 12px var(--cyan); transition: width .4s ease; }

.toast { position: absolute; z-index: 90; left: 50%; bottom: calc(90px + var(--safe-bottom)); max-width: min(88vw, 520px); padding: 10px 14px; border: 1px solid rgba(96, 218, 255, .28); border-radius: 999px; background: rgba(3, 16, 27, .94); box-shadow: 0 12px 35px rgba(0,0,0,.4); color: var(--text); font-size: .72rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(255, 95, 114, .42); }

.app-footer { position: absolute; z-index: 15; left: 18px; right: 18px; bottom: 4px; height: var(--footer-h); display: flex; align-items: center; justify-content: space-between; color: rgba(155, 183, 199, .62); font-size: .53rem; pointer-events: none; }
.app-footer nav { display: flex; gap: 12px; pointer-events: auto; }
.app-footer a { text-decoration: none; }
.app-footer a:hover { color: var(--cyan); }

.info-dialog { width: min(720px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 0; border: 1px solid rgba(102, 218, 255, .35); border-radius: 20px; color: var(--text); background: rgba(4, 16, 27, .97); box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.info-dialog::backdrop { background: rgba(0, 4, 9, .74); backdrop-filter: blur(8px); }
.info-dialog form { position: relative; padding: 24px; overflow: auto; }
.info-dialog h2 { margin: 6px 0 9px; }
.info-dialog > form > p { color: var(--muted); line-height: 1.55; font-size: .81rem; }
.dialog-close { position: absolute; right: 15px; top: 15px; width: 34px; height: 34px; border: 1px solid rgba(255, 95, 114, .3); border-radius: 50%; background: rgba(87, 12, 24, .3); color: #ff9ba7; cursor: pointer; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.info-grid article { padding: 13px; border: 1px solid rgba(90, 192, 225, .15); border-radius: 13px; background: rgba(1, 9, 16, .36); }
.info-grid b { font-size: .76rem; }
.info-grid p { margin: 6px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.source-note { color: var(--faint) !important; font-size: .64rem !important; }
.dialog-confirm { display: block; margin-left: auto; min-width: 120px; min-height: 40px; }

.noscript { position: fixed; z-index: 999; inset: 0; display: grid; place-items: center; padding: 30px; background: #030812; color: white; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-only, .tablet-only, .mobile-tablet-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.drawer-legal, .dialog-legal { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(101,194,225,.14); }
.drawer-legal a, .dialog-legal a { color: var(--muted); font-size: .62rem; text-decoration: none; }
.drawer-legal a:hover, .dialog-legal a:hover { color: var(--cyan); }
.dialog-legal { margin: 12px 0; }

/* Seismic live layer & clickable Jarvis scan -------------------------------- */
.seismic-status { border-color: rgba(255, 73, 96, .3); }
.seismic-status b, .seismic-status span { color: #ff8798; }
.legend-dot.quake { background: #ff334f; box-shadow: 0 0 10px rgba(255, 51, 79, .9); }

.scan-card {
  position: absolute;
  z-index: 28;
  left: 50%;
  width: min(430px, calc(100% - 24px));
  padding: 14px 16px 13px;
  transform: translateX(-50%);
  border-color: rgba(80, 203, 239, .27);
  background: rgba(3, 14, 24, .9);
  overflow: hidden;
}
.scan-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(79, 211, 244, .72);
}
.scan-card.is-seismic {
  border-color: rgba(255, 62, 89, .42);
  background: linear-gradient(110deg, rgba(40, 4, 13, .94), rgba(4, 15, 25, .94) 58%);
}
.scan-card.is-seismic::before {
  background: #ff334f;
  box-shadow: 0 0 20px rgba(255, 34, 68, .96);
  animation: seismic-edge-pulse 1.15s ease-in-out infinite;
}
.scan-card-heading { display: flex; align-items: center; gap: 8px; padding-right: 28px; }
.scan-card-heading .eyebrow { margin-right: auto; }
.scan-card-heading strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(84, 207, 239, .28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(29, 151, 184, .12);
  font-size: .52rem;
  letter-spacing: .08em;
}
.is-seismic .scan-badge { border-color: rgba(255, 73, 96, .36); color: #ff98a5; background: rgba(151, 18, 40, .2); }
.scan-card > p { margin: 7px 0 10px; color: var(--text); font-size: .7rem; line-height: 1.4; }
.scan-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.scan-metrics span { min-width: 0; padding: 7px 8px; border: 1px solid rgba(88, 190, 221, .14); border-radius: 9px; background: rgba(0, 8, 15, .34); }
.scan-metrics small { display: block; color: var(--faint); font-size: .49rem; text-transform: uppercase; letter-spacing: .07em; }
.scan-metrics b { display: block; margin-top: 3px; color: #effcff; font-size: .67rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-note { display: block; margin-top: 8px; color: var(--faint); font-size: .53rem; line-height: 1.35; }
.scan-card-close { position: absolute; z-index: 2; top: 7px; right: 7px; width: 27px; height: 27px; border: 1px solid rgba(255, 112, 128, .25); border-radius: 50%; background: rgba(55, 7, 17, .35); color: #ff9ba7; cursor: pointer; }
@keyframes seismic-edge-pulse { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
