/* ------------------------------------------------------------------
   clone-overrides.css
   Local additions for the static FYERS mirror. Loaded after the
   exported stylesheets so it only adds the clone-specific surfaces:
   1. quick-access band
   2. read-only notice for account-opening + auth
   3. qualification lookup page
   4. toast used when a functional action is intentionally disabled
   ------------------------------------------------------------------ */

:root {
  --qc-bg: #050506;
  --qc-panel: #0d0d10;
  --qc-panel-2: #121216;
  --qc-line: #232329;
  --qc-line-soft: #1a1a1f;
  --qc-ink: #f0f0fa;
  --qc-muted: #a3a3a8;
  --qc-accent: #182bff;
  --qc-accent-soft: #4455ff;
  --qc-warn: #f5ff0a;
  --qc-ok: #65bd82;
}

/* ---------- 1. quick-access band ---------- */

.qc-band {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, #0a0a0a 0%, #050506 100%);
  border-bottom: 1px solid var(--qc-line-soft);
  padding: 18px 0 22px;
}

@media (min-width: 1229px) {
  .qc-band {
    padding: 22px 0 26px;
  }
}

.qc-band__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.qc-band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.qc-band__title {
  margin: 0;
  color: var(--qc-ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qc-band__hint {
  color: #6f6f78;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.qc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .qc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .qc-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.qc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 14px 14px 13px;
  border: 1px solid var(--qc-line);
  background: var(--qc-panel);
  color: var(--qc-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.qc-card:hover,
.qc-card:focus-visible {
  border-color: var(--qc-accent-soft);
  background: #16161c;
  transform: translateY(-2px);
  outline: none;
}

.qc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #8fa8ff;
}

.qc-card__icon svg {
  width: 22px;
  height: 22px;
}

.qc-card__label {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.16px;
}

.qc-card__desc {
  color: var(--qc-muted);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 15px;
}

.qc-card--primary {
  border-color: #2b3cff;
  background: linear-gradient(160deg, #10143a 0%, #0b0b13 100%);
}

.qc-card--primary .qc-card__label {
  color: #ffffff;
}

.qc-card--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(68, 85, 255, 0.45);
  pointer-events: none;
}

/* ---------- 2. shell page (open-account / qualifications) ---------- */

.qc-page {
  background: #000;
  color: var(--qc-ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  padding: 40px 0 72px;
}

.qc-page__inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.qc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid #2b2b33;
  background: #0e0e12;
  color: #b9b9c2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qc-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qc-warn);
}

.qc-h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -0.8px;
}

@media (min-width: 768px) {
  .qc-h1 {
    font-size: 46px;
    line-height: 54px;
  }
}

.qc-h1 em {
  font-style: normal;
  color: var(--qc-warn);
}

.qc-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--qc-muted);
  font-size: 15px;
  line-height: 24px;
}

.qc-h2 {
  margin: 34px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.3px;
}

.qc-panel {
  border: 1px solid var(--qc-line);
  background: var(--qc-panel);
  padding: 20px;
}

@media (min-width: 768px) {
  .qc-panel {
    padding: 26px 28px;
  }
}

.qc-panel--accent {
  border-color: #26309a;
  background: linear-gradient(150deg, #0e1230 0%, #0a0a10 60%);
}

.qc-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .qc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.qc-steps li {
  padding: 14px 14px 15px;
  border: 1px solid var(--qc-line-soft);
  background: #0b0b0f;
  color: #d7d7de;
  font-size: 13px;
  line-height: 19px;
}

.qc-steps b {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 13px;
}

.qc-steps span.qc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #1b1d4d;
  color: #b7c4ff;
  font-size: 12px;
  font-weight: 700;
}

