/* ==========================================================================
   MaxTrader — Design System
   Palette:  #0A0E13 bg / #0F151C surface / #161E27 surface-raised
             #00D9A3 bull (green)  #FF5C5C bear (red)  #FFB020 signal (amber)
             #E7ECF2 text-hi  #8B96A3 text-lo  #232C36 border
   Type:     Space Grotesk (display) / Inter (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  --bg: #0a0e13;
  --surface: #0f151c;
  --surface-raised: #161e27;
  --border: #232c36;
  --border-soft: #1a222c;

  --bull: #00d9a3;
  --bull-dim: #0a4d3d;
  --bear: #ff5c5c;
  --bear-dim: #4d1f1f;
  --signal: #ffb020;

  --text-hi: #e7ecf2;
  --text-lo: #8b96a3;
  --text-faint: #56606b;

  --navbar-bg: rgba(10, 14, 19, 0.85);
  --link-hover: #33e5b8;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); 
  
  --gradient-start: gold;
  --gradient-end: black;
  --gradient-shadow: rgba(0, 0, 0, 0.6); /* shadow for dark mode */
}

/* ==========================================================================
   Light theme
   Toggled by setting data-bs-theme="light" on <html> (see the theme
   toggle button in nav.php + main.js). Every component below already
   reads from these custom properties, so overriding them here is
   enough to re-skin the whole site — no component rules need to
   duplicate light/dark variants themselves.
   ========================================================================== */
[data-bs-theme="light"] {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-raised: #eef1f4;
  --border: #d7dee3;
  --border-soft: #e7ebee;

  --bull: #00966f;
  --bull-dim: #d7f3ea;
  --bear: #dc2626;
  --bear-dim: #fbe2e2;
  --signal: #c2650a;

  --text-hi: #10151b;
  --text-lo: #52606b;
  --text-faint: #8993a0;

  --navbar-bg: rgba(255, 255, 255, 0.85);
  --link-hover: #00795a; 
  
  
  --gradient-end: #10151b;
  --gradient-shadow: rgba(255, 255, 255, 0.4); /* lighter shadow for light mode */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-hi);
  font-weight: 600;
}

.font-mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.text-lo { color: var(--text-lo) !important; }
.text-bull { color: var(--bull) !important; }
.text-bear { color: var(--bear) !important; }
.text-signal { color: var(--signal) !important; }
.bg-surface { background: var(--surface) !important; }

a { color: var(--bull); text-decoration: none; }
a:hover { color: var(--link-hover); }

::selection { background: var(--bull); color: #04120d; }

/* Focus visibility — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--bull);
  outline-offset: 2px;
}

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

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-candles {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}
.preloader-candles span {
  width: 6px;
  border-radius: 2px;
  background: var(--bull);
  animation: candle-bounce 1s var(--ease) infinite;
}
.preloader-candles span:nth-child(1) { height: 14px; animation-delay: -0.4s; background: var(--bear); }
.preloader-candles span:nth-child(2) { height: 28px; animation-delay: -0.3s; }
.preloader-candles span:nth-child(3) { height: 40px; animation-delay: -0.2s; }
.preloader-candles span:nth-child(4) { height: 22px; animation-delay: -0.1s; background: var(--bear); }
.preloader-candles span:nth-child(5) { height: 32px; animation-delay: 0s; }
@keyframes candle-bounce {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.preloader-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-lo);
  text-transform: uppercase;
}

/* ---------- Navbar ---------- */
.mt-navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
} 
/*
.mt-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-hi);
  letter-spacing: -0.02em;
} */


.mt-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: transparent; 
  position: relative; /* needed for ::before */
  z-index: 1;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block; /* so padding works */

  /* Text gradient */
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

.mt-navbar .navbar-brand .brand-dot { color: var(--bull); }
.mt-navbar .nav-link {
  color: var(--text-lo);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s var(--ease);
}
.mt-navbar .nav-link:hover,
.mt-navbar .nav-link.active {
  color: var(--text-hi);
}
.mt-navbar .navbar-toggler {
  border-color: var(--border);
  padding: 0.4rem 0.6rem;
}
.mt-navbar .navbar-toggler:focus { box-shadow: 0 0 0 2px var(--bull); }
.ticker-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.4rem 0;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-lo);
}
.ticker-item .pair { color: var(--text-hi); font-weight: 600; margin-right: 0.4rem; }

