/* ==========================================================================
   Edgex Coretrades — public site & auth design system
   Loaded after Bootstrap 5.3. Hand-written, no build step.
   ========================================================================== */

:root {
  --navy-900: #0B1C33;
  --navy-800: #112A4A;
  --navy-700: #1A3A63;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-300: #93C5FD;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --green-500: #10B981;
  --green-100: #D1FAE5;
  --red-500: #EF4444;
  --red-100: #FEE2E2;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --gray-50:  #F6F8FB;
  --gray-100: #EEF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);

  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --section-y: 96px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  color: var(--gray-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; }
a  { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }
.ex-num { font-variant-numeric: tabular-nums; }

@media (max-width: 767.98px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  :root { --section-y: 56px; }
}

.container { max-width: var(--container); }

.ex-skip {
  position: absolute; left: 16px; top: -48px; z-index: 2000;
  background: var(--blue-600); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.ex-skip:focus { top: 12px; color: #fff; outline: 3px solid var(--blue-100); }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ex-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ex-btn:hover { text-decoration: none; }
.ex-btn:active { transform: translateY(1px); }
.ex-btn:disabled, .ex-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.ex-btn svg { width: 18px; height: 18px; flex: none; }

.ex-btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.ex-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.ex-btn-block { width: 100%; }

.ex-btn-primary { background: var(--blue-600); color: #fff; }
.ex-btn-primary:hover { background: var(--blue-700); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }

.ex-btn-outline { background: #fff; color: var(--gray-900); border-color: var(--gray-300); }
.ex-btn-outline:hover { border-color: var(--gray-900); color: var(--gray-900); }

.ex-btn-ghost { background: transparent; color: var(--gray-700); }
.ex-btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.ex-btn-light { background: #fff; color: var(--navy-900); }
.ex-btn-light:hover { background: var(--gray-100); color: var(--navy-900); }

.ex-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ex-btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }

.ex-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ex-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.ex-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.ex-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s ease;
}
.ex-header.is-scrolled { box-shadow: var(--shadow-sm); }
.ex-header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.ex-logo { display: inline-flex; align-items: center; }
.ex-logo img { height: 36px; width: auto; }
.ex-nav { display: none; margin-left: 16px; }
.ex-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ex-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; font-size: 15px;
}
.ex-nav a:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.ex-nav a.active { color: var(--blue-600); background: var(--blue-50); }
.ex-header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ex-header-cta .ex-btn-ghost { display: none; }
.ex-burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--gray-300); background: #fff; border-radius: var(--radius-sm); color: var(--gray-900);
}
.ex-burger svg { width: 22px; height: 22px; }

@media (min-width: 992px) {
  .ex-nav { display: block; }
  .ex-burger { display: none; }
  .ex-header-cta .ex-btn-ghost { display: inline-flex; }
}

/* Offcanvas mobile menu (Bootstrap offcanvas, skinned) */
.ex-offcanvas { width: min(320px, 86vw) !important; }
.ex-offcanvas .offcanvas-header { border-bottom: 1px solid var(--gray-200); }
.ex-offcanvas .offcanvas-header img { height: 30px; }
.ex-offcanvas ul { list-style: none; margin: 0; padding: 0; }
.ex-offcanvas li a {
  display: block; padding: 14px 8px; font-size: 17px; font-weight: 500; color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
}
.ex-offcanvas li a:hover, .ex-offcanvas li a.active { color: var(--blue-600); text-decoration: none; }
.ex-offcanvas-actions { display: grid; gap: 10px; margin-top: 20px; }

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */
.ex-section { padding: var(--section-y) 0; }
.ex-section-tight { padding: calc(var(--section-y) * .66) 0; }
.ex-section-white { background: #fff; }
.ex-section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.ex-section-dark h1, .ex-section-dark h2, .ex-section-dark h3, .ex-section-dark h4 { color: #fff; }
.ex-section-dark .ex-eyebrow { color: var(--blue-300); }

.ex-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600);
}
.ex-heading { max-width: 680px; margin-bottom: 48px; }
.ex-heading-center { margin-left: auto; margin-right: auto; text-align: center; }
.ex-heading p, .ex-lead { font-size: 18px; color: var(--gray-600); }
.ex-section-dark .ex-heading p, .ex-section-dark .ex-lead { color: rgba(255, 255, 255, .72); }
@media (max-width: 767.98px) { .ex-heading { margin-bottom: 32px; } .ex-heading p, .ex-lead { font-size: 16px; } }

/* Grids */
.ex-grid { display: grid; gap: 24px; }
.ex-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ex-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ex-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
  .ex-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .ex-grid-2, .ex-grid-3, .ex-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ex-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ex-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.ex-two-col img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 991.98px) { .ex-two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.ex-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, .45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(16, 185, 129, .18), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: 88px 0 80px;
}
.ex-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ex-hero .container { position: relative; }
.ex-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ex-hero .ex-eyebrow { color: var(--blue-300); }
.ex-hero h1 { color: #fff; font-size: 56px; letter-spacing: -0.03em; margin-bottom: 20px; }
.ex-hero h1 span { color: var(--blue-300); }
.ex-hero p { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 540px; margin-bottom: 28px; }
.ex-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ex-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.ex-chip svg { width: 15px; height: 15px; color: var(--green-500); }

.ex-glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ex-glass-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.ex-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.ex-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
.ex-glass-grid { display: grid; gap: 10px; }
.ex-mini { height: 124px; border-radius: 10px; overflow: hidden; background: rgba(11, 28, 51, .65); }
.ex-mini .tradingview-widget-container, .ex-mini iframe { height: 100% !important; }

@media (max-width: 991.98px) {
  .ex-hero { padding: 64px 0 56px; }
  .ex-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ex-hero h1 { font-size: 40px; }
}
@media (max-width: 575.98px) { .ex-hero h1 { font-size: 34px; } .ex-hero-actions .ex-btn { flex: 1 1 100%; } }

/* Ticker strip */
.ex-ticker { background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); min-height: 46px; }
.ex-ticker .tradingview-widget-container { min-height: 46px; }

