/* CORVEX theme — dark forex / premium gradients */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --cx-bg: #07060c;
  --cx-bg-2: #0e0b16;
  --cx-surface: rgba(22, 16, 36, 0.72);
  --cx-border: rgba(255, 255, 255, 0.08);
  --cx-text: #f4f0ff;
  --cx-muted: #9b93b0;
  --cx-magenta: #ff2d95;
  --cx-purple: #9b4dff;
  --cx-red: #ff3b5c;
  --cx-orange: #ff7a3d;
  --cx-glow: 0 0 40px rgba(255, 45, 149, 0.25);
  --cx-grad: linear-gradient(135deg, #ff2d95 0%, #9b4dff 45%, #ff3b5c 75%, #ff7a3d 100%);
  --cx-grad-soft: linear-gradient(160deg, rgba(155, 77, 255, 0.35), rgba(255, 45, 149, 0.12), transparent 70%);
  --cx-radius: 16px;
  --cx-font: 'Outfit', system-ui, sans-serif;
  --cx-display: 'Syne', 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cx-font);
  background: var(--cx-bg);
  color: var(--cx-text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body.cx-app {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(155, 77, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 45, 149, 0.18), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 122, 61, 0.1), transparent 40%),
    var(--cx-bg);
}

a { color: #ff8fc8; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

h1, h2, h3, .cx-display {
  font-family: var(--cx-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-muted-cx { color: var(--cx-muted) !important; }

.cx-gradient-text {
  background: var(--cx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  text-decoration: none;
}
.cx-btn:hover { transform: translateY(-1px); color: #fff; }
.cx-btn-primary {
  background: var(--cx-grad);
  color: #fff;
  box-shadow: var(--cx-glow);
}
.cx-btn-ghost {
  background: transparent;
  color: var(--cx-text);
  border: 1px solid var(--cx-border);
}
.cx-btn-ghost:hover { border-color: rgba(255,45,149,.5); background: rgba(255,45,149,.08); }

.cx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 12, 0.75);
  border-bottom: 1px solid var(--cx-border);
}
.cx-nav .navbar-brand { padding-top: .4rem; padding-bottom: .4rem; }
.cx-logo {
  width: auto;
  display: block;
  object-fit: contain;
}
.cx-logo-nav {
  height: 40px;
  max-width: 180px;
}
.cx-logo-sidebar {
  height: 36px;
  max-width: 160px;
}
.cx-logo-footer {
  height: 28px;
  max-width: 120px;
}
.cx-nav .nav-link {
  color: var(--cx-muted) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .85rem !important;
}
.cx-nav .nav-link:hover,
.cx-nav .nav-link.active { color: #fff !important; }

.cx-panel {
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
}
.cx-panel:hover {
  border-color: rgba(255, 45, 149, 0.28);
}
.cx-panel-glow {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--cx-glow);
}

.cx-stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cx-muted);
  margin-bottom: .35rem;
}
.cx-stat-value {
  font-family: var(--cx-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.cx-progress {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  overflow: hidden;
}
.cx-progress > span {
  display: block;
  height: 100%;
  background: var(--cx-grad);
  border-radius: 99px;
}

.form-control, .form-select {
  background: rgba(0,0,0,.35) !important;
  border: 1px solid var(--cx-border) !important;
  color: var(--cx-text) !important;
  border-radius: 12px !important;
  padding: .7rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(255,45,149,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(255,45,149,.15) !important;
}
.form-label { color: var(--cx-muted); font-size: .85rem; }

.table-cx {
  --bs-table-bg: transparent;
  --bs-table-color: var(--cx-text);
  --bs-table-border-color: var(--cx-border);
  --bs-table-striped-bg: rgba(255,255,255,.02);
  color: var(--cx-text);
}
.table-cx th { color: var(--cx-muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.alert {
  border-radius: 12px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(40,180,120,.12); border-color: rgba(40,180,120,.3); color: #8dffc4; }
.alert-danger { background: rgba(255,59,92,.12); border-color: rgba(255,59,92,.3); color: #ff9aab; }
.alert-info { background: rgba(155,77,255,.12); border-color: rgba(155,77,255,.3); color: #d4b8ff; }
.alert-warning { background: rgba(255,122,61,.12); border-color: rgba(255,122,61,.3); color: #ffc19a; }

.badge-cx {
  background: rgba(255,45,149,.15);
  color: #ff9fd0;
  border: 1px solid rgba(255,45,149,.3);
  font-weight: 500;
}

/* Landing */
.cx-hero-rich {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.cx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.cx-hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,12,.92) 0%, rgba(7,6,12,.55) 48%, rgba(7,6,12,.35) 100%),
    linear-gradient(180deg, rgba(7,6,12,.35) 0%, rgba(7,6,12,.75) 70%, var(--cx-bg) 100%);
}
.cx-hero-rich .cx-hero-content {
  position: relative;
  z-index: 2;
}
.cx-kicker {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff9fd0;
  margin-bottom: .75rem;
  font-weight: 600;
}
.cx-hero-title {
  font-family: var(--cx-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
}
.cx-hero-lead {
  color: #cfc6e0;
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}
.cx-hero-meta {
  font-size: .85rem;
  letter-spacing: .04em;
}

.cx-section { padding: 5rem 0; }
.cx-section-tight { padding: 1.25rem 0 0; }
.cx-section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(155,77,255,.12), transparent 55%),
    rgba(255,255,255,.02);
}
.cx-section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: .75rem;
}
.cx-section-copy {
  color: var(--cx-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 38rem;
}

.cx-ticker-shell {
  border: 1px solid var(--cx-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.cx-widget-card {
  border: 1px solid var(--cx-border);
  border-radius: 18px;
  background: rgba(12, 9, 22, 0.85);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.28);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.cx-widget-card-wide { min-height: 460px; }
.cx-widget-card-head {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--cx-border);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cx-muted);
}
.cx-widget-card .cx-tv-wrap,
.cx-widget-card .cx-tv-panel,
.cx-widget-card .cx-tv-heatmap,
.cx-widget-card .cx-tv-symbol {
  flex: 1;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  background: #0b0a12;
}
.cx-tv-wrap {
  border-radius: var(--cx-radius);
  overflow: hidden;
  border: 1px solid var(--cx-border);
  min-height: 72px;
  background: #0b0a12;
  position: relative;
}
.cx-tv-panel,
.cx-tv-heatmap,
.cx-tv-symbol {
  min-height: 420px;
}
.cx-tv-fallback {
  padding: 1.25rem;
  text-align: center;
  color: var(--cx-muted);
  font-size: .9rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0a12;
  z-index: 2;
}

.cx-media-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-glow);
  min-height: 280px;
  background: #100c1c;
}
.cx-media-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.cx-media-frame-tall img { min-height: 420px; }

.cx-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.cx-checklist li {
  position: relative;
  padding: .7rem 0 .7rem 1.4rem;
  border-bottom: 1px solid var(--cx-border);
  color: var(--cx-muted);
  line-height: 1.55;
}
.cx-checklist li:last-child { border-bottom: none; }
.cx-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--cx-grad);
  box-shadow: 0 0 12px rgba(255,45,149,.45);
}

.cx-info-tile {
  height: 100%;
  padding: 1.25rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--cx-border);
  background: rgba(22,16,36,.72);
}
.cx-info-tile h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.cx-info-tile p {
  margin: 0;
  color: var(--cx-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.cx-story-card {
  height: 100%;
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--cx-border);
  background:
    linear-gradient(160deg, rgba(155,77,255,.12), transparent 55%),
    rgba(12,9,22,.9);
  transition: transform .2s, border-color .2s;
}
.cx-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,45,149,.35);
}
.cx-story-card h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
}
.cx-story-card p {
  margin: 0;
  color: var(--cx-muted);
  line-height: 1.65;
}

