:root {
  color-scheme: light;
  --bg: #f6fbfe;
  --panel: #ffffff;
  --ink: #0d2530;
  --muted: #5d7180;
  --line: #d8e8ef;
  --teal: #00324a;
  --teal-strong: #001f2f;
  --blue: #0084c8;
  --success: #159c77;
  --warning: #b36a00;
  --shadow: 0 24px 70px rgba(0, 50, 74, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 132, 200, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(0, 50, 74, 0.08), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  padding: clamp(10px, 2vw, 24px);
  display: grid;
  place-items: start center;
}

.dashboard-panel {
  width: min(1280px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 50, 74, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 132, 200, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--teal-strong);
  background: rgba(0, 132, 200, 0.09);
  font-size: 0.88rem;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
}

.setup-panel,
.results-panel {
  padding: clamp(16px, 2.6vw, 30px);
}

.setup-panel {
  border-right: 1px solid var(--line);
}

.heading-row,
.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: 1.42rem;
}

h3 {
  color: var(--teal);
  font-size: 1.06rem;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.odds-form {
  margin-top: clamp(18px, 2.8vw, 30px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 730;
}

.field span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

small {
  color: #879196;
  font-size: 0.78rem;
  font-weight: 720;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(0, 50, 74, 0.18);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  font-size: 1.02rem;
  font-weight: 720;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 132, 200, 0.14);
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(0, 50, 74, 0.18);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.money-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 132, 200, 0.14);
}

.money-input span {
  min-width: 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.money-input input {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 4px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 860;
  letter-spacing: 0;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  border: 1px solid rgba(0, 132, 200, 0.72);
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #0084c8, #00324a 72%);
  box-shadow:
    0 0 0 1px rgba(0, 132, 200, 0.2),
    0 14px 34px rgba(0, 31, 47, 0.22);
}

.secondary-button {
  border: 1px solid rgba(0, 50, 74, 0.16);
  color: var(--teal);
  background: #fff;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 132, 200, 0.48);
  box-shadow: 0 16px 34px rgba(0, 31, 47, 0.14);
}

.status-band {
  min-height: 64px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(0, 132, 200, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(0, 132, 200, 0.07);
  color: var(--muted);
}

.status-band strong {
  color: var(--teal);
}

.status-band strong.error {
  color: #9c321e;
}

.hero-result {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #00324a, #0084c8);
  box-shadow: 0 22px 54px rgba(0, 50, 74, 0.18);
}

.hero-result::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% 32%;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-10deg);
}

.hero-result span,
.hero-result strong,
.hero-result em {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-result span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-result strong {
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.92;
  font-weight: 950;
  text-shadow: 0 10px 36px rgba(0, 31, 47, 0.38);
}

.hero-result em {
  margin-top: 12px;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-style: normal;
  font-weight: 840;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-card,
.important-note {
  border: 1px solid rgba(0, 50, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 50, 74, 0.06);
}

.metric-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 17px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.metric-card strong {
  color: var(--teal);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.important-note {
  margin: 16px 0 0;
  padding: 15px 16px;
  color: var(--muted);
  line-height: 1.58;
  background: #f6fbfe;
  border-left: 4px solid var(--blue);
}

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

  .setup-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .dashboard-shell {
    padding: 0;
  }

  .dashboard-panel {
    border: 0;
    border-radius: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill {
    white-space: normal;
  }

  .odds-form,
  .form-actions,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .status-band {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2.45rem;
  }
}