/* Compact page hero (inner pages) */
.ex-page-hero {
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(37, 99, 235, .4), transparent 60%),
    var(--navy-900);
  color: #fff; padding: 72px 0 56px;
}
.ex-page-hero .ex-eyebrow { color: var(--blue-300); }
.ex-page-hero h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.ex-page-hero p { font-size: 17px; color: rgba(255, 255, 255, .75); max-width: 680px; margin: 0; }
@media (max-width: 767.98px) { .ex-page-hero { padding: 48px 0 40px; } .ex-page-hero h1 { font-size: 32px; } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.ex-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}

.ex-feature, .ex-market {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ex-feature:hover, .ex-market:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.ex-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600);
}
.ex-icon svg { width: 24px; height: 24px; }
.ex-feature h3 { font-size: 18px; margin: 18px 0 8px; }
.ex-feature p { font-size: 15px; color: var(--gray-600); margin: 0; }

.ex-market { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; }
.ex-market img { width: 44px; height: 44px; }
.ex-market h3 { font-size: 16px; margin: 6px 0 0; }
.ex-market p { font-size: 13px; color: var(--gray-500); margin: 0; }
.ex-market a.ex-cover { position: absolute; inset: 0; border-radius: inherit; }

.ex-step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.ex-step-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; display: block; }
.ex-step-body { padding: 24px; }
.ex-step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.ex-step h3 { font-size: 18px; margin-bottom: 6px; }
.ex-step p { font-size: 15px; color: var(--gray-600); margin: 0; }

.ex-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ex-stat { text-align: center; }
.ex-stat strong { display: block; font-size: 36px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ex-stat span { font-size: 14px; color: var(--gray-500); }
@media (max-width: 767.98px) { .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pricing / plans */
.ex-plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ex-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ex-plan-featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-md); }
.ex-plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.ex-plan-name { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; }
.ex-plan-price { font-size: 36px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ex-plan-price small { display: block; font-size: 13px; font-weight: 500; color: var(--gray-500); margin-top: 6px; letter-spacing: 0; }
.ex-plan ul { list-style: none; margin: 24px 0 28px; padding: 0; }
.ex-plan li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-700);
}
.ex-plan li:last-child { border-bottom: 0; }
.ex-plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 11px no-repeat;
}
.ex-plan .ex-btn { margin-top: auto; }