.qc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.qc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: var(--qc-accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.qc-btn:hover {
  filter: brightness(1.12);
}

.qc-btn--ghost {
  background: transparent;
  border-color: #35353d;
  color: var(--qc-ink);
}

.qc-btn--ghost:hover {
  border-color: var(--qc-accent-soft);
  background: #101018;
  filter: none;
}

.qc-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 720px) {
  .qc-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.qc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qc-field label {
  color: #8f8f99;
  font-size: 12px;
  font-weight: 500;
}

.qc-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #2a2a31;
  background: #0a0a0e;
  color: var(--qc-ink);
  font-family: inherit;
  font-size: 14px;
}

.qc-field input:focus {
  border-color: var(--qc-accent-soft);
  outline: none;
}

.qc-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--qc-warn);
  background: #101009;
  color: #cfcfae;
  font-size: 12.5px;
  line-height: 19px;
}

.qc-kv {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--qc-line-soft);
}

@media (min-width: 720px) {
  .qc-kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

.qc-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--qc-line-soft);
  font-size: 13px;
}

.qc-kv dt {
  color: #85858f;
}

.qc-kv dd {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. qualification lookup ---------- */

.qc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.qc-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #2a2a31;
  background: #0a0a0e;
}

.qc-search svg {
  flex: none;
  color: #6f6f78;
}

.qc-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--qc-ink);
  font-family: inherit;
  font-size: 14px;
}

.qc-search input:focus {
  outline: none;
}

.qc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.qc-chip {
  padding: 7px 12px;
  border: 1px solid #2a2a31;
  background: #0b0b0f;
  color: #b6b6c0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.qc-chip[aria-pressed='true'] {
  border-color: var(--qc-accent-soft);
  background: #141a4a;
  color: #dfe4ff;
}

.qc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--qc-line);
  background: var(--qc-panel);
}

.qc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.qc-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--qc-line);
  background: #0a0a0f;
  color: #8a8a94;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.qc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--qc-line-soft);
  color: #dcdce3;
  vertical-align: top;
}

.qc-table tbody tr:hover td {
  background: #111117;
}

.qc-table td.qc-mono {
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.qc-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #2c2c34;
  color: #b9b9c2;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.qc-tag--active {
  border-color: #20452f;
  background: #0c1a12;
  color: var(--qc-ok);
}

.qc-empty {
  padding: 22px 14px;
  color: #85858f;
  font-size: 13px;
  text-align: center;
}

.qc-check {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--qc-line);
  background: #0a0a0e;
  color: #9d9da7;
  font-size: 12.5px;
  line-height: 20px;
}

.qc-check strong {
  color: #e6e6ee;
}

.qc-source {
  margin: 12px 0 0;
  color: #6f6f78;
  font-size: 11.5px;
}

.qc-source a {
  color: #8fa8ff;
  text-decoration: none;
}

.qc-source a:hover {
  text-decoration: underline;
}

/* ---------- 4. toast ---------- */

.qc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border: 1px solid #2f2f38;
  background: #101015;
  color: var(--qc-ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qc-toast b {
  color: var(--qc-warn);
}

@media (prefers-reduced-motion: reduce) {
  .qc-card,
  .qc-toast {
    transition: none;
  }
}


/* ---------- 5. fidelity mode (?qc=off) ----------
   Hides every clone-only surface so the mirror can be compared 1:1 with
   the source page. Nothing else about the page changes. */

.qc-fidelity .qc-band,
.qc-fidelity #open-account,
.qc-fidelity .qc-toast {
  display: none !important;
}

/* ---------- 6. clone-only usability fix ----------
   The source hamburger list is taller than a phone viewport and cannot
   scroll, so most entries are unreachable. Only the container gains
   scrolling; its rendered content and styling are unchanged. */

@media (max-width: 1228px) {
  html:not(.qc-fidelity) body .static-mobile-menu {
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- 7. compact CTA form + policy link grid ---------- */

@media (min-width: 720px) {
  html body .qc-form--compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

html body .qc-grid--links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

html body .qc-grid--links .qc-card {
  min-height: 0;
  padding: 12px 14px;
}

@media (min-width: 720px) {
  html body .qc-grid--links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  html body .qc-grid--links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