/* ---------- Buttons ---------- */
.btn-bull {
  background: var(--bull);
  border: 1px solid var(--bull);
  color: #04120d;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-bull:hover {
  background: #33e5b8;
  color: #04120d;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(0, 217, 163, 0.5);
}
.btn-outline-line {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-outline-line:hover {
  border-color: var(--bull);
  background: rgba(0, 217, 163, 0.06);
  color: var(--text-hi);
}

/* ---------- Cards / Grid ---------- */
.mt-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mt-card:hover { border-color: var(--border); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.mt-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: 3.5rem 0 1.75rem;
}
.mt-footer h6 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.mt-footer a { color: var(--text-lo); font-size: 0.92rem; }
.mt-footer a:hover { color: var(--bull); }
.mt-footer .footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.risk-disclosure {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.7;
}

/* ==========================================================================
   Authentication Pages
   ========================================================================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-body {
  flex: 1;
  display: flex;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
}
@media (min-width: 992px) {
  .auth-grid { grid-template-columns: 1.05fr 1fr; }
}

/* Left: brand / value-prop panel */
.auth-showcase {
  position: relative;
  display: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(0, 217, 163, 0.14), transparent 55%),
    linear-gradient(180deg, #0d1319 0%, #0a0e13 100%);
  border-right: 1px solid var(--border-soft);
  padding: 3.5rem 3rem;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 992px) {
  .auth-showcase { display: flex; }
}
.auth-showcase-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bull);
}
.auth-showcase h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  max-width: 22ch;
  margin-top: 1rem;
}
.auth-showcase p {
  color: var(--text-lo);
  max-width: 42ch;
  margin-top: 1rem;
}
.auth-chart {
  position: relative;
  height: 220px;
  margin: 2rem 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.auth-chart svg { width: 100%; height: 100%; display: block; }
.chart-line-path {
  fill: none;
  stroke: var(--bull);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 2.4s var(--ease) forwards 0.3s;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
.chart-fill { opacity: 0; animation: fade-in 1s var(--ease) forwards 1.6s; }
@keyframes fade-in { to { opacity: 1; } }

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.social-proof .avatars { display: flex; }
.social-proof .avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--bull), #0a4d3d);
  display: inline-block;
}
.social-proof .avatars span:first-child { margin-left: 0; }
.social-proof-text { font-size: 0.85rem; color: var(--text-lo); }
.social-proof-text strong { color: var(--text-hi); }

.auth-stat-row { display: flex; gap: 2rem; margin-top: 2.5rem; }
.auth-stat-row .stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-hi);
  font-weight: 600;
}
.auth-stat-row .stat-label { font-size: 0.78rem; color: var(--text-faint); }

