/* ==========================================================================
   Aurum Markets — global re-skin theme
   Loaded AFTER existing page stylesheets so it wins at equal specificity.
   Design tokens per aurum-design-spec: black/white/grey + red brand + blue accent.
   ========================================================================== */

:root {
  --brand-black: #000000;
  --brand-red: #E60023;
  --brand-red-hover: #C4001E;
  --brand-blue: #2F6BFF;
  --bg-light: #F5F6F8;
  --bg-white: #FFFFFF;
  --text-main: #1A1A1A;
  --text-sub: #6B7280;
  --text-on-dark: #FFFFFF;
  --text-on-dark-sub: #9CA3AF;
  --aurum-up: #16A34A;
  --aurum-down: #DC2626;
  /* Re-map legacy palette variables so older pages pick up the new tokens. */
  --bl: #2F6BFF;
  --gn: #16A34A;
  --rd: #DC2626;
}

body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Header (legacy inline .nav + shared-nav.js .ecx-shared-nav): black bar
   -------------------------------------------------------------------------- */
.nav,
.ecx-shared-nav,
.ecx-nav-boot-shell {
  background: #000000 !important;
  border-bottom-color: #1A1A1A !important;
}
.ecx-shared-nav { box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important; }

/* Brand: red rounded square with white letter + white wordmark */
.logo-icon,
.ecx-shared-nav .ecx-logo-mark,
.ecx-nav-boot-mark,
.footer-brand-mark {
  background: #E60023 !important;
  background-image: none !important;
  border-radius: 8px !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  filter: none !important;
  box-shadow: none !important;
}
.ecx-shared-nav .ecx-logo-mark.has-image { background-color: transparent !important; }
.ecx-shared-nav .ecx-logo,
.ecx-shared-nav .ecx-logo:hover { color: #FFFFFF !important; }
.logo, .logo .logo-word { color: #FFFFFF !important; }

/* Nav items: white 15px, hover subtle, active red underline */
.ecx-shared-nav .ecx-nav-item { color: #E5E7EB !important; font-size: 15px !important; }
.ecx-shared-nav .ecx-nav-item:hover,
.ecx-shared-nav .ecx-nav-item.ecx-active { color: #FFFFFF !important; background: rgba(255, 255, 255, .06) !important; }
.ecx-shared-nav .ecx-nav-item.ecx-active::before,
.ecx-shared-nav .ecx-nav-item.ecx-active.ecx-has-menu > .ecx-nav-boot-item-label::after,
.ecx-nav-boot-item.ecx-active::before { background: #E60023 !important; box-shadow: none !important; }
.ecx-shared-nav .ecx-menu-panel,
.ecx-shared-nav .ecx-panel { background: #111111 !important; border-color: #262626 !important; }
.ecx-shared-nav .ecx-menu-panel a,
.ecx-shared-nav .ecx-panel a { color: #D1D5DB !important; }
.ecx-shared-nav .ecx-menu-panel a:hover,
.ecx-shared-nav .ecx-panel a:hover { color: #FFFFFF !important; background: rgba(255, 255, 255, .06) !important; }
.ecx-shared-nav .ecx-icon-trigger,
.ecx-shared-nav .ecx-asset-trigger { color: #E5E7EB !important; border-color: #333333 !important; }
.ecx-shared-nav .ecx-icon-trigger:hover,
.ecx-shared-nav .ecx-asset-trigger:hover { color: #FFFFFF !important; background: rgba(255, 255, 255, .06) !important; }

/* Header auth buttons: Login = white text, Open Account = red */
.ecx-shared-nav .ecx-auth-link { color: #FFFFFF !important; }
.ecx-shared-nav .ecx-auth-link-primary,
.ecx-nav-boot-auth.ecx-primary {
  background: #E60023 !important;
  border-color: #E60023 !important;
  color: #FFFFFF !important;
  border-radius: 5px !important;
}
.ecx-shared-nav .ecx-auth-link-primary:hover,
.ecx-nav-boot-auth.ecx-primary:hover { background: #C4001E !important; border-color: #C4001E !important; }

/* Legacy inline nav buttons (login/register/home first paint) */
.btn-outline.blue { background: #E60023 !important; border-color: #E60023 !important; color: #FFFFFF !important; }
.btn-outline.blue:hover { background: #C4001E !important; border-color: #C4001E !important; opacity: 1 !important; }

/* --------------------------------------------------------------------------
   Footer: black
   -------------------------------------------------------------------------- */
.site-footer { background: #000000 !important; border-top-color: #1A1A1A !important; }
.site-footer .footer-col h4 { color: #FFFFFF !important; }
.site-footer .footer-col a { color: #9CA3AF !important; }
.site-footer .footer-col a:hover { color: #FFFFFF !important; }
.site-footer .footer-brand p { color: #9CA3AF !important; }
.site-footer .footer-brand-logo { color: #FFFFFF !important; }
.site-footer .footer-bottom { border-top-color: #1A1A1A !important; }
.site-footer .copyright { color: #9CA3AF !important; }
.site-footer .risk-warning, .site-footer .footer-demo-note { color: #6B7280 !important; }
.site-footer .footer-demo-note { font-size: 11px; margin-top: 4px; }
.site-footer .social-icons a { color: #9CA3AF !important; }
.site-footer .social-icons a:hover { color: #FFFFFF !important; }

/* --------------------------------------------------------------------------
   Primary buttons site-wide: red
   -------------------------------------------------------------------------- */
.hero-btn.primary {
  background: #E60023 !important;
  box-shadow: 0 14px 30px rgba(230, 0, 35, .22) !important;
  border-radius: 6px !important;
}
.hero-btn.primary:hover { background: #C4001E !important; box-shadow: 0 18px 38px rgba(230, 0, 35, .28) !important; }
.hero-btn.secondary { border-radius: 6px !important; }
.btn-login, .btn-reg {
  background: #E60023 !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
}
.btn-login:hover, .btn-reg:hover { background: #C4001E !important; }
.market-trade-btn {
  background: #E60023 !important;
  border-color: #E60023 !important;
  color: #FFFFFF !important;
  border-radius: 5px !important;
}

/* Tabs / links accent: brand blue */
.tab.active { border-bottom-color: #E60023 !important; }
.register-link a, .login-link a, .forgot a:hover { color: #2F6BFF !important; }

/* Up/down quotes: unified green/red */
.ticker-chg.up { color: #16A34A !important; background: rgba(22, 163, 74, .10) !important; }
.ticker-chg.down { color: #DC2626 !important; background: rgba(220, 38, 38, .10) !important; }

/* ==========================================================================
   Homepage (home.html) — spec section 3
   ========================================================================== */

/* 1. Hero with generated dark financial background */
.home-desktop .hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 46%, rgba(0, 0, 0, .25) 100%),
    url("/assets/aurum/img/hero-speed.png") center/cover no-repeat,
    #05070D !important;
  border-bottom-color: #1A1A1A !important;
}
.home-desktop .hero h1 { color: #FFFFFF !important; }
.home-desktop .hero .subtitle { color: #B9C0CC !important; }
.hero-kicker {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(0, 0, 0, .45) !important;
  color: #D1D5DB !important;
}
.hero-kicker::before { background: #E60023 !important; box-shadow: 0 0 11px rgba(230, 0, 35, .6) !important; }

/* 2. US-stock quote strip */
.stock-strip {
  background: #0B0E14;
  border-bottom: 1px solid #1A1A1A;
  overflow: hidden;
  position: relative;
}
.stock-strip-track {
  display: inline-flex;
  white-space: nowrap;
  animation: aurumStockScroll var(--aurum-stock-duration, 45s) linear infinite;
  will-change: transform;
}
.stock-strip:hover .stock-strip-track { animation-play-state: paused; }
@keyframes aurumStockScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.stock-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.stock-quote:hover { background: rgba(255, 255, 255, .04); }
.stock-quote .sq-sym { color: #FFFFFF; font-weight: 700; }
.stock-quote .sq-name { color: #6B7280; font-size: 11px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.stock-quote .sq-price { color: #E5E7EB; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-quote .sq-chg { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.stock-quote .sq-chg.up { color: #16A34A; }
.stock-quote .sq-chg.down { color: #DC2626; }
.stock-strip-status { padding: 12px 22px; color: #6B7280; font-size: 12px; }

/* 3. "Our Platforms" light-grey card band */
.aurum-platforms { background: #F5F6F8; padding: 64px 20px; }
.aurum-section-inner { max-width: 1200px; margin: 0 auto; }
.aurum-section-title { font-size: 30px; font-weight: 700; color: #1A1A1A; text-align: center; margin-bottom: 10px; letter-spacing: -.5px; }
.aurum-section-sub { font-size: 15px; color: #6B7280; text-align: center; margin-bottom: 40px; }
.aurum-platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aurum-platform-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 30px 26px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.aurum-platform-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .10); }
.aurum-platform-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(230, 0, 35, .09); color: #E60023;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
}
.aurum-platform-card h3 { font-size: 18px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.aurum-platform-card p { font-size: 14px; color: #6B7280; line-height: 1.65; }
.aurum-platform-card .ap-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: #E60023; }

/* 4. Market entry cards (dark, chart background) */
.aurum-markets { background: #05070D; padding: 64px 20px; }
.aurum-markets .aurum-section-title { color: #FFFFFF; }
.aurum-markets .aurum-section-sub { color: #9CA3AF; }
.aurum-market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.aurum-market-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  border: 1px solid #1F2430;
  background-color: #0B0E14;
  background-size: cover;
  background-position: center;
  transition: transform .2s, box-shadow .2s;
}
.aurum-market-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.aurum-market-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .82) 100%);
}
.aurum-market-card > * { position: relative; z-index: 1; }
.aurum-market-card .am-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #FFFFFF; background: #E60023; border-radius: 4px; padding: 4px 9px; margin-bottom: 12px;
}
.aurum-market-card h3 { font-size: 22px; font-weight: 700; color: #FFFFFF; margin-bottom: 6px; }
.aurum-market-card p { font-size: 13px; color: #C7CDD8; }

/* 5. Stats band (black) */
.aurum-stats { background: #000000; padding: 44px 20px; border-top: 1px solid #1A1A1A; }
.aurum-stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.aurum-stat .as-num { font-size: 34px; font-weight: 800; color: #FFFFFF; letter-spacing: -.5px; }
.aurum-stat .as-num em { font-style: normal; color: #E60023; }
.aurum-stat .as-label { font-size: 13px; color: #9CA3AF; margin-top: 6px; }

/* 6. Risk disclosure */
.aurum-risk { background: #05070D; padding: 34px 20px 10px; }
.aurum-risk-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.aurum-risk h4 { font-size: 13px; font-weight: 700; color: #9CA3AF; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.aurum-risk p { font-size: 12px; color: #6B7280; line-height: 1.8; }

@media (max-width: 900px) {
  .aurum-platform-grid, .aurum-market-grid, .aurum-stats-grid { grid-template-columns: 1fr; }
  .aurum-platforms, .aurum-markets { padding: 44px 16px; }
}

/* ==========================================================================
   Login / Register — spec section 4 (split layout)
   ========================================================================== */
.auth-visual { display: none; }
body.auth-page .main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch !important;
  padding: 0 !important;
  gap: 0 !important;
}
body.auth-page .auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  color: #FFFFFF;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .82) 100%),
    url("/assets/aurum/img/mobile-app-trade.webp") center/cover no-repeat,
    #05070D;
}
.auth-visual .av-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.auth-visual .av-mark {
  width: 42px; height: 42px; border-radius: 8px; background: #E60023; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900;
}
.auth-visual .av-name { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.auth-visual h2 { font-size: 34px; font-weight: 800; line-height: 1.25; letter-spacing: -1px; margin-bottom: 16px; max-width: 460px; }
.auth-visual p { font-size: 15px; color: #C7CDD8; line-height: 1.75; max-width: 440px; }
.auth-visual .av-points { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.auth-visual .av-points span { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #D1D5DB; }
.auth-visual .av-points i { color: #E60023; font-size: 12px; }
body.auth-page .login-card, body.auth-page .reg-card {
  align-self: center;
  justify-self: center;
  margin: 48px 24px;
  border-radius: 12px !important;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .45) !important;
}
@media (max-width: 900px) {
  body.auth-page .main { grid-template-columns: 1fr; }
  body.auth-page .auth-visual { display: none; }
}

/* ==========================================================================
   Admin pages — light pass (sidebar light, accent blue). Matches admin-page-shell.css.
   ========================================================================== */
aside.sidebar, .sidebar { background: #FFFFFF !important; color: #526174 !important; border-right: 1px solid #e5eaf1 !important; }
.sidebar .sb-top { border-bottom-color: #edf1f6 !important; }
.sidebar .sb-top h2 { color: #263448 !important; }
.sidebar .ham-btn { color: #5d6c7f !important; }
.sidebar .ham-btn:hover { color: #2563eb !important; background: #f1f5f9 !important; }
.sidebar .nav-head { color: #526174 !important; }
.sidebar .nav-head:hover { color: #2563eb !important; background: #f2f6fb !important; }
.sidebar .sub-wrap a { color: #6b7a8d !important; }
.sidebar .sub-wrap a:hover { color: #2563eb !important; background: #f3f7fc !important; }
.sidebar .sub-wrap a.active { color: #2563eb !important; background: #eaf3ff !important; box-shadow: inset 3px 0 #3b82f6; }
.sidebar .sb-foot { border-top-color: #edf1f6 !important; }
.sidebar .sb-foot a { color: #6b7a8d !important; }
.sidebar .sb-foot a:hover { color: #dc2626 !important; }
.sidebar .sb-nav::-webkit-scrollbar-thumb { background: #cbd5e1 !important; }
.avatar-btn { background: #3b82f6 !important; color: #FFFFFF !important; }
.btn-refresh { background: #3b82f6 !important; color: #FFFFFF !important; }
