:root {
  color-scheme: light;
  --bg: #eef6ff;
  --bg-strong: #dff0ff;
  --text: #10233d;
  --muted: #5f738d;
  --line: rgba(23, 50, 81, 0.1);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-shadow: 0 26px 56px rgba(16, 35, 61, 0.14);
  --primary: #0f7df0;
  --primary-2: #1ebbd7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 198, 255, 0.4), transparent 34%),
    radial-gradient(circle at bottom right, rgba(95, 165, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #f6fbff 0%, var(--bg) 100%);
}

.popup-shell {
  width: 380px;
  min-height: 540px;
  padding: 18px;
}

.popup-hero,
.popup-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
}

.popup-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.popup-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.popup-hero__mark {
  width: 52px;
  height: 52px;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5e7694;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 35, 61, 0.12);
  transition: background 180ms ease;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 14px rgba(16, 35, 61, 0.16);
  transition: transform 180ms ease;
}

.toggle input:checked + .toggle__track {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(20px);
}

.toggle__label {
  font-size: 13px;
  font-weight: 700;
  color: #26415f;
}

.popup-card {
  margin-top: 14px;
  padding: 16px;
}

.popup-card--metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 12px;
  border-radius: 18px;
  background: rgba(16, 35, 61, 0.04);
}

.metric__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #69819d;
}

.metric strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: block;
  margin-top: 12px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #44607d;
}

.field input {
  width: 100%;
  border: 1px solid rgba(16, 35, 61, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(15, 125, 240, 0.38);
  box-shadow: 0 0 0 4px rgba(15, 125, 240, 0.12);
  background: white;
}

.popup-card--actions {
  display: grid;
  gap: 10px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 20px rgba(15, 125, 240, 0.24);
}

.button--secondary {
  background: rgba(16, 35, 61, 0.08);
  color: #173251;
}

.button--ghost {
  background: transparent;
  color: #5a6f88;
  border: 1px solid rgba(16, 35, 61, 0.08);
}

.status-message {
  min-height: 18px;
  margin-top: 14px;
  padding: 0 4px;
  color: #466582;
  font-size: 12px;
  font-weight: 700;
}
