/* ─────────────────────────────────────────────────────────────────────────────
   Brand mark, the terminal hero, and the leaderboard strip.

   Home read as a settings menu: five identical rounded rectangles, no wordmark, and
   nothing anywhere that suggested the app was about SQL. These three pieces give the
   screen an identity and a hierarchy.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Wordmark ──────────────────────────────────────────────────────────────────
   A logotype, not a label.

   It was 11px with wide tracking and a tiny mark floating after a space — which read as a
   stray character rather than a brand. Three things fix that: the semicolon scales with
   the type instead of being a fixed 7px, it sits tight against the final letter the way
   punctuation actually does, and it carries a glow so the eye reads it as the mark. */
.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  color: var(--neon-lime);
  text-shadow: 0 0 18px rgba(205, 255, 0, 0.35);
}
/* The trailing letter-space would otherwise push the mark away from the H. */
.hub-brand span { margin-right: -0.13em; }

.hub-brand svg {
  flex: none;
  /* Sized from the type, so the lockup holds together at any font-size. The viewBox is
     cropped to the glyph, so this width is the semicolon's real width and the height
     follows its true proportion. */
  width: 0.26em;
  height: auto;
  margin-left: 0.24em;
  transform: translateY(0.06em);
  filter: drop-shadow(0 0 7px rgba(205, 255, 0, 0.6));
}

/* ── Terminal hero ─────────────────────────────────────────────────────────── */
.hub-next.terminal {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0A16, #080713);
  border: 1px solid rgba(205, 255, 0, 0.16);
  box-shadow: var(--shadow-card), var(--edge-light), 0 0 40px -22px rgba(205, 255, 0, 0.5);
}

.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.term-dot.r { background: #FF5F57; }
.term-dot.y { background: #FEBC2E; }
.term-dot.g { background: #28C840; }
.term-path {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; color: rgba(255, 255, 255, 0.32);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.term-body { padding: 14px 16px 4px; }
.term-line { display: flex; gap: 9px; align-items: flex-start; }
.term-prompt { font-family: var(--font-mono); font-size: 12.5px; color: var(--neon-lime); line-height: 19px; }
.term-line code {
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 19px;
  white-space: pre-wrap; word-break: break-word;
}

/* A caret that blinks like a real prompt. It is the one moving thing on Home, which is
   why it is small and slow — a fast blink next to text is just noise. */
.term-caret {
  display: inline-block; width: 7px; height: 14px; margin-left: 3px;
  background: var(--neon-lime); vertical-align: text-bottom;
  animation: caret-blink 1.15s step-end infinite;
}
@keyframes caret-blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-caret { animation: none; } }

.term-out {
  margin-top: 14px; padding: 13px 14px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.term-eyebrow {
  font-family: var(--font-display);
  font-size: 9.5px; font-weight: 900; letter-spacing: 0.14em;
  color: var(--neon-lime);
}
.term-out .hub-next-title { margin-top: 6px; font-size: 21px; }
.terminal .hub-cta { margin: 14px 16px 0; width: calc(100% - 32px); }
.terminal .hub-browse { margin: 10px 0 14px; }

/* ── Leaderboard strip ─────────────────────────────────────────────────────── */
.lb-strip {
  display: flex; align-items: center; gap: 13px;
  width: 100%; margin-top: 12px; padding: 15px 16px;
  text-align: left; border-radius: 16px;
  background:
    radial-gradient(120% 160% at 100% 50%, rgba(255, 171, 0, 0.14), transparent 60%),
    var(--surface-card);
  border: 1px solid rgba(255, 171, 0, 0.28);
  box-shadow: var(--shadow-card), var(--edge-light);
}
.lb-strip-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 12px; color: var(--amber-warm); background: rgba(255, 171, 0, 0.14);
}
.lb-strip-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lb-strip-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.lb-strip-sub { margin-top: 2px; font-size: 11px; color: var(--text-gray); }
.lb-strip-stats { display: flex; gap: 12px; flex: none; align-items: baseline; }
.lb-strip-num {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; color: var(--amber-warm);
  font-variant-numeric: tabular-nums;
}
.lb-strip-num.alt { color: var(--neon-lime); }
.lb-strip-num span {
  margin-left: 2px; font-size: 9.5px; font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

/* The logo standing in for the query's terminating semicolon.
   Sized and baseline-aligned to match the surrounding monospace so it reads as the
   character it is, not as an image dropped into the code. */
.term-semi {
  display: inline-block;
  width: 0.26em;           /* the glyph's real width, now the viewBox is cropped to it */
  margin-left: 0.14em;
  color: var(--neon-lime);
  vertical-align: baseline;
}
.term-semi svg {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0.1em);   /* a semicolon's tail sits below the baseline */
}

/* The header row is space-between, so the lockup sat flush against the screen edge and
   the mark — the last thing in it — was the part that got clipped. */
.hub-header-row { padding-right: 2px; }
.hub-brand { padding-right: 2px; white-space: nowrap; }

/* ── Support & follow ──────────────────────────────────────────────────────── */
.list-icon.tone-pink { background: rgba(255, 92, 160, 0.13); color: #FF5CA0; }

.sup-card {
  margin-bottom: 12px; padding: 18px; border-radius: 18px;
  background: var(--surface-card); border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-card), var(--edge-light);
}
.sup-card .card-eyebrow { display: block; margin-bottom: 8px; }
.sup-note { margin: 0; font-size: 12.5px; line-height: 19px; color: var(--text-gray); }

.sup-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sup-amt {
  flex: 1 1 auto; min-width: 66px; height: 42px; border-radius: 12px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--text-white); background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--neutral-border);
}
.sup-amt.wide { flex: 1 1 100%; font-size: 13px; color: var(--text-gray); }
.sup-amt.on {
  color: #1A0A12; background: #FF5CA0; border-color: #FF5CA0;
  box-shadow: 0 8px 20px -10px rgba(255, 92, 160, 0.8);
}

.sup-pay {
  display: block; margin-top: 14px; padding: 14px; border-radius: 13px;
  text-align: center; text-decoration: none;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #1A0A12;
  background: linear-gradient(180deg, #FF7DB4, #FF5CA0 55%, #E23F84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -12px rgba(255, 92, 160, 0.9);
}

.sup-upi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-gray);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--neutral-border);
}
.sup-upi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-copy {
  flex: none; padding: 4px 9px; border-radius: 7px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  color: var(--text-gray); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--neutral-border);
}

/* The QR leads, so it gets real size — a code people have to squint at is a code nobody
   scans. White surround because scanners cope badly with a code floating on dark. */
.sup-qr { margin-top: 18px; text-align: center; }
.sup-qr img {
  width: 240px; max-width: 100%; border-radius: 14px;
  padding: 12px; background: #fff;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
}
.sup-qr-label {
  display: block; margin: 12px 0 0; text-align: center;
  font-size: 11.5px; line-height: 17px; color: rgba(255, 255, 255, 0.42);
}
.sup-save {
  display: block; margin-top: 12px; padding: 11px; border-radius: 11px;
  text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 700; color: var(--text-gray);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--neutral-border);
}
.sup-amounts { margin-top: 18px; }

.sup-ig {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 13px; border-radius: 13px; text-decoration: none;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(115deg, #F9CE34, #EE2A7B 48%, #6228D7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -12px rgba(238, 42, 123, 0.9);
}
