/* ==========================================================================
   Mandit Global — Tools & account layer
   Shared by techstack.html, plans.html, login.html, signup.html,
   payment.html and history.html.
   ========================================================================== */

/* ---------- Honest-build flag ---------- */
.demo-flag {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 17px;
  border: 1px dashed rgba(255, 180, 87, 0.4);
  border-radius: var(--r-md);
  background: rgba(255, 180, 87, 0.06);
  font-size: 0.81rem;
  line-height: 1.6;
  color: #ffd9a8;
}
.demo-flag svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.demo-flag b { color: #fff; }

/* ---------- Account bar ----------
   The strip sits directly under the fixed site header, so it is positioned
   fixed as well. `--acct-h` is written by tools-account.js once the bar has
   been painted (it can wrap on narrow screens), and the rule below makes the
   first block on the page reserve room for the header + the strip, whichever
   kind of first section the page happens to start with. */
/* the strip is fixed under the header, so the page below it needs to know how
   tall it ended up; --fld-label-h is the label line + gap, used to line the
   action buttons up with the inputs in the search rows */
:root { --acct-h: 60px; --fld-label-h: 28px; }

/* in-page anchors must not hide under the fixed chrome */
html { scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + var(--acct-h) + 18px); }

.acct-bar {
  position: fixed;
  top: calc(var(--header-h) + var(--topbar-h));
  left: 0;
  right: 0;
  z-index: 110;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.86);
  backdrop-filter: blur(18px);
  transition: top 0.55s var(--ease);
}
/* once the header collapses its utility bar the strip moves up with it */
.acct-bar.is-stuck { top: var(--header-h); }

.acct-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding-block: 8px;
}

/* the page's first block clears the fixed header and the strip beneath it */
.acct-bar ~ main > :first-child,
.acct-bar ~ .page-hero:first-of-type {
  padding-top: calc(var(--header-h) + var(--topbar-h) + var(--acct-h) + clamp(18px, 3vw, 42px));
}

