/* =====================================================================
   Infini Cards — app shell: marketing pages, auth, dashboard, admin
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute is only a UA rule of display:none, so ANY class that
   sets display — .row, .grid, .card — silently overrides it and the element
   shows anyway. Every use of `hidden` in this app depends on this line. */
[hidden] { display: none !important; }

:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #e4e8f0;
  --border-strong: #cfd6e4;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-wash: #eff4ff;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -16px rgba(15,23,42,.28);
  --shadow-lg: 0 24px 60px -28px rgba(15,23,42,.4);
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-force-light]) {
    --bg: #0b1120;
    --panel: #111a2e;
    --panel-2: #16203a;
    --border: #24304d;
    --border-strong: #334166;
    --text: #e8edf7;
    --muted: #93a2bd;
    --muted-2: #6b7b99;
    --brand-wash: #16224a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
  }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Inline icons carry no width/height attribute, so give them a sane default.
   Every `.thing svg` rule below is more specific and still wins. QR codes and
   other generated SVGs DO set a width attribute, so they are left alone. */
svg:not([width]) { width: 16px; height: 16px; flex: none; }

h1, h2, h3, h4 { letter-spacing: -.02em; margin: 0 0 .5em; line-height: 1.2; }
h2 > svg, h3 > svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 3px; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 680; }
h3 { font-size: 17px; font-weight: 650; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ---- Layout -------------------------------------------------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.mt0 { margin-top: 0 !important; } .mb0 { margin-bottom: 0 !important; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.hide { display: none !important; }
/* Visible to a screen reader, invisible on screen — for buttons that carry
   only an icon. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pad { padding: 20px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---- Top bar ------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 750; font-size: 17px; letter-spacing: -.4px; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
}
/* The mark is a wide ∞ (1000x521), not a square glyph, so it is sized by
   width and left to find its own height. A square box would letterbox it
   down to about half the size it should be. */
.logo-mark svg { width: 21px; height: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 550; font-size: 14px;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }

/* On a phone the header only has room for the logo and a way out. Everything
   else in this bar (admin, plan, account) is already in the sidebar below,
   so hiding it here loses nothing and stops the bar pushing the page sideways. */
@media (max-width: 680px) {
  .topbar .inner { gap: 10px; }
  .nav { gap: 2px; min-width: 0; }
  .nav > a { display: none; }
  .nav form { margin-left: auto; }
  .nav .btn { padding: 8px 10px; }
  .nav .btn span { display: none; }
  .logo { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- Dashboard shell ------------------------------------------------ */
.shell { display: grid; grid-template-columns: 236px 1fr; gap: 26px; align-items: start; padding: 26px 0 60px; }
/* A grid track sizes itself to its widest item's MIN-content by default, so a
   wide table or a long tab strip silently stretches the whole page sideways
   instead of scrolling inside its own box. This is the line that stops it. */
.shell > * { min-width: 0; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; gap: 16px; } }

.side {
  position: sticky; top: 84px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  /* The sidebar becomes a scrolling tab strip. The group headings stay —
     with eleven admin links, unlabelled tabs are a wall of icons. */
  /* min-width:0 is load-bearing: a grid item defaults to min-width:auto, so
     without it the tab strip stretches the page instead of scrolling. */
  .side {
    position: static; display: flex; align-items: center; gap: 6px;
    overflow-x: auto; padding: 8px; min-width: 0; max-width: 100%;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .side .side-label {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 0 2px 0 10px; margin-left: 4px; border-left: 1px solid var(--border);
    align-self: stretch;
  }
  .side .side-label:first-child { border-left: none; margin-left: 0; padding-left: 2px; }
  .side a { white-space: nowrap; }
}
.side-label {
  padding: 12px 12px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
}
.side a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 560; font-size: 14px;
}
.side a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.side a.on { background: var(--brand-wash); color: var(--brand-ink); }
.side a svg { width: 17px; height: 17px; flex: none; }
.side .pill {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px;
}

/* ---- Cards / panels -------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card.pad0 { padding: 0; overflow: hidden; }
.pad16 { padding: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 20px; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.stat .k svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.stat .d { font-size: 12.5px; color: var(--muted); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; min-height: 42px;
  border: 1px solid transparent; border-radius: 11px;
  font-size: 14.5px; font-weight: 620; cursor: pointer;
  background: var(--panel-2); color: var(--text);
  transition: transform .16s var(--ease), background .16s, border-color .16s, box-shadow .16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(37,99,235,.75); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--panel-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; min-height: 52px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---- Forms ----------------------------------------------------------- */
label { display: block; font-size: 13px; font-weight: 620; margin-bottom: 6px; color: var(--text); }
label .opt { font-weight: 500; color: var(--muted-2); }
.input, input[type=text], input[type=email], input[type=password], input[type=url],
input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.field { margin-bottom: 15px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.err { font-size: 12.5px; color: var(--bad); margin-top: 5px; }
fieldset { border: 0; margin: 0; padding: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

.input-group { display: flex; }
.input-group .prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-right: 0;
  border-radius: 11px 0 0 11px; color: var(--muted); font-size: 14px; white-space: nowrap;
}
.input-group input { border-radius: 0 11px 11px 0; }

/* ---- Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }

/* A table wide enough to be worth a table on a laptop is the wrong shape on a
   phone: seven columns become a horizontal scrollbar, which reads as "someone
   forgot about mobile". Wrap it in .table-wrap.table-stack and below 720px
   each ROW becomes a card, with the column heading printed above each value
   from data-label. The markup stays one table, so nothing is duplicated and
   nothing is hidden. */
@media (max-width: 720px) {
  .table-stack { overflow-x: visible; }
  .table-stack table,
  .table-stack tbody,
  .table-stack td { display: block; width: 100%; }
  .table-stack thead { display: none; }

  /* width:auto, not 100%: a block at 100% plus horizontal margins is wider
     than its parent, and the row would hang over the card's rounded edge. */
  .table-stack tr {
    display: block; width: auto;
    border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 14px; margin: 0 12px 10px;
    background: var(--panel);
  }
  .table-stack tr:hover { background: var(--panel); }
  .table-stack tbody tr:first-child { margin-top: 12px; }

  .table-stack td { border: 0; padding: 4px 0; }
  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 1px;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted-2); font-weight: 700;
  }
  /* A cell with nothing in it should not leave its heading floating. */
  .table-stack td:empty,
  .table-stack td.t-empty { display: none; }
  /* Row actions belong at the bottom, side by side, at a size a thumb can hit. */
  .table-stack td.t-actions { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); }
  .table-stack td.t-actions::before { content: none; }
  .table-stack td.t-actions .btn { padding: 8px 12px; }
}

/* ---- Badges / flash -------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
}
.badge svg { width: 12px; height: 12px; }
.badge-ok   { background: color-mix(in srgb, var(--ok) 14%, transparent);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.badge-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.badge-bad  { background: color-mix(in srgb, var(--bad) 14%, transparent);  color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 32%, transparent); }
.badge-brand{ background: var(--brand-wash); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }

.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px; margin-bottom: 16px;
  font-size: 14px; font-weight: 500;
  border: 1px solid;
}
.flash svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.flash-success { background: color-mix(in srgb, var(--ok) 12%, transparent);  border-color: color-mix(in srgb, var(--ok) 34%, transparent);  color: var(--text); }
.flash-error   { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 34%, transparent); color: var(--text); }
.flash-info    { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--text); }

/* ---- Tabs ------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button {
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs a.on, .tabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* ---- Empty state ----------------------------------------------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--muted-2); margin: 0 auto 14px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---- Modal ----------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.modal.on { opacity: 1; pointer-events: auto; }
.modal-inner {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(.985);
  transition: transform .25s var(--ease);
  max-height: 86vh; overflow-y: auto;
}
.modal.on .modal-inner { transform: none; }

/* ---- Card list item (dashboard) -------------------------------------- */
.card-item { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-item:last-child { border-bottom: 0; }
.card-item .ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.ava-f, .card-item .ava-f {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  flex: none;
}
.ava-f svg { width: 20px; height: 20px; }

/* Big round/rounded icon plate used at the top of empty and error screens */
.icon-badge {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--panel-2); color: var(--muted);
}
.icon-badge svg { width: 26px; height: 26px; }
svg.big-ico { width: 22px; height: 22px; }
.icon-badge.bad   { background: color-mix(in srgb, var(--bad) 14%, transparent);  color: var(--bad); }
.icon-badge.brand { background: var(--brand-wash); color: var(--brand-ink); }
.icon-badge.ok    { background: color-mix(in srgb, var(--ok) 14%, transparent);   color: var(--ok); }

/* ---- Link editor rows ------------------------------------------------ */
.link-row {
  display: grid; grid-template-columns: 34px 150px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel); margin-bottom: 9px;
}
.link-row .drag { cursor: grab; color: var(--muted-2); display: grid; place-items: center; }
.link-row .drag svg { width: 17px; height: 17px; }
.link-row.dragging { opacity: .45; }
@media (max-width: 720px) {
  .link-row { grid-template-columns: 28px 1fr auto; grid-template-areas: "d t x" "d v v" "d f f"; }
  .link-row .drag { grid-area: d; }
  .link-row .lr-type { grid-area: t; }
  .link-row .lr-value { grid-area: v; }
  .link-row .lr-feat { grid-area: f; }
  .link-row .lr-del { grid-area: x; }
}

