/* ═══════════════════════════════════════════════════════════════════════════
   MAGIC BOTS LAB — Creator Program.

   Same tokens as the trading dashboard so this reads as one product, with one
   deliberate difference: the sidebar. Clunoid's is a flat list of buttons.
   This one is a rail — a lit bar marks where you are, the sections are grouped
   by what they are for, and on a phone it becomes a strip you swipe rather
   than a menu you open.

   Full width everywhere. Nothing is centred inside a 1200px column, because a
   dashboard on a wide screen should use the screen.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #0f1117;
  --dot: rgba(255, 255, 255, 0.07);
  --panel: #171b24;
  --panel-2: #1f2531;
  --accent: #00d2ff;
  --accent-2: #ff7a18;
  --text: #f5f7ff;
  --muted: #98a2bd;
  --faint: #66708c;
  --border: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(0, 210, 255, 0.22);
  --success: #24d970;
  --danger: #ff5f6d;
  --warning: #fcd34d;
  --rail: 232px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; color: inherit; }

/* ── the frame ───────────────────────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100dvh;
  width: 100%;
}

/* The header sits inside the content column, so the rail does not scroll with
   it — the thing that makes a dashboard feel like an application. */
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.05), transparent 240px), var(--panel);
  padding: 18px 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0, 210, 255, 0.14);
  color: var(--accent);
  flex: none;
}

.brand-name { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.brand-sub { font-size: 10.5px; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; }

.rail-group { margin-top: 16px; }
.rail-group:first-of-type { margin-top: 4px; }

.rail-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 8px 7px;
}

/* The rail item: a lit bar on the left rather than a filled pill. */
.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px 9px 13px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.rail-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  height: 0; width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .18s ease;
}

.rail-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.rail-item[aria-current="true"] { background: rgba(0, 210, 255, 0.09); color: var(--text); font-weight: 600; }
.rail-item[aria-current="true"]::before { height: 20px; }
.rail-item svg { flex: none; width: 16px; height: 16px; }

/* An <svg> with only a viewBox has no intrinsic size and will happily grow to
   fill its parent. Every inline icon here is sized in the markup as well; this
   is the guarantee that a missed one can never blow a card open again. */
svg.ico { flex: none; width: 14px; height: 14px; }
img.logo { flex: none; width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }

.rail-item .tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.16);
  color: var(--accent-2);
}

.rail-item[disabled] { opacity: .42; cursor: not-allowed; }
.rail-item[disabled]:hover { background: transparent; color: var(--muted); }

.rail-foot {
  margin-top: 18px;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.55;
  color: var(--faint);
}

/* ── content ─────────────────────────────────────────────────────────────── */

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.86);
  backdrop-filter: blur(10px);
}

.topbar h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.topbar .sub { font-size: 11.5px; color: var(--faint); }
.topbar .spacer { margin-left: auto; }

/* ── the topbar's way out ──────────────────────────────────────────────────
   "Back to site" was .btn.ghost: a transparent background, white text and a
   border at 8% white. On a dark panel that reads as a stray word rather than a
   control, which is what it was mistaken for.

   And there was no route back to the dashboard at all from here - "Start
   trading" goes to the bots and "Back to site" to the landing page - so the
   Creator Program was a place you could enter and not leave. That is the
   Dashboard link; it stays visible at every width, because a missing way back
   is not a small-screen problem. */
.topbar-back {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-accent);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.topbar-back:hover { background: rgba(0, 210, 255, 0.13); border-color: rgba(0, 210, 255, 0.45); color: var(--accent); }
.topbar-back svg { flex: none; color: var(--accent); }

/* The second one is a lesser errand, so it is quieter - but still a control. */
.topbar-back.is-quiet {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}
.topbar-back.is-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--border-strong, rgba(255,255,255,0.16)); }

/* On a narrow screen the two of them will not both fit beside the title, and
   getting back to the dashboard is the one that matters. */
