/* ==========================================================================
   Prestige Capital Markets — approved front-end design (handoff bundle).

   Section 1 is the handoff stylesheet (source/next-react/globals.css) copied
   verbatim, minus the Tailwind import: matte black canvas, restrained warm
   gold, Georgia headlines, 1180px container, 980/680 breakpoints.

   Sections 2-4 are additions this codebase needs and the static handoff did
   not: header auth actions + a mobile menu, an interior-page kit built from
   the same tokens (live account / signal process / legal), and a theming pass
   that re-points the pre-existing signed-in UI (main.css + app.css + Bootstrap)
   at the new palette.

   Loaded AFTER main.css and app.css, so equal-specificity rules land here.
   ========================================================================== */

/* ==========================================================================
   1. Handoff design system
   ========================================================================== */

:root {
  --bg: #070706;
  --surface: #0f0e0b;
  --raised: #15130e;
  --gold: #d7b84a;
  --gold-light: #e6ca68;
  --gold-dark: #8e7429;
  --text: #f7f3e8;
  --muted: #b8b1a3;
  --line: rgba(215, 184, 74, 0.22);
  --soft-line: rgba(255, 255, 255, 0.08);
  --container: 1180px;

  /* Compatibility tokens: main.css / app.css components read these. Re-pointed
     at the new palette so signed-in pages inherit the design automatically. */
  --bg-elevated: rgba(7, 7, 6, 0.86);
  --bg-panel: rgba(255, 255, 255, 0.03);
  --gold-strong: var(--gold-light);
  --gold-soft: rgba(215, 184, 74, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 34px 90px rgba(0, 0, 0, 0.46);
  --shadow-gold: 0 12px 34px rgba(215, 184, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(48px, 6.2vw, 78px); line-height: 0.99; }
h1 em { color: var(--gold-light); font-weight: 500; }
h2 { margin-bottom: 20px; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; }
h3 { margin-bottom: 14px; font-size: 22px; line-height: 1.25; }
/* main.css puts h3/h4 in Newsreader; the handoff keeps sub-heads in the sans. */
h3, h4 { font-family: Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -0.01em; }

/* overflow-x:clip rather than the handoff's overflow:hidden — same clipping of
   the hero glow, but it does not become a scroll container, so position:sticky
   descendants (.value-copy here, .admin-nav on signed-in pages) still stick. */
.site-shell { min-height: 100vh; overflow-x: clip; background: radial-gradient(circle at 86% 8%, rgba(215,184,74,.11), transparent 24rem), var(--bg); }
/* padding-inline:0 defends against Bootstrap's .container gutter, which is
   loaded for the signed-in pages and would otherwise inset every section. */
.container { width: min(calc(100% - 40px), var(--container)); max-width: none; margin-inline: auto; padding-inline: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--soft-line); background: rgba(7,7,6,.84); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #0a0906; background: linear-gradient(145deg, var(--gold-light), #9c7b20); clip-path: polygon(50% 0,94% 15%,86% 72%,50% 100%,14% 72%,6% 15%); font: 800 18px/1 Georgia,serif; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font: 600 16px/1.15 Georgia,"Times New Roman",serif; letter-spacing: .01em; }
.brand-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: #d7d1c4; font-size: 14px; font-weight: 600; }
.desktop-nav a, .footer-links a { transition: color 180ms ease; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--gold-light); }
.header-inner > .button { justify-self: end; }

.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 750; line-height: 1; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 17px; }
.button-gold { color: #0a0906; border-color: var(--gold); background: linear-gradient(135deg, var(--gold-light), #b9942e); box-shadow: 0 12px 34px rgba(215,184,74,.12); }
.button-gold:hover { background: linear-gradient(135deg, #f1d777, #c5a139); }
.button-outline { color: var(--text); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.025); }
.button-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.button-dark { color: var(--text); border-color: #0b0a08; background: #0b0a08; }

.hero { position: relative; padding: 164px 0 96px; border-bottom: 1px solid var(--soft-line); }
.section-grid::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom,black,transparent 88%); }
/* main.css uses .hero-grid for a decorative overlay (absolute, opacity .18, grid
   lines). Here it is the hero's content grid, so those properties are reset. */
.hero-grid { position: relative; inset: auto; opacity: 1; background-image: none; mask-image: none; display: grid; grid-template-columns: minmax(0,1.16fr) minmax(360px,.84fr); align-items: center; gap: clamp(54px,8vw,108px); }
.hero-copy, .signal-wrap { animation: rise-in 520ms ease both; }
.signal-wrap { animation-delay: 90ms; }
.eyebrow, .card-eyebrow, .signal-label { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-family: inherit; }
.eyebrow > span { width: 22px; height: 1px; display: inline-block; opacity: 1; margin: 0 10px 3px 0; background: var(--gold); }
.hero-lead { max-width: 620px; margin-bottom: 30px; color: #d0c9bc; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.risk-line { max-width: 660px; margin: 22px 0 0; display: flex; align-items: flex-start; gap: 10px; color: #a9a296; font-size: 12px; line-height: 1.6; }
.risk-line > span { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; border: 1px solid var(--gold-dark); border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 800; }
.hero-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { padding: 7px 11px; border: 1px solid var(--soft-line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.signal-wrap { position: relative; }
.signal-glow { position: absolute; z-index: 0; inset: 8% -8% -8% 8%; border-radius: 50%; background: rgba(215,184,74,.09); filter: blur(54px); }
.signal-card { position: relative; z-index: 1; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.045),transparent 42%),#0e0d0a; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.signal-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.signal-card-top, .signal-direction { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.signal-label { margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.signal-card h2 { margin: 0; font-family: Inter,"Segoe UI",sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.status-dot { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); background: rgba(215,184,74,.06); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.signal-direction { margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--soft-line); }
.signal-direction span, .signal-details span, .signal-note span { color: var(--muted); font-size: 11px; font-weight: 650; }
.signal-direction strong { color: var(--gold-light); font-size: 13px; }
.signal-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.signal-details > div { min-height: 72px; padding: 14px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--soft-line); border-radius: 10px; background: rgba(255,255,255,.018); }
.signal-details strong { font-size: 13px; }
.signal-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.signal-note p { margin: 4px 0 0; color: #ccc5b8; font-size: 12px; line-height: 1.7; }

.trust-strip { border-bottom: 1px solid var(--soft-line); background: #0a0907; }
.trust-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding-inline: 24px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--soft-line); }
.trust-item:first-child { border-left: 1px solid var(--soft-line); }
.trust-item span { color: var(--gold-dark); font: 13px Georgia,serif; }
.trust-item strong { font-size: 13px; letter-spacing: .02em; }

.official-section { padding: 34px 0 0; }
.official-card { padding: 26px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border: 1px solid var(--soft-line); border-radius: 14px; background: var(--surface); }
.official-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); background: rgba(215,184,74,.07); font-weight: 800; }
.official-card .eyebrow { margin-bottom: 3px; font-size: 9px; }
.official-card h2 { margin: 0 0 3px; font-family: Inter,"Segoe UI",sans-serif; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.official-card p:not(.eyebrow) { max-width: 770px; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.text-link { width: fit-content; color: var(--gold-light); font-size: 13px; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding: 108px 0; }
.section-heading { max-width: 660px; margin-bottom: 48px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading > p:not(.eyebrow), .value-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
/* main.css sizes .section-heading h2/p at a higher specificity — restate. */
.section-heading h2 { margin-bottom: 20px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(36px,4.4vw,52px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.section-heading p { line-height: 1.7; }
.steps-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.step-card { padding: 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg,rgba(215,184,74,.035),transparent 72%); }
.step-number { margin-bottom: 46px; display: block; color: var(--gold); font: 15px Georgia,serif; }
.step-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.access-section { border-block: 1px solid var(--soft-line); background: #0a0907; }
.pricing-card { position: relative; min-height: 570px; padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--soft-line); border-radius: 16px; background: var(--surface); transition: transform 200ms ease,border-color 200ms ease; }
.pricing-card:hover { transform: translateY(-3px); border-color: var(--line); }
.pricing-card.featured { border-color: rgba(215,184,74,.58); background: linear-gradient(150deg,rgba(215,184,74,.08),transparent 38%),var(--raised); }
.featured-badge { position: absolute; top: 0; right: 24px; padding: 8px 12px; transform: translateY(-50%); border-radius: 999px; color: #090805; background: var(--gold-light); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.card-eyebrow { margin-bottom: 14px; font-size: 9px; }
.pricing-card h3 { font-size: 24px; }
.price-row { min-height: 70px; margin: 15px 0 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price-row strong { font: 500 34px/1 Georgia,"Times New Roman",serif; letter-spacing: -.04em; }
.price-row span { color: var(--muted); font-size: 11px; }
.card-description { min-height: 78px; color: var(--muted); font-size: 14px; }
.pricing-card ul, .value-card ul { margin: 7px 0 28px; padding: 0; display: grid; gap: 11px; list-style: none; }
.pricing-card li, .value-card li { position: relative; padding-left: 22px; color: #d2ccbf; font-size: 13px; }
.pricing-card li::before, .value-card li::before { content: ""; position: absolute; top: .72em; left: 0; width: 7px; height: 1px; background: var(--gold); }
.pricing-card .button { width: 100%; margin-top: auto; }
.card-disclosure { margin: 16px 0 0; color: #928b7e; font-size: 9.5px; line-height: 1.55; }

.value-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 86px; }
.value-copy { position: sticky; top: 126px; }
.value-copy .text-link { margin-top: 12px; display: inline-block; }
.value-cards { display: grid; gap: 16px; }
.value-card { padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; border: 1px solid var(--soft-line); border-radius: 14px; background: var(--surface); }
.value-index { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--gold-light); background: rgba(215,184,74,.05); font: 18px Georgia,serif; }
.value-card h3 { margin-top: 6px; }
.value-card ul { margin-bottom: 0; }

.faq-section { border-top: 1px solid var(--soft-line); background: #0a0907; }
.faq-layout { display: grid; grid-template-columns: .76fr 1.24fr; align-items: start; gap: 90px; }
.faq-layout .section-heading { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--soft-line); }
.faq-list details { border-bottom: 1px solid var(--soft-line); }
.faq-list summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 15px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold); font-size: 21px; font-weight: 400; transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 660px; margin: -6px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.final-section { padding: 42px 0 96px; background: #0a0907; }
.final-card { padding: clamp(38px,6vw,66px); display: flex; align-items: center; justify-content: space-between; gap: 50px; border-radius: 18px; color: #0a0906; background: radial-gradient(circle at 100% 0,rgba(255,255,255,.32),transparent 30%),linear-gradient(125deg,#b99129,#e5c75e 62%,#b78d21); }
.final-card .eyebrow { margin-bottom: 10px; color: #42330b; }
.final-card h2 { max-width: 650px; margin-bottom: 10px; }
.final-card p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: rgba(10,9,6,.76); font-size: 15px; }
.final-actions { display: grid; flex: 0 0 auto; gap: 13px; text-align: center; }
.final-secondary { color: #2f2408; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 58px 0 26px; border-top: 1px solid var(--soft-line); background: #060605; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.footer-risk { margin-top: 42px; padding-block: 22px; border-block: 1px solid var(--soft-line); }
.footer-risk p { max-width: 1050px; margin-bottom: 8px; color: #898276; font-size: 10px; line-height: 1.75; }
.footer-risk p:last-child { margin-bottom: 0; }
.footer-bottom { padding-top: 24px; color: #706a60; font-size: 10px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { padding-top: 140px; }
  .hero-grid, .value-grid, .faq-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 64px; }
  .signal-wrap { max-width: 620px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(3) { border-left: 1px solid var(--soft-line); }
  .trust-item { min-height: 76px; border-bottom: 1px solid var(--soft-line); }
  .official-card { grid-template-columns: auto 1fr; }
  .official-card .text-link { grid-column: 2; }
  .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 680px; margin-inline: auto; }
  .pricing-card, .card-description, .price-row { min-height: 0; }
  .value-copy { position: static; }
  .faq-layout { gap: 28px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px),var(--container)); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-mark { width: 32px; height: 36px; font-size: 15px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { display: none; }
  .header-inner .button { min-height: 40px; padding-inline: 13px; font-size: 12px; }
  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: clamp(45px,14vw,60px); }
  .hero-lead { font-size: 16px; line-height: 1.65; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .signal-card { padding: 22px; }
  .signal-card-top, .signal-direction { align-items: flex-start; }
  .signal-direction { flex-direction: column; gap: 5px; }
  .trust-item { padding-inline: 14px; }
  .trust-item strong { font-size: 11px; }
  .official-section { padding-top: 20px; }
  .official-card { padding: 22px; grid-template-columns: 1fr; }
  .official-card .text-link { grid-column: 1; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 36px; }
  h2 { font-size: clamp(34px,10vw,44px); }
  .step-card, .pricing-card, .value-card { padding: 25px; }
  .step-number { margin-bottom: 30px; }
  .value-card { grid-template-columns: 1fr; }
  .value-index { width: 38px; height: 38px; }
  .final-section { padding-bottom: 76px; }
  .final-card, .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .final-actions, .final-actions .button { width: 100%; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   2. Header additions — account actions + mobile menu

   The handoff header carries a single Telegram button. This site also has
   log in / sign up / dashboard / log out, and five nav links that the handoff
   hides below 980px, so the hidden links need somewhere to go on a phone.
   ========================================================================== */

.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  background: rgba(255,255,255,.025); color: var(--text); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.nav-toggle span { position: relative; width: 16px; height: 1px; background: currentColor; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor;
  transition: transform 180ms ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--soft-line); background: rgba(7,7,6,.97); }
.mobile-nav.is-open { display: block; }
.mobile-nav .container { padding-block: 14px 20px; display: grid; gap: 4px; }
.mobile-nav a.mobile-nav__link {
  padding: 13px 2px; border-bottom: 1px solid var(--soft-line);
  color: #d7d1c4; font-size: 15px; font-weight: 600;
}
.mobile-nav a.mobile-nav__link:hover { color: var(--gold-light); }
.mobile-nav__actions { margin-top: 16px; display: grid; gap: 10px; }
.mobile-nav__actions .button { width: 100%; }
.mobile-nav__actions form { margin: 0; }
.mobile-nav__actions form .button { width: 100%; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .header-actions .button-outline, .header-actions form { display: none; }
}
@media (max-width: 680px) {
  .header-actions { gap: 8px; }
  .nav-toggle { width: 40px; height: 40px; }
  /* Brand, CTA and toggle share a 358px bar — keep both labels on one line. */
  .brand-copy strong { font-size: 12.5px; white-space: nowrap; }
  .header-inner .button { padding-inline: 11px; white-space: nowrap; }
}
/* Phone widths have to fit brand + CTA + menu toggle, one more control than the
   handoff header carries, so the CTA drops to "Telegram" and the wordmark steps
   down rather than either of them being hidden. */
@media (max-width: 430px) {
  .header-actions .cta-long { display: none; }
}
@media (max-width: 380px) {
  .brand-copy strong { font-size: 11.5px; }
}
/* Narrowest phones: the CTA lives in the menu so the toggle always fits. */
@media (max-width: 344px) {
  .header-actions .button-gold { display: none; }
}

/* Header gets a shadow once the page scrolls (main.js toggles .is-scrolled).
   Restated here to outrank the old .site-header.is-scrolled rules in main.css. */
.site-header.is-scrolled { padding: 0; background: rgba(7,7,6,.94); box-shadow: 0 14px 34px rgba(0,0,0,.42); }
.site-header::after { display: none; }

/* Anchored sections must clear the fixed header when jumped to. */
section[id] { scroll-margin-top: 92px; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 60; padding: 10px 16px;
  border-radius: 8px; color: #0a0906; background: var(--gold-light);
  font-size: 13px; font-weight: 750; transition: top 160ms ease;
}
.skip-link:focus { top: 14px; }

/* ==========================================================================
   3. Interior-page kit — live account, signal process, legal, error pages

   Same tokens and rhythm as the landing page; these pages sit under the fixed
   header instead of behind a full hero, hence .page-offset.
   ========================================================================== */

.page-offset { padding-top: 76px; }
@media (max-width: 680px) { .page-offset { padding-top: 68px; } }

.page-hero { position: relative; padding: 72px 0 60px; border-bottom: 1px solid var(--soft-line); }
.page-hero h1 { margin-bottom: 20px; font-size: clamp(40px,5.2vw,62px); }
.page-hero__lead { max-width: 660px; margin-bottom: 28px; color: #d0c9bc; font-size: 17px; line-height: 1.75; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); align-items: center; gap: clamp(40px,6vw,80px); }

.panel { padding: 30px; border: 1px solid var(--soft-line); border-radius: 16px; background: var(--surface); }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 19px; }
.panel > p:last-child { margin-bottom: 0; }
.panel--gold { border-color: var(--line); background: linear-gradient(150deg,rgba(215,184,74,.07),transparent 40%),var(--raised); }
.panel__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.panel__meta { color: var(--muted); font-size: 11px; }

.detail-list { display: grid; }
.detail-row { padding: 16px 0; display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: baseline; gap: 8px 24px; border-top: 1px solid var(--soft-line); }
.detail-row:first-child { border-top: 0; padding-top: 0; }
.detail-row:last-child { padding-bottom: 0; }
.detail-row__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.detail-row__value { color: var(--text); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.detail-row__note { grid-column: 2; color: #8f8879; font-size: 11.5px; line-height: 1.6; }

.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.metric-tile { padding: 18px; display: grid; align-content: start; gap: 4px; border: 1px solid var(--soft-line); border-radius: 12px; background: rgba(255,255,255,.018); }
.metric-tile__label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.metric-tile__value { font: 500 26px/1 Georgia,"Times New Roman",serif; letter-spacing: -.03em; }
.metric-tile__detail { color: #8f8879; font-size: 11.5px; line-height: 1.6; }

.note-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
.note-card { padding: 24px; border: 1px solid var(--soft-line); border-radius: 14px; background: var(--surface); }
.note-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.disclosure { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(215,184,74,.05); color: #cdc6b8; font-size: 12.5px; line-height: 1.7; }
.disclosure strong { color: var(--gold-light); }

.spec-list { display: grid; }
.spec-row { padding: 13px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--soft-line); }
.spec-row:first-child { border-top: 0; padding-top: 0; }
.spec-row__label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spec-row__value { color: var(--text); font-size: 13px; font-weight: 650; text-align: right; }

.example-post { border: 1px solid var(--soft-line); border-radius: 14px; overflow: hidden; background: #0b0a08; }
.example-post__head { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--soft-line); background: rgba(215,184,74,.05); }
.example-post__head strong { color: var(--gold-light); font-size: 14px; letter-spacing: .02em; }
.example-post__body { padding: 18px; color: #d2ccbf; font-family: ui-monospace,"SF Mono",Menlo,Consolas,monospace; font-size: 13px; line-height: 1.9; }
.example-post__foot { padding: 14px 18px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.tag { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); background: rgba(215,184,74,.06); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.prose h2 { margin-bottom: 14px; font-size: clamp(24px,2.6vw,30px); }
.prose p { margin-bottom: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }

.split-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: start; gap: clamp(32px,5vw,64px); }
.stack-16 { display: grid; gap: 16px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-row--spaced { margin-top: 28px; }
.panel__lead { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.panel__eyebrow { margin-bottom: 0; }
.spec-list + .spec-list { margin-top: 6px; }
.panel__lead + .spec-list, .panel h3 + .spec-list { margin-top: 22px; }
.narrow { width: min(calc(100% - 40px), 820px); }

@media (max-width: 980px) {
  .page-hero__grid, .split-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 48px; }
}
@media (max-width: 680px) {
  .panel { padding: 24px; }
  .detail-row { grid-template-columns: 1fr; }
  .detail-row__note { grid-column: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .actions-row .button { width: 100%; }
}

/* Four how-it-works cards still read as one row on desktop. */
@media (min-width: 981px) { .steps-grid--four { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* ==========================================================================
   4. Signed-in / legacy component theming

   The member, partner and admin areas keep their existing markup (main.css +
   app.css + Bootstrap). These rules re-point them at the handoff palette and
   neutralise the parts of the old marketing CSS whose markup is now gone.
   ========================================================================== */

/* main.css sets `a:hover { color: var(--gold-strong) }`. That selector (0-1-1)
   outranks .button-gold / .button-dark / .skip-link (0-1-0), so hovering a gold
   button repainted its dark label pale gold — invisible on gold. Restate the
   label colours at a specificity the global link hover cannot beat. */
.button-gold:hover, .button-gold:focus-visible { color: #0a0906; }
.button-dark:hover, .button-dark:focus-visible { color: var(--text); }
.final-secondary:hover, .final-secondary:focus-visible { color: #2f2408; }
.featured-badge:hover { color: #090805; }
.skip-link:hover, .skip-link:focus, .skip-link:focus-visible { color: #0a0906; }
/* The wordmark is a link; the design gives it no hover colour change. */
.brand:hover, .brand:focus-visible { color: inherit; }

/* Old footer list bullets and hover underline are not part of this design. */
.footer-links li::before { content: none; }
.footer-links li { padding: 0; margin: 0; }

/* Signed-in shell */
.app-main { padding: 48px 0 76px; }
.app-wrap { width: min(var(--container), calc(100% - 40px)); }
.account-bar { padding-bottom: 18px; border-bottom: 1px solid var(--soft-line); }
.account-bar .who { font-size: .9rem; }
.page-head h1 { font-family: Georgia,"Times New Roman",serif; font-weight: 500; letter-spacing: -.03em; }
.page-kicker, .kpi .kpi-label, .metric-card__label, .live-table__label,
.signal-format-row__label, .package-route, .tier-card__positioning {
  font-family: inherit; color: var(--gold); letter-spacing: .14em; font-weight: 800;
}

/* Cards: flat surface + soft hairline, matching .panel / .pricing-card. */
.glass-card, .metric-card, .feature-card, .process-card, .tier-card,
.package-card, .journey-item, .dashboard-card, .role-card, .field-chip,
.micro-stat, .kpi, .info-panel, .signal-card.sig, .vip-step {
  border: 1px solid var(--soft-line);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: none;
}
.dashboard-card:hover, .role-card:hover, .field-chip:hover,
.metric-card:hover, .feature-card:hover, .process-card:hover {
  border-color: var(--line);
  box-shadow: none;
}
.admin-nav { border: 1px solid var(--soft-line); background: var(--surface); border-radius: 14px; }
.admin-nav a.active { background: rgba(215,184,74,.1); border-left-color: var(--gold); }

/* Bootstrap + main.css buttons re-cut to the handoff button. */
.btn { border-radius: 10px; font-weight: 700; letter-spacing: 0; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #0a0906; border-color: var(--gold); background: linear-gradient(135deg,var(--gold-light),#b9942e); box-shadow: 0 12px 34px rgba(215,184,74,.12); }
.btn-gold:hover, .btn-gold:focus-visible { color: #0a0906; background: linear-gradient(135deg,#f1d777,#c5a139); }
.btn-outline-light, .btn-ghost { color: var(--text); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.025); }
.btn-outline-light:hover, .btn-ghost:hover, .btn-outline-light:focus-visible, .btn-ghost:focus-visible {
  color: var(--gold-light); border-color: var(--gold); background: rgba(255,255,255,.04);
}

/* Forms and tables keep neutral hairlines — a gold rule per row is too loud. */
.form-row input, .form-row select, .form-row textarea { border-color: var(--soft-line); background: rgba(0,0,0,.35); border-radius: 10px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--gold); box-shadow: inset 0 1px 2px rgba(0,0,0,.28), 0 0 0 3px rgba(215,184,74,.16);
}
.form-row input[type="checkbox"] { border-color: rgba(255,255,255,.24); }
.form-row input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.data-table th, .data-table td { border-bottom-color: var(--soft-line); }
.data-table th { color: var(--muted); letter-spacing: .1em; }
.pill { border-color: var(--soft-line); }
.settings-group__head { border-bottom-color: var(--soft-line); }
.settings-group h2 { font-family: inherit; }
.vip-step { background: rgba(255,255,255,.018); }
.info-row { border-bottom-color: var(--soft-line); }
select option, .form-row select option { background-color: #15130e; color: var(--text); }

/* Auth cards (log in / create account). The 440px box read as a small dialog on
   a wide dark page — widen it and scale the type, fields and button with it.
   Bootstrap's .p-lg-5 padding carries !important, so the breathing room comes
   from the card width and field sizing rather than from overriding it. */
.auth-wrap { width: 100%; max-width: 520px; border-radius: 18px; padding: 46px 44px !important; }
.auth-wrap .page-kicker { font-size: .78rem; letter-spacing: .16em; }
.auth-wrap h1 { margin-bottom: 24px; font-size: clamp(27px, 3vw, 33px); line-height: 1.1; }
/* One field per line at every width — no two-across pairing. */
.auth-wrap .form-grid { grid-template-columns: 1fr; gap: 18px; }
.auth-wrap .form-row label { font-size: .88rem; }
.auth-wrap .form-row input:not([type="checkbox"]) { width: 100%; padding: 15px 16px; font-size: .97rem; border-radius: 11px; }
.auth-wrap .btn { min-height: 46px; padding-block: 0; margin-top: 4px; font-size: .95rem; }
.auth-wrap .flash { font-size: .95rem; }
.auth-wrap > p { margin-top: 20px !important; font-size: .95rem; }
@media (max-width: 600px) {
  .auth-wrap { max-width: 100%; padding: 30px 24px !important; }
  .auth-wrap .form-row input:not([type="checkbox"]) { padding: 13px 15px; }
}

/* The member dashboard reuses the public access cards. It is a denser page than
   the landing page, so the marketing min-heights are dropped there. */
.member-pricing-grid .pricing-card,
.member-pricing-grid .card-description,
.member-pricing-grid .price-row { min-height: 0; }
.card-status { margin: auto 0 0; padding-top: 8px; color: var(--muted); font-size: 13px; }

/* Admin/member tables: from 992px up there is room for every column, so the
   .table-scroll box (app.css) stops scrolling and cells wrap instead. The
   scroll behaviour is kept below that width, where columns genuinely cannot
   fit. Long values — emails, Telegram handles, MT5 ids — break rather than
   forcing a wider track. */
/* Signed-in pages carry tables, so on wide screens they run wider than the
   1180px marketing container: the table card gets the extra room and the side
   panel moves right with it, instead of the table wrapping or scrolling. */
@media (min-width: 1200px) { .app-wrap { width: min(1440px, calc(100% - 44px)); } }
@media (min-width: 1600px) { .app-wrap { width: min(1560px, calc(100% - 64px)); } }

/* Stacked under the table (below 1400px), the add-customer form would stretch
   the full card width; keep the fields at a readable measure. */
@media (max-width: 1399.98px) {
  .add-customer-card .form-grid, .add-customer-card > p { max-width: 620px; }
}

@media (min-width: 992px) {
  .table-scroll .data-table { min-width: 0; width: 100%; }
  .data-table { font-size: .84rem; }
  .data-table th, .data-table td { padding: 11px 9px; }
  .data-table th { white-space: nowrap; }
  .data-table td { overflow-wrap: break-word; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 0; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 0; }
  .data-table .pill { white-space: nowrap; }
}

/* Flash + status colours on the darker canvas. */
.flash { border-radius: 12px; }
.badge-gold-soft { color: var(--gold-light); border-color: var(--line); background: rgba(215,184,74,.08); }
.status-pill { border-color: var(--line); background: rgba(215,184,74,.06); color: var(--gold-light); }