/* Comparison table */
.ex-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.ex-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.ex-table th, .ex-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.ex-table thead th { background: var(--gray-100); color: var(--gray-900); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ex-table tbody tr:last-child td, .ex-table tbody tr:last-child th { border-bottom: 0; }
.ex-table tbody th { font-weight: 600; color: var(--gray-900); white-space: nowrap; }
.ex-table td { color: var(--gray-700); font-variant-numeric: tabular-nums; }
.ex-table .is-featured { background: var(--blue-50); }

/* Dark widget card (screener) */
.ex-screener { background: var(--navy-900); border-radius: var(--radius-lg); padding: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.ex-screener .tradingview-widget-container { border-radius: 10px; overflow: hidden; }

/* CTA band */
.ex-cta {
  background: linear-gradient(120deg, var(--blue-600), var(--navy-800) 70%);
  color: #fff; padding: 64px 0; text-align: center;
}
.ex-cta h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.ex-cta p { color: rgba(255, 255, 255, .8); max-width: 560px; margin: 0 auto 24px; }
.ex-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   FAQ (Bootstrap accordion, skinned)
   -------------------------------------------------------------------------- */
.ex-faq-group { margin-bottom: 40px; }
.ex-faq-group h2 { font-size: 22px; margin-bottom: 16px; }
.ex-faq .accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.ex-faq .accordion-button {
  font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--gray-900);
  padding: 18px 20px; background: #fff; box-shadow: none;
}
.ex-faq .accordion-button:not(.collapsed) { color: var(--blue-600); background: #fff; box-shadow: none; }
.ex-faq .accordion-button:focus { box-shadow: 0 0 0 3px var(--blue-100); }
.ex-faq .accordion-body { padding: 0 20px 20px; font-size: 15px; color: var(--gray-600); white-space: pre-line; }
.ex-faq-search { position: relative; max-width: 560px; margin: 24px auto 0; }
.ex-faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gray-400); pointer-events: none; }
.ex-faq-search input {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: var(--radius); border: 1.5px solid transparent;
  background: #fff; color: var(--gray-900); font-family: var(--font); font-size: 15px; box-shadow: var(--shadow-md);
}
.ex-faq-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .25); }
.ex-faq-empty { text-align: center; color: var(--gray-500); padding: 32px 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.ex-form .ex-field { margin-bottom: 18px; }
.ex-form label, .ex-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.ex-form label .req { color: var(--red-500); }
.ex-input {
  display: block; width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  background: #fff; color: var(--gray-900); font-family: var(--font); font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.ex-input::placeholder { color: var(--gray-400); }
.ex-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
textarea.ex-input { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; }
select.ex-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.ex-input.input-validation-error, .ex-input.is-invalid { border-color: var(--red-500); }
.ex-input.input-validation-error:focus, .ex-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--red-100); }
.field-validation-error { display: block; font-size: 13px; color: var(--red-500); margin-top: 6px; }
.field-validation-valid { display: none; }
.ex-hint { display: block; font-size: 13px; color: var(--gray-500); margin-top: 6px; }
.ex-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 575.98px) { .ex-form-row { grid-template-columns: minmax(0, 1fr); } }

.ex-input-group { position: relative; }
.ex-input-group .ex-input { padding-right: 46px; }
.ex-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--gray-500); border-radius: 6px; cursor: pointer;
}
.ex-eye:hover { color: var(--gray-900); background: var(--gray-100); }
.ex-eye svg { width: 20px; height: 20px; }
.ex-eye .ico-off { display: none; }
.ex-eye.is-on .ico-on { display: none; }
.ex-eye.is-on .ico-off { display: block; }

.ex-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-600); }
.ex-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue-600); flex: none; }
.ex-check label { margin: 0; font-weight: 400; color: var(--gray-600); }