.acct-chip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-chip__meta { min-width: 0; }
.acct-chip__meta strong,
.acct-chip__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* keep the strip to a single row on laptops, tablets and phones */
@media (max-width: 1180px) {
  .acct-chip__meta span { display: none; }
}
@media (max-width: 1000px) {
  .quota__top span { display: none; }
  .quota { min-width: 0; }
  .acct-bar__inner { min-height: 54px; }
}
@media (max-width: 620px) {
  .acct-chip__meta span { display: none; }
  .acct-bar__inner { gap: 8px 10px; padding-block: 7px; }
  .acct-bar__actions .btn { padding: 8px 14px; font-size: 0.78rem; }
}
.acct-chip__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.acct-chip__meta { display: grid; gap: 2px; min-width: 0; }
.acct-chip__meta strong { font-size: 0.88rem; color: #fff; }
.acct-chip__meta span { font-size: 0.75rem; color: var(--muted); }
.acct-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.plan-badge--free { border-color: rgba(132, 141, 166, 0.5); }
.plan-badge--pro { border-color: rgba(139, 154, 245, 0.5); background: rgba(139, 154, 245, 0.12); color: #b9c4ff; }
.plan-badge--growth { border-color: rgba(47, 168, 160, 0.5); background: rgba(47, 168, 160, 0.12); color: #cdd6ff; }
.plan-badge--scale { border-color: rgba(0, 208, 132, 0.5); background: rgba(0, 208, 132, 0.12); color: #a9f0e0; }

/* ---------- Quota meter ---------- */
.quota { display: grid; gap: 6px; min-width: 190px; }
.quota__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quota__top b { font-family: var(--font-display); font-size: 0.92rem; color: #fff; }
.quota__top span { font-size: 0.73rem; color: var(--muted); }
.quota__track { height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.quota__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--grad-brand);
  transition: width 0.9s var(--ease);
}
.quota__track i.is-warn { background: linear-gradient(90deg, #ffb457, #ff8a5c); }
.quota__track i.is-bad { background: linear-gradient(90deg, #ff7b7b, #ff5c8a); }

/* ---------- Generic tool cards ---------- */
.tool-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.017));
  box-shadow: var(--shadow-md);
}
.tool-card__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tool-card__head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.tool-card__head p { font-size: 0.86rem; color: var(--muted); margin-top: 6px; max-width: 62ch; }

.tools-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.tools-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }

/* ---------- Form fields (namespaced .fld) ---------- */
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld__label { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0.02em; }
.fld__input,
.fld__select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fld__select { appearance: none; cursor: pointer; }
.fld__select option { background: #111524; color: var(--text); }
.fld__input::placeholder { color: #6c7590; }
.fld__input:focus,
.fld__select:focus {
  outline: none;
  border-color: rgba(139, 154, 245, 0.65);
  background: rgba(139, 154, 245, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 154, 245, 0.13);
}
.fld__input.is-error { border-color: rgba(255, 123, 123, 0.7); background: rgba(255, 123, 123, 0.08); }
.fld__hint { font-size: 0.76rem; line-height: 1.55; color: var(--muted); }
.fld__hint.is-bad { color: #ff9d9d; }
.fld__hint.is-good { color: #6ff0bb; }
.fld__hint.is-warn { color: #ffcf9a; }
.fld__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.fld-stack { display: grid; gap: 16px; }

.checkline {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-soft);
  cursor: pointer;
}
.checkline input { width: 17px; height: 17px; margin-top: 3px; flex: 0 0 auto; accent-color: #8b9af5; }

.tool-status { font-size: 0.83rem; color: var(--muted); }
.tool-status.is-bad { color: #ff9d9d; }
.tool-status.is-good { color: #6ff0bb; }

/* ==========================================================================
   TechStack tool
   ========================================================================== */
.ts-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  /* STRETCH, not bottom-align. A field that carries a hint under its input is
     taller than a plain one, so bottom-aligning the columns drags that field's
     label and input 26px below its neighbour's. Stretching puts every label
     on the first line and every input on the second. */
  align-items: stretch;
}
.ts-search > .fld { justify-content: flex-start; }
/* the action column has no label, so it is padded back down onto the input
   line (label height + gap, less a couple of pixels to centre the buttons) */
.ts-search > .fld--actions,
.ts-search > .fld:last-child {
  padding-top: calc(var(--fld-label-h) - 2px);
}
@media (max-width: 900px) {
  .ts-search { grid-template-columns: 1fr; }
  .ts-search > .fld--actions,
  .ts-search > .fld:last-child { padding-top: 0; }
}

.ts-search__note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.ts-search__note span { display: inline-flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.ts-search__note svg { width: 14px; height: 14px; color: var(--green); }

/* --- locked / blurred reveal card --- */
.ts-locked { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.ts-blur {
  filter: blur(9px) saturate(0.7);
  opacity: 0.62;
  user-select: none;
  pointer-events: none;
  transition: filter 0.7s var(--ease), opacity 0.7s var(--ease);
}
.ts-locked.is-open .ts-blur { filter: none; opacity: 1; user-select: auto; pointer-events: auto; }
.ts-locked__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: radial-gradient(120% 90% at 50% 40%, rgba(7, 9, 18, 0.58), rgba(7, 9, 18, 0.93));
  text-align: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.ts-locked.is-open .ts-locked__veil { opacity: 0; visibility: hidden; }
.ts-locked__card {
  max-width: 480px;
  padding: 30px 30px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: rgba(12, 15, 28, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.ts-locked__card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.ts-locked__card p { font-size: 0.88rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 20px; }
.ts-locked__card .btn-row { justify-content: center; }
.ts-locked__fine { margin-top: 16px; font-size: 0.73rem; color: var(--muted); }

/* --- company header --- */
.ts-company {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(139, 154, 245, 0.12), rgba(47, 168, 160, 0.07) 55%, rgba(0, 208, 132, 0.08));
}
.ts-company__logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.ts-company__name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 700; color: #fff; }
.ts-company__dom { font-size: 0.86rem; color: var(--green); }
.ts-company__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ts-company__side { text-align: right; display: grid; gap: 6px; }
.ts-company__side b { font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.ts-company__side span { font-size: 0.73rem; color: var(--muted); }
@media (max-width: 780px) {
  .ts-company { grid-template-columns: auto 1fr; }
  .ts-company__side { grid-column: 1 / -1; text-align: left; }
}

.ts-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--border);
}
.ts-fact { padding: 15px 17px; background: rgba(12, 15, 28, 0.72); }
.ts-fact span { display: block; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ts-fact b { font-size: 0.92rem; color: var(--text); font-weight: 600; }

/* --- stack categories --- */
.ts-cats { display: grid; gap: 18px; margin-top: 22px; }
.ts-cat { border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.022); overflow: hidden; }
.ts-cat__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 19px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.ts-cat__head h4 { font-size: 0.95rem; font-family: var(--font-display); }
.ts-cat__head span { font-size: 0.74rem; color: var(--muted); }
.ts-cat__body { display: grid; }

.ts-item {
  display: grid;
  grid-template-columns: auto minmax(140px, 1.1fr) minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s var(--ease);
}
.ts-item:last-child { border-bottom: 0; }
.ts-item:hover { background: rgba(139, 154, 245, 0.06); }
.ts-item__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(139, 154, 245, 0.3), rgba(0, 208, 132, 0.22));
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.ts-item__name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.ts-item__meta { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }
.ts-item__conf { display: grid; gap: 5px; }
.ts-item__conf span { font-size: 0.7rem; color: var(--muted); }
.ts-item__conf i { display: block; height: 4px; border-radius: 100px; background: var(--grad-brand); }
.ts-item__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 820px) {
  .ts-item { grid-template-columns: auto 1fr; row-gap: 10px; }
  .ts-item__conf, .ts-item__tags { grid-column: 1 / -1; justify-content: flex-start; }
}

.ts-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}
.ts-tag--new { border-color: rgba(163, 240, 200, 0.4); background: rgba(163, 240, 200, 0.1); color: #c9f2d8; }
.ts-tag--core { border-color: rgba(0, 208, 132, 0.4); background: rgba(0, 208, 132, 0.1); color: #a9f0e0; }
.ts-tag--risk { border-color: rgba(255, 180, 87, 0.4); background: rgba(255, 180, 87, 0.1); color: #ffd9a8; }
.ts-tag--intent { border-color: rgba(47, 168, 160, 0.45); background: rgba(47, 168, 160, 0.12); color: #cdd6ff; }

/* --- paywall masking --- */
.ts-item.is-locked .ts-item__name,
.ts-item.is-locked .ts-item__meta { filter: blur(5px); opacity: 0.55; user-select: none; }
.ts-item.is-locked { background: rgba(255, 255, 255, 0.015); }
.ts-item.is-locked .ts-item__logo { background: rgba(255, 255, 255, 0.06); color: transparent; }
.ts-mask { display: inline-block; min-width: 66px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); color: transparent; }
.ts-lockicon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 180, 87, 0.16); color: var(--amber); }
.ts-lockicon svg { width: 12px; height: 12px; }

.ts-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(47, 168, 160, 0.32);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(47, 168, 160, 0.12), rgba(0, 208, 132, 0.07));
}
.ts-gate p { font-size: 0.86rem; line-height: 1.6; color: var(--text-soft); max-width: 62ch; }
.ts-gate b { color: #fff; }

.ts-visibility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.73rem;
  color: var(--text-soft);
}
.ts-visibility b { color: #fff; }

/* --- keywords --- */
.ts-kw-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ts-kw-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ts-kw-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
.ts-kw-table tr:last-child td { border-bottom: 0; }
.ts-kw { font-weight: 600; color: var(--text); }
.ts-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ts-bar-mini { display: block; width: 90px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ts-bar-mini i { display: block; height: 100%; background: var(--grad-brand); }

/* --- intent --- */
.ts-intent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ts-intent {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
}
.ts-intent__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ts-intent__topic { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
.ts-intent__score {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--s, 60) * 1%), rgba(255, 255, 255, 0.09) 0);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.ts-intent__score span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0c0f1c; }
.ts-intent ul { display: grid; gap: 9px; }
.ts-intent li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 0.8rem; line-height: 1.55; color: var(--text-soft); }
.ts-intent li b { color: #fff; font-weight: 600; }
.ts-intent__src { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.72rem; color: var(--muted); }
.ts-intent__src svg { width: 13px; height: 13px; }

.ts-signal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ts-signal:last-child { border-bottom: 0; }
.ts-signal__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.14); }
.ts-signal--high .ts-signal__dot { background: #ff7b7b; box-shadow: 0 0 0 4px rgba(255, 123, 123, 0.16); }
.ts-signal--med .ts-signal__dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 180, 87, 0.16); }
.ts-signal p { font-size: 0.85rem; line-height: 1.6; color: var(--text-soft); }
.ts-signal p b { color: #fff; }
.ts-signal time { font-size: 0.73rem; color: var(--muted); white-space: nowrap; }

.ts-empty {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.ts-empty svg { width: 40px; height: 40px; stroke-width: 1.3; color: var(--brand); }
.ts-empty p { max-width: 46ch; font-size: 0.9rem; line-height: 1.7; }

.ts-skeleton { display: grid; gap: 12px; }
.ts-skeleton span {
  display: block;
  height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.11) 40%, rgba(255, 255, 255, 0.05) 60%);
  background-size: 220% 100%;
  animation: tsShimmer 1.5s linear infinite;
}
@keyframes tsShimmer { to { background-position: -120% 0; } }

/* ==========================================================================
   Plans
   ========================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
  align-items: start;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.plan-card--featured {
  border-color: rgba(139, 154, 245, 0.55);
  box-shadow: var(--glow-brand), var(--shadow-lg);
}
.plan-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(139, 154, 245, 0.14), transparent 55%);
  pointer-events: none;
}
.plan-card__flag {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--grad-brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.plan-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.plan-card__for { font-size: 0.82rem; line-height: 1.6; color: var(--muted); min-height: 42px; }
.plan-card__price { display: flex; align-items: baseline; gap: 7px; margin: 20px 0 4px; }
.plan-card__price b { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 700; color: #fff; line-height: 1; }
.plan-card__price span { font-size: 0.82rem; color: var(--muted); }
.plan-card__bill { font-size: 0.74rem; color: var(--muted); margin-bottom: 22px; }
.plan-card__list { display: grid; gap: 11px; margin-bottom: 26px; }
.plan-card__list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 0.85rem; line-height: 1.6; color: var(--text-soft); }
.plan-card__list svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--green); }
.plan-card__list li.is-off { color: #6c7590; }
.plan-card__list li.is-off svg { color: #4d5568; }
.plan-card__cta { margin-top: auto; }

.plan-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 720px; }
.plan-table th, .plan-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.plan-table thead th {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.plan-table tbody th { font-weight: 500; color: var(--text-soft); }
.plan-table td { text-align: center; font-variant-numeric: tabular-nums; }
.plan-table td.yes { color: #6ff0bb; }
.plan-table td.no { color: #6c7590; }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 940px) { .auth-wrap { grid-template-columns: 1fr; } }

.auth-card {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.017));
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.auth-card > p { font-size: 0.9rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 26px; }
.auth-card__alt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--muted); }
.auth-card__alt a { color: var(--green); }

.auth-aside { display: grid; gap: 20px; }
.auth-aside__card { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); }
.auth-aside__card h3 { font-size: 1rem; margin-bottom: 14px; }
.auth-aside__card ul { display: grid; gap: 11px; }
.auth-aside__card li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 0.84rem; line-height: 1.6; color: var(--text-soft); }
.auth-aside__card svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--green); }

.pw-meter { display: flex; gap: 5px; margin-top: 4px; }
.pw-meter i { height: 4px; flex: 1; border-radius: 100px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s var(--ease); }
.pw-meter i.on-1 { background: #ff7b7b; }
.pw-meter i.on-2 { background: var(--amber); }
.pw-meter i.on-3 { background: #7fe8e0; }
.pw-meter i.on-4 { background: #4ee7ae; }

/* ==========================================================================
   Payment
   ========================================================================== */
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 34px; align-items: start; }
@media (max-width: 940px) { .pay-wrap { grid-template-columns: 1fr; } }

.pay-summary { position: sticky; top: calc(var(--header-h) + var(--acct-h) + 20px); }
.pay-summary__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; color: var(--text-soft); }
.pay-summary__line b { color: #fff; font-variant-numeric: tabular-nums; }
.pay-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-strong); }
.pay-summary__total span { font-size: 0.86rem; color: var(--muted); }
.pay-summary__total b { font-family: var(--font-display); font-size: 2.1rem; color: #fff; }

.card-visual {
  position: relative;
  margin-bottom: 28px;
  padding: 22px 24px;
  aspect-ratio: 1.6 / 1;
  max-width: 380px;
  border-radius: 20px;
  background: linear-gradient(140deg, #1b2450, #111524 55%, #0b2a2a);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.card-visual::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.28), transparent 65%);
}
.card-visual__chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(140deg, #ffd88a, #c99b3d); margin-bottom: 26px; }
.card-visual__num { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: 0.14em; color: #fff; margin-bottom: 20px; }
.card-visual__row { display: flex; justify-content: space-between; gap: 18px; font-size: 0.76rem; color: var(--text-soft); }
.card-visual__row b { display: block; font-size: 0.86rem; color: #fff; letter-spacing: 0.06em; }
.card-visual__brand { position: absolute; right: 22px; bottom: 20px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.8); }

.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.83rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.pay-method svg { width: 17px; height: 17px; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:has(input:checked) { border-color: rgba(139, 154, 245, 0.6); background: rgba(139, 154, 245, 0.12); color: #fff; }

/* ==========================================================================
   History / account
   ========================================================================== */
.hist-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 26px; align-items: start; }
@media (max-width: 940px) { .hist-grid { grid-template-columns: 1fr; } }

.hist-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.028); }
.hist-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.hist-card > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }

.txn-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.txn-table th { text-align: left; padding: 11px 12px; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.txn-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.txn-table tr:last-child td { border-bottom: 0; }
.txn-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px; font-size: 0.7rem; letter-spacing: 0.05em; }
.txn-status--paid { background: rgba(78, 231, 174, 0.12); border: 1px solid rgba(78, 231, 174, 0.35); color: #6ff0bb; }
.txn-status--failed { background: rgba(255, 123, 123, 0.12); border: 1px solid rgba(255, 123, 123, 0.35); color: #ff9d9d; }
.txn-status--pending { background: rgba(255, 180, 87, 0.12); border: 1px solid rgba(255, 180, 87, 0.35); color: #ffcf9a; }

.usage-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 7px; align-items: end; height: 130px; margin-top: 6px; }
.usage-bars__col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 7px; }
.usage-bars__bar { border-radius: 6px 6px 2px 2px; background: var(--grad-brand); min-height: 3px; transition: height 0.7s var(--ease); }
.usage-bars__col span { font-size: 0.62rem; color: var(--muted); text-align: center; }
.usage-bars__col b { font-size: 0.68rem; color: var(--text-soft); text-align: center; font-variant-numeric: tabular-nums; }

.plan-now {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: linear-gradient(130deg, rgba(139, 154, 245, 0.12), rgba(0, 208, 132, 0.07));
}
.plan-now h3 { font-size: 1.1rem; }
.plan-now p { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ts-skeleton span { animation: none; }
  .plan-card:hover { transform: none; }
  .ts-blur { filter: blur(8px); }
}

/* ==========================================================================
   Buying Intent (intent-data.html)
   ========================================================================== */
.tool-note-mini { font-size: 0.78rem; color: var(--muted); }

/* --- topic score rows --- */
.it-topics { display: grid; gap: 10px; list-style: none; }
.it-topic {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto minmax(80px, 160px);
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
}
.it-topic__rank {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.it-topic__body { display: grid; gap: 5px; min-width: 0; }
.it-topic__head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.it-topic__head b {
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.it-topic__meta { font-size: 0.75rem; color: var(--muted); }
.it-topic__score { display: grid; justify-items: end; gap: 3px; text-align: right; }
.it-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}
.it-num.is-locked { color: var(--muted); letter-spacing: 0.06em; }
.it-topic__bar { display: block; }
.it-topic__bar .it-bar,
.it-bar-wrap .it-bar { width: 100%; }
.it-bar-wrap { display: block; width: 100%; min-width: 70px; }

.it-bar i { background: var(--grad-brand); }
.it-bar.is-good i { background: linear-gradient(90deg, #6ff0bb, var(--green-soft)); }
.it-bar.is-warn i { background: linear-gradient(90deg, var(--amber), #ff8a5c); }
.it-bar.is-bad i { background: linear-gradient(90deg, #ff7b7b, #ff5c8a); }
.it-bar.is-locked i { background: rgba(255, 255, 255, 0.22); }

.it-trend { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.it-trend.is-up { color: var(--green-soft); }
.it-trend.is-down { color: #ff8f8f; }

/* --- surge watch --- */
.it-surge { display: grid; gap: 8px; list-style: none; }
.it-surge__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 170px) auto auto;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.025);
}
.it-surge__item b {
  font-size: 0.89rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.it-surge__item .it-trend { justify-self: end; }

/* --- signal feed --- */
.it-feed {
  display: grid;
  gap: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.it-feed__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(12, 15, 28, 0.55);
}
.it-feed__item:last-child { border-bottom: 0; }
.it-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
.it-dot.is-strong {
  background: var(--green-soft);
  box-shadow: 0 0 0 4px rgba(163, 240, 200, 0.12), 0 0 14px rgba(163, 240, 200, 0.45);
}
.it-dot.is-mid { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 180, 87, 0.14); }
.it-dot.is-soft { background: var(--brand); box-shadow: 0 0 0 4px rgba(139, 154, 245, 0.14); }
.it-feed__body { font-size: 0.86rem; line-height: 1.55; color: var(--text-soft); }
.it-feed__body b { color: #fff; font-weight: 600; }
.it-feed__meta { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--muted); }

/* --- guidance panels --- */
.it-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.it-panel {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}
.it-panel h3 { font-size: 1rem; margin-bottom: 10px; }
.it-panel__lead { font-size: 0.9rem; line-height: 1.62; color: var(--text-soft); }
.it-roles { display: grid; gap: 10px; list-style: none; }
.it-roles li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border-left: 2px solid rgba(139, 154, 245, 0.55);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 255, 255, 0.03);
}
.it-roles b { font-size: 0.87rem; color: #fff; }
.it-roles span { font-size: 0.76rem; line-height: 1.5; color: var(--muted); }

/* --- source attribution table --- */
.it-table { min-width: 760px; }
.it-table td { vertical-align: top; }
.it-src { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Scale upsell --- */
.it-upsell {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 26px 28px;
  border: 1px solid rgba(47, 168, 160, 0.34);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(47, 168, 160, 0.14), rgba(139, 154, 245, 0.07) 55%, rgba(0, 208, 132, 0.06));
}
.it-upsell h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
.it-upsell p { font-size: 0.89rem; line-height: 1.65; color: var(--text-soft); max-width: 64ch; }
.it-upsell__list { display: grid; gap: 9px; list-style: none; }
.it-upsell__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.it-upsell__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* --- locked (redacted) blocks --- */
.it-locked-inline { margin-top: 2px; }
.it-locked-inline .ts-blur { padding: 14px; }
.it-veil-inline { padding: 22px; }
.it-veil-inline .ts-locked__card { width: 100%; max-width: 640px; }
.it-locked--short { max-height: 250px; }
.it-locked-inline + .tool-card__head { margin-top: 30px !important; }
.it-redact {
  display: block;
  height: 9px;
  border-radius: 100px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.16) 25%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.16) 65%);
  background-size: 220% 100%;
  animation: tsShimmer 2.4s linear infinite;
}
.it-redact--sm { height: 7px; opacity: 0.7; }

@media (max-width: 860px) {
  .it-topic { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .it-topic__bar { display: none; }
  .it-surge__item { grid-template-columns: minmax(0, 1fr) auto auto; }
  .it-surge__item .it-bar-wrap { display: none; }
}
@media (max-width: 620px) {
  .it-topic { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px 12px; }
  .it-topic__head .ts-tag { display: none; }
  .it-feed__body { font-size: 0.82rem; }
  .it-upsell { padding: 22px 20px; }
}

/* ---------- Print ---------- */
@media print {
  .acct-bar, .ts-locked__veil, .pay-summary { position: static; }
}
