/* OptionGap — Fyers Auth tab styles */

.fy-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 8px 16px;
  max-width: 920px;
}

.fy-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.fy-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--bd-1);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  align-self: flex-start;
}
.fy-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.fy-h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg-0);
}
.fy-lede {
  margin: 0;
  color: var(--fg-1);
  line-height: 1.65;
  max-width: 720px;
}
.fy-lede code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ── Card ─────────────────────────────────────────────────────────── */

.fy-card {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bd-1);
  background: var(--bg-1);
  box-shadow: var(--shadow-1);
}
.fy-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
  letter-spacing: -0.005em;
}
.fy-card p {
  margin: 0 0 12px;
  color: var(--fg-1);
  line-height: 1.65;
}
.fy-card p:last-child { margin-bottom: 0; }

/* ── Status pill ─────────────────────────────────────────────────── */

.fy-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.fy-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.fy-status-valid {
  color: var(--pos);
  background: var(--pos-soft);
  border: 1px solid var(--pos-bd);
}
.fy-status-stale {
  color: var(--under);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
}
.fy-status-missing {
  color: var(--neg);
  background: var(--neg-soft);
  border: 1px solid var(--neg-bd);
}

.fy-meta {
  display: grid;
  gap: 6px;
  margin: 14px 0 4px;
  color: var(--fg-2);
  font-size: 13px;
}
.fy-mono {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
  color: var(--fg-1);
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  padding: 3px 8px;
  border-radius: 6px;
  word-break: break-all;
}

/* ── Steps ────────────────────────────────────────────────────────── */

.fy-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}
.fy-step:last-child { margin-bottom: 0; }
.fy-step-idx {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-bd);
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 2px;
}
.fy-step-body { color: var(--fg-1); line-height: 1.65; }
.fy-step-body strong {
  display: block;
  color: var(--fg-0);
  margin-bottom: 6px;
  font-weight: 600;
}
.fy-hint {
  margin-top: 12px;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.6;
}

/* ── Actions / buttons ───────────────────────────────────────────── */

.fy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fy-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .15s ease, background .15s ease, transform .15s ease;
}
.fy-btn:hover { filter: brightness(1.08); }
.fy-btn:active { transform: translateY(1px); }
.fy-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }

.fy-btn-primary {
  color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px hsl(var(--accent-h) 80% 50% / 0.32);
}
.fy-btn-secondary {
  background: var(--bg-2);
  color: var(--fg-0);
  border: 1px solid var(--bd-2);
}
.fy-btn-secondary:hover { background: var(--bg-3); }

.fy-btn-danger {
  background: rgba(248, 113, 113, 0.10);
  color: var(--neg);
  border: 1px solid var(--neg-bd);
}
.fy-btn-danger:hover { background: rgba(248, 113, 113, 0.18); }

/* ── Textarea ────────────────────────────────────────────────────── */

.fy-textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--bd-2);
  background: var(--bg-2);
  color: var(--fg-0);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  margin-top: 12px;
  transition: border-color .15s ease;
}
.fy-textarea:focus { border-color: var(--accent-bd); }
.fy-textarea::placeholder { color: var(--fg-3); }

/* ── Alerts ───────────────────────────────────────────────────────── */

.fy-alert {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.fy-alert-ok {
  color: var(--pos);
  background: var(--pos-soft);
  border: 1px solid var(--pos-bd);
}
.fy-alert-err {
  color: var(--neg);
  background: var(--neg-soft);
  border: 1px solid var(--neg-bd);
}
.fy-alert-info {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.30);
}

/* ── Loading / skeleton ──────────────────────────────────────────── */

.fy-loading {
  padding: 32px;
  text-align: center;
  color: var(--fg-2);
  font-size: 13px;
}

.fy-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-bd);
}
.fy-link:hover { filter: brightness(1.15); }

@media (max-width: 720px) {
  .fy-h1 { font-size: 28px; }
  .fy-card { padding: 18px; }
  .fy-step { grid-template-columns: 26px 1fr; gap: 12px; }
}
