/* =========================================================================
   Tradomix — shared design system
   ========================================================================= */

:root {
  --bg: #07090d;
  --bg-2: #0c1016;
  --panel: #111723;
  --panel-2: #151c2b;
  --line: #1e2a3d;
  --line-strong: #2a3a55;
  --text: #e6edf7;
  --mute: #8592a6;
  --mute-2: #5b6a82;

  --green: #00ff9c;
  --green-dim: #00a365;
  --red: #ff3b5c;
  --red-dim: #b21a33;
  --yellow: #ffd34d;
  --accent: #5ac8ff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* =========================================================================
   Ticker
   ========================================================================= */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #05070b, #0a0d14);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  padding: 8px 0;
}
.ticker-track { display: inline-block; padding-left: 100%; animation: tick 60s linear infinite; }
.ticker span { margin: 0 24px; }
.ticker .up { color: var(--green); }
.ticker .down { color: var(--red); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =========================================================================
   Navigation
   ========================================================================= */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; cursor: pointer; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--green), var(--accent), var(--red), var(--green));
  position: relative;
}
.brand .logo::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px; background: var(--bg);
}
.brand .name { font-size: 16px; }
.brand .name .accent { color: var(--green); }

.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--mute); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

#navAuth { display: flex; gap: 8px; align-items: center; }

@media (max-width: 720px) {
  nav.site-nav { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .nav-links { display: none; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .1s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { border-color: var(--green-dim); color: var(--green); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-dim), #00d37f);
  color: #00160c;
  font-weight: 700;
  border-color: transparent;
}
.btn-primary:hover {
  color: #00160c;
  box-shadow: 0 8px 24px rgba(0, 255, 156, .25);
  transform: translateY(-1px);
}
.btn-primary:disabled:hover { transform: none; box-shadow: none; }
.btn-ghost { background: transparent; }
.btn-large { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* =========================================================================
   Layout
   ========================================================================= */
section { padding: 72px 28px; max-width: 1240px; margin: 0 auto; }
section.tight { padding: 48px 28px; }

.section-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title h2 { font-size: 30px; margin: 0; font-weight: 700; letter-spacing: -.5px; }
.section-title .tag { font-family: var(--mono); font-size: 12px; color: var(--green); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12px;
  color: var(--mute);
  font-family: var(--mono);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

/* =========================================================================
   Hero (landing)
   ========================================================================= */
.hero { padding: 84px 28px 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 400px at 50% -200px, rgba(0, 255, 156, .14), transparent 60%),
    radial-gradient(800px 400px at 80% 300px, rgba(90, 200, 255, .07), transparent 60%);
  pointer-events: none;
}
.hero .pill { margin-bottom: 22px; }
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #ffffff, #8fb0d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--green), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub { color: var(--mute); font-size: 17px; max-width: 660px; margin: 0 auto 28px; line-height: 1.55; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero h1 { font-size: 36px; letter-spacing: -.5px; }
  .hero p.sub { font-size: 15px; }
}

/* =========================================================================
   Panels & cards
   ========================================================================= */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.panel h3 .num {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--green);
}

/* =========================================================================
   Steps (How it works)
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--green), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
}
.step h4 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.55; }

/* =========================================================================
   Pricing
   ========================================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan.popular {
  border-color: var(--green-dim);
  background: linear-gradient(180deg, rgba(0, 255, 156, .08), var(--panel-2));
}
.plan.popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #00160c;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--mono);
}
.plan .name { font-family: var(--mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 2px; }
.plan .price { font-size: 42px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -1px; }
.plan .price small { font-size: 14px; color: var(--mute); font-weight: 400; }
.plan .duration { font-size: 13px; color: var(--accent); font-family: var(--mono); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.plan li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan li.x::before { content: "✕"; color: var(--mute-2); }
.plan li.x { color: var(--mute); }
.plan li small { display: block; font-size: 11px; color: var(--mute-2); margin-top: 2px; font-family: var(--mono); }
.day-pass-note { text-align: center; margin-top: 26px; color: var(--mute); font-size: 13px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  font-weight: 300;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================================
   Disclaimer & footer
   ========================================================================= */
.disclaimer {
  border: 1px solid #6e5a17;
  background: rgba(255, 211, 77, .04);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 30px auto;
  max-width: 1000px;
  font-size: 12px;
  color: #c5b076;
  line-height: 1.5;
}
.disclaimer b { color: var(--yellow); }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
  margin-top: 40px;
}
footer.site-footer .powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 14px;
}
footer.site-footer .glow { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
footer.site-footer .links { margin-top: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 12px; }
footer.site-footer .links a { color: var(--mute); }
footer.site-footer .links a:hover { color: var(--text); }

/* =========================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 6px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* =========================================================================
   Auth modal
   ========================================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 4, 8, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.modal h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.3px; }
.modal p.sub { color: var(--mute); margin: 0 0 22px; font-size: 13px; line-height: 1.5; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0;
  color: var(--mute);
  font-size: 26px; cursor: pointer;
  line-height: 1; padding: 4px 10px;
}
.modal-close:hover { color: var(--text); }
.auth-tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  cursor: pointer;
  border-radius: 7px;
  font-size: 12px;
  color: var(--mute);
  transition: all .15s ease;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-tab.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.auth-tab:hover:not(.active) { color: var(--text); }
.auth-alt {
  text-align: center;
  color: var(--mute);
  font-size: 11px;
  margin: 18px 0 10px;
  font-family: var(--mono);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #1f1f1f;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s ease;
  font-family: inherit;
}
.google-btn:hover { background: #eaeaea; }
.auth-err { color: var(--red); font-size: 12px; margin-top: 10px; min-height: 14px; }

/* =========================================================================
   User chip & plan pill
   ========================================================================= */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.user-chip .email { color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill { padding: 2px 7px; border-radius: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.plan-pill.none { background: rgba(255, 211, 77, .12); color: var(--yellow); border: 1px solid #7a6419; }
.plan-pill.active { background: rgba(0, 255, 156, .12); color: var(--green); border: 1px solid var(--green-dim); }

/* =========================================================================
   Toast
   ========================================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 400;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  max-width: 90vw;
}
.toast.error { border-color: var(--red-dim); color: var(--red); }
.toast.ok { border-color: var(--green-dim); color: var(--green); }
.toast.show { display: block; animation: pop .25s ease; }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* =========================================================================
   Analyze page
   ========================================================================= */
.analyze-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}
.usage-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.usage-bar .stat { display: flex; flex-direction: column; gap: 4px; }
.usage-bar .stat .label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--mono); }
.usage-bar .stat .value { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text); }
.usage-bar .stat .value.green { color: var(--green); }
.usage-bar .stat .value.yellow { color: var(--yellow); }
.usage-bar .progress {
  flex: 1;
  min-width: 200px;
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.usage-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  transition: width .4s ease;
}
.usage-bar .progress-fill.warn { background: linear-gradient(90deg, #b87f00, var(--yellow)); }
.usage-bar .progress-fill.full { background: linear-gradient(90deg, var(--red-dim), var(--red)); }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }

.drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  background: radial-gradient(500px 200px at 50% 50%, rgba(0, 255, 156, .04), transparent 70%);
}
.drop:hover, .drop.drag { border-color: var(--green); background: rgba(0, 255, 156, .04); }
.drop svg { width: 44px; height: 44px; color: var(--green); margin-bottom: 10px; }
.drop p { margin: 0; color: var(--mute); font-size: 14px; }
.drop strong { color: var(--text); }
.drop input { display: none; }