/* Right: form panel */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}
.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  animation: fade-in-up 0.7s var(--ease) both;
}
@media (min-width: 768px) {
  .auth-form-wrap { max-width: 420px; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form-wrap h1 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.auth-form-subtitle { color: var(--text-lo); font-size: 0.94rem; margin-bottom: 1.75rem; }

/* Inputs — no default browser border, soft bottom accent, generous padding */
.mt-field { margin-bottom: 1.25rem; position: relative; }
.mt-field .form-control {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 1rem 1rem;
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mt-field .form-control::placeholder { color: var(--text-faint); }
.mt-field .form-control:focus {
  background: var(--surface-raised);
  color: var(--text-hi);
  border-color: var(--border);
  border-bottom-color: var(--bull);
  box-shadow: 0 4px 16px -6px rgba(0, 217, 163, 0.35);
  outline: none;
}
.mt-field.has-icon .form-control { padding-right: 2.9rem; }
.mt-field label {
  font-size: 0.84rem;
  color: var(--text-lo);
  margin-bottom: 0.45rem;
  display: inline-block;
}
.mt-field .field-toggle-icon {
  position: absolute;
  right: 0.9rem;
  top: 2.55rem;
  background: none;
  border: none;
  color: var(--text-faint);
  padding: 0.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.mt-field .field-toggle-icon:hover { color: var(--text-lo); }
.mt-field .field-toggle-icon:focus-visible { outline: 2px solid var(--bull); outline-offset: 2px; border-radius: 4px; }

.mt-field .invalid-feedback {
  font-size: 0.82rem;
  color: var(--bear);
  margin-top: 0.4rem;
}
.mt-field .form-control.is-invalid {
  border-color: var(--bear);
  border-bottom-color: var(--bear);
  background-image: none; /* remove bootstrap default icon; icon area used by toggle */
}
.mt-field .form-control.is-valid {
  border-bottom-color: var(--bull);
  background-image: none;
}

.mt-check { display: flex; align-items: center; gap: 0.5rem; }
.mt-check .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  margin-top: 0;
}
.mt-check .form-check-input:checked {
  background-color: var(--bull);
  border-color: var(--bull);
}
.mt-check label { font-size: 0.86rem; color: var(--text-lo); margin-bottom: 0; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.forgot-link { font-size: 0.86rem; color: var(--text-lo); }
.forgot-link:hover { color: var(--bull); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.auth-switch { text-align: center; margin-top: 1.75rem; font-size: 0.92rem; color: var(--text-lo); }

.pw-strength { display: flex; gap: 4px; margin-top: 0.5rem; }
.pw-strength span { height: 3px; flex: 1; border-radius: 2px; background: var(--border); transition: background 0.25s var(--ease); }
.pw-strength span.is-weak { background: var(--bear); }
.pw-strength span.is-good { background: var(--signal); }
.pw-strength span.is-strong { background: var(--bull); }
.pw-strength-label { font-size: 0.76rem; color: var(--text-faint); margin-top: 0.35rem; }

/* ==========================================================================
   Google Translate — custom trigger + suppression of scattered widget chrome
   Google injects: a top banner iframe that pushes body down, a floating
   balloon frame, per-word highlight boxes, and a tooltip near the cursor.
   All of that is hidden; only our styled language <select> remains visible.
   ========================================================================== */

/* Never let the banner push the page layout around */
body { top: 0 !important; position: static !important; }
html { margin-top: 0 !important; }

/* Top banner iframe ("Powered by Google Translate" strip) */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Floating balloon that appears mid-page on some translations */
.goog-te-balloon-frame { display: none !important; }

/* Cursor tooltip + highlight box around translated words/phrases */
.goog-tooltip, .goog-tooltip:hover,
#goog-gt-tt, .goog-te-spinner-pos,
.goog-text-highlight {
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Menu frame Google opens for the language list — restyle instead of leaving default white box */
.goog-te-menu-frame { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6) !important; border-radius: var(--radius-sm) !important; }

/* Our translate trigger, replacing Google's default icon/link/gadget chrome */
.mt-translate {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0 0.5rem 0.9rem;
}
@media (min-width: 992px) {
  .mt-translate { padding: 0.5rem 0.4rem 0.5rem 1.1rem; }
}
/* Hide every bit of Google's own gadget markup (icon, "Powered by" link, spans) */
.mt-translate #google_translate_element .goog-te-gadget { font-size: 0; color: transparent; }
.mt-translate #google_translate_element .goog-te-gadget > span,
.mt-translate #google_translate_element .goog-te-gadget-icon,
.mt-translate #google_translate_element .goog-te-gadget > a {
  display: none !important;
}
/* The actual <select> Google renders — restyle to match the design system */
.mt-translate .goog-te-combo {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238B96A3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: var(--text-hi) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 1.8rem 0.4rem 1.9rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  line-height: 1.4;
  cursor: pointer;
  outline: none;
  margin: 0 !important;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .mt-translate .goog-te-combo { max-width: 170px; }
}
.mt-translate .goog-te-combo:focus-visible {
  outline: 2px solid var(--bull) !important;
  outline-offset: 2px;
}
.mt-translate .goog-te-combo option {
  background: var(--surface-raised);
  color: var(--text-hi);
}
/* Small globe icon sitting to the left of the select */
.mt-translate::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  background: var(--text-lo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 010 20M12 2a15 15 0 000 20'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 010 20M12 2a15 15 0 000 20'/%3E%3C/svg%3E") no-repeat center / contain;
  z-index: 1;
}

/* ==========================================================================
   Homepage image sections (hero graphic, device features, banner, awards)
   ========================================================================== */

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

.device-feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  display: block;
}

.mini-feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mini-feature-card:hover { border-color: var(--border); transform: translateY(-2px); }
.mini-feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-soft);
}
.mini-feature-card .mini-feature-body { padding: 1.25rem 1.4rem; }

.platform-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.platform-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.platform-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,14,19,0.94) 20%, rgba(10,14,19,0.55) 60%, rgba(10,14,19,0.25) 100%);
  z-index: 1;
}
.platform-banner-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  max-width: 34rem;
}
@media (min-width: 768px) {
  .platform-banner-content { padding: 3.5rem; }
}