@media (max-width: 560px) {
  .topbar-back.is-quiet { display: none; }
  .topbar-back { padding: 7px 10px; }
}

.content { padding: 16px 20px 96px; width: 100%; }

.grid { display: grid; gap: 11px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px 15px;
}

.card.accent {
  border-color: var(--line-accent);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.07), rgba(255, 255, 255, 0.012)), var(--panel);
}

.card.good { border-color: rgba(36, 217, 112, 0.35); background: rgba(36, 217, 112, 0.06); }
.card.warn { border-color: rgba(252, 211, 77, 0.35); background: rgba(252, 211, 77, 0.06); }
.card.bad  { border-color: rgba(255, 95, 109, 0.35); background: rgba(255, 95, 109, 0.06); }

.card h2 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.card h3 { margin: 0 0 5px; font-size: 13px; font-weight: 700; }
.card p  { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px;
}

.stat { border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,0.22); padding: 11px 12px; }
.stat .k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 19px; font-weight: 700; margin-top: 5px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11px; color: var(--faint); margin-top: 5px; line-height: 1.45; }

b, strong { color: var(--text); font-weight: 600; }
.hi { color: var(--accent); }
.hi2 { color: var(--accent-2); }
.ok { color: var(--success); }
.warnt { color: var(--warning); }
.bad-t { color: var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── controls ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 600;
  background: var(--accent); color: #04121f;
  cursor: pointer;
  transition: opacity .15s, transform .06s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.05); }
.btn.go { background: var(--success); color: #05231a; }
.btn.wide { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s;
}
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--faint); }

label.lbl { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 11px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}
/* A mark plus a word reads faster than either alone, and it is how people
   recognise a payment method — by the badge, not by the spelling. */
.pill-logo { padding: 5px 12px 5px 6px; font-size: 12px; }
.pill-logo img.logo { width: 16px; height: 16px; }
.pill.on { border-color: var(--line-accent); background: rgba(0,210,255,0.12); color: var(--accent); }
.pill.good { border-color: rgba(36,217,112,0.4); background: rgba(36,217,112,0.12); color: var(--success); }
.pill.warn { border-color: rgba(252,211,77,0.4); background: rgba(252,211,77,0.12); color: var(--warning); }

/* platform rows fill the card rather than floating in the middle of it */
/* Two lines, not one. Squeezing a name, an input and a remove button onto a
   single row left the input narrower than what people type into it, so the
   start of a pasted link scrolled out of sight the moment it was pasted. Now
   the platform is on top and the whole width is yours to type on. */
.plat { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.plat-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 11px 11px;
  transition: border-color .15s, background .15s;
}
.plat-row:focus-within { border-color: var(--accent); background: rgba(0, 0, 0, 0.34); }
.plat-row.filled { border-color: rgba(36, 217, 112, 0.28); }

.plat-head { display: flex; align-items: center; gap: 8px; }
.plat-head .nm { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--text); }
.plat-ok { display: grid; place-items: center; color: var(--success); }

.plat-row .x {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--faint);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.plat-row .x:hover { background: rgba(255, 95, 109, 0.14); color: var(--danger); }

.plat-input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 13px;
  outline: none;
  /* A pasted profile URL is long. Let it scroll inside its own box rather than
     stretching the card, and keep the caret visible while typing. */
  text-overflow: ellipsis;
  transition: border-color .15s;
}
.plat-input:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.5); }
.plat-input::placeholder { color: var(--faint); }

/* A payment method reads as its badge plus its name, in a table cell too. */
.method-cell { display: inline-flex; align-items: center; gap: 7px; }

/* The one place a longer explanation earns its keep: the money turns on it. */
.note-box {
  border: 1px solid var(--line-accent);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.06);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── tables ──────────────────────────────────────────────────────────────── */

