@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url(/admin/fonts/Outfit-400.ttf) format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(/admin/fonts/Outfit-500.ttf) format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(/admin/fonts/Outfit-600.ttf) format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(/admin/fonts/Outfit-700.ttf) format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url(/admin/fonts/Outfit-800.ttf) format("truetype"); }
:root {
  --bg: #090b0e;
  --panel: #13161b;
  --panel-2: #0f1216;
  --line: rgba(245, 166, 35, .2);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f5f6f8;
  --muted: #98a1ac;
  --gold: #f7b23b;
  --orange: #f0661c;
  --forge: linear-gradient(135deg, #ffcb55 0%, #f6951f 52%, #ee5a1c 100%);
  --good: #5fd08a;
  --bad: #ff6b57;
  --font: "Outfit", "Segoe UI Variable Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --edge: linear-gradient(140deg, rgba(255, 208, 94, .9), rgba(240, 102, 28, .3) 28%, rgba(255, 255, 255, .05) 60%, rgba(247, 178, 59, .5));
  --glass: linear-gradient(160deg, rgba(24, 28, 35, .94), rgba(11, 13, 17, .96));
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; color: var(--text); font: 15px/1.5 var(--font); font-variant-numeric: tabular-nums;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(240, 102, 28, .22), transparent 62%),
    radial-gradient(700px 480px at -10% 110%, rgba(247, 178, 59, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360' fill='none' stroke='%23f7b23b' stroke-opacity='.05'%3E%3Cpath d='M-20 80c90-50 150 30 250-10s160-70 310-20M-20 150c110-40 170 40 270 0s170-60 290-10M-20 220c80-30 190 50 280 10s150-80 280-30M-20 290c120-50 160 30 260-5s180-55 300-15'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}
h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 650; margin: 34px 0 12px; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--muted); }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- brand */
.mark { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: .06em; padding: 0 8px; }
.mark svg { width: 34px; height: 26px; flex: none; filter: drop-shadow(0 4px 10px rgba(240, 102, 28, .45)); }
.mark span { background: var(--forge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark + small { display: block; padding: 2px 8px 26px 52px; color: var(--muted); letter-spacing: .04em; }

/* ---- shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { padding: 26px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(19, 22, 27, .92), rgba(9, 11, 14, .92)); border-right: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.rail nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted); border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail nav button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.rail nav button[aria-current="page"] { color: var(--gold); font-weight: 650; border-color: var(--line);
  background: linear-gradient(135deg, rgba(247, 178, 59, .16), rgba(240, 102, 28, .05)); box-shadow: 0 0 22px rgba(240, 102, 28, .14) inset; }
.rail .who { margin-top: auto; padding: 0 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rail .who button { all: unset; cursor: pointer; color: var(--gold); display: block; margin-top: 4px; }
main { padding: 38px 40px 80px; max-width: 1160px; width: 100%; min-width: 0; animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- surfaces */
.strata, .figures div, table, .chart, dialog {
  background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

/* ---- strata: the plan mix drawn as rock layers, widths are real proportions */
.strata { display: flex; height: 104px; overflow: hidden; margin: 24px 0 10px; padding: 7px; gap: 3px; }
.strata div { min-width: 3px; border-radius: 9px; transition: flex-grow .8s cubic-bezier(.2, .7, .2, 1); }
.strata .free { background: repeating-linear-gradient(98deg, #2b3038 0 9px, #252a31 9px 13px, #323842 13px 24px); }
.strata .prospector { background: repeating-linear-gradient(98deg, #a4551f 0 7px, #8a4316 7px 16px, #bd6a2c 16px 21px); }
.strata .pro { background: repeating-linear-gradient(98deg, #f7b23b 0 6px, #ffd674 6px 9px, #e2861a 9px 19px); box-shadow: 0 0 26px rgba(247, 178, 59, .35); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 650; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* ---- figures */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-top: 26px; }
.figures div { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.figures div::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--forge); opacity: .85; }
.figures strong { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.figures div:first-child strong { background: var(--forge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figures span { color: var(--muted); font-size: 13px; }

.chart { width: 100%; height: 150px; display: block; margin-bottom: 20px; padding: 16px 16px 12px; }
.chart rect.zero { fill: rgba(255, 255, 255, .08); }

/* ---- tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
th { text-align: left; font-weight: 550; color: var(--muted); font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(247, 178, 59, .05); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tr.row { cursor: pointer; }
tr.row:hover td { background: rgba(247, 178, 59, .06); }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap; }
.tag.pro { border-color: transparent; color: #1a1205; background: var(--forge); font-weight: 700; }
.tag.prospector { border-color: #bd6a2c; color: #f0a56a; }
.tag.bad { border-color: var(--bad); color: var(--bad); }
.tag.good { border-color: var(--good); color: var(--good); }
.empty { padding: 28px 0; color: var(--muted); }

/* ---- forms */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-soft); border-radius: 11px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 178, 59, .18); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); vertical-align: -3px; margin-right: 8px; box-shadow: none; }
textarea { min-height: 84px; resize: vertical; }
.check { color: var(--text); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 18px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 18px 0; }
.bar > * { flex: 1 1 180px; }
.bar > button { flex: 0 0 auto; }
button.go, button.quiet, button.danger { font: inherit; font-weight: 700; border-radius: 12px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .15s, filter .15s; }
button.go { background: var(--forge); color: #1a1205; box-shadow: 0 8px 24px rgba(240, 102, 28, .38), 0 1px 0 rgba(255, 255, 255, .35) inset; }
button.go:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(240, 102, 28, .5), 0 1px 0 rgba(255, 255, 255, .35) inset; }
button.go:active, button.quiet:active { transform: translateY(1px); }
button.quiet { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.limits td input { min-width: 70px; }

/* ---- sign in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, rgba(9, 11, 14, .25), rgba(9, 11, 14, .82)), url(hero.jpg) center 58% / cover no-repeat; }
.gate form { width: min(420px, 100%); padding: 34px 30px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 22, 27, .94), rgba(12, 14, 18, .94)); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(240, 102, 28, .12); animation: rise .5s cubic-bezier(.2, .7, .2, 1); }
.gate .mark { padding: 0; font-size: 26px; }
.gate .mark svg { width: 44px; height: 34px; }
.gate .mark + p { padding-left: 54px; letter-spacing: .04em; }
.gate button.go { width: 100%; padding: 12px; }
.gate .error { color: var(--bad); min-height: 1.5em; margin: 12px 0 8px; }
.gate .switch { all: unset; cursor: pointer; color: var(--gold); margin-top: 18px; display: inline-block; }

dialog { color: inherit; padding: 28px; width: min(520px, calc(100vw - 24px)); }
dialog[open] { animation: rise .25s cubic-bezier(.2, .7, .2, 1); }
dialog::backdrop { background: rgba(4, 5, 7, .72); backdrop-filter: blur(4px); }
dialog h2 { margin-top: 0; overflow-wrap: anywhere; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--forge); color: #1a1205;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 12px 30px rgba(240, 102, 28, .4); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 12px 10px; }
  .mark + small { padding-bottom: 12px; }
  .rail nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .rail nav button { white-space: nowrap; }
  .rail .who { display: none; }
  main { padding: 24px 16px 64px; }
  h1 { font-size: 25px; }
  .figures { grid-template-columns: 1fr 1fr; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; border: 0; padding: 1px 0; background: none !important; }
  table.stack td[data-l]::before { content: attr(data-l) " "; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- imagery */
.hero { position: relative; min-height: 230px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(9, 11, 14, .88) 0%, rgba(9, 11, 14, .35) 55%, rgba(9, 11, 14, 0) 100%), url(hero.jpg) center 62% / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hero > div { padding: 26px 28px; }
.hero h1 { font-size: 34px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero p { color: #e9dcc8; margin: 0; }
.figures .chip { position: absolute; bottom: 14px; right: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: var(--gold); background: linear-gradient(135deg, rgba(247, 178, 59, .2), rgba(240, 102, 28, .08)); border: 1px solid var(--line); }
.figures span { display: block; padding-right: 44px; }
@media (max-width: 760px) { .hero { min-height: 180px; } .hero h1 { font-size: 26px; } }

/* ================= v3: lit surfaces, ambient scene, bolder type ================= */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url(/admin/hero.jpg) center / cover no-repeat; filter: blur(6px) saturate(1.05); transform: scale(1.05); opacity: .3; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 700px at 78% 8%, rgba(240, 102, 28, .16), transparent 60%), linear-gradient(180deg, rgba(9, 11, 14, .72), rgba(9, 11, 14, .93) 55%, #090b0e); }
body { background: #090b0e; font-size: 15.5px; }
h1 { font-weight: 800; font-size: 32px; }
h2 { font-weight: 700; font-size: 19px; }
.mark { font-size: 21px; gap: 11px; }
.mark svg { width: 44px; height: 33px; filter: drop-shadow(0 6px 14px rgba(240, 102, 28, .55)); }
.mark + small { padding-left: 63px; }
.gate .mark svg { width: 58px; height: 44px; }
.gate .mark + p { padding-left: 69px; }

.strata, .figures div, table, .chart, dialog, .plan, .now, .gate form, .hero {
  border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge) border-box;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 34px rgba(240, 102, 28, .07);
  backdrop-filter: blur(10px);
}
.plan.best, .figures div:first-child { box-shadow: 0 22px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 46px rgba(240, 102, 28, .22); }
.hero { min-height: 320px; border-radius: 24px;
  background: linear-gradient(90deg, rgba(9, 11, 14, .78) 0%, rgba(9, 11, 14, .2) 52%, rgba(9, 11, 14, 0) 100%) padding-box, linear-gradient(180deg, transparent 55%, rgba(9, 11, 14, .7)) padding-box, url(/admin/hero.jpg) 50% 58% / cover no-repeat padding-box, var(--edge) border-box; }
.hero > div { padding: 30px 32px; }
.hero h1 { font-size: 42px; letter-spacing: -0.03em; text-shadow: 0 3px 24px rgba(0, 0, 0, .75); }
.hero p { font-size: 17px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.gate { background: linear-gradient(180deg, rgba(9, 11, 14, .1), rgba(9, 11, 14, .78)), url(/admin/hero.jpg) center 55% / cover no-repeat; }
.gate form { background: linear-gradient(160deg, rgba(20, 24, 30, .9), rgba(10, 12, 16, .93)) padding-box, var(--edge) border-box; }

.figures div { padding: 20px 20px 18px; border-radius: 18px; }
.figures div::after { display: none; }
.figures strong { font-size: 32px; font-weight: 800; }
.figures .chip { width: 46px; height: 46px; border-radius: 14px; bottom: 16px; right: 16px; color: #ffcf6a;
  background: linear-gradient(140deg, rgba(255, 203, 85, .3), rgba(240, 102, 28, .1)); border: 1px solid rgba(255, 203, 85, .45);
  box-shadow: 0 0 22px rgba(247, 178, 59, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.figures .chip .ic, .rail nav button[aria-current="page"] .ic, .plan h2 .ic { width: 24px; height: 24px; stroke-width: 1.9; filter: drop-shadow(0 0 6px rgba(255, 190, 80, .75)); }
.rail { background: linear-gradient(180deg, rgba(16, 19, 24, .86), rgba(9, 11, 14, .9)); }
.rail nav button { padding: 12px 14px; font-weight: 500; }
.rail nav button[aria-current="page"] { border: 1px solid transparent; color: #ffcf6a;
  background: linear-gradient(135deg, rgba(60, 40, 14, .95), rgba(26, 18, 10, .95)) padding-box, var(--edge) border-box; box-shadow: 0 0 26px rgba(240, 102, 28, .22); }
.strata { height: 112px; }
button.go { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 46%), var(--forge); letter-spacing: .01em; }
th { background: rgba(247, 178, 59, .08); }
.plan .price { background: var(--forge); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 44px; }
.plan .price small { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.plan h2 { font-size: 24px; font-weight: 800; }
@media (max-width: 760px) { .hero { min-height: 230px; } .hero h1 { font-size: 30px; } .mark + small { padding-left: 63px; } }
@media (max-width: 760px) { table.limits { display: block; overflow-x: auto; } .limits td input[type="number"] { min-width: 58px; padding: 8px; } main select { max-width: 100%; } }

/* Keys and services, customer view */
.service { border-top: 1px solid var(--line-soft); margin-top: 30px; }
.service h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.service .tag { font-weight: 500; }
.steps { margin: 12px 0 4px; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 68ch; }
.steps b, .service p b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.keyfile { margin-top: 6px; }
.keyfile textarea { min-height: 64px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; margin-top: 8px; }
.keyfile input[type=file] { padding: 8px; font-size: 14px; }
button.small { padding: 5px 12px; font-size: 13px; margin-top: 8px; }
.result { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 68ch; }
.result.good { color: var(--good); }
.result.bad { color: var(--bad); }
a.quiet { display: inline-block; text-decoration: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 22px 0 10px; }
.choice { text-align: left; font: inherit; color: var(--text); background: rgba(0, 0, 0, .3); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice b { display: block; font-weight: 700; margin-bottom: 4px; }
.choice span { color: var(--muted); font-size: 13px; }
.choice:hover { border-color: var(--gold); }
.choice[aria-pressed=true] { border-color: var(--gold); background: rgba(247, 178, 59, .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.choice:focus-visible, a.quiet:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a.quiet { font-weight: 700; border-radius: 12px; padding: 10px 18px; background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); }