/* Awards & recognition strip */
.awards-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 3rem 0;
}
.award-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}
.award-badge img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  filter: grayscale(1) brightness(1.6) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.award-badge:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* Small award badges used on auth showcase panels */
.auth-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.auth-badges img {
  height: 46px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.8;
}

/* Trading-tools image (no hard border, softer look for a tool screenshot) */
.tools-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* App download CTA */
.app-cta {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .app-cta { padding: 3rem; }
}
.app-banner-visual {
  max-width: 210px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .app-banner-visual { max-width: 260px; }
}
.app-banner-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  color: var(--text-hi);
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.store-badge:hover { border-color: var(--bull); color: var(--text-hi); transform: translateY(-1px); }
.store-badge svg { flex-shrink: 0; }
.store-badge .store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-badge-text small { font-size: 0.68rem; color: var(--text-faint); }

/* Final cutout CTA panel */
.final-cta {
  position: relative;
  background: radial-gradient(ellipse at top right, rgba(0, 217, 163, 0.14), transparent 55%), linear-gradient(135deg, #0d1319 0%, #0a0e13 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 3rem 1.5rem 0;
}
@media (min-width: 768px) {
  .final-cta { padding: 3.5rem 3rem 0; }
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .final-cta-grid { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
}
.final-cta-visual img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 560px;
}

/* ==========================================================================
   Pricing / Account Plans page
   ========================================================================== */

.pricing-hero { padding: 4rem 0 2.5rem; text-align: center; }
.pricing-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.pricing-hero p { max-width: 56ch; margin: 1rem auto 0; }

/* Trust strip */
.trust-strip { padding: 1rem 0 3.5rem; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 217, 163, 0.1);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bull);
}
.trust-item h5 { margin-bottom: 0.35rem; font-size: 1.02rem; }
.trust-item p { font-size: 0.9rem; color: var(--text-lo); margin-bottom: 0; }

/* Plan badge card */
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding-top: 3.75rem;
  margin-top: 2.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.plan-card:hover { border-color: var(--border); transform: translateY(-3px); }
.plan-card.is-featured { border-color: var(--bull); box-shadow: 0 0 0 1px var(--bull), 0 16px 40px -16px rgba(0,217,163,0.35); }

.plan-badge {
  position: absolute;
  top: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 2px solid var(--border);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.55);
}
.plan-badge svg { width: 34px; height: 34px; }
.plan-card.tier-standard .plan-badge { border-color: #8b96a3; color: #c3cad2; }
.plan-card.tier-plus .plan-badge { border-color: #3ea8ff; color: #7cc4ff; }
.plan-card.tier-pro .plan-badge { border-color: var(--bull); color: var(--bull); }
.plan-card.tier-vip .plan-badge { border-color: var(--signal); color: var(--signal); }

.plan-card-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.plan-name { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--text-faint); }
.plan-headline { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 0.5rem 0 0; color: var(--text-hi); }
.plan-headline small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-lo); }
.plan-subhead { font-size: 0.85rem; color: var(--text-lo); margin-bottom: 1.5rem; }

.plan-features { list-style: none; padding: 0; margin: 0 0 1.75rem; text-align: left; flex: 1; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-lo);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li strong { color: var(--text-hi); font-weight: 600; }
.plan-features li svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--bull); }

.plan-card .btn { margin-top: auto; }

/* Skeleton placeholder shown while account tiers are (deliberately) delayed */
.plan-card-skeleton {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-raised) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  border: 1px solid var(--border-soft);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.featured-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bull);
  color: #04120d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* Funding methods */
.funding-methods {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
}
.funding-method-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-hi);
}

/* Comparison FAQ style accordion tweaks */
.pricing-faq .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.pricing-faq .accordion-button {
  background: var(--surface);
  color: var(--text-hi);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: none !important;
}
.pricing-faq .accordion-button:not(.collapsed) { color: var(--bull); background: var(--surface); }
.pricing-faq .accordion-button::after { filter: invert(1) grayscale(1) brightness(1.6); }
.pricing-faq .accordion-body { color: var(--text-lo); font-size: 0.92rem; background: var(--surface); }

