:root {
  color-scheme: dark;
  --bg: #050b15;
  --panel: rgba(12, 25, 42, 0.84);
  --panel-strong: #0c192a;
  --line: rgba(153, 211, 255, 0.14);
  --text: #f5fff7;
  --muted: #8fa5b8;
  --green: #49bfff;
  --green-2: #158cff;
  --green-dark: #102f46;
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}
button { font: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); pointer-events: none; opacity: .22; }
.ambient-one { width: 330px; height: 330px; background: #159bff; top: -210px; right: -120px; }
.ambient-two { width: 260px; height: 260px; background: #195fff; bottom: -170px; left: -150px; }
.app-shell { width: min(100%, 560px); margin: 0 auto; min-height: 100vh; position: relative; }
.screen { min-height: 100vh; padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }

.loading-screen, .error-screen { display: grid; place-content: center; justify-items: center; text-align: center; }
.loading-logo { width: 108px; height: 108px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(73,191,255,.32)); }
.loader { width: 180px; height: 3px; border-radius: 9px; background: #1b2a20; overflow: hidden; margin: 28px 0 12px; }
.loader span { display: block; height: 100%; width: 45%; background: var(--green); border-radius: inherit; animation: loading 1.25s ease-in-out infinite; }
.loading-screen p { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
@keyframes loading { 0%{transform:translateX(-110%)} 100%{transform:translateX(330%)} }

.brand-header { display: flex; align-items: center; gap: 12px; }
.brand-header > div:last-child { min-width: 0; }
.logo-wrap { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(73,191,255,.07); border: 1px solid rgba(73,191,255,.18); overflow: hidden; }
.logo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.eyebrow { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .16em; margin-bottom: 3px; }
h1 { font-family: "Space Grotesk", sans-serif; margin: 0; font-size: 21px; line-height: 1; }
h1 span { color: var(--green); }

.hero-copy { padding: 48px 0 24px; }
.live-pill { width: fit-content; padding: 7px 10px; border: 1px solid rgba(73,191,255,.18); border-radius: 99px; background: rgba(73,191,255,.06); color: #bce9ff; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.live-pill i, .model-online i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 6px; }
.hero-copy h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(38px, 10vw, 52px); line-height: .98; letter-spacing: -.055em; margin: 22px 0 18px; }
.hero-copy h2 em { color: var(--green); font-style: normal; }
.hero-copy > p { color: var(--muted); margin: 0; max-width: 450px; font-size: 14px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.feature-grid article { min-width: 0; padding: 15px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.feature-grid b { display: block; color: var(--green); font-family: "Space Grotesk"; font-size: 20px; }
.feature-grid span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; white-space: nowrap; }

.unlock-card { position: relative; padding: 25px 20px 20px; border-radius: var(--radius); border: 1px solid rgba(73,191,255,.18); background: linear-gradient(155deg, rgba(17,42,65,.95), rgba(7,16,29,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.3); overflow: hidden; }
.unlock-card::after { content:""; position:absolute; width:190px; height:190px; border-radius:50%; background:rgba(73,191,255,.09); filter:blur(50px); right:-100px; top:-90px; }
.lock-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green); box-shadow: 0 0 25px rgba(73,191,255,.2); position: relative; z-index: 1; }
.lock-icon svg { width: 21px; fill: none; stroke: #102016; stroke-width: 2; stroke-linecap: round; }
.unlock-copy { margin-top: 18px; position: relative; z-index: 1; }
.unlock-copy small, .welcome small, .section-heading small { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.unlock-copy h3 { font-family: "Space Grotesk"; font-size: 25px; margin: 5px 0 8px; letter-spacing: -.03em; }
.unlock-copy p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps li > span { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-dark); border: 1px solid rgba(73,191,255,.18); color: var(--green); font-size: 11px; font-weight: 800; }
.steps p { margin: 0; line-height: 1.2; }
.steps b { display: block; font-size: 12px; }
.steps small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.primary-button, .secondary-button { width: 100%; border: 0; border-radius: 15px; padding: 16px 18px; cursor: pointer; font-weight: 800; font-size: 13px; transition: transform .15s, opacity .15s; }
.primary-button { background: var(--green); color: #06131e; box-shadow: 0 10px 34px rgba(73,191,255,.14); }
.primary-button span { float: right; font-size: 18px; line-height: 15px; }
.secondary-button { background: transparent; color: #c4d2c7; margin-top: 8px; border: 1px solid var(--line); }
.primary-button:active, .secondary-button:active { transform: scale(.985); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; }
.status-message { min-height: 17px; margin: 12px 5px 0; text-align: center; color: #b2c4b6; font-size: 10px; line-height: 1.5; }
.responsible { text-align: center; color: #64756a; font-size: 9px; line-height: 1.6; margin: 20px 0 0; }

.dashboard-header { display: flex; justify-content: space-between; align-items: center; }
.mini-brand { display: flex; align-items: center; gap: 8px; }
.mini-brand img { width: 40px; height: 40px; object-fit: contain; }
.mini-brand div { display: grid; line-height: 1; }
.mini-brand small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.mini-brand b { color: var(--green); font: 700 20px "Space Grotesk"; }
.profile-button { border: 1px solid rgba(73,191,255,.18); background: #0d2033; width: 42px; height: 42px; border-radius: 14px; color: var(--text); font-weight: 800; position: relative; }
.profile-button i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); right: -1px; bottom: -1px; }
.welcome { display: flex; align-items: end; justify-content: space-between; padding: 42px 0 22px; }
.welcome h2 { font: 700 34px "Space Grotesk"; margin: 5px 0 0; letter-spacing: -.04em; }
.model-online { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 8px 10px; color: var(--muted); font-size: 7px; letter-spacing: .1em; line-height: 1.4; }
.model-online b { color: var(--green); font-size: 8px; }
.insight-card { background: radial-gradient(circle at 100% 0, rgba(73,191,255,.15), transparent 40%), var(--panel); border: 1px solid rgba(73,191,255,.17); border-radius: 22px; padding: 20px; }
.insight-top { display: flex; justify-content: space-between; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.insight-top small { color: var(--muted); letter-spacing: normal; }
.insight-card h3 { font: 600 20px/1.25 "Space Grotesk"; margin: 19px 0 9px; }
.insight-card h3 em { font-style: normal; color: var(--green); }
.insight-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.pulse-line { height: 5px; border-radius: 9px; background: #26362b; margin-top: 18px; overflow: hidden; }
.pulse-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #186cbb, var(--green)); box-shadow: 0 0 14px rgba(73,191,255,.25); }
.pulse-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; color: #637468; font-size: 7px; letter-spacing: .08em; }
.pulse-labels b { color: var(--green); font-size: 9px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding: 26px 2px 13px; }
.section-heading h3 { font: 600 23px "Space Grotesk"; margin: 3px 0 0; }
.match-count { color: var(--muted); font-size: 9px; font-weight: 700; }
.match-list { display: grid; gap: 10px; }
.match-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 17px; }
.match-meta, .prediction { display: flex; justify-content: space-between; align-items: center; }
.match-meta span { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.match-meta small { color: var(--muted); font-size: 8px; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; padding: 20px 0; }
.teams > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.teams > div:last-child { flex-direction: row-reverse; }
.teams > span { color: #516056; font-size: 8px; font-weight: 800; }
.teams b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.team-crest { width: 31px; height: 31px; flex: 0 0 31px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.team-code { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 10px; background: #17324d; color: #d9f2ff; font-style: normal; font-size: 7px; font-weight: 800; }
.flag { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #223b69; color: #fff; font-style: normal; font-size: 7px; box-shadow: inset 0 -8px 0 rgba(255,255,255,.1); }
.flag.alt { background: #9a3030; }
.prediction { background: rgba(255,255,255,.025); border-radius: 13px; padding: 12px; }
.prediction small { display: block; color: var(--muted); font-size: 7px; letter-spacing: .08em; }
.prediction b { display: block; font-size: 10px; margin-top: 3px; }
.confidence { text-align: right; }
.confidence b { color: var(--green); font-size: 16px; }
.probability-box { display: grid; gap: 8px; padding: 15px 2px 4px; }
.probability-row { display: grid; grid-template-columns: 38px 1fr 42px; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.probability-row > div { height: 4px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.06); }
.probability-row i { display: block; height: 100%; border-radius: inherit; background: #36526a; }
.probability-row b { text-align: right; font-size: 8px; color: #b6c7d4; }
.probability-row.active { color: #dff5ff; }
.probability-row.active i { background: var(--green); box-shadow: 0 0 9px rgba(73,191,255,.25); }
.probability-row.active b { color: var(--green); }
.market-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 14px; }
.best-price, .model-metrics { border: 1px solid var(--line); border-radius: 13px; padding: 11px; min-width: 0; }
.best-price small, .model-metrics small { display: block; color: var(--muted); font-size: 6px; letter-spacing: .1em; }
.best-price b { display: inline-block; color: var(--green); font: 700 19px "Space Grotesk"; margin: 3px 6px 0 0; }
.best-price span, .model-metrics span { display: block; overflow: hidden; color: #72889a; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.best-price.unavailable b { color: var(--muted); }
.model-metrics { text-align: right; }
.model-metrics b { display: block; color: #dff4ff; font-size: 12px; margin: 5px 0 3px; }
.analysis-details { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.analysis-details summary { display: flex; justify-content: space-between; color: #9eb4c4; font-size: 9px; font-weight: 700; cursor: pointer; list-style: none; }
.analysis-details summary::-webkit-details-marker { display: none; }
.analysis-details[open] summary span { transform: rotate(45deg); }
.analysis-details ul { padding: 2px 0 0 16px; margin: 10px 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.analysis-details li + li { margin-top: 4px; }
.secondary-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.secondary-metrics span { padding: 9px; border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 7px; }
.secondary-metrics b { float: right; color: #cbeeff; }
.model-note { margin: 18px 0 0; text-align: center; color: #466275; font-size: 7px; letter-spacing: .1em; }
.loading-card { display: grid; gap: 13px; }
.card-skeleton { height: 44px; width: 65%; border-radius: 11px; background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.07), rgba(255,255,255,.025)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.card-skeleton.wide { width: 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { padding: 32px 18px; border: 1px solid var(--line); border-radius: 20px; text-align: center; background: var(--panel); }
.empty-state b { display: block; font: 600 16px "Space Grotesk"; }
.empty-state span { display: block; color: var(--muted); font-size: 9px; margin-top: 7px; }
.dashboard-legal { margin-bottom: 10px; }

.error-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,189,74,.12); border: 1px solid rgba(255,189,74,.25); color: #ffbd4a; font: 700 28px "Space Grotesk"; }
.error-screen h2 { font: 600 25px "Space Grotesk"; margin: 22px 0 8px; }
.error-screen p { max-width: 320px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.error-screen .primary-button { max-width: 260px; }

@media (min-width: 560px) {
  body { padding: 20px 0; }
  .app-shell { border: 1px solid var(--line); border-radius: 30px; overflow: hidden; min-height: calc(100vh - 40px); box-shadow: 0 30px 100px rgba(0,0,0,.4); }
  .screen { min-height: calc(100vh - 40px); padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 350px) {
  .feature-grid span { white-space: normal; }
  .hero-copy h2 { font-size: 36px; }
}