.cx-split-list > div {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--cx-border);
}
.cx-split-list > div:last-child { border-bottom: none; }
.cx-split-list h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.cx-split-list p {
  margin: 0;
  color: var(--cx-muted);
  line-height: 1.6;
}

.cx-feature {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cx-border);
}
.cx-feature:last-child { border-bottom: none; }
.cx-feature h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.cx-feature p { margin: 0; color: var(--cx-muted); font-size: .95rem; }

.cx-step-num {
  font-family: var(--cx-display);
  font-size: 2rem;
  background: var(--cx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .5rem;
}

.cx-faq .accordion-item {
  background: transparent;
  border: 1px solid var(--cx-border);
  border-radius: 12px !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.cx-faq .accordion-button {
  background: var(--cx-surface);
  color: var(--cx-text);
  box-shadow: none !important;
  font-weight: 600;
}
.cx-faq .accordion-button:not(.collapsed) {
  background: rgba(155,77,255,.12);
  color: #fff;
}
.cx-faq .accordion-body {
  background: rgba(0,0,0,.25);
  color: var(--cx-muted);
}

.cx-cta-band {
  padding: 3.5rem 0;
  background: var(--cx-grad-soft);
  border-top: 1px solid var(--cx-border);
  border-bottom: 1px solid var(--cx-border);
  text-align: center;
}

.cx-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--cx-border);
  color: var(--cx-muted);
  font-size: .9rem;
}

.cx-sidebar {
  width: 240px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 1.25rem 1rem;
  background: rgba(10, 8, 18, 0.9);
  border-right: 1px solid var(--cx-border);
}
.cx-sidebar .nav-link {
  color: var(--cx-muted);
  border-radius: 10px;
  padding: .55rem .85rem;
  margin-bottom: .15rem;
  font-size: .9rem;
}
.cx-sidebar .nav-link:hover,
.cx-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,45,149,.12);
}

.cx-auth-page .cx-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.cx-fade-up {
  animation: cxFadeUp .7s ease both;
}
@keyframes cxFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.cx-delay-1 { animation-delay: .1s; }
.cx-delay-2 { animation-delay: .2s; }
.cx-delay-3 { animation-delay: .3s; }

.cx-welcome-modal .modal-content {
  background: rgba(14, 11, 22, 0.96);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-glow);
  color: var(--cx-text);
}
.cx-welcome-modal .modal-header,
.cx-welcome-modal .modal-footer {
  background: transparent;
}
.cx-cred-box {
  border: 1px solid var(--cx-border);
  border-radius: 12px;
  padding: .35rem 1rem;
  background: rgba(0, 0, 0, 0.35);
}
.cx-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--cx-border);
  font-size: .92rem;
}
.cx-cred-row:last-child { border-bottom: none; }
.cx-cred-row span { color: var(--cx-muted); }
.cx-cred-row strong {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

@media (max-width: 991.98px) {
  .cx-sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--cx-border);
  }
  .cx-hero-rich {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }
  .cx-hero-title { max-width: none; }
  .cx-widget-card,
  .cx-widget-card-wide { min-height: 400px; }
  .cx-tv-panel,
  .cx-tv-heatmap,
  .cx-tv-symbol { min-height: 360px; }
  .cx-media-frame img,
  .cx-media-frame-tall img { min-height: 240px; }
}