.tablewrap { overflow-x: auto; }
table.t { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; }
table.t th { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-bottom: 8px; }
table.t td { padding: 9px 0; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ── the 30-day calendar ─────────────────────────────────────────────────── */

.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
.cal button {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  color: var(--faint);
  font-size: 11.5px; font-weight: 700;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .15s, background .15s, color .15s;
}
.cal button:hover { border-color: var(--line-accent); color: var(--text); }
.cal button.done { background: rgba(36,217,112,0.16); border-color: rgba(36,217,112,0.45); color: var(--success); }
.cal button.today { border-color: var(--accent); color: var(--accent); }
.cal button[disabled] { opacity: .3; cursor: not-allowed; }

.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--success)); transition: width .5s ease; }

/* ── toast ───────────────────────────────────────────────────────────────── */

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid rgba(36,217,112,0.45); border-radius: 12px;
  background: #14251d; color: var(--text);
  padding: 11px 13px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  animation: rise .22s ease;
}
.toast.bad { border-color: rgba(255,95,109,0.5); background: #2a1720; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── support bubble ──────────────────────────────────────────────────────── */

/* The author rule below sets display:flex, which beats the browser's own
   [hidden] { display: none }. Without this line the panel never actually
   hides — setting .hidden looks like it worked and nothing moves on screen. */

/* ── phone ───────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }

  /* The rail becomes a strip you swipe. */
  .rail {
    position: sticky; top: 0; z-index: 30;
    height: auto; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding: 10px 12px;
  }
  .brand { padding-bottom: 10px; margin-bottom: 8px; }
  .rail-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-group { margin: 0; display: contents; }
  .rail-label { display: none; }
  .rail-item {
    width: auto; flex: none; white-space: nowrap;
    padding: 8px 12px; margin: 0;
    border: 1px solid var(--border); border-radius: 999px;
  }
  .rail-item::before { display: none; }
  .rail-item[aria-current="true"] { border-color: var(--accent); background: rgba(0,210,255,0.13); }
  .rail-foot { display: none; }

  .content { padding: 16px 14px 96px; }
  .topbar { padding: 12px 14px; }
}

@media (max-width: 420px) {
  .card { padding: 15px; }
  .stat .v { font-size: 21px; }
}

/* ── the picker ──────────────────────────────────────────────────────────────
   A native <select> of two hundred countries is a wall you scroll, and a
   <datalist> renders like a different operating system on every browser.
   This is one control that looks the same everywhere and can be searched. */

.picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.picker-btn:hover { border-color: var(--line-accent); }
.picker-btn:focus-visible { outline: none; border-color: var(--accent); }
.picker-btn .picker-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn .picker-val.empty { color: var(--faint); }
.picker-btn svg.ico { color: var(--faint); }

.picker-panel {
  position: fixed;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  /* Opaque. A translucent popover over a dotted background is unreadable. */
  background: var(--panel-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.picker-search { padding: 8px; border-bottom: 1px solid var(--border); }
.picker-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.picker-search input:focus { border-color: var(--accent); }

.picker-list { overflow-y: auto; padding: 5px; }

.picker-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.picker-opt:hover, .picker-opt.on { background: rgba(0, 210, 255, 0.12); color: var(--text); }
.picker-empty { padding: 14px 12px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ── share & invite ──────────────────────────────────────────────────────────
   A creator earns $20 per person they bring who gets paid, but almost nobody
   sends a link unless something puts one in their hand. This is that. */

.inv-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: blur(4px);
}

.inv-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  /* Opaque, because this is a reading surface. */
  background: var(--panel-2);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7);
}

.inv-close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--faint);
  cursor: pointer;
}
.inv-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.inv-hero { padding-right: 34px; margin-bottom: 14px; }
.inv-hero h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.inv-hero p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.inv-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 11px 12px;
  margin-bottom: 8px;
}
.inv-card.featured {
  border-color: rgba(36, 217, 112, 0.45);
  background: rgba(36, 217, 112, 0.08);
}