.ex-otp {
  height: 60px; font-size: 28px; font-weight: 700; letter-spacing: .45em; text-align: center;
  padding-left: calc(14px + .45em); font-variant-numeric: tabular-nums;
}

.ex-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; }

/* Alerts */
.ex-alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; margin-bottom: 20px; }
.ex-alert p:last-child { margin: 0; }
.ex-alert ul { margin: 0; padding-left: 18px; }
.ex-alert-danger  { background: var(--red-100);   color: #991B1B; border-color: #FCA5A5; }
.ex-alert-success { background: var(--green-100); color: #065F46; border-color: #6EE7B7; }
.ex-alert-info    { background: var(--blue-50);   color: #1E40AF; border-color: var(--blue-100); }
.ex-alert-warning { background: var(--amber-100); color: #92400E; border-color: #FCD34D; }
.validation-summary-valid { display: none; }
.validation-summary-errors { background: var(--red-100); color: #991B1B; border: 1px solid #FCA5A5; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* --------------------------------------------------------------------------
   Contact & prose
   -------------------------------------------------------------------------- */
.ex-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ex-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ex-contact-list .ex-icon { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.ex-contact-list .ex-icon svg { width: 20px; height: 20px; }
.ex-contact-list strong { display: block; font-size: 14px; color: var(--gray-900); }
.ex-contact-list span, .ex-contact-list a { font-size: 15px; }

.ex-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
.ex-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.ex-toc h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 12px; }
.ex-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gray-200); }
.ex-toc a { display: block; padding: 6px 14px; font-size: 13px; color: var(--gray-600); margin-left: -2px; border-left: 2px solid transparent; }
.ex-toc a:hover { color: var(--blue-600); border-left-color: var(--blue-600); text-decoration: none; }
.ex-prose { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 40px 48px; }
.ex-prose h2 { font-size: 20px; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.ex-prose h2:first-child { margin-top: 0; }
.ex-prose p, .ex-prose li { font-size: 15px; line-height: 1.75; color: var(--gray-700); }
.ex-prose ul { padding-left: 22px; margin: 0 0 16px; }
.ex-prose li { margin-bottom: 6px; }
@media (max-width: 991.98px) { .ex-legal { grid-template-columns: minmax(0, 1fr); gap: 24px; } .ex-toc { position: static; max-height: none; } .ex-prose { padding: 24px 20px; } }

.ex-company { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 32px; }
.ex-company dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 15px; }
.ex-company dt { font-weight: 600; color: var(--gray-900); }
.ex-company dd { margin: 0; color: var(--gray-700); }
@media (max-width: 575.98px) { .ex-company dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .ex-company dd { margin-bottom: 12px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ex-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: 64px; font-size: 14px; }
.ex-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.ex-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.ex-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-footer a { color: rgba(255, 255, 255, .72); }
.ex-footer a:hover { color: #fff; text-decoration: none; }
.ex-footer-logo { display: inline-flex; margin-bottom: 16px; }
.ex-footer-logo img { height: 30px; }
.ex-footer-brand p { max-width: 380px; }
.ex-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ex-footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue-300); }
.ex-risk { margin-top: 48px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .55); }
.ex-risk strong { color: rgba(255, 255, 255, .8); }
.ex-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.ex-footer-bottom ul { display: flex; gap: 18px; }
.ex-lang { display: inline-flex; align-items: center; gap: 8px; }
.ex-lang svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .6); }
.ex-lang select {
  height: 36px; padding: 0 30px 0 10px; border-radius: var(--radius-sm);
  background: var(--navy-800) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 8px center / 16px no-repeat;
  border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-family: var(--font); font-size: 13px;
  -webkit-appearance: none; appearance: none;
}
@media (max-width: 991.98px) { .ex-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ex-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
html.js-reveal .ex-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js-reveal .ex-reveal.is-visible, .ex-reveal.is-visible { opacity: 1; transform: none; }
.ex-reveal[data-delay="1"] { transition-delay: .1s; }
.ex-reveal[data-delay="2"] { transition-delay: .2s; }
.ex-reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .ex-reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   Auth layout
   -------------------------------------------------------------------------- */
.ex-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.ex-auth-topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; background: var(--navy-900); }
.ex-auth-topbar img { height: 28px; }
.ex-auth-topbar a { color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 500; }
.ex-auth-brand {
  display: none; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(37, 99, 235, .45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(16, 185, 129, .2), transparent 60%),
    var(--navy-900);
  color: #fff; padding: 48px;
  flex-direction: column; justify-content: space-between;
}
.ex-auth-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.ex-auth-brand > * { position: relative; }
.ex-auth-brand .ex-logo img { height: 36px; }
.ex-auth-brand h2 { color: #fff; font-size: 34px; margin: 0 0 14px; max-width: 440px; }
.ex-auth-brand .ex-lead { color: rgba(255, 255, 255, .75); font-size: 16px; max-width: 420px; }
.ex-auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 440px; }
.ex-auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .85); }
.ex-auth-points svg { width: 20px; height: 20px; flex: none; color: var(--green-500); margin-top: 2px; }
.ex-auth-brand-foot { font-size: 13px; color: rgba(255, 255, 255, .5); display: flex; gap: 18px; flex-wrap: wrap; }
.ex-auth-brand-foot a { color: rgba(255, 255, 255, .6); }
.ex-auth-brand-foot a:hover { color: #fff; text-decoration: none; }

.ex-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px 56px; }
.ex-auth-card { width: 100%; max-width: 440px; }
.ex-auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.ex-auth-sub { font-size: 15px; color: var(--gray-600); margin-bottom: 28px; }
.ex-auth-sub strong { color: var(--gray-900); }
.ex-auth-links { font-size: 14px; color: var(--gray-600); text-align: center; margin-top: 24px; }
.ex-auth-links a { font-weight: 600; }
.ex-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-400); font-size: 13px; }
.ex-auth-divider::before, .ex-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