/* ---- Chart ----------------------------------------------------------- */
svg.chart { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---- Preview phone --------------------------------------------------- */
/* Main column + sticky sidebar. A class, not an inline style — inline
   styles beat media queries, which is why this used to stay two-up on a
   phone and render the NFC writer as a desktop page. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.split > * { min-width: 0; }
.split-side { position: sticky; top: 84px; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .split-side { position: static; }
  /* On a phone the sidebar is reference material — put it under the thing
     you are actually doing. */
  .split-side { order: 2; }
}

.phone {
  width: 300px; height: 610px;
  border-radius: 40px; padding: 10px;
  background: #0b1120;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset;
  margin: 0 auto;
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: #0b1120; }

/* ---- Marketing ------------------------------------------------------- */
.hero { padding: 76px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 55px); font-weight: 780; letter-spacing: -.035em; margin-bottom: 18px; }
.hero p { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.hero .gradient {
  background: linear-gradient(105deg, #2563eb, #7c3aed 45%, #db2777);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: var(--brand-wash); color: var(--brand-ink);
  font-size: 13px; font-weight: 620; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.feature { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand-ink);
}
.fi svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.price-card { padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; }
.price-card.best { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); position: relative; }
.price-card .amt { font-size: 38px; font-weight: 760; letter-spacing: -.04em; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; font-size: 14px; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); }
.price-card li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
/* A plan can now offer several ways to pay, so the buttons sit in a stack.
   Push the stack, not the first button, or the cards stop lining up. */
.price-card > .stack { margin-top: auto; width: 100%; }
.price-card > .stack > * + * { margin-top: 8px; }
.price-card .stack .btn, .price-card form .btn { margin-top: 0; }
.price-card form { margin: 0; }

.footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 60px; color: var(--muted); font-size: 13.5px; }

/* ---- Auth ------------------------------------------------------------ */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }

/* ---- Toast ----------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 550; z-index: 90; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .28s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