/* ==========================================================================
   Membership Benefits page
   ========================================================================== */

.benefits-hero { padding: 4rem 0 2.5rem; text-align: center; }
.benefits-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.benefits-hero p { max-width: 56ch; margin: 1rem auto 0; }

/* Feature row (image + text, alternating) */
.benefit-row { padding: 3rem 0; }
.benefit-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  display: block;
}
.benefit-media { position: relative; }
.coming-soon-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--signal);
  color: #241a00;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Membership tier cards using real badge artwork */
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tier-card:hover { border-color: var(--border); transform: translateY(-3px); }
.tier-card img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
}
.tier-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.tier-unlock {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.tier-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-lo);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--bull); }

/* Global VIP banner */
.vip-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 300px;
  display: flex;
  align-items: center;
}
.vip-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.vip-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,14,19,0.94) 25%, rgba(10,14,19,0.6) 65%, rgba(10,14,19,0.3) 100%);
  z-index: 1;
}
.vip-banner-content { position: relative; z-index: 2; padding: 2.5rem; max-width: 34rem; }
@media (min-width: 768px) { .vip-banner-content { padding: 3.25rem; } }

/* ==========================================================================
   Refer a Friend page
   ========================================================================== */

.refer-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  background: radial-gradient(ellipse at top left, rgba(0, 217, 163, 0.14), transparent 55%), linear-gradient(180deg, #0d1319 0%, #0a0e13 100%);
  border-bottom: 1px solid var(--border-soft);
}
.refer-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

.refer-link-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.refer-link-card input {
  flex: 1;
  min-width: 200px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.refer-link-card input:focus { outline: 2px solid var(--bull); outline-offset: 2px; }
.copy-btn { white-space: nowrap; }
.copy-btn.is-copied { background: var(--bull); border-color: var(--bull); color: #04120d; }

.reward-figure {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}
.reward-figure .figure-block { text-align: center; }
.reward-figure .figure-num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--bull); }
.reward-figure .figure-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.15rem; }

/* Step cards */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 217, 163, 0.12);
  border: 1px solid var(--bull);
  color: var(--bull);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Reward idea cards (reuse mini-feature-card image sizing, add overlay caption) */
.idea-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  height: 260px;
}
.idea-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.idea-card:hover img { transform: scale(1.06); }
.idea-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,14,19,0.92) 10%, rgba(10,14,19,0.15) 60%, transparent 100%);
}
.idea-card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.25rem;
}
.idea-card-caption h5 { margin-bottom: 0.2rem; }
.idea-card-caption p { font-size: 0.85rem; color: var(--text-lo); margin: 0; }

/* Terms callout */
.terms-callout {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--bull);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-lo);
}
.terms-callout strong { color: var(--text-hi); }

/* Newsletter signup */
.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 460px;
  margin: 1.5rem auto 0;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
}
.newsletter-form input:focus { border-bottom-color: var(--bull); outline: none; }
.newsletter-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.75rem; }

/* Bootstrap alerts, restyled to sit naturally in the dark theme */
.alert-success {
  background: rgba(0, 217, 163, 0.12);
  border: 1px solid var(--bull);
  color: var(--bull);
}
.alert-danger {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid var(--bear);
  color: var(--bear);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.about-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.about-hero p { max-width: 58ch; margin: 1rem auto 0; }

.about-story-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  display: block;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.value-card:hover { border-color: var(--border); transform: translateY(-2px); }
.value-card .trust-icon { margin-bottom: 1rem; }

/* Leadership cards */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.team-card:hover { border-color: var(--border); transform: translateY(-3px); }
.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-raised);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(0.15);
}
.team-card-body { padding: 1.5rem 1.25rem 1.75rem; }
.team-card-body h5 { margin-bottom: 0.2rem; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bull);
  margin-bottom: 0.85rem;
  display: block;
}
.team-card-body p { font-size: 0.87rem; color: var(--text-lo); margin: 0; }

/* Stat band */
.about-stats { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.about-stats .stat-num { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--text-hi); }
.about-stats .stat-label { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.2rem; }

/* Footer: 6-column layout needs a touch more breathing room at md */
.mt-footer h6 { white-space: nowrap; }
@media (max-width: 767px) {
  .mt-footer .row.g-4 > div { margin-bottom: 0.5rem; }
}

/* ==========================================================================
   Markets page
   ========================================================================== */