.ex-auth-success { text-align: center; }
.ex-status-icon {
  display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-100); color: #059669; margin-bottom: 20px;
}
.ex-status-icon.is-info { background: var(--blue-50); color: var(--blue-600); }
.ex-status-icon svg { width: 32px; height: 32px; }

@media (min-width: 992px) {
  .ex-auth { grid-template-columns: 5fr 7fr; }
  .ex-auth-topbar { display: none; }
  .ex-auth-brand { display: flex; }
  .ex-auth-main { padding: 56px 40px; }
}

/* --------------------------------------------------------------------------
   Misc helpers
   -------------------------------------------------------------------------- */
.ex-muted { color: var(--gray-500); }
.ex-small { font-size: 13px; }
.ex-mt-0 { margin-top: 0 !important; }
.ex-mb-0 { margin-bottom: 0 !important; }
.ex-text-center { text-align: center; }
.ex-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Hide Google Translate chrome */
#goog-gt-tt, .goog-te-banner-frame, .skiptranslate.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
#google_translate_element2 { display: none !important; }

/* Auth right-hand column: top bar + vertically centred form */
.ex-auth-side { display: flex; flex-direction: column; min-height: 100vh; }
.ex-auth-side .ex-auth-main { flex: 1; }

/* Contact page */
.ex-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
@media (max-width: 991.98px) { .ex-contact-grid { grid-template-columns: minmax(0, 1fr); } }
.ex-card h3 { font-size: 20px; margin-bottom: 18px; }
.ex-card hr { border: 0; border-top: 1px solid var(--gray-200); margin: 22px 0; }

/* Legal prose extras */
.ex-inline-logo { float: right; width: 140px; margin: 0 0 12px 20px; }
.ex-prose a { word-break: break-word; }

/* Steps without imagery */
.ex-step-body:first-child { padding-top: 28px; }

/* The logo artwork is dark-blue on transparent: give it a white plate on navy surfaces */
.ex-footer-logo, .ex-auth-brand .ex-logo, .ex-auth-topbar .ex-topbar-logo {
  display: inline-flex; align-items: center; background: #fff; padding: 6px 10px; border-radius: 8px;
}
.ex-auth-brand .ex-logo { align-self: flex-start; }
.ex-auth-brand .ex-logo img { height: 30px; }
.ex-auth-topbar .ex-topbar-logo img { height: 22px; }
