/* GOAT | NFX dark mode. Light theme remains unchanged until the user opts in. */
:root {
  --nfx-theme-green: #39ff14;
  --nfx-theme-gold: #d4af37;
  --nfx-theme-black: #050807;
  --nfx-theme-white: #f5faf6;
}

.nfx-theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 40px;
  padding: .57rem .9rem;
  border: 1px solid rgba(24, 83, 47, .20);
  border-radius: 100px;
  background: rgba(255, 255, 255, .74);
  color: #133121;
  font: 650 .83rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s, box-shadow .22s, transform .22s;
}
.nfx-theme-toggle:hover { transform: translateY(-1px); border-color: #169640; }
.nfx-theme-toggle:focus-visible { outline: 3px solid #169640; outline-offset: 3px; }
.nfx-theme-toggle__icon { display: inline-flex; align-items: center; justify-content: center; }
.nfx-theme-toggle__icon svg { width: 17px; height: 17px; }
.nfx-theme-toggle--floating { position: fixed; z-index: 9999; right: 18px; bottom: 18px; box-shadow: 0 8px 24px #0002; }

/* Palette aliases are provided for integration with an existing token-based site. */
html[data-nfx-theme="dark"] {
  color-scheme: dark;
  --nfx-bg: #050807;
  --nfx-bg-alt: #0a110c;
  --nfx-surface: #101a12;
  --nfx-surface-hover: #16231a;
  --nfx-border: #273a2b;
  --nfx-text: #f5faf6;
  --nfx-muted: #a4b3a7;
  --nfx-green: #39ff14;
  --nfx-gold: #d4af37;
  --nfx-glow: 0 0 28px rgba(57, 255, 20, .14);
}

html[data-nfx-theme="dark"] body {
  background: var(--nfx-bg) !important;
  color: var(--nfx-text);
}
html[data-nfx-theme="dark"] :is(main, .site-shell, .page-shell) {
  color: var(--nfx-text);
}
html[data-nfx-theme="dark"] :is(header, .site-header, .nav-wrap, footer, .site-footer) {
  background-color: var(--nfx-bg-alt);
  color: var(--nfx-text);
  border-color: var(--nfx-border);
}
html[data-nfx-theme="dark"] :is(h1, h2, h3, h4, h5, h6) { color: var(--nfx-text); }
html[data-nfx-theme="dark"] :is(p, small, .description, .subtitle, .muted) { color: var(--nfx-muted); }
html[data-nfx-theme="dark"] :is(.card, .feature-card, .product-card, .service-card, .panel, [data-nfx-surface]) {
  background-color: var(--nfx-surface);
  color: var(--nfx-text);
  border-color: var(--nfx-border);
}
html[data-nfx-theme="dark"] :is(.card, .feature-card, .product-card, .service-card, [data-nfx-surface]):hover {
  border-color: rgba(57, 255, 20, .42);
  box-shadow: var(--nfx-glow);
}
html[data-nfx-theme="dark"] :is(a, .nav-link) { color: inherit; }
html[data-nfx-theme="dark"] a:hover { color: var(--nfx-green); }
html[data-nfx-theme="dark"] :is(.accent, .highlight, .metric-positive, [data-nfx-accent="green"]) { color: var(--nfx-green); }
html[data-nfx-theme="dark"] :is(.eyebrow, .premium, .premium-label, [data-nfx-accent="gold"]) { color: var(--nfx-gold); }
html[data-nfx-theme="dark"] :is(input, select, textarea) {
  background: #101a12;
  border-color: #36503c;
  color: var(--nfx-text);
}
html[data-nfx-theme="dark"] :is(input, textarea)::placeholder { color: #94a798; }
html[data-nfx-theme="dark"] :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--nfx-green);
  outline-offset: 2px;
}
html[data-nfx-theme="dark"] :is(.primary-button, .btn-primary, [data-nfx-primary]) {
  background: var(--nfx-green);
  border-color: var(--nfx-green);
  color: #061007;
  box-shadow: 0 0 25px rgba(57,255,20,.16);
}
html[data-nfx-theme="dark"] .nfx-theme-toggle {
  background: #142219;
  border-color: #335943;
  color: var(--nfx-text);
}
html[data-nfx-theme="dark"] .nfx-theme-toggle:hover {
  border-color: var(--nfx-green);
  box-shadow: 0 0 22px rgba(57,255,20,.18);
}
html[data-nfx-theme="dark"] .nfx-theme-toggle:focus-visible { outline-color: var(--nfx-green); }

/* Smooth, restrained changes, no animation for users requesting reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  body, header, nav, footer, .card, .feature-card, .product-card, .service-card {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nfx-theme-toggle { transition: none; }
  .nfx-theme-toggle:hover { transform: none; }
}
@media (max-width: 680px) {
  .nfx-theme-toggle { min-height: 40px; padding: .55rem .68rem; }
  .nfx-theme-toggle__label { display: none; }
  .nfx-theme-toggle--floating .nfx-theme-toggle__label { display: inline; }
}

/* Production GOAT website integration. Keep existing light palette untouched. */
.nfx-theme-toggle--mobile { display: none; }
.nfx-theme-toggle--header { flex: 0 0 auto; }
@media (max-width: 1100px) {
  .nfx-theme-toggle--header { display: none; }
  .nfx-theme-toggle--mobile { display: inline-flex; }
}
html[data-nfx-theme="dark"] {
  --ink:#f5faf6;
  --muted:#b2c8b8;
  --gold:#d4af37;
  --line:#2a4733;
}
html[data-nfx-theme="dark"] body::before {opacity:.03;filter:brightness(.5)}
html[data-nfx-theme="dark"] .colour-site,
html[data-nfx-theme="dark"] body.colour-site {background-color:#050807!important}
html[data-nfx-theme="dark"] .site-header {background:#08110b!important;box-shadow:0 4px 25px #0006}
html[data-nfx-theme="dark"] .quick-nav {background:#09150d;border-color:#284431}
html[data-nfx-theme="dark"] .quick-nav a {color:#d4e9da}
html[data-nfx-theme="dark"] .menu nav {background:#0c170f;color:#f5faf6;border-color:#335741;box-shadow:0 16px 36px #0009}
html[data-nfx-theme="dark"] .menu-heading {color:#d4af37}
html[data-nfx-theme="dark"] .menu nav a {color:#f5faf6}
html[data-nfx-theme="dark"] .colour-site .home-hero::before,
html[data-nfx-theme="dark"] .colour-site .inner-hero::before {
  background:radial-gradient(ellipse at 18% 30%,#1b3b205c,transparent 65%),radial-gradient(ellipse at 85% 80%,#58421c26,transparent 65%)
}
html[data-nfx-theme="dark"] .colour-site .hero-copy h1 em,
html[data-nfx-theme="dark"] .colour-site .inner-hero h1 em,
html[data-nfx-theme="dark"] .colour-site .hni-heading h1 em {
  background:linear-gradient(110deg,#39ff14 15%,#bdff7c 45%,#d4af37 95%);
  background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent
}
html[data-nfx-theme="dark"] .colour-site .free-card {
  background:radial-gradient(ellipse at 20% 10%,#113d2145,transparent 70%),linear-gradient(130deg,#101b14,#0b130d 65%,#1b190f)!important;
  border-color:#31573d;box-shadow:inset 0 0 0 1px #34583e88,0 15px 40px #0005;color:#f5faf6
}
html[data-nfx-theme="dark"] .colour-site .free-benefits>div,
html[data-nfx-theme="dark"] .colour-site .free-benefits>div:nth-child(n) {
  background:linear-gradient(130deg,#101e15,#0b1610)!important;
  border-color:#294c34!important;
  box-shadow:0 7px 22px #0004;
}
html[data-nfx-theme="dark"] .colour-site .free-benefits>div:hover {border-color:#39ff14!important;box-shadow:0 0 22px #39ff1421}
html[data-nfx-theme="dark"] .colour-site .free-intro h2 em,
html[data-nfx-theme="dark"] .colour-site .free-benefits h3 {color:#39ff14}
html[data-nfx-theme="dark"] .colour-site .icon-orb {background:#14251a;border-color:#426748;color:#d4af37;box-shadow:0 0 15px #39ff141f}
html[data-nfx-theme="dark"] .colour-site .free-benefits>div:nth-child(n) .icon-orb {color:#d4af37;box-shadow:0 0 15px #39ff141f}
html[data-nfx-theme="dark"] .colour-site .free-action {border-color:#294c34}
html[data-nfx-theme="dark"] .colour-site .free-main-cta {background:#39ff14!important;color:#041008!important;border-color:#39ff14;box-shadow:0 0 25px #39ff1433}
html[data-nfx-theme="dark"] .colour-site .streams-panel,
html[data-nfx-theme="dark"] .colour-site .offer,
html[data-nfx-theme="dark"] .colour-site .offer-elite,
html[data-nfx-theme="dark"] .colour-site .offer-session,
html[data-nfx-theme="dark"] .colour-site .offer-private,
html[data-nfx-theme="dark"] .colour-site .circle-banner,
html[data-nfx-theme="dark"] .colour-site .policy-panel,
html[data-nfx-theme="dark"] .colour-site .quote-panel,
html[data-nfx-theme="dark"] .colour-site .soft-cta,
html[data-nfx-theme="dark"] .colour-site .hni-heading,
html[data-nfx-theme="dark"] .colour-site .approved-checkout,
html[data-nfx-theme="dark"] .colour-site .faq-section details,
html[data-nfx-theme="dark"] .colour-site .steps article,
html[data-nfx-theme="dark"] .colour-site .detail-grid>div,
html[data-nfx-theme="dark"] .colour-site .platform-card,
html[data-nfx-theme="dark"] .colour-site .class-experience,
html[data-nfx-theme="dark"] .colour-site .policy-panel article {
  background:linear-gradient(145deg,#111d15,#09130d)!important;
  border-color:#2b4734!important;
  color:#f5faf6!important;
  box-shadow:0 8px 26px #0004;
}
html[data-nfx-theme="dark"] .colour-site .offer-body h3,
html[data-nfx-theme="dark"] .colour-site .about-lead {color:#f5faf6}
html[data-nfx-theme="dark"] .colour-site .broker-button,
html[data-nfx-theme="dark"] .colour-site .broker-button:nth-child(n) {
  background:linear-gradient(130deg,#132419,#0c1810)!important;
  border-color:#31563b;
  box-shadow:0 7px 22px #0004;color:#f5faf6
}
html[data-nfx-theme="dark"] .colour-site .broker-button>span {color:#b2c8b8}
html[data-nfx-theme="dark"] .colour-site .art-x,
html[data-nfx-theme="dark"] .colour-site .art-session,
html[data-nfx-theme="dark"] .colour-site .signature-art,
html[data-nfx-theme="dark"] .colour-site .circle-art {
  background:radial-gradient(ellipse,#1a3120,#0a160e)!important;color:#d4af37;border-color:#32523a
}
html[data-nfx-theme="dark"] .colour-site .free-hero {
  background-image:linear-gradient(90deg,#08120df5,#08120dd0 50%,#08120d66 88%),url('../images/goat-sculpture.webp');
  border-color:#294431
}
html[data-nfx-theme="dark"] .colour-site .site-footer {background:#080f0a!important;border-color:#294431}
html[data-nfx-theme="dark"] .colour-site .legal {border-color:#294431}
html[data-nfx-theme="dark"] .colour-site .glass {
  background:linear-gradient(125deg,#12251a,#0a160e)!important;
  border-color:#a88c46;color:#f5faf6;
  box-shadow:inset 0 1px #39604944,0 6px 20px #0005
}
html[data-nfx-theme="dark"] .colour-site .glass:hover {
  border-color:#39ff14;box-shadow:0 0 22px #39ff142c;color:#39ff14
}
html[data-nfx-theme="dark"] .colour-site .status-pill,
html[data-nfx-theme="dark"] .colour-site .checkout-wallet {background:#14231a;border-color:#32543c;color:#f5faf6}
html[data-nfx-theme="dark"] .colour-site .micro,
html[data-nfx-theme="dark"] .colour-site .free-condition,
html[data-nfx-theme="dark"] .colour-site .risk {color:#adc1b0}
html[data-nfx-theme="dark"] .colour-site .hni-center-label,
html[data-nfx-theme="dark"] .colour-site .crypto-label {color:#d4af37}
html[data-nfx-theme="dark"] .colour-site .sniper-hero-note strong {color:#39ff14}
html[data-nfx-theme="dark"] .colour-site .founder-portrait img {border-color:#2d5037;box-shadow:0 12px 38px #0009,0 0 25px #39ff1417}