.markets-hero { padding: 4rem 0 2rem; text-align: center; }
.markets-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.markets-hero p { max-width: 56ch; margin: 1rem auto 0; }

.markets-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.markets-nav-pills .nav-link {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-lo);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
}
.markets-nav-pills .nav-link.active {
  background: var(--bull);
  border-color: var(--bull);
  color: #04120d;
}

.market-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.market-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  color: var(--text-hi);
}
.market-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  text-align: left;
  padding: 0.9rem 1.25rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.market-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}
.market-table tbody tr:last-child td { border-bottom: none; }
.market-table tbody tr { transition: background 0.15s var(--ease); }
.market-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.market-table .instrument-name { font-weight: 600; }
.market-table .instrument-sub { display: block; font-size: 0.76rem; color: var(--text-faint); font-weight: 400; }
.market-table-scroll { overflow-x: auto; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero { padding: 4rem 0 2rem; text-align: center; }
.contact-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.contact-hero p { max-width: 54ch; margin: 1rem auto 0; }

.contact-channel-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-channel-card:hover { border-color: var(--border); transform: translateY(-2px); }
.contact-channel-card .trust-icon { margin: 0 auto 1rem; }
.contact-channel-card h5 { font-size: 1rem; margin-bottom: 0.35rem; }
.contact-channel-card p { font-size: 0.86rem; color: var(--text-lo); margin-bottom: 0.5rem; }
.contact-channel-card a.channel-link { font-size: 0.88rem; font-weight: 600; }

.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 768px) { .contact-form-panel { padding: 2.5rem; } }

.office-list { list-style: none; padding: 0; margin: 0; }
.office-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.office-list li:last-child { border-bottom: none; }
.office-list .office-name { font-weight: 600; color: var(--text-hi); }
.office-list .office-detail { color: var(--text-lo); font-size: 0.88rem; text-align: right; }

/* ==========================================================================
   FAQ / Help Center page
   ========================================================================== */

.faq-hero { padding: 4rem 0 1.5rem; text-align: center; }
.faq-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

.faq-search-wrap { max-width: 480px; margin: 1.75rem auto 0; position: relative; }
.faq-search-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 0.95rem;
}
.faq-search-wrap input:focus { border-bottom-color: var(--bull); outline: none; }
.faq-search-wrap svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.faq-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.faq-category-tabs button {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-lo);
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  transition: all 0.2s var(--ease);
}
.faq-category-tabs button.active,
.faq-category-tabs button:hover {
  border-color: var(--bull);
  color: var(--text-hi);
}
.faq-no-results { text-align: center; color: var(--text-faint); padding: 2rem 0; display: none; }
.faq-no-results.is-visible { display: block; }

/* ==========================================================================
   Legal pages (Terms / Privacy / Risk Disclosure)
   ========================================================================== */

.legal-hero { padding: 3.5rem 0 1.5rem; }
.legal-updated { font-size: 0.82rem; color: var(--text-faint); }

.legal-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 992px) { .legal-layout { grid-template-columns: 260px 1fr; } }

.legal-toc {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.legal-toc h6 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.75rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 0.5rem; }
.legal-toc a { color: var(--text-lo); font-size: 0.88rem; }
.legal-toc a:hover { color: var(--bull); }

.legal-content h2 { font-size: 1.35rem; margin-top: 2.25rem; scroll-margin-top: 5.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-lo); font-size: 0.95rem; line-height: 1.75; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content strong { color: var(--text-hi); }

/* ==========================================================================
   Blog / Market News page
   ========================================================================== */

.blog-hero { padding: 4rem 0 2rem; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 768px) { .blog-featured { grid-template-columns: 1.1fr 1fr; } }
.blog-featured img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.blog-featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.blog-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0,217,163,0.12);
  color: var(--bull);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.blog-meta { font-size: 0.78rem; color: var(--text-faint); margin-top: 1rem; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.blog-card:hover { border-color: var(--border); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-lo); margin-bottom: 0; }

/* ==========================================================================
   Refer a Friend page
   ========================================================================== */

.refer-hero { position: relative; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
.refer-hero-media { position: relative; min-height: 420px; display: flex; align-items: flex-end; }
.refer-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.refer-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,0.55) 0%, rgba(10,14,19,0.75) 55%, rgba(10,14,19,0.97) 100%);
}
.refer-hero-content { position: relative; z-index: 1; padding: 3.5rem 0 3rem; width: 100%; text-align: center; }
.refer-hero-content h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.refer-hero-content p { max-width: 52ch; margin: 1rem auto 0; }

