@font-face {
  font-family: "Manrope";
  src: url("/static/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #24407a;
  --ink: #18211f;
  --ink-soft: #55625f;
  --line: #dde4e1;
  --bg: #eef2f0;
  --card: #ffffff;
  --ok: #2f7d5b;
  --warn: #b5482f;
  --warn-tint: #fdece5;
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 480px; margin: 0 auto; padding: 16px 16px 8px; display: grid; gap: 14px; }
.page.narrow { max-width: 400px; }

h1 { font-size: 1.35rem; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0; line-height: 1.5; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.82rem; }
.hint { color: var(--ink-soft); font-size: 0.82rem; margin-top: 12px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.center { text-align: center; }
.right { text-align: right; }
.big { font-size: 1.3rem; }

.brandbar {
  display: flex; gap: 12px; align-items: center;
  background: var(--brand); color: #fff; border-radius: var(--radius); padding: 16px 18px;
}
.brand-dot {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.brand-name { font-weight: 800; font-size: 1.1rem; }
.brand-tag { font-size: 0.85rem; opacity: 0.85; }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 0 rgba(24, 33, 31, 0.04); }
.card.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.voyage .route { font-weight: 700; margin: 4px 0 2px; }

.form { display: grid; gap: 12px; margin-top: 14px; }
.form.inline { grid-template-columns: 1fr auto; margin-top: 8px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
input {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fbfcfb; color: var(--ink); width: 100%;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input.pin { font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; }

.btn {
  font: inherit; font-weight: 700; border: 0; cursor: pointer; border-radius: 999px;
  padding: 13px 22px; background: var(--brand); color: #fff;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { padding: 7px 14px; font-size: 0.85rem; }

.alert { background: var(--warn-tint); color: var(--warn); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-weight: 600; }
.alert.soft { font-weight: 500; }
.notice { background: #e4f3ec; color: var(--ok); border-radius: 14px; padding: 12px 14px; font-weight: 600; }

.plans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.plans li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 0.92rem; }

.status-head { display: flex; gap: 12px; align-items: center; }
.live { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(47, 125, 91, 0.15); flex: none; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); }

.quota { margin-top: 16px; display: grid; gap: 8px; }
.quota-row { display: flex; justify-content: space-between; font-size: 0.92rem; }
meter { width: 100%; height: 12px; border-radius: 999px; }
meter::-webkit-meter-bar { background: var(--bg); border: 0; border-radius: 999px; height: 12px; }
meter::-webkit-meter-optimum-value { background: var(--brand); border-radius: 999px; }
meter::-webkit-meter-suboptimum-value { background: #d99a2b; border-radius: 999px; }
meter::-webkit-meter-even-less-good-value { background: var(--warn); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--brand); border-radius: 999px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.facts div { background: var(--bg); border-radius: 14px; padding: 10px; }
.facts dt { font-size: 0.75rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 800; }

.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.devices li:last-child { border-bottom: 0; padding-bottom: 0; }

.sell { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.tile {
  width: 100%; font: inherit; text-align: left; cursor: pointer; display: grid; gap: 4px;
  border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; background: #fbfcfb; color: var(--ink);
}
.tile:hover { border-color: var(--brand); }
.tile strong { font-size: 1.3rem; }
.tile small { color: var(--ink-soft); }

.voucher { text-align: center; border: 2px dashed color-mix(in srgb, var(--brand) 40%, white); }
.voucher .code { font-size: 2.2rem; font-weight: 800; letter-spacing: 0.08em; margin: 10px 0; font-variant-numeric: tabular-nums; }

.foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 28px; color: var(--ink-soft); font-size: 0.8rem; }
