/* The shop, in the look of the admin page's overview (server/src/main/resources/admin/index.html, "Översikt", 2026-11-17):
   the same ground and green, big rounded cards headed by an icon and a spaced capital label, thin large figures, pills.
   The page's Content-Security-Policy allows no inline style and no inline script, so every rule is here. */
:root {
  --bg: #0D1117; --panel: #151B23; --surface: #1B212B; --surface-2: #222A35;
  --border: #262D38; --border-hi: #343C49;
  --accent: #22C55E; --accent-hi: #4ADE80; --accent-lo: #16A34A; --accent-dim: rgba(34,197,94,0.12);
  --text: #E6EDF3; --text-2: #8B949E; --text-3: #6E7A88;
  --danger: #F85149; --warn: #D29922;
  --discord: #5865F2; --discord-hi: #6D78F5;
  --card: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #121820;
  --line: rgba(255,255,255,.065); --tile: rgba(255,255,255,.04); --tile-hi: rgba(255,255,255,.075);
  --r: 22px; --r-tile: 16px;
  --sans: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
       background: radial-gradient(1100px 620px at 10% -10%, rgba(34,197,94,.08), transparent 62%),
                   radial-gradient(900px 560px at 100% 0%, rgba(56,139,253,.05), transparent 60%), var(--bg);
       background-attachment: fixed; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wordmark { display: block; height: 48px; width: auto; margin: 0 auto; }
.wordmark.sm { height: 24px; margin: 0; }
.lede { color: var(--text-2); margin: 10px 0 0; max-width: 60ch; }
.dim { color: var(--text-2); margin: 0; }
.fine { color: var(--text-3); font-size: 12.5px; margin: 12px 0 0; }
.fine strong { color: var(--text-2); font-weight: 600; }
.err { color: #FF7B72; font-size: 13px; margin: 12px 0 0; }

/* buttons: pills, the green one for the thing the page is for */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
       font: 600 15px/1 var(--sans); color: var(--text); background: var(--tile); border: 1px solid var(--line);
       border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
       transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { text-decoration: none; background: var(--tile-hi); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; gap: 7px; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--tile); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04130A; font-weight: 700; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn:disabled, .btn:disabled:hover { background: var(--tile); border-color: var(--line); color: var(--text-3); cursor: not-allowed; transform: none; }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; width: 100%; height: 48px; }
.btn.discord:hover { background: var(--discord-hi); border-color: var(--discord-hi); }
.btn.discord svg { width: 22px; height: 22px; fill: currentColor; }
.btn.wide { width: 100%; margin-top: 14px; }

/* login */
body.login { display: grid; place-items: center; padding: 24px 16px;
             background: radial-gradient(900px 520px at 50% -10%, rgba(34,197,94,.13), transparent 68%),
                         radial-gradient(700px 480px at 85% 110%, rgba(56,139,253,.06), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 26px;
              padding: 40px 34px 30px; text-align: center;
              box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 70px -30px rgba(0,0,0,.75); }
.login-card .kick { display: inline-block; margin-top: 26px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
.login-card h1 { font-size: 28px; font-weight: 700; margin-top: 8px; }
.login-card .lede { margin: 10px auto 26px; }
.login-card .btn.ghost { width: 100%; margin-top: 10px; }
.login-card .fine { margin-top: 18px; }
.notice { text-align: left; background: rgba(210,153,34,0.10); border: 1px solid rgba(210,153,34,0.35);
          border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; font-size: 14px; color: var(--text); }
.notice b { color: #E3B341; }

/* the bar at the top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px;
       border-bottom: 1px solid var(--line); background: rgba(13,17,23,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
       position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.tabs { display: flex; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent;
       color: var(--text-2); font-size: 14px; font-weight: 600; }
.tab:hover { color: var(--text); background: var(--tile); text-decoration: none; }
.tab[aria-current="page"] { color: var(--text); background: var(--tile-hi); border-color: var(--line); }
.tab[aria-current="page"] svg.i { color: var(--accent-hi); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who form { margin: 0; }
.me { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--tile);
      border: 1px solid var(--line); min-width: 0; }
.me:has(.avatar[hidden]) { padding-left: 14px; }
.who-name { color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18ch; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); flex: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 30px 24px 72px; }

/* the head of a page: the date and a greeting on the dashboard, what the page is for on the plans */
.head { display: grid; gap: 2px; margin-bottom: 20px; }
.head .date, .eyebrow { color: var(--text-2); font-size: 13px; margin: 0; }
.eyebrow { color: var(--accent-hi); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.head h1 { font-size: 30px; font-weight: 700; line-height: 1.2; }

/* cards */
.block, .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 22px; min-width: 0;
                   box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -24px rgba(0,0,0,.6); }
.block-head { display: flex; align-items: center; gap: 11px; min-height: 30px; margin-bottom: 14px; }
.block-head h2, .summary > h2 { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.block-head .right { margin-left: auto; }
.ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tile); border: 1px solid var(--line);
      color: var(--text); flex: none; }
.block-sub { color: var(--text-2); font-size: 14px; margin: -6px 0 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
         white-space: nowrap; background: var(--tile); color: var(--text-2); }
.badge.ok { background: rgba(34,197,94,.15); color: var(--accent-hi); }

/* ── dashboard ─────────────────────────────────────────────────────────────── */
/* the plan, as the page's one big statement */
.hero { position: relative; overflow: hidden; border-radius: var(--r); min-height: 208px; padding: 24px 26px 24px; margin-bottom: 18px;
        display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border: 1px solid rgba(74,222,128,.28);
        background: radial-gradient(120% 120% at 0% 0%, rgba(74,222,128,.34), transparent 55%),
                    radial-gradient(90% 120% at 100% 0%, rgba(56,139,253,.20), transparent 60%),
                    linear-gradient(160deg, #12301F 0%, #0F2029 55%, #0E1620 100%);
        box-shadow: 0 30px 60px -34px rgba(34,197,94,.55); }
.hero.none { border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
             background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.07), transparent 55%), linear-gradient(160deg, #161D27 0%, #10161E 100%); }
.hero .kick { margin-bottom: auto; padding-bottom: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hero h2 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hchip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(10,16,22,.55);
         border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.hchip.plus { background: rgba(34,197,94,.22); border-color: rgba(74,222,128,.45); }
a.hchip.go { background: #fff; border-color: #fff; color: #0B2B19; font-weight: 700; }
a.hchip.go:hover { background: #E7FAEE; text-decoration: none; }

/* totals: three cards of one figure each */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 11px; row-gap: 10px; background: var(--card); border: 1px solid var(--line);
        border-radius: var(--r); padding: 18px 20px 20px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 40px -24px rgba(0,0,0,.6); }
.tile .label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .value { grid-column: 1 / -1; font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#dashTotalsBlock { margin-bottom: 18px; }
#dashSince { margin: 8px 4px 0; }

.dash { display: grid; gap: 18px; }
.note { margin-top: 4px; font-size: 14px; }
.licences { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.licences:empty { display: none; }
.licence { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
           background: var(--tile); border: 1px solid transparent; border-radius: var(--r-tile); padding: 13px 16px; font-size: 14px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.chip.ok { color: var(--accent-hi); background: rgba(34,197,94,.15); }
.chip.bad { color: #FF7B72; background: rgba(248,81,73,.16); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; }
.runs { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.runs th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
           padding: 0 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.runs td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.runs tr:last-child td { border-bottom: 0; }
.runs .num { text-align: right; font-variant-numeric: tabular-nums; }
.runs .status { color: var(--text-2); }
.runs tr.running .status { color: var(--text); }
.runs tr.running td:first-child { font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px;
       box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* ── plans ─────────────────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; align-items: start; }
.choices { display: grid; gap: 18px; }

/* instance tiers */
.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tier { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
        background: var(--tile); border: 1px solid transparent; border-radius: var(--r-tile);
        padding: 14px 14px 13px; color: var(--text); font: inherit; cursor: pointer;
        transition: border-color .12s, background .12s; }
.tier:hover { background: var(--tile-hi); border-color: var(--line); }
.tier[aria-checked="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(34,197,94,.20), rgba(34,197,94,.07)); }
.tier[aria-checked="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%;
                                    background: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
.tier .n { font-size: 34px; font-weight: 300; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tier .unit { color: var(--text-2); font-size: 12.5px; }
.tier .price { margin-top: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier .each { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; min-height: 18px; }
.tier[aria-checked="true"] .each { color: var(--accent-hi); }

.stepper { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stepper .step { width: 42px; height: 42px; padding: 0; font-size: 20px; background: var(--tile); }
.count { min-width: 48px; text-align: center; font-size: 28px; font-weight: 300; font-variant-numeric: tabular-nums; }
.step-note { color: var(--text-2); font-size: 13px; }

/* add-ons */
.addons { display: grid; gap: 10px; }
.addon { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
         background: var(--tile); border: 1px solid transparent; border-radius: var(--r-tile);
         padding: 14px 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.addon:hover { background: var(--tile-hi); border-color: var(--line); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-hi);
              display: grid; place-items: center; transition: background .12s, border-color .12s; }
.addon .box svg { width: 13px; height: 13px; stroke: #04130A; stroke-width: 3; fill: none; opacity: 0; }
.addon input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.addon input:checked ~ .box svg { opacity: 1; }
.addon input:focus-visible ~ .box { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.addon:has(input:checked) { border-color: var(--accent); background: linear-gradient(180deg, rgba(34,197,94,.18), rgba(34,197,94,.06)); }
/* an add-on the plan already holds, in "Add add-ons" (2026-11-17): ticked, not clickable, said in words */
.addon.held { cursor: default; opacity: .72; }
.addon.held:hover { border-color: var(--accent); }
.addon .have { display: block; margin-top: 3px; color: var(--accent-hi); font-size: 12px; font-weight: 600; }
.addon .drop { display: block; margin-top: 3px; color: var(--warn); font-size: 12px; font-weight: 600; }
/* the two ways to buy for a member with a running plan: two wide cards on every width */
.tiers.modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiers.modes .tier:last-child:nth-child(odd) { grid-column: auto; }
.tiers.modes .tier .n { font-size: 26px; }
.addon .txt b { display: block; font-weight: 600; }
.addon .txt small { color: var(--text-2); font-size: 13px; }
.addon .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.included { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.included li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--tile);
               font-size: 13.5px; color: var(--text); white-space: nowrap; }
.included li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.bulk { color: var(--text-2); font-size: 14px; margin: 0; padding: 0 6px; }

/* what it comes to */
.summary { position: sticky; top: 84px; }
.summary > h2 { margin-bottom: 16px; }
.lines { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 14px; }
.lines dt { color: var(--text-2); margin: 0; }
.lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
         border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.total span { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.total strong { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.per { color: var(--text-3); font-size: 13px; margin: 4px 0 4px; text-align: right; }

.account { margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .head, .hero, .block, .summary, .tile, .login-card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { gap: 12px; }
  .tile .value { font-size: 34px; }
}
@media (max-width: 620px) {
  .top { padding: 10px 16px; gap: 8px 10px; flex-wrap: wrap; }
  .who { margin-left: auto; }
  #download-locked { display: none; }
  .wrap { padding: 22px 16px 56px; }
  .head h1 { font-size: 25px; }
  .hero { min-height: 180px; padding: 20px 20px 20px; }
  .hero h2 { font-size: 31px; }
  .block, .summary { padding: 18px 16px 18px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers .tier:last-child:nth-child(odd) { grid-column: span 2; }
  .me { display: none; }
  .login-card { padding: 32px 22px 24px; }
  .brand { gap: 12px; }
  .wordmark.sm { height: 20px; }
  .tab { padding: 0 10px; font-size: 13px; height: 34px; }
  .tab svg.i { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .btn.sm { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* payment links (2026-11-17): the buyer's page and the staff page that makes them */
.paylink { max-width: 520px; }
.paylink .summary { position: static; margin-top: 18px; }
.paylink .note { color: var(--text-2); }
.field { height: 40px; padding: 0 12px; font: 15px/1 var(--sans); color: var(--text); background: var(--tile);
         border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.field:focus { border-color: var(--accent); outline: none; }
.field.num { width: 110px; }
.field.wide { width: 100%; margin-top: 12px; }
.field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.field-row .field:not(.num) { flex: 1 1 220px; }
.members { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.member { justify-content: flex-start; height: auto; min-height: 40px; padding: 8px 14px; font-weight: 400; text-align: left; flex-wrap: wrap; }
.member.on { border-color: var(--accent); background: var(--accent-dim); }
.staffpay #buyerNow { margin-top: 12px; }
.made .fine { margin-top: 8px; }
.links-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.links-table th, .links-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.links-table th { color: var(--text-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.links-table td:last-child { white-space: nowrap; }
.st-paid { color: var(--accent-hi); }
.st-waiting { color: var(--warn); }
.st-canceled, .st-expired { color: var(--text-3); }

/* how many instances a per-instance add-on is for (2026-11-18): arrows under its name while it is ticked */
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty .step.sm { width: 32px; height: 32px; padding: 0; font-size: 16px; }
.qty-n { min-width: 2ch; text-align: center; font-weight: 700; font-size: 15px; }
.qty-unit { color: var(--text-2); font-size: 13px; }