.referral-code-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  font-family: var(--font-mono);
  color: var(--text-hi);
  font-size: 0.95rem;
  margin-top: 1.75rem;
}
.referral-code-box button {
  background: var(--bull);
  color: #04120d;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

/* How it works steps */
.refer-step { text-align: center; padding: 0 0.5rem; }
.refer-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,217,163,0.1);
  border: 1px solid var(--border-soft);
  color: var(--bull);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

/* Reward tier cards */
.reward-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.reward-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.reward-card:hover img { transform: scale(1.05); }
.reward-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,0.05) 0%, rgba(10,14,19,0.92) 90%);
}
.reward-card-body { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }
.reward-card-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--bull); }
.reward-card-label { color: var(--text-hi); font-size: 0.92rem; margin-top: 0.15rem; }
.reward-card-req { color: var(--text-lo); font-size: 0.8rem; margin-top: 0.35rem; }

/* Newsletter / more-info strip */
.newsletter-strip {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
}
@media (min-width: 768px) { .newsletter-strip { padding: 2.75rem; } }
.newsletter-form .form-control {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  padding: 0.85rem 1rem;
}
.newsletter-form .form-control::placeholder { color: var(--text-faint); }
.newsletter-form .form-control:focus {
  background: var(--surface-raised);
  color: var(--text-hi);
  border-color: var(--border);
  border-bottom-color: var(--bull);
  box-shadow: 0 4px 16px -6px rgba(0,217,163,0.35);
}

/* ==========================================================================
   Always-dark accent panels
   A handful of panels are deliberately dark regardless of the active
   site theme — the auth showcase, the closing CTA, and the two
   photo-with-scrim banners (their gradient overlay is tuned for light
   text over a photo, not for the page background). Re-declaring the
   palette variables locally means every existing rule that already
   reads var(--text-hi) / var(--surface) / etc. renders correctly dark
   inside them, in both themes, with no other CSS changes required.
   ========================================================================== */
.auth-showcase,
.final-cta,
.platform-banner,
.vip-banner,
.idea-card {
  --bg: #0a0e13;
  --surface: #0f151c;
  --surface-raised: #161e27;
  --border: #232c36;
  --border-soft: #1a222c;
  --bull: #00d9a3;
  --bear: #ff5c5c;
  --signal: #ffb020;
  --text-hi: #e7ecf2;
  --text-lo: #8b96a3;
  --text-faint: #56606b;
}

/* ---------- Light-theme-specific detail fixes ---------- */

/* Award badges: on a dark page they're brightened to stand out; on a
   light page that same brighten pushes an already-light badge image
   toward invisible white-on-white. Mute instead of brighten. */
[data-bs-theme="light"] .award-badge img {
  filter: grayscale(1) contrast(0.9);
  opacity: 0.45;
}
[data-bs-theme="light"] .award-badge:hover img {
  filter: none;
  opacity: 1;
}

/* Accordion chevron: inverted to white for a dark accordion background;
   on light theme the accordion background is light again, so the
   default (dark) chevron is correct and the invert must be dropped. */
[data-bs-theme="light"] .pricing-faq .accordion-button::after {
  filter: none;
}

/* ==========================================================================
   Theme toggle button
   Icon visibility is driven entirely by the [data-bs-theme] attribute
   via CSS, not JavaScript — so the correct icon shows on first paint
   even before main.js finishes loading. The icon shown reflects the
   CURRENT theme (sun = light is active, moon = dark is active); the
   button's aria-label describes the action instead (what clicking it
   switches you TO), which main.js keeps in sync.
   ========================================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-lo);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--bull);
  color: var(--text-hi);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-bs-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-moon { display: block; } 



/* DARK THEME: add reverse gradient background behind the text */
[data-bs-theme="dark"] .mt-navbar .navbar-brand::before {
  content: "";
  position: absolute;
  inset: 0; /* cover the padding area */
  z-index: -1;
  border-radius: 8px;

  /* Background: gradient-end to gradient-start */
  background: linear-gradient(to right, var(--gradient-end), var(--gradient-start));
  opacity: 0.15; /* make it subtle so text still pops */
}