.inv-head { display: flex; align-items: center; gap: 8px; }
.inv-label { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.inv-card.featured .inv-label { color: var(--success); }

.inv-star {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--faint);
  cursor: pointer;
}
.inv-star:hover { background: rgba(255, 255, 255, 0.08); }
.inv-star.on { color: #fcd34d; }

.inv-copy {
  flex: none;
  padding: 5px 11px;
  border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 11.5px; font-weight: 700;
  cursor: pointer;
}
.inv-card.featured .inv-copy { background: var(--success); color: #05231a; }
.inv-copy:hover { opacity: .88; }

.inv-body {
  margin: 8px 0 0;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--faint);
  white-space: pre-wrap;
  word-break: break-word;
}
.inv-card.featured .inv-body { color: var(--muted); }

.inv-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 2px 0 8px;
  border: 0; background: transparent;
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.inv-more svg { transition: transform .18s; }
.inv-more.open svg { transform: rotate(180deg); }

.inv-all {
  max-height: 42vh;
  overflow-y: auto;
  padding: 9px;
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.inv-hint { margin: 0 0 8px; font-size: 11.5px; color: var(--faint); }

.inv-linkonly {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.inv-linkonly:hover { border-color: var(--line-accent); }
.inv-linkonly-t { display: block; font-size: 12.5px; font-weight: 700; }
.inv-linkonly-v {
  display: block; margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inv-linkonly-s { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }

.inv-done {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: #04121f;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
}
.inv-done:hover { opacity: .9; }

/* ── create a post, on Home ──────────────────────────────────────────────── */

/* The one thing that turns a dashboard into a day's work. It carries the
   product's own cyan rather than the orange used for money, and it ends in
   something that plainly looks pressable — an arrow alone reads as decoration. */
.make-post {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.14), rgba(0, 210, 255, 0.05));
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, border-color .15s, background .15s;
}
.make-post:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(0, 210, 255, 0.08));
}
.make-post__icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(0, 210, 255, 0.2);
  color: var(--accent);
}
.make-post__t { display: block; font-size: 14px; font-weight: 800; }
.make-post__s { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.make-post__go {
  flex: none;
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #04121f;
  font-size: 12.5px; font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .make-post__s { display: none; }
  .inv-panel { padding: 16px; }
}

/* ── the trading balance, in the rail ────────────────────────────────────────
   Posting is not the only way to earn here: a creator who has connected Deriv
   has an account sitting idle while they make videos, and the bots are free. */

.rail-balance { margin-top: 16px; }

.bal-card {
  padding: 12px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 13px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(0, 210, 255, 0.14), transparent 65%),
    rgba(0, 0, 0, 0.28);
}

.bal-card-k {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent);
}

.bal-card-v {
  margin-top: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bal-card.is-loading .bal-card-v { font-size: 13px; color: var(--faint); font-family: inherit; }

.bal-card-s { margin: 7px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

.bal-card-go {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--accent);
  color: #04121f;
  font-size: 12px; font-weight: 800;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.bal-card-go:hover { opacity: .9; }
.bal-card-go:active { transform: scale(.98); }

.bal-card-go.ghost {
  background: transparent;
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--accent);
}
.bal-card-go.ghost:hover { background: rgba(0, 210, 255, 0.1); }

/* No balance to show. Not an error state — the same invitation, minus a
   figure, so nobody is told about a failure they cannot act on. */
.bal-card.is-plain .bal-card-k { color: var(--accent); }
.bal-card.is-plain .bal-card-s { margin-top: 8px; }

/* On a phone the rail is a strip you swipe, and a card does not belong in it. */
@media (max-width: 900px) {
  .rail-balance { margin-top: 10px; }
  .bal-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
  .bal-card-k { flex: none; }
  .bal-card-v { margin-top: 0; font-size: 15px; }
  .bal-card-s { display: none; }
  .bal-card-go { margin-top: 0; margin-left: auto; flex: none; }
}

/* "optional" beside a label, so a field can be skipped without a paragraph. */
.lbl-opt {
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--faint);
}