.preview {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: none;
  position: relative;
}
.preview img { display: block; width: 100%; max-height: 380px; object-fit: contain; background: #000; }
.preview .remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .7);
  color: var(--red);
  border: 1px solid var(--red-dim);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.prep-note { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--mute); display: none; }
.analyze-row { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }

.result-empty { text-align: center; padding: 60px 20px; color: var(--mute); }
.result-empty svg { width: 56px; height: 56px; opacity: .5; margin-bottom: 14px; }

.verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.verdict.long { background: linear-gradient(135deg, rgba(0, 255, 156, .15), rgba(0, 255, 156, .03)); border-color: var(--green-dim); }
.verdict.short { background: linear-gradient(135deg, rgba(255, 59, 92, .15), rgba(255, 59, 92, .03)); border-color: var(--red-dim); }
.verdict.neutral { background: linear-gradient(135deg, rgba(255, 211, 77, .12), rgba(255, 211, 77, .02)); border-color: #7a6419; }
.verdict .direction { font-size: 32px; font-weight: 800; letter-spacing: 1px; font-family: var(--mono); }
.verdict.long .direction { color: var(--green); }
.verdict.short .direction { color: var(--red); }
.verdict.neutral .direction { color: var(--yellow); }
.verdict .confidence { text-align: right; }
.verdict .confidence .label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 1px; font-family: var(--mono); }
.verdict .confidence .val { font-size: 24px; font-weight: 700; font-family: var(--mono); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.level { padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.level .label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 1px; font-family: var(--mono); margin-bottom: 6px; }
.level .val { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.level.entry .val { color: var(--accent); }
.level.sl .val { color: var(--red); }
.level.tp .val { color: var(--green); }

.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-family: var(--mono); font-size: 12px; }
.chip { padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--mute); }
.chip b { color: var(--text); }
.chip.warn { border-color: #7a6419; color: var(--yellow); }

.explanation h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--mono);
}
.explanation p { margin: 0 0 10px; line-height: 1.6; color: var(--text); font-size: 14px; }
.explanation ul { margin: 0 0 10px; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.6; }

details.debug { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
details.debug summary { cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 1px; }
details.debug pre {
  margin: 10px 0 0;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--mute);
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.pipeline { padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
  border-bottom: 1px dashed var(--line);
}
.pipeline-stage:last-child { border-bottom: 0; }
.pipeline-stage .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all .2s ease;
}
.pipeline-stage.pending .icon { color: var(--mute); }
.pipeline-stage.active { color: var(--text); }
.pipeline-stage.active .icon { border-color: var(--accent); color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.pipeline-stage.done { color: var(--text); }
.pipeline-stage.done .icon { border-color: var(--green); color: var(--green); background: rgba(0, 255, 156, .1); }
.pipeline-stage.fail .icon { border-color: var(--red); color: var(--red); }
.pipeline-stage .meta { margin-left: auto; font-size: 11px; color: var(--mute); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.92); } }

/* =========================================================================
   Account page
   ========================================================================= */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.account-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.account-card h3 { margin: 0 0 6px; font-size: 16px; }
.account-card p.muted { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.account-card .data-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.account-card .data-row:last-child { border-bottom: 0; }
.account-card .data-row .key { color: var(--mute); font-family: var(--mono); font-size: 12px; }
.account-card .data-row .val { font-family: var(--mono); font-size: 13px; color: var(--text); }
