:root {
  --ew-royal: #004080;
  --ew-navy: #003366;
  --ew-cobalt: #0066cc;
  --ew-cobalt-dark: #004d99;
  --ew-sky: #00aeef;
  --ew-sky-soft: #e8f6fd;
  --ew-accent: #1ba9e8;
  --ew-gold: #00aeef;
  --ew-gold-soft: #b8e8fa;
  --ew-ink: #1a2d4a;
  --ew-muted: #5a7089;
  --ew-line: #c5dff0;
  --ew-canvas: #f0f8ff;
  --ew-white: #ffffff;
  --ew-green: #00875a;
  --ew-red: #d64545;
  --ew-font-body: Inter, Arial, sans-serif;
  --ew-font-display: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  --ew-font-accent: Georgia, "Times New Roman", serif;
  --bs-body-font-family: var(--ew-font-body);
  --bs-font-sans-serif: var(--ew-font-body);
}

html { font-size: 16px; }
body { margin: 0; color: var(--ew-ink); background: var(--ew-canvas); font-family: var(--ew-font-body); letter-spacing: 0; }
.ew-page h1, .ew-page h2, .ew-page h3, .ew-page h4, .ew-page h5, .ew-page h6,
.ew-page .h1, .ew-page .h2, .ew-page .h3, .ew-page .h4, .ew-page .h5, .ew-page .h6,
.ew-title, .ew-auth-form h1, .ew-auth-form .ew-title,
.card-header, .ew-panel h2, .ew-panel h3, .ew-panel .h3, .ew-panel .h4 {
  font-family: var(--ew-font-display);
  letter-spacing: -.02em;
}
.ew-page h1, .ew-page .h1, .ew-title { color: var(--ew-navy); font-weight: 800; }
.ew-page h2, .ew-page h3, .ew-page .h2, .ew-page .h3 { color: var(--ew-navy); font-weight: 800; }
.card-header { font-weight: 800; color: var(--ew-navy); }
.ew-page .form-label, .ew-panel .form-label {
  color: #45556d;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
a { color: var(--ew-cobalt); }
a:hover { color: var(--ew-cobalt-dark); }
.container { width: min(1180px, calc(100% - 40px)); }

.ew-public-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ew-line); }
.ew-public-header-inner { width: min(1280px, calc(100% - 40px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.ew-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ew-navy); text-decoration: none; font-size: 1.05rem; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.ew-brand:hover { color: var(--ew-navy); }
.ew-brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; color: white;
  background: linear-gradient(145deg, var(--ew-royal), var(--ew-sky)); border-radius: 10px;
  font-family: var(--ew-font-display); font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 102, 204, .28);
}
.ew-brand b { color: var(--ew-cobalt); }
.ew-brand small { display: block; color: var(--ew-muted); font-size: .52rem; font-weight: 700; letter-spacing: .13em; }
.ew-public-nav { display: flex; justify-content: center; gap: 28px; }
.ew-public-nav a { color: #44536a; text-decoration: none; font-size: .78rem; font-weight: 700; }
.ew-public-nav a:hover { color: var(--ew-cobalt); }
.ew-public-actions, .ew-sidebar-actions { display: flex; align-items: center; gap: 8px; }

.ew-button, .btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-secondary {
  min-height: 42px; padding: .68rem 1.05rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ew-cobalt) !important; border-radius: 4px !important; background: var(--ew-cobalt) !important;
  color: white !important; font-size: .76rem; font-weight: 800; text-transform: uppercase; text-decoration: none;
}
.ew-button.secondary { border-color: #aeb9c8 !important; background: transparent !important; color: var(--ew-navy) !important; }
.ew-button.gold { border-color: var(--ew-sky) !important; background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)) !important; color: white !important; }
.ew-button.outline-light { border-color: rgba(255,255,255,.7) !important; background: transparent !important; color: white !important; }
.ew-menu-button { display: none; }
.ew-mobile-nav { display: none; }

/* Volgh admin shell — AprexTrade blue theme */
body.ew-volgh {
  --ew-volgh-sidebar: 0px;
  --ew-volgh-header: 68px;
  --ew-volgh-hor: 52px;
  --ew-volgh-bg: #f6f6fb;
  background: var(--ew-volgh-bg);
  font-family: "IBM Plex Sans", Inter, sans-serif;
  overflow-x: hidden;
}
.ew-volgh-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--ew-volgh-header); padding: 0 18px; background: #fff;
  box-shadow: 0 1px 15px 1px rgba(68, 68, 79, .07);
}
.ew-volgh-header-left { justify-self: start; }
.ew-volgh-header-right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.ew-currency-switcher select { min-height: 36px; max-width: 150px; padding: 0 28px 0 10px; border: 1px solid #d5c6e4; border-radius: 3px; background: #f8f4fb; color: #54258a; font-size: .74rem; font-weight: 700; }
.ew-currency-switcher select option { color: #23153f; background: white; }
.ew-volgh-icon-btn,
.ew-volgh-header-icon {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: #3b4863; cursor: pointer; text-decoration: none;
}
.ew-volgh-icon-btn:hover,
.ew-volgh-header-icon:hover { background: #f3f4fb; color: var(--ew-cobalt); }
.ew-volgh-icon-btn svg,
.ew-volgh-header-icon svg { width: 20px; height: 20px; }
.ew-volgh-logo {
  justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ew-navy); font-size: 1.35rem; font-weight: 700;
}
.ew-volgh-logo-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); font-size: 1.05rem; font-weight: 700;
}
.ew-volgh-profile {
  display: flex; align-items: center; gap: 10px; margin-left: 6px; padding: 4px 10px 4px 4px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
}
.ew-volgh-profile:hover { background: #f3f4fb; }
.ew-volgh-avatar {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: #fff; font-weight: 700; font-size: .9rem;
}
.ew-volgh-profile-text { text-align: left; line-height: 1.15; }
.ew-volgh-profile-text strong { display: block; color: #1d2840; font-size: .82rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ew-volgh-profile-text small { color: #8b96a8; font-size: .68rem; font-weight: 500; }
.ew-volgh-dropdown { border-color: #edf0f7; box-shadow: 0 8px 24px rgba(68, 68, 79, .12); border-radius: 7px; padding: 8px; min-width: 200px; }

.ew-volgh-sidebar {
  position: fixed; top: var(--ew-volgh-header); left: 0; right: 0; z-index: 1024;
  width: 100%; height: var(--ew-volgh-hor); background: #fff;
  border-bottom: 1px solid #edf0f7; box-shadow: 0 1px 15px 1px rgba(68, 68, 79, .06);
  transition: height .2s ease, transform .25s ease;
}
.ew-volgh-sidebar-inner {
  height: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 12px;
}
.ew-volgh-nav {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  height: 100%; min-width: max-content; margin: 0 auto;
}
.ew-volgh-nav-category { display: none; }
.ew-volgh-nav-item {
  display: flex; align-items: center; gap: 8px; height: var(--ew-volgh-hor);
  padding: 0 16px; color: #524e81; text-decoration: none; font-size: .84rem; font-weight: 500;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.ew-volgh-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.ew-volgh-nav-item:hover { color: var(--ew-cobalt); background: rgba(0, 102, 204, .05); }
.ew-volgh-nav-item.active {
  color: var(--ew-cobalt); font-weight: 600; border-bottom-color: var(--ew-cobalt); background: transparent;
}

.ew-volgh-main {
  margin-left: 0; margin-top: calc(var(--ew-volgh-header) + var(--ew-volgh-hor));
  min-height: calc(100vh - var(--ew-volgh-header) - var(--ew-volgh-hor)); display: flex; flex-direction: column;
}
.ew-volgh-pagehead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 16px 20px 0; padding: 14px 20px; background: #fff; border-radius: 7px;
  box-shadow: 0 8px 24px #e5e4e6;
}
.ew-volgh-page-title {
  margin: 0; color: #1d2840; font-size: 1.25rem; font-weight: 600;
}
.ew-volgh-breadcrumb {
  display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: .82rem; font-weight: 500;
}
.ew-volgh-breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #c5cad6; }
.ew-volgh-breadcrumb a { color: #8b96a8; text-decoration: none; }
.ew-volgh-breadcrumb a:hover { color: var(--ew-cobalt); }
.ew-volgh-breadcrumb .active { color: var(--ew-cobalt); }
.ew-volgh-content { flex: 1 1 auto; padding: 20px; }
.ew-volgh-lead { margin: 0 0 18px; color: #6e7687; font-size: .9rem; line-height: 1.6; }
.ew-volgh-footer {
  padding: 16px 20px; color: #8b96a8; font-size: .8rem; text-align: center;
}
.ew-volgh-overlay { display: none; }

body.ew-volgh.ew-sidebar-collapsed { --ew-volgh-hor: 0px; }
body.ew-volgh.ew-sidebar-collapsed .ew-volgh-sidebar { height: 0; overflow: hidden; border: 0; box-shadow: none; }

body.ew-volgh .ew-panel,
body.ew-volgh .ew-panel-card,
body.ew-volgh .ew-section-card,
body.ew-volgh .ew-profile-header,
body.ew-volgh .ew-kpi-tile,
body.ew-volgh .ew-data-panel,
body.ew-volgh .card,
body.ew-volgh .ew-widget {
  border: 0 !important; border-radius: 7px !important;
  box-shadow: 0 8px 24px #e5e4e6 !important;
}
body.ew-volgh .ew-section-head,
body.ew-volgh .ew-data-toolbar,
body.ew-volgh .card-header {
  background: #fff !important; border-bottom-color: #edf0f7 !important;
}
body.ew-volgh .ew-impersonation-bar {
  padding: 10px 20px; background: #fff3cd; border-bottom: 1px solid #ffecb5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem;
}
body.ew-volgh .ew-impersonation-bar button {
  border: 0; border-radius: 6px; padding: 6px 12px; background: var(--ew-cobalt); color: #fff; font-size: .76rem; font-weight: 700; cursor: pointer;
}

/* Legacy vdash shell (unused — kept for reference) */
.ew-vdash-shell { min-height: 100vh; display: grid; grid-template-columns: var(--ew-sidebar-width, 268px) minmax(0, 1fr); background: var(--ew-app-bg, #eef4fb); }
.ew-vdash-sidebar {
  position: sticky; top: 0; z-index: 1040; height: 100vh; display: flex; flex-direction: column;
  background: var(--ew-sidebar-bg, #fff); border-right: 1px solid var(--ew-line);
  box-shadow: 8px 0 28px rgba(0, 64, 128, .04); transition: transform .25s ease, width .25s ease;
}
.ew-vdash-sidebar-head { padding: 18px 16px 14px; border-bottom: 1px solid var(--ew-line); }
.ew-vdash-brand { width: 100%; }
.ew-vdash-brand-text small { display: block; color: var(--ew-muted); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ew-vdash-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 12px; display: grid; align-content: start; gap: 16px; }
.ew-vdash-nav-group { display: grid; gap: 2px; }
.ew-vdash-nav-label {
  padding: 0 12px 6px; color: #8fa3b8; font-size: .62rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.ew-vdash-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #4a6078; text-decoration: none; font-size: .84rem; font-weight: 700; transition: background .15s, color .15s;
}
.ew-vdash-nav-link:hover { color: var(--ew-cobalt); background: var(--ew-sky-soft); }
.ew-vdash-nav-link.active {
  color: var(--ew-cobalt); background: linear-gradient(90deg, rgba(0,174,239,.16), rgba(0,102,204,.08));
  box-shadow: inset 3px 0 0 var(--ew-sky);
}
.ew-vdash-nav-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px;
  background: #f3f8fd; color: var(--ew-cobalt);
}
.ew-vdash-nav-link.active .ew-vdash-nav-icon {
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white;
}
.ew-vdash-nav-icon svg { width: 17px; height: 17px; }
.ew-vdash-sidebar-foot { padding: 14px 12px 18px; border-top: 1px solid var(--ew-line); display: grid; gap: 10px; }
.ew-vdash-user-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--ew-sky-soft); }
.ew-vdash-avatar {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white; font-weight: 800; font-size: .95rem;
}
.ew-vdash-user-meta { min-width: 0; }
.ew-vdash-user-meta strong { display: block; color: var(--ew-navy); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ew-vdash-user-meta small { color: var(--ew-muted); font-size: .68rem; font-weight: 700; }
.ew-vdash-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.ew-vdash-header {
  position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 0 clamp(16px, 3vw, 28px); background: #fff; border-bottom: 1px solid var(--ew-line);
  box-shadow: 0 4px 18px rgba(0, 64, 128, .05);
}
.ew-vdash-header-left, .ew-vdash-header-right { display: flex; align-items: center; gap: 12px; }
.ew-vdash-header-brand { display: none; }
.ew-vdash-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ew-line);
  border-radius: 10px; background: #fff; color: var(--ew-muted); cursor: pointer; transition: border-color .15s, color .15s;
}
.ew-vdash-icon-btn:hover { border-color: var(--ew-cobalt); color: var(--ew-cobalt); }
.ew-vdash-icon-btn svg { width: 18px; height: 18px; }
.ew-vdash-header-link { color: var(--ew-muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.ew-vdash-header-link:hover { color: var(--ew-cobalt); }
.ew-vdash-header-user {
  padding: 8px 14px; border-radius: 999px; background: var(--ew-sky-soft); color: var(--ew-cobalt);
  font-size: .74rem; font-weight: 800;
}
.ew-vdash-content { flex: 1 1 auto; padding: clamp(18px, 3vw, 28px); }
.ew-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 18px 22px; border: 1px solid var(--ew-line); border-radius: 14px;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 64, 128, .05);
}
.ew-page-title {
  margin: 0; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
}
.ew-page-subtitle { margin: 4px 0 0; color: var(--ew-muted); font-size: .88rem; }
.ew-breadcrumb {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none;
  font-size: .78rem; font-weight: 700;
}
.ew-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b0c4d8; }
.ew-breadcrumb a { color: var(--ew-muted); text-decoration: none; }
.ew-breadcrumb a:hover { color: var(--ew-cobalt); }
.ew-breadcrumb .active { color: var(--ew-cobalt); }
.ew-page { padding: 0 0 clamp(36px, 5vw, 56px); }
.ew-page-wide { width: min(1280px, 100%); margin: auto; }
.ew-vdash-overlay { display: none; }
.ew-vdash-mobile-nav { display: none; }

.ew-app .ew-title { font-size: clamp(1.15rem, 2.5vw, 1.55rem); margin: 0 0 .35rem; }
.ew-page-actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Volgh-style stat widgets (Dashboard 01) */
.ew-widget-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.ew-widget-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-widget, a.ew-widget {
  display: block; padding: 24px 20px; border: 0; border-radius: 7px; background: #fff; text-align: center; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0, 64, 128, .06), 0 8px 24px rgba(0, 64, 128, .04);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.ew-widget:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 102, 204, .12); color: inherit; }
.ew-widget-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #fff;
}
.ew-widget-icon svg { width: 24px; height: 24px; }
.ew-widget-primary .ew-widget-icon { background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); }
.ew-widget-success .ew-widget-icon { background: linear-gradient(135deg, #0d9488, #34d399); }
.ew-widget-warning .ew-widget-icon { background: linear-gradient(135deg, #ea580c, #fb923c); }
.ew-widget-info .ew-widget-icon { background: linear-gradient(135deg, var(--ew-royal), var(--ew-cobalt)); }
.ew-widget-label { display: block; color: #8d9db0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ew-widget-value { display: block; margin: 10px 0 8px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.ew-widget-note { display: block; margin: 0; color: #9aa8b8; font-size: .78rem; line-height: 1.5; }

/* Volgh data panels, tables, forms */
.ew-data-panel {
  border: 0; border-radius: 7px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 64, 128, .06), 0 8px 24px rgba(0, 64, 128, .04); overflow: hidden;
}
.ew-data-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid #e8edf3; background: #fff;
}
.ew-data-count {
  color: var(--ew-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.ew-data-body { padding: 0; }
.ew-data-body .ew-empty-state { padding: 48px 24px; }
.ew-data-footer { padding: 14px 20px; border-top: 1px solid var(--ew-line); background: #fbfdff; }

.ew-search-form { flex: 1 1 280px; max-width: 460px; margin: 0; }
.ew-search-group { display: flex; align-items: stretch; gap: 8px; }
.ew-search-input {
  flex: 1; min-height: 42px; padding: 0 14px; border: 1px solid #c5dff0 !important;
  border-radius: 10px !important; background: #fff !important; font-size: .86rem;
}
.ew-search-input:focus { border-color: var(--ew-cobalt) !important; box-shadow: 0 0 0 3px rgba(0, 102, 204, .12) !important; }
.ew-search-btn { min-height: 42px !important; padding-inline: 1rem !important; border-radius: 10px !important; }

.ew-table-admin { margin: 0; --bs-table-bg: transparent; --bs-table-hover-bg: var(--ew-sky-soft); }
.ew-table-admin thead th {
  background: #f6faff; border-bottom: 1px solid var(--ew-line); color: var(--ew-muted);
  font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em;
  padding: .85rem 1rem; white-space: nowrap;
}
.ew-table-admin tbody td {
  padding: .78rem 1rem; font-size: .84rem; vertical-align: middle; border-bottom: 1px solid #e8f1f8;
}
.ew-table-admin tbody tr:last-child td { border-bottom: 0; }
.ew-table-admin .ew-cell-muted { color: var(--ew-muted); font-size: .78rem; }
.ew-table-admin .ew-cell-stack strong { display: block; color: var(--ew-navy); }
.ew-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.ew-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ew-pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .75rem;
  border: 1px solid var(--ew-line); border-radius: 10px; background: #fff; color: var(--ew-muted);
  font-size: .78rem; font-weight: 800; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.ew-pagination .page-link:hover { color: var(--ew-cobalt); border-color: var(--ew-cobalt); background: var(--ew-sky-soft); }
.ew-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); border-color: transparent; color: #fff;
}
.ew-pagination .page-item.disabled .page-link { opacity: .45; pointer-events: none; background: #f8fbff; }

.ew-section-card {
  border: 1px solid var(--ew-line); border-radius: 14px; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 64, 128, .05); overflow: hidden; margin-bottom: 20px;
}
.ew-section-head {
  padding: 18px 22px; border-bottom: 1px solid var(--ew-line);
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}
.ew-section-head h2 { margin: 0; color: var(--ew-navy); font-size: 1rem; font-weight: 800; }
.ew-section-head p { margin: 6px 0 0; color: var(--ew-muted); font-size: .86rem; line-height: 1.55; }
.ew-section-body { padding: 22px; }

.ew-kpi-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ew-kpi-tile {
  position: relative; overflow: hidden; padding: 16px 18px 16px 22px;
  border: 1px solid var(--ew-line); border-radius: 12px; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 64, 128, .04);
}
.ew-kpi-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--ew-cobalt), var(--ew-sky));
}
.ew-kpi-tile.accent-green::before { background: linear-gradient(180deg, #00875a, #34c38f); }
.ew-kpi-tile.accent-gold::before { background: linear-gradient(180deg, var(--ew-royal), var(--ew-cobalt)); }
.ew-kpi-tile span { display: block; color: var(--ew-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ew-kpi-tile strong { display: block; margin-top: 6px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.ew-kpi-tile small { display: block; margin-top: 4px; color: var(--ew-muted); font-size: .76rem; line-height: 1.45; }

.ew-choice-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 2px solid var(--ew-line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ew-choice-card:hover { border-color: #9ecae8; background: #fbfdff; }
.ew-choice-card:has(input:checked) {
  border-color: var(--ew-cobalt); background: var(--ew-sky-soft); box-shadow: 0 0 0 3px rgba(0, 102, 204, .1);
}
.ew-choice-card input { accent-color: var(--ew-cobalt); flex-shrink: 0; }

.ew-profile-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 22px; margin-bottom: 20px; border: 1px solid var(--ew-line); border-radius: 14px;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 64, 128, .05);
}
.ew-profile-header-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ew-profile-header-main h2 { margin: 0; color: var(--ew-navy); font-size: 1.15rem; font-weight: 800; }
.ew-profile-header-main p { margin: 2px 0 0; color: var(--ew-muted); font-size: .84rem; }
.ew-profile-meta { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.ew-profile-meta div span { display: block; color: var(--ew-muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ew-profile-meta div strong { display: block; margin-top: 2px; color: var(--ew-navy); font-size: .86rem; font-weight: 700; }
.ew-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ew-tab-panel {
  border: 1px solid var(--ew-line); border-radius: 0 0 14px 14px; background: #fff;
  border-top: 0; padding: 18px 20px; box-shadow: 0 8px 24px rgba(0, 64, 128, .04);
}
.ew-app .nav-tabs { padding: 0 4px; border-bottom: 0; background: #fff; border: 1px solid var(--ew-line); border-radius: 14px 14px 0 0; padding-top: 8px; }
.ew-app .nav-tabs .nav-link { margin-bottom: -1px; }

.ew-badge-soft {
  display: inline-flex; align-items: center; padding: .28rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em;
}
.ew-badge-soft.primary { background: rgba(0, 102, 204, .12); color: var(--ew-cobalt); }
.ew-badge-soft.success { background: rgba(0, 135, 90, .12); color: #00875a; }
.ew-badge-soft.warning { background: rgba(217, 119, 6, .14); color: #b45309; }
.ew-badge-soft.danger { background: rgba(214, 69, 69, .12); color: var(--ew-red); }
.ew-badge-soft.neutral { background: #eef4fb; color: var(--ew-muted); }

.ew-empty-state { text-align: center; color: var(--ew-muted); font-size: .9rem; }
.ew-form-panel { max-width: 560px; }
.ew-link-strong { color: var(--ew-cobalt); font-weight: 800; text-decoration: none; }
.ew-link-strong:hover { color: var(--ew-cobalt-dark); text-decoration: underline; }

body.ew-sidebar-collapsed { --ew-sidebar-width: 86px; }
body.ew-sidebar-collapsed .ew-vdash-brand-text,
body.ew-sidebar-collapsed .ew-vdash-nav-link span:last-child,
body.ew-sidebar-collapsed .ew-vdash-nav-label,
body.ew-sidebar-collapsed .ew-vdash-user-meta,
body.ew-sidebar-collapsed .ew-vdash-sidebar-foot .ew-button { display: none; }
body.ew-sidebar-collapsed .ew-vdash-nav-link { justify-content: center; padding-inline: 8px; }
body.ew-sidebar-collapsed .ew-vdash-user-card { justify-content: center; }

.ew-app .ew-panel { border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 64, 128, .06); }
.ew-app .ew-stat { border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 64, 128, .04); }
.ew-app .ew-stat.gold { background: var(--ew-sky-soft); border-color: #b8e8fa; }
.ew-app .ew-stat.green { background: #eefbf6; border-color: #bfe2d7; }
.ew-app .card, .ew-app .ew-panel-card, .ew-app .rrt-panel-card {
  border-radius: 18px !important; border-color: var(--ew-line) !important;
  box-shadow: 0 12px 32px rgba(0, 64, 128, .06) !important; overflow: hidden;
}
.ew-app .card-header {
  background: linear-gradient(180deg, #fbfdff, #f3f9ff); border-bottom-color: var(--ew-line) !important;
  padding: 14px 18px; color: var(--ew-navy); font-weight: 800; font-size: .88rem;
}
.ew-app .card-body { padding: 18px; }
.ew-app .table-hover tbody tr:hover { background: var(--ew-sky-soft); }
.ew-app .ew-balance-band {
  gap: 14px; background: transparent; border-radius: 0; overflow: visible;
}
.ew-app .ew-balance-item {
  border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg, var(--ew-navy), #004080);
  box-shadow: 0 14px 30px rgba(0, 51, 102, .14);
}
.ew-app .ew-balance-item.primary { background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); }
.ew-app .ew-balance-item:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.ew-app .btn-primary, .ew-app .btn-success { border-radius: 999px !important; font-weight: 800 !important; text-transform: uppercase; font-size: .72rem !important; }
.ew-app .btn-outline-secondary, .ew-app .btn-outline-primary, .ew-app .btn-outline-danger, .ew-app .btn-outline-info {
  border-radius: 999px !important; font-weight: 700 !important; font-size: .74rem !important;
}
.ew-app .btn-sm { min-height: 34px; }
.ew-app .table > :not(caption) > * > * { padding: .72rem .85rem; }
.ew-app .nav-tabs { border-bottom-color: var(--ew-line); gap: 6px; }
.ew-app .nav-tabs .nav-link {
  border: 0; border-radius: 999px; color: var(--ew-muted); font-size: .78rem; font-weight: 800; padding: .55rem .95rem;
}
.ew-app .nav-tabs .nav-link.active { color: white; background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); }
.ew-select, .form-control, .form-select { border: 1px solid #bdc8d6 !important; border-radius: 10px !important; background: white !important; color: var(--ew-ink) !important; }
.ew-select { width: 100%; min-height: 42px; padding: 0 10px; }

.ew-eyebrow { color: var(--ew-cobalt); font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.ew-title { margin: .4rem 0; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.ew-title-light { color: white; }
.ew-lead { font-size: 1.08rem; line-height: 1.75; color: var(--ew-muted); max-width: 620px; }
.ew-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 174, 239, .12); color: var(--ew-cobalt); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.ew-topbar {
  background: var(--ew-royal); color: rgba(255,255,255,.88); font-size: .76rem;
}
.ew-topbar-inner {
  width: min(1280px, calc(100% - 40px)); margin: auto; min-height: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0;
}
.ew-topbar span { display: inline-flex; align-items: center; gap: 8px; }
.ew-public-header { box-shadow: 0 8px 28px rgba(0, 64, 128, .06); }
.ew-button { border-radius: 999px !important; padding-inline: 1.35rem !important; }
.ew-button.secondary { border-radius: 999px !important; }
.ew-services {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.ew-service-card {
  padding: 28px 22px; border-radius: 18px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 10px 30px rgba(0, 64, 128, .06); transition: transform .2s ease, box-shadow .2s ease;
}
.ew-service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 102, 204, .12); }
.ew-service-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white; font-size: 1.35rem;
}
.ew-service-card h3 { margin: 0 0 8px; color: var(--ew-navy); font-size: 1.05rem; font-weight: 800; }
.ew-service-card p { margin: 0; color: var(--ew-muted); font-size: .88rem; line-height: 1.6; }
.ew-about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .92fr); gap: 48px; align-items: center;
}
.ew-about-visual {
  min-height: 420px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--ew-royal), var(--ew-sky));
  box-shadow: 0 24px 50px rgba(0, 64, 128, .18);
}
.ew-about-visual::before {
  content: ''; position: absolute; inset: 24px; border-radius: 18px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.ew-about-stat {
  position: absolute; left: 28px; right: 28px; bottom: 28px; padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.95); color: var(--ew-navy);
}
.ew-about-stat strong { display: block; font-size: 2rem; color: var(--ew-cobalt); }
.ew-process-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: ewstep;
}
.ew-process-step {
  position: relative; padding: 26px 20px 22px; border-radius: 18px; border: 1px solid var(--ew-line); background: white;
}
.ew-process-step::before {
  counter-increment: ewstep; content: counter(ewstep, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px;
  background: var(--ew-sky-soft); color: var(--ew-cobalt); font-weight: 800; font-size: .82rem;
}
.ew-process-step h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ew-navy); }
.ew-process-step p { margin: 0; color: var(--ew-muted); font-size: .86rem; line-height: 1.55; }
.ew-plans-showcase {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--ew-line);
  box-shadow: 0 20px 48px rgba(0, 64, 128, .1); background: white;
}
.ew-plans-showcase thead { background: linear-gradient(90deg, var(--ew-royal), var(--ew-cobalt)); }
.ew-plans-showcase thead th {
  color: white !important; border: 0; padding: 18px 20px; font-size: .72rem; letter-spacing: .08em;
}
.ew-plans-showcase tbody td { padding: 16px 20px; vertical-align: middle; }
.ew-plans-showcase tbody tr:nth-child(even) { background: var(--ew-sky-soft); }
.ew-plans-showcase tbody strong { color: var(--ew-royal); font-size: 1.05rem; }
.ew-plans-total { color: var(--ew-green); font-weight: 800; font-size: 1.05rem; }
.ew-cta-band {
  padding: 56px 0; background: linear-gradient(135deg, var(--ew-royal), var(--ew-cobalt) 55%, var(--ew-sky));
  color: white; text-align: center;
}
.ew-cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.ew-cta-band p { margin: 0 auto 22px; max-width: 560px; color: rgba(255,255,255,.88); }
.ew-footer-grid {
  display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 28px; padding: 48px 0 28px;
}
.ew-footer-grid h4 { margin: 0 0 12px; color: var(--ew-navy); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ew-footer-grid a, .ew-footer-grid p { display: block; margin: 0 0 8px; color: var(--ew-muted); text-decoration: none; font-size: .88rem; }
.ew-footer-grid a:hover { color: var(--ew-cobalt); }
.ew-footer-bottom {
  padding: 18px 0 28px; border-top: 1px solid var(--ew-line); color: var(--ew-muted); font-size: .82rem;
}
.ew-hero-visual-panel {
  position: relative; min-height: 380px; border-radius: 24px; overflow: hidden;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 50px rgba(0, 51, 102, .22);
}
.ew-hero-visual-panel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 51, 102, .55));
}
.ew-hero-float {
  position: absolute; z-index: 1; padding: 16px 18px; border-radius: 14px; background: white; color: var(--ew-navy);
  box-shadow: 0 12px 30px rgba(0, 64, 128, .15);
}
.ew-hero-float strong { display: block; margin-top: 4px; font-size: 1.25rem; color: var(--ew-cobalt); }
.ew-hero-float.a { top: 28px; left: 24px; }
.ew-hero-float.b { top: 120px; right: 24px; }
.ew-hero-float.c { bottom: 28px; left: 24px; right: 24px; background: linear-gradient(90deg, var(--ew-cobalt), var(--ew-sky)); color: white; }
.ew-hero-float.c strong { color: white; font-size: 1.5rem; }
.ew-copy { color: var(--ew-muted); line-height: 1.7; }
.ew-panel { border: 1px solid var(--ew-line); border-radius: 18px; background: white; box-shadow: 0 12px 32px rgba(0, 64, 128, .06); }
.ew-panel-pad { padding: clamp(20px, 3vw, 32px); }
.ew-grid { display: grid; gap: 18px; }
.ew-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ew-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ew-stat { min-height: 112px; padding: 18px; border: 1px solid var(--ew-line); border-radius: 16px; background: white; }
.ew-stat.gold { background: var(--ew-sky-soft); border-color: #b8e8fa; }
.ew-stat.green { background: #eefbf6; border-color: #bfe2d7; }
.ew-stat span { display: block; color: var(--ew-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.ew-stat strong { display: block; margin-top: .55rem; color: var(--ew-navy); font-size: clamp(1.25rem, 3vw, 1.9rem); overflow-wrap: anywhere; }
.ew-stat small { display: block; margin-top: .4rem; color: var(--ew-muted); }
.ew-balance-band { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 6px; background: var(--ew-navy); color: white; }
.ew-balance-item { min-height: 128px; padding: 24px; border-right: 1px solid rgba(255,255,255,.13); }
.ew-balance-item:last-child { border-right: 0; }
.ew-balance-item span { color: #aebdd1; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.ew-balance-item strong { display: block; margin-top: 13px; color: white; font-size: clamp(1.35rem, 3vw, 2.2rem); }
.ew-balance-item small { display: block; margin-top: 7px; color: #aebdd1; }
.ew-balance-item.primary { background: var(--ew-cobalt); }
.ew-list-row { padding: 18px 0; border-bottom: 1px solid var(--ew-line); }
.ew-list-row:last-child { border-bottom: 0; }
.ew-table, .table { --bs-table-bg: transparent; --bs-table-color: var(--ew-ink); --bs-table-border-color: var(--ew-line); }
.ew-table th, .table th { color: var(--ew-muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.card { border: 1px solid var(--ew-line); border-radius: 6px; background: white; color: var(--ew-ink); box-shadow: 0 8px 24px rgba(25,50,83,.05); }
.card-header { border-radius: 6px 6px 0 0 !important; border-bottom-color: var(--ew-line); background: #f8fafc; color: var(--ew-navy); font-weight: 800; }
.text-muted { color: var(--ew-muted) !important; }
.alert { border-radius: 5px; border: 1px solid var(--ew-line); background: white; color: var(--ew-ink); }
.alert-success { border-left: 4px solid var(--ew-green); }
.alert-danger { border-left: 4px solid var(--ew-red); }
.alert-warning { border-left: 4px solid var(--ew-gold); }

.ew-impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem clamp(1rem, 3vw, 2.5rem);
    background: #fff3cd;
    border-bottom: 2px solid #d39e00;
    color: #362900;
    font-size: 0.85rem;
}
.ew-impersonation-bar form { margin: 0; }
.ew-impersonation-bar button {
    border: 1px solid #6f5600;
    background: #fff;
    color: #362900;
    padding: 0.4rem 0.7rem;
    font-weight: 700;
}
@media (max-width: 576px) {
    .ew-impersonation-bar { align-items: stretch; flex-direction: column; }
    .ew-impersonation-bar button { width: 100%; }
}
.badge { border-radius: 3px; }
.progress { background: #e7ecf2; }

.ew-hero {
  position: relative; overflow: hidden;
  min-height: min(680px, calc(100vh - 76px));
  display: grid; align-items: center;
  background: linear-gradient(135deg, var(--ew-royal) 0%, var(--ew-cobalt) 42%, var(--ew-sky) 100%);
}
.ew-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(0,174,239,.25), transparent 38%);
}
.ew-hero::after {
  content: 'E'; position: absolute; right: max(24px, calc((100% - 1180px) / 2)); top: 50%;
  transform: translateY(-50%); font-size: clamp(12rem, 28vw, 22rem); font-weight: 900;
  color: rgba(255,255,255,.06); line-height: 1; pointer-events: none;
}
.ew-hero-inner {
  position: relative; width: min(1180px, calc(100% - 40px)); margin: auto;
  padding: 64px 0 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 40px; align-items: center;
}
.ew-hero-copy { width: min(580px, 100%); }
.ew-hero .ew-tagline { margin: 0 0 .5rem; color: var(--ew-sky-soft); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ew-hero .ew-script { margin: .6rem 0 1rem; color: white; font-family: var(--ew-font-accent); font-size: clamp(1.35rem, 3vw, 1.85rem); font-style: italic; font-weight: 400; opacity: .95; }
.ew-hero .ew-eyebrow { color: var(--ew-sky-soft); }
.ew-hero h1 { margin: .35rem 0 1rem; color: white; font-family: var(--ew-font-display); font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.ew-hero h1 span { display: block; color: var(--ew-sky-soft); font-weight: 700; }
.ew-hero .ew-copy { color: rgba(255,255,255,.88); max-width: 520px; }
.ew-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ew-hero-card {
  padding: 28px; border-radius: 16px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px); color: white;
  box-shadow: 0 18px 40px rgba(0, 51, 102, .22);
}
.ew-hero-card strong { display: block; margin-top: 6px; font-size: 1.55rem; }
.ew-hero-card small { color: rgba(255,255,255,.78); }
.ew-hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ew-hero-metrics div { padding: 14px; border-radius: 10px; background: rgba(255,255,255,.1); }
.ew-hero-metrics span { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ew-hero-metrics b { display: block; margin-top: 4px; font-size: 1.15rem; }
.ew-facts-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-bottom: 1px solid var(--ew-line); }
.ew-facts-bar div { padding: 24px 28px; border-right: 1px solid var(--ew-line); }
.ew-facts-bar div:last-child { border-right: 0; }
.ew-facts-bar span { display: block; color: var(--ew-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.ew-facts-bar strong { display: block; margin-top: 6px; color: var(--ew-navy); }
.ew-section { padding: 88px 0; background: white; }
.ew-section.alt { background: var(--ew-canvas); }
.ew-section-heading { max-width: 720px; margin-bottom: 34px; }
.ew-return-table { overflow: hidden; border: 1px solid var(--ew-line); border-radius: 14px; background: white; box-shadow: 0 12px 32px rgba(0, 64, 128, .08); }
.ew-return-table thead { background: linear-gradient(90deg, var(--ew-royal), var(--ew-cobalt)); }
.ew-return-table thead th { color: white !important; border: 0; padding: 16px 18px; }
.ew-return-table tbody tr:nth-child(even) { background: var(--ew-sky-soft); }
.ew-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ew-tier-card {
  padding: 22px 20px; border-radius: 14px; border: 1px solid var(--ew-line);
  background: white; box-shadow: 0 8px 24px rgba(0, 64, 128, .06);
}
.ew-tier-card:hover { border-color: var(--ew-sky); transform: translateY(-2px); transition: .2s ease; }
.ew-tier-card span { display: block; color: var(--ew-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.ew-tier-card strong { display: block; margin: 8px 0 4px; color: var(--ew-royal); font-size: 1.65rem; }
.ew-tier-card em { display: block; color: var(--ew-green); font-style: normal; font-weight: 700; font-size: .92rem; }
.ew-split-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
.ew-referral-steps { display: grid; gap: 10px; }
.ew-referral-step {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--ew-line); background: white;
}
.ew-referral-step i {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white;
  font-style: normal; font-weight: 800; font-size: .78rem;
}
.ew-referral-step strong { color: var(--ew-cobalt); font-size: 1.75rem; }
.ew-fee-card {
  padding: 28px; border-radius: 16px; text-align: center;
  border: 2px solid var(--ew-sky); background: linear-gradient(180deg, white, var(--ew-sky-soft));
}
.ew-fee-card strong { display: block; margin: 10px 0 6px; color: var(--ew-royal); font-size: 3rem; line-height: 1; }
.ew-trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: 14px; overflow: hidden; background: var(--ew-royal); color: white;
}
.ew-trust-bar div { padding: 22px 16px; border-right: 1px solid rgba(255,255,255,.14); text-align: center; }
.ew-trust-bar div:last-child { border-right: 0; }
.ew-trust-bar span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ew-trust-bar small { display: block; margin-top: 6px; color: rgba(255,255,255,.75); font-size: .72rem; }
.ew-level { padding: 28px 0; border-top: 1px solid var(--ew-line); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.ew-level strong { color: var(--ew-cobalt); font-size: 2.4rem; }
.ew-footer { padding: 34px 0; border-top: 1px solid var(--ew-line); color: var(--ew-muted); background: white; }
.ew-footer-script { color: var(--ew-cobalt); font-family: var(--ew-font-accent); font-style: italic; font-size: 1.05rem; }

.ew-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(380px, .95fr); }
.ew-auth-visual { position: relative; min-height: 620px; background: linear-gradient(135deg, var(--ew-royal), var(--ew-sky)); }
.ew-auth-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.15), transparent 50%); }
.ew-auth-message { position: absolute; z-index: 1; left: clamp(28px, 6vw, 90px); bottom: clamp(36px, 8vw, 100px); width: min(570px, calc(100% - 56px)); }
.ew-auth-message .ew-title, .ew-auth-message .ew-copy { color: white; }
.ew-auth-message .ew-eyebrow { color: var(--ew-sky-soft); }
.ew-auth-panel { display: grid; place-items: center; padding: 42px; background: white; }
.ew-auth-form { width: min(520px, 100%); }
.ew-auth-form h1, .ew-auth-form .ew-title {
  margin: .35rem 0 .75rem;
  color: var(--ew-navy);
  font-family: var(--ew-font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ew-auth-form .form-control { min-height: 52px; }
.ew-auth-form label { margin-bottom: .4rem; color: #45556d; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.ew-register-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(320px, .95fr);
  background: var(--ew-canvas);
}
.ew-register-shell .ew-auth-panel {
  align-content: start;
  padding: clamp(32px, 5vw, 56px);
  background: transparent;
}
.ew-register-shell .ew-auth-form { width: min(600px, 100%); }
.ew-register-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.ew-register-step {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--ew-line); background: white;
  color: var(--ew-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.ew-register-step i {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ew-sky-soft); color: var(--ew-cobalt); font-style: normal; font-size: .62rem;
}
.ew-register-block {
  padding: 22px 22px 8px; margin-bottom: 16px; border-radius: 16px;
  border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 10px 28px rgba(0, 64, 128, .06);
}
.ew-register-block-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.ew-register-block-head span {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white;
  font-family: var(--ew-font-display); font-size: .85rem; font-weight: 800;
}
.ew-register-block-head h2 {
  margin: 0; color: var(--ew-navy); font-family: var(--ew-font-display);
  font-size: 1rem; font-weight: 800; letter-spacing: -.01em;
}
.ew-register-block-head p { margin: 2px 0 0; color: var(--ew-muted); font-size: .82rem; }
.ew-register-visual {
  position: relative; min-height: 100%; padding: clamp(36px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: center; color: white;
  background: linear-gradient(160deg, var(--ew-navy) 0%, var(--ew-royal) 45%, var(--ew-sky) 100%);
  overflow: hidden;
}
.ew-register-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(0,174,239,.25), transparent 40%);
}
.ew-register-visual-inner { position: relative; z-index: 1; width: min(440px, 100%); margin: auto; }
.ew-register-visual .ew-title { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.ew-register-visual .ew-copy { color: rgba(255,255,255,.88); }
.ew-register-perks { display: grid; gap: 12px; margin-top: 28px; }
.ew-register-perk {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
}
.ew-register-perk strong {
  display: block; font-family: var(--ew-font-display); font-size: 1.35rem; line-height: 1;
}
.ew-register-perk span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: .78rem; line-height: 1.45; }
.ew-register-perk i {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.16); font-style: normal; font-weight: 800; font-size: .72rem;
}
.ew-register-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.28); color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.55;
}

/* Compatibility alias for inherited admin markup. */
.ew-panel-card, .rrt-panel-card { border-radius: 18px !important; font-family: var(--ew-font-body); border-color: var(--ew-line) !important; box-shadow: 0 12px 32px rgba(0, 64, 128, .06) !important; }
.ew-app .ew-btn-accent, .ew-app .btn-accent {
  border: 0; border-radius: 999px !important; background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)) !important;
  color: white !important; font-weight: 800 !important; font-size: .72rem !important;
}
.ew-app .badge-accent { background: var(--ew-cobalt) !important; color: white !important; }
.ew-app .ud-stat { background: var(--ew-sky-soft); border: 1px solid #b8e8fa; border-radius: 14px; padding: .65rem .75rem; text-align: center; }
.ew-app .ud-stat small { display: block; font-size: .68rem; color: var(--ew-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ew-app .ud-stat strong { font-size: .95rem; color: var(--ew-navy); }

.ew-password-field { position: relative; }
.ew-password-field .form-control { padding-right: 3rem; }
.ew-password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  width: 40px;
  height: auto;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #52647a;
}
.ew-password-toggle:hover { background: #eef4fb; color: var(--ew-cobalt); }
.ew-password-toggle:focus-visible { outline: 2px solid var(--ew-cobalt); outline-offset: -2px; }
.ew-password-eye {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-radius: 75% 15%;
}
.ew-password-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.ew-password-toggle.is-visible::after {
  content: '';
  position: absolute;
  width: 23px;
  height: 2px;
  transform: rotate(-45deg);
  background: currentColor;
}

/* Landing page */
.ew-landing .ew-public-header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(197, 223, 240, .75);
}
.ew-lp-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
  color: white;
  background: linear-gradient(145deg, #002244 0%, var(--ew-royal) 38%, var(--ew-cobalt) 72%, var(--ew-sky) 100%);
}
.ew-lp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(0,174,239,.28), transparent 28%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, black 55%, transparent);
}
.ew-lp-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.ew-lp-pill {
  display: inline-flex; align-items: center; padding: 8px 14px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.92); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ew-lp-pill.light { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.ew-lp-hero h1 {
  margin: 0 0 18px; max-width: 640px;
  font-family: var(--ew-font-display); font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -.03em;
}
.ew-lp-hero h1 span { color: var(--ew-sky-soft); }
.ew-lp-lead { max-width: 540px; margin: 0; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.75; }
.ew-lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ew-lp-hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 600;
}
.ew-lp-hero-trust span::before { content: '•'; margin-right: 10px; color: var(--ew-sky-soft); }
.ew-lp-hero-trust span:first-child::before { content: none; margin: 0; }

.ew-lp-dashboard {
  padding: 22px; border-radius: 24px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12); backdrop-filter: blur(14px);
  box-shadow: 0 28px 60px rgba(0, 34, 68, .28);
}
.ew-lp-dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ew-lp-dashboard-label { color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ew-lp-dashboard-badge {
  padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.16);
  color: white; font-size: .62rem; font-weight: 800; text-transform: uppercase;
}
.ew-lp-dashboard-stat {
  padding: 18px; margin-bottom: 16px; border-radius: 16px; background: white; color: var(--ew-navy);
}
.ew-lp-dashboard-stat small { display: block; color: var(--ew-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.ew-lp-dashboard-stat strong { display: block; margin: 6px 0 4px; color: var(--ew-cobalt); font-family: var(--ew-font-display); font-size: 2rem; line-height: 1; }
.ew-lp-dashboard-stat span { color: var(--ew-muted); font-size: .82rem; }
.ew-lp-cycle-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px;
}
.ew-lp-cycle-day {
  padding: 10px 6px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: rgba(255,255,255,.72);
}
.ew-lp-cycle-day i { display: block; font-style: normal; font-size: .58rem; font-weight: 800; text-transform: uppercase; opacity: .85; }
.ew-lp-cycle-day b { display: block; margin-top: 4px; font-family: var(--ew-font-display); font-size: .95rem; }
.ew-lp-cycle-day.done { background: rgba(255,255,255,.22); color: white; }
.ew-lp-cycle-day.active { background: white; color: var(--ew-cobalt); border-color: white; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ew-lp-dashboard-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ew-lp-dashboard-footer div {
  padding: 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
}
.ew-lp-dashboard-footer span { display: block; color: rgba(255,255,255,.72); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.ew-lp-dashboard-footer strong { display: block; margin-top: 6px; color: white; font-family: var(--ew-font-display); font-size: 1.05rem; }

.ew-lp-stats { background: white; border-bottom: 1px solid var(--ew-line); box-shadow: 0 12px 30px rgba(0, 64, 128, .05); }
.ew-lp-stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ew-lp-stats-grid article {
  padding: 24px 28px; border-right: 1px solid var(--ew-line);
}
.ew-lp-stats-grid article:last-child { border-right: 0; }
.ew-lp-stats-grid span { display: block; color: var(--ew-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ew-lp-stats-grid strong { display: block; margin: 8px 0 4px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1.65rem; line-height: 1; }
.ew-lp-stats-grid small { color: var(--ew-muted); font-size: .78rem; }

.ew-lp-section { padding: clamp(72px, 10vw, 104px) 0; background: white; }
.ew-lp-section.alt { background: var(--ew-canvas); }
.ew-lp-section.compact { padding: 48px 0 72px; }
.ew-lp-section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.ew-lp-section-head .ew-lead { margin-inline: auto; }

.ew-lp-bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 18px;
}
.ew-lp-bento-main {
  grid-row: span 2; padding: clamp(28px, 4vw, 36px); border-radius: 24px;
  border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 18px 40px rgba(0, 64, 128, .07);
}
.ew-lp-bento-main h3 { margin: 10px 0 14px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; }
.ew-lp-bento-main p, .ew-lp-bento-main li { color: var(--ew-muted); line-height: 1.65; }
.ew-lp-bento-main ul { margin: 18px 0 0; padding-left: 1.1rem; }
.ew-lp-bento-card {
  padding: 24px; border-radius: 20px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 12px 28px rgba(0, 64, 128, .05);
}
.ew-lp-bento-card.accent {
  background: linear-gradient(145deg, var(--ew-royal), var(--ew-cobalt)); border-color: transparent; color: white;
}
.ew-lp-bento-card.accent .ew-eyebrow, .ew-lp-bento-card.accent p { color: rgba(255,255,255,.82); }
.ew-lp-bento-card strong {
  display: block; margin: 10px 0 8px; font-family: var(--ew-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--ew-cobalt);
}
.ew-lp-bento-card.accent strong { color: white; }
.ew-lp-bento-card p { margin: 0; color: var(--ew-muted); font-size: .88rem; line-height: 1.55; }

.ew-lp-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.ew-lp-plan-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px; border-radius: 22px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 14px 34px rgba(0, 64, 128, .06); transition: transform .2s ease, box-shadow .2s ease;
}
.ew-lp-plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 102, 204, .12); }
.ew-lp-plan-card.featured {
  border-color: var(--ew-sky); background: linear-gradient(180deg, white, var(--ew-sky-soft));
  box-shadow: 0 22px 44px rgba(0, 102, 204, .14);
}
.ew-lp-plan-tag {
  position: absolute; top: 16px; right: 16px; padding: 6px 10px; border-radius: 999px;
  background: var(--ew-cobalt); color: white; font-size: .58rem; font-weight: 800; text-transform: uppercase;
}
.ew-lp-plan-label { color: var(--ew-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.ew-lp-plan-card > strong { color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 2rem; line-height: 1; }
.ew-lp-plan-rows { display: grid; gap: 10px; margin: 4px 0 8px; }
.ew-lp-plan-rows div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(0, 102, 204, .06);
}
.ew-lp-plan-rows span { color: var(--ew-muted); font-size: .76rem; font-weight: 700; }
.ew-lp-plan-rows b { color: var(--ew-green); font-size: .95rem; }

.ew-lp-timeline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative;
}
.ew-lp-timeline::before {
  content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--ew-sky-soft), var(--ew-cobalt), var(--ew-sky-soft)); z-index: 0;
}
.ew-lp-timeline-step {
  position: relative; z-index: 1; padding: 22px 18px; border-radius: 20px;
  border: 1px solid var(--ew-line); background: white; box-shadow: 0 10px 28px rgba(0, 64, 128, .05);
}
.ew-lp-timeline-step span {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white;
  font-family: var(--ew-font-display); font-size: .82rem; font-weight: 800;
}
.ew-lp-timeline-step h3 { margin: 0 0 8px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1rem; font-weight: 800; }
.ew-lp-timeline-step p { margin: 0; color: var(--ew-muted); font-size: .86rem; line-height: 1.55; }

.ew-lp-ref-section {
  padding: clamp(72px, 10vw, 104px) 0;
  background: linear-gradient(180deg, white 0%, var(--ew-sky-soft) 100%);
}
.ew-lp-ref-showcase {
  display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; margin-bottom: 28px;
}
.ew-lp-ref-cascade {
  display: grid; gap: 0; padding: 24px; border-radius: 24px;
  background: linear-gradient(160deg, var(--ew-navy), var(--ew-royal) 55%, var(--ew-cobalt));
  box-shadow: 0 24px 50px rgba(0, 51, 102, .2); color: white;
}
.ew-lp-ref-node {
  padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
}
.ew-lp-ref-node.you {
  background: white; color: var(--ew-navy); border-color: transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.ew-lp-ref-node span { display: block; font-family: var(--ew-font-display); font-size: .95rem; font-weight: 800; }
.ew-lp-ref-node small { display: block; margin-top: 4px; font-size: .72rem; opacity: .82; }
.ew-lp-ref-node.you small { color: var(--ew-muted); opacity: 1; }
.ew-lp-ref-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 6px 10px 18px; position: relative;
}
.ew-lp-ref-link::before {
  content: ''; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.22);
}
.ew-lp-ref-link i {
  position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ew-sky); color: white; font-style: normal; font-size: .62rem; font-weight: 800;
}
.ew-lp-ref-link b {
  font-family: var(--ew-font-display); font-size: 1.15rem; color: var(--ew-sky-soft);
}
.ew-lp-ref-link span { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.ew-lp-ref-detail { display: grid; gap: 18px; }
.ew-lp-ref-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ew-lp-ref-level {
  padding: 22px 18px; border-radius: 18px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 12px 28px rgba(0, 64, 128, .06);
}
.ew-lp-ref-level.featured {
  border-color: var(--ew-sky); background: linear-gradient(180deg, white, var(--ew-sky-soft));
  transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 102, 204, .12);
}
.ew-lp-ref-level-tag {
  display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--ew-sky-soft);
  color: var(--ew-cobalt); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.ew-lp-ref-level strong {
  display: block; margin: 12px 0 8px; color: var(--ew-cobalt); font-family: var(--ew-font-display);
  font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1;
}
.ew-lp-ref-level h3 { margin: 0 0 8px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: .98rem; font-weight: 800; }
.ew-lp-ref-level p { margin: 0; color: var(--ew-muted); font-size: .84rem; line-height: 1.55; }

.ew-lp-ref-example {
  padding: 22px 24px; border-radius: 20px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 14px 32px rgba(0, 64, 128, .07);
}
.ew-lp-ref-example-head h3 { margin: 8px 0 0; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: 1.15rem; font-weight: 800; }
.ew-lp-ref-example-rows { display: grid; gap: 10px; margin: 18px 0 14px; }
.ew-lp-ref-example-rows div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--ew-canvas);
}
.ew-lp-ref-example-rows span { color: var(--ew-muted); font-size: .78rem; font-weight: 700; }
.ew-lp-ref-example-rows strong { color: var(--ew-green); font-family: var(--ew-font-display); font-size: 1.05rem; }

.ew-lp-ref-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px;
}
.ew-lp-ref-steps article {
  padding: 22px 20px; border-radius: 18px; border: 1px solid var(--ew-line); background: white;
}
.ew-lp-ref-steps span {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ew-cobalt), var(--ew-sky)); color: white;
  font-family: var(--ew-font-display); font-size: .78rem; font-weight: 800;
}
.ew-lp-ref-steps h3 { margin: 0 0 8px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: .98rem; font-weight: 800; }
.ew-lp-ref-steps p { margin: 0; color: var(--ew-muted); font-size: .86rem; line-height: 1.55; }

.ew-lp-ref-cta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(135deg, var(--ew-royal), var(--ew-cobalt)); color: white;
  box-shadow: 0 18px 40px rgba(0, 64, 128, .16);
}
.ew-lp-ref-cta h3 { margin: 0 0 6px; font-family: var(--ew-font-display); font-size: 1.25rem; font-weight: 800; }
.ew-lp-ref-cta .ew-copy { color: rgba(255,255,255,.82); }

.ew-lp-builders {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); gap: 28px; align-items: start;
}
.ew-lp-builders-panel { display: grid; gap: 18px; }
.ew-lp-tier-list { display: grid; gap: 0; margin-top: 20px; border: 1px solid var(--ew-line); border-radius: 18px; overflow: hidden; background: white; }
.ew-lp-tier-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--ew-line);
}
.ew-lp-tier-row:last-child { border-bottom: 0; }
.ew-lp-tier-row strong { display: block; color: var(--ew-navy); font-size: .95rem; }
.ew-lp-tier-row span { color: var(--ew-muted); font-size: .78rem; }
.ew-lp-tier-row em { color: var(--ew-cobalt); font-style: normal; font-family: var(--ew-font-display); font-size: 1.5rem; font-weight: 800; }
.ew-lp-fee-note {
  margin-top: 18px; padding: 20px; border-radius: 16px; text-align: center;
  border: 2px solid var(--ew-sky); background: linear-gradient(180deg, white, var(--ew-sky-soft));
}
.ew-lp-fee-note span { display: block; color: var(--ew-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.ew-lp-fee-note strong { display: block; margin: 8px 0; color: var(--ew-royal); font-family: var(--ew-font-display); font-size: 2.6rem; line-height: 1; }
.ew-lp-fee-note p { margin: 0; color: var(--ew-muted); font-size: .84rem; }
.ew-lp-fee-inline { margin-top: 24px; max-width: 420px; margin-inline: auto; text-align: center; }

.ew-legal { max-width: 820px; }
.ew-legal-head { margin-bottom: 36px; }
.ew-legal-body { display: grid; gap: 18px; }
.ew-legal-block {
  padding: 24px 26px; border-radius: 18px; border: 1px solid var(--ew-line); background: white;
  box-shadow: 0 10px 28px rgba(0, 64, 128, .05);
}
.ew-legal-block h2 {
  margin: 0 0 12px; color: var(--ew-navy); font-family: var(--ew-font-display);
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em;
}
.ew-legal-block p, .ew-legal-block li { color: var(--ew-muted); line-height: 1.7; font-size: .92rem; }
.ew-legal-block ul { margin: 10px 0 0; padding-left: 1.2rem; }
.ew-legal-block li + li { margin-top: 8px; }
.ew-legal-foot {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--ew-line);
}

.ew-lp-cta {
  padding: clamp(56px, 8vw, 84px) 0;
  background: linear-gradient(135deg, var(--ew-navy), var(--ew-royal) 45%, var(--ew-sky));
  color: white;
}
.ew-lp-cta-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.ew-lp-cta h2 {
  margin: 12px 0 10px; max-width: 16ch;
  font-family: var(--ew-font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em;
}
.ew-lp-cta p { max-width: 520px; margin: 0; color: rgba(255,255,255,.86); line-height: 1.65; }
.ew-lp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ew-lp-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.ew-lp-trust div {
  padding: 20px 18px; border-radius: 16px; border: 1px solid var(--ew-line); background: white; text-align: center;
}
.ew-lp-trust strong { display: block; margin-bottom: 6px; color: var(--ew-navy); font-family: var(--ew-font-display); font-size: .92rem; }
.ew-lp-trust span { color: var(--ew-muted); font-size: .78rem; }

@media (max-width: 1050px) {
  .ew-lp-hero-inner, .ew-lp-bento, .ew-lp-builders, .ew-lp-ref-showcase, .ew-lp-ref-levels, .ew-lp-ref-steps, .ew-lp-timeline, .ew-lp-stats-grid, .ew-lp-trust { grid-template-columns: 1fr; }
  .ew-lp-bento-main { grid-row: auto; }
  .ew-lp-stats-grid article { border-right: 0; border-bottom: 1px solid var(--ew-line); }
  .ew-lp-stats-grid article:last-child { border-bottom: 0; }
  .ew-lp-timeline::before { display: none; }
  .ew-lp-ref-level.featured { transform: none; }
  .ew-lp-hero h1 { max-width: none; }
  .ew-public-nav, .ew-public-actions { display: none; }
  .ew-public-header-inner { grid-template-columns: 1fr auto; }
  .ew-menu-button { display: inline-flex; }
  .ew-mobile-nav.open { max-height: calc(100vh - 68px); display: grid; gap: 4px; padding: 14px 20px 20px; overflow-y: auto; border-top: 1px solid var(--ew-line); background: white; }
  .ew-mobile-nav a { padding: 10px; color: var(--ew-navy); text-decoration: none; }
  .ew-mobile-nav a:hover, .ew-mobile-nav a.active { color: var(--ew-cobalt); background: var(--ew-sky-soft); box-shadow: inset 3px 0 var(--ew-sky); }
  .ew-mobile-control { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ew-line); }
  .ew-mobile-control label { display: block; margin-bottom: 6px; color: var(--ew-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
  body.ew-volgh { --ew-volgh-hor: 0px; }
  .ew-volgh-sidebar {
    top: var(--ew-volgh-header); right: auto; bottom: 0; width: min(270px, 88vw); height: auto;
    border-bottom: 0; border-right: 1px solid #edf0f7; box-shadow: none; transform: translateX(-110%);
  }
  .ew-volgh-sidebar-inner { overflow-x: hidden; overflow-y: auto; padding: 12px 0 24px; }
  .ew-volgh-nav { display: block; height: auto; min-width: 0; }
  .ew-volgh-nav-category {
    display: block; margin: 18px 0 6px; padding: 0 22px; color: #b0b9c8;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  }
  .ew-volgh-nav-item { height: auto; padding: 11px 22px; border-bottom: 0; }
  .ew-volgh-nav-item.active { background: rgba(0, 102, 204, .08); }
  .ew-volgh-main { margin-left: 0; margin-top: var(--ew-volgh-header); }
  body.ew-mobile-nav-open .ew-volgh-sidebar { transform: translateX(0); }
  body.ew-mobile-nav-open .ew-volgh-overlay {
    display: block; position: fixed; inset: 0; top: var(--ew-volgh-header); z-index: 1020; background: rgba(29, 40, 64, .35);
  }
  .ew-volgh-profile-text { display: none; }
  .ew-volgh-pagehead { margin: 12px 12px 0; padding: 12px 14px; }
  .ew-volgh-content { padding: 12px; }
  .ew-widget-grid, .ew-widget-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-grid-4, .ew-balance-band { grid-template-columns: repeat(2, 1fr); }
  .ew-balance-item:nth-child(2) { border-right: 0; }
  .ew-balance-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .ew-auth-shell, .ew-register-shell { grid-template-columns: 1fr; }
  .ew-auth-visual, .ew-register-visual { min-height: 380px; }
  .ew-register-shell .ew-auth-panel { order: -1; }
}

@media (max-width: 700px) {
  .container, .ew-page-wide { width: min(100% - 24px, 1180px); }
  .ew-grid-2, .ew-grid-3, .ew-grid-4, .ew-balance-band, .ew-facts-bar, .ew-trust-bar, .ew-split-band, .ew-hero-inner, .ew-about-grid, .ew-services, .ew-process-row, .ew-footer-grid, .ew-lp-plans-grid, .ew-widget-grid { grid-template-columns: 1fr; }
  .ew-lp-cycle-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ew-trust-bar div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .ew-balance-item, .ew-balance-item:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .ew-hero { min-height: 680px; background-position: 61% center; }
  .ew-hero::before { background: rgba(9,34,65,.7); }
  .ew-hero h1 { font-size: clamp(3.2rem, 16vw, 5.5rem); }
  .ew-auth-panel { padding: 32px 20px; }
  .ew-public-header-inner { width: calc(100% - 24px); }
  .ew-facts-bar div { border-right: 0; border-bottom: 1px solid var(--ew-line); }
}

/* AprexTrade authenticated workspace */
body.ew-atlas {
  --ew-atlas-rail: 252px;
  --ew-atlas-bar: 72px;
  --ew-atlas-forest: #102d29;
  --ew-atlas-forest-soft: #1d4941;
  --ew-atlas-mint: #36b58b;
  --ew-atlas-amber: #d8a33c;
  --ew-atlas-paper: #f4f2ec;
  --ew-atlas-ink: #172420;
  --ew-atlas-muted: #68746f;
  --ew-atlas-line: #d8ddd8;
  background: var(--ew-atlas-paper);
  color: var(--ew-atlas-ink);
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}
body.ew-atlas h1,
body.ew-atlas h2,
body.ew-atlas h3,
body.ew-atlas h4,
body.ew-atlas h5,
body.ew-atlas h6,
body.ew-atlas .h1,
body.ew-atlas .h2,
body.ew-atlas .h3,
body.ew-atlas .h4,
body.ew-atlas .h5,
body.ew-atlas .h6 { letter-spacing: 0; }
body.ew-atlas .ew-volgh-header {
  left: var(--ew-atlas-rail);
  height: var(--ew-atlas-bar);
  grid-template-columns: 1fr auto;
  padding: 0 30px;
  background: rgba(244, 242, 236, .96);
  border-bottom: 1px solid var(--ew-atlas-line);
  box-shadow: none;
}
body.ew-atlas .ew-volgh-header-left,
body.ew-atlas .ew-volgh-header-right { display: flex; align-items: center; gap: 12px; }
body.ew-atlas .ew-volgh-icon-btn {
  display: none;
  border: 1px solid var(--ew-atlas-line);
  border-radius: 3px;
  background: #fff;
  color: var(--ew-atlas-forest);
}
.ew-atlas-header-label {
  display: grid;
  color: var(--ew-atlas-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ew-atlas-header-label b { color: var(--ew-atlas-forest); font-family: "DM Serif Display", Georgia, serif; font-size: 1rem; font-weight: 400; text-transform: none; }
.ew-atlas-header-label small { font-size: .58rem; }
body.ew-atlas .ew-volgh-header-icon {
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ew-atlas-forest);
}
body.ew-atlas .ew-volgh-header-icon:hover { border-color: var(--ew-atlas-line); background: #fff; color: var(--ew-atlas-mint); }
body.ew-atlas .ew-volgh-profile {
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--ew-atlas-line);
  border-radius: 3px;
  background: #fff;
}
body.ew-atlas .ew-volgh-profile:hover { background: #fff; border-color: #aebbb5; }
body.ew-atlas .ew-volgh-avatar {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--ew-atlas-amber);
  color: #172019;
  font-family: "DM Serif Display", Georgia, serif;
}
body.ew-atlas .ew-volgh-profile-text strong { color: var(--ew-atlas-ink); }
body.ew-atlas .ew-volgh-profile-text small { color: var(--ew-atlas-muted); }
body.ew-atlas .ew-volgh-dropdown {
  border: 1px solid var(--ew-atlas-line);
  border-radius: 3px;
  box-shadow: 0 18px 45px rgba(16, 45, 41, .14);
}
body.ew-atlas .ew-volgh-sidebar {
  top: 0;
  right: auto;
  bottom: 0;
  width: var(--ew-atlas-rail);
  height: 100vh;
  background: var(--ew-atlas-forest);
  border: 0;
  box-shadow: none;
}
body.ew-atlas .ew-volgh-sidebar-inner {
  height: 100%;
  padding: 0 18px 28px;
  overflow-x: hidden;
  overflow-y: auto;
}
.ew-atlas-brand {
  min-height: var(--ew-atlas-bar);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.ew-atlas-brand:hover { color: #fff; }
.ew-atlas-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ew-atlas-amber);
  color: var(--ew-atlas-amber);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: .82rem;
}
.ew-atlas-brand strong { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.22rem; font-weight: 400; }
.ew-atlas-brand small { display: block; margin-top: 2px; color: #9eb5ae; font-size: .58rem; text-transform: uppercase; }
body.ew-atlas .ew-volgh-nav {
  min-width: 0;
  height: auto;
  display: block;
  margin: 0;
  padding-top: 14px;
}
body.ew-atlas .ew-volgh-nav-category {
  display: block;
  margin: 20px 10px 7px;
  color: #77948b;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
}
body.ew-atlas .ew-volgh-nav-item {
  min-height: 42px;
  height: auto;
  margin: 2px 0;
  padding: 10px 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 2px;
  color: #c7d5d0;
  font-size: .83rem;
  font-weight: 500;
}
body.ew-atlas .ew-volgh-nav-item svg { width: 17px; height: 17px; color: #85a49a; }
body.ew-atlas .ew-volgh-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
body.ew-atlas .ew-volgh-nav-item.active {
  border-left-color: var(--ew-atlas-amber);
  background: #f7f4ea;
  color: var(--ew-atlas-forest);
  font-weight: 700;
}
body.ew-atlas .ew-volgh-nav-item.active svg { color: var(--ew-atlas-forest); }
body.ew-atlas .ew-volgh-main {
  min-height: 100vh;
  margin: 0 0 0 var(--ew-atlas-rail);
  padding-top: var(--ew-atlas-bar);
}
body.ew-atlas .ew-volgh-pagehead {
  margin: 0;
  padding: 34px 38px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.ew-atlas .ew-volgh-page-title {
  color: var(--ew-atlas-forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}
body.ew-atlas .ew-volgh-breadcrumb { font-size: .72rem; }
body.ew-atlas .ew-volgh-breadcrumb li + li::before { content: "·"; color: #9ca7a2; }
body.ew-atlas .ew-volgh-breadcrumb a { color: var(--ew-atlas-muted); }
body.ew-atlas .ew-volgh-breadcrumb .active { color: var(--ew-atlas-forest); }
body.ew-atlas .ew-volgh-content { padding: 0 38px 40px; }
body.ew-atlas .ew-volgh-lead {
  max-width: 760px;
  margin: -10px 0 24px;
  color: var(--ew-atlas-muted);
  font-size: .92rem;
}
body.ew-atlas .ew-volgh-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 38px;
  border-top: 1px solid var(--ew-atlas-line);
  color: var(--ew-atlas-muted);
  text-align: left;
}
body.ew-atlas .ew-button,
body.ew-atlas .btn-primary,
body.ew-atlas .btn-success,
body.ew-atlas .btn-warning,
body.ew-atlas .btn-danger,
body.ew-atlas .btn-secondary {
  border-color: var(--ew-atlas-forest) !important;
  border-radius: 2px !important;
  background: var(--ew-atlas-forest) !important;
  font-size: .72rem;
  text-transform: none;
}
body.ew-atlas .ew-button.secondary { border-color: #aeb9b4 !important; background: transparent !important; color: var(--ew-atlas-forest) !important; }
body.ew-atlas .ew-button:hover { background: var(--ew-atlas-forest-soft) !important; }
body.ew-atlas .form-control,
body.ew-atlas .form-select {
  min-height: 46px;
  border-color: #bec8c3;
  border-radius: 2px;
  background: #fff;
}
body.ew-atlas .form-control:focus,
body.ew-atlas .form-select:focus { border-color: var(--ew-atlas-mint); box-shadow: 0 0 0 3px rgba(54,181,139,.14); }
body.ew-atlas .ew-widget-grid { gap: 1px; border: 1px solid var(--ew-atlas-line); background: var(--ew-atlas-line); }
body.ew-atlas .ew-widget {
  position: relative;
  min-height: 176px;
  padding: 22px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  overflow: hidden;
  text-align: left;
  box-shadow: none !important;
}
body.ew-atlas .ew-widget::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ew-atlas-mint); }
body.ew-atlas .ew-widget-info::after { background: var(--ew-atlas-amber); }
body.ew-atlas .ew-widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: #e8f2ee !important;
  color: var(--ew-atlas-forest);
  margin: 0 0 16px;
}
body.ew-atlas .ew-widget-icon svg { width: 18px; height: 18px; }
body.ew-atlas .ew-widget-label { color: var(--ew-atlas-muted); font-size: .68rem; }
body.ew-atlas .ew-widget-value {
  color: var(--ew-atlas-forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}
body.ew-atlas .ew-widget-note { color: var(--ew-atlas-muted); }
body.ew-atlas .ew-panel,
body.ew-atlas .ew-panel-card,
body.ew-atlas .ew-section-card,
body.ew-atlas .ew-profile-header,
body.ew-atlas .ew-data-panel,
body.ew-atlas .card {
  border: 1px solid var(--ew-atlas-line) !important;
  border-radius: 3px !important;
  background: #fff;
  box-shadow: none !important;
}
body.ew-atlas .ew-panel h2,
body.ew-atlas .ew-panel h3,
body.ew-atlas .ew-panel .h4,
body.ew-atlas .ew-section-card h2 {
  color: var(--ew-atlas-forest);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}
body.ew-atlas .ew-data-toolbar,
body.ew-atlas .ew-section-head,
body.ew-atlas .card-header {
  min-height: 54px;
  background: #edf1ed !important;
  border-bottom: 1px solid var(--ew-atlas-line) !important;
}
body.ew-atlas .ew-data-count,
body.ew-atlas .ew-eyebrow { color: var(--ew-atlas-forest); }
body.ew-atlas .ew-kpi-strip { gap: 1px; border: 1px solid var(--ew-atlas-line); background: var(--ew-atlas-line); }
body.ew-atlas .ew-kpi-tile {
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}
body.ew-atlas .ew-kpi-tile::before { top: auto; right: 0; bottom: 0; width: auto; height: 3px; background: var(--ew-atlas-amber); }
body.ew-atlas .ew-kpi-tile.accent-green::before { background: var(--ew-atlas-mint); }
body.ew-atlas .ew-kpi-tile strong { color: var(--ew-atlas-forest); font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
body.ew-atlas .ew-choice-card {
  border-radius: 2px;
  border-color: var(--ew-atlas-line);
  background: #fafbf8;
}
body.ew-atlas .ew-choice-card:has(input:checked) { border-color: var(--ew-atlas-forest); background: #eef5f1; box-shadow: inset 4px 0 var(--ew-atlas-mint); }
body.ew-atlas .ew-choice-card input { accent-color: var(--ew-atlas-forest); }
body.ew-atlas .ew-table thead th { background: #edf1ed; color: #52625c; }
body.ew-atlas .ew-table tbody tr:hover { background: #f6f8f5; }
body.ew-atlas .text-primary,
body.ew-atlas .text-info { color: var(--ew-atlas-forest-soft) !important; }
body.ew-atlas .text-success { color: #16805f !important; }
body.ew-atlas .progress { border-radius: 0; background: #e2e7e3; }
body.ew-atlas .progress-bar { background: var(--ew-atlas-mint) !important; }
body.ew-atlas .alert { border: 1px solid var(--ew-atlas-line); border-left-width: 4px; border-radius: 2px; box-shadow: none; }
body.ew-atlas .ew-page-actions-bar { padding: 12px 0; border-top: 1px solid var(--ew-atlas-line); border-bottom: 1px solid var(--ew-atlas-line); }
body.ew-atlas .ew-list-row { border-radius: 0; border-color: var(--ew-atlas-line); }
.ew-atlas-overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, .65fr) minmax(190px, .65fr);
  border: 1px solid var(--ew-atlas-forest);
  background: var(--ew-atlas-forest);
  color: #fff;
}
.ew-atlas-overview > div { min-width: 0; padding: 24px 26px; }
.ew-atlas-overview-total { border-right: 1px solid rgba(255,255,255,.16); }
.ew-atlas-overview-total span,
.ew-atlas-overview-line span { display: block; color: #9db8af; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.ew-atlas-overview-total strong {
  display: block;
  margin: 10px 0 7px;
  color: #fff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
}
.ew-atlas-overview-total small,
.ew-atlas-overview-line small { color: #9db8af; font-size: .75rem; }
.ew-atlas-overview-line { border-right: 1px solid rgba(255,255,255,.16); }
.ew-atlas-overview-line:last-child { border-right: 0; }
.ew-atlas-overview-line strong {
  display: block;
  margin: 15px 0 8px;
  color: #7ce0bc;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}
.ew-atlas-overview-line.reward strong { color: #efc665; }

@media (max-width: 1050px) {
  body.ew-atlas { --ew-atlas-rail: 0px; }
  body.ew-atlas .ew-volgh-header { left: 0; padding: 0 14px; }
  body.ew-atlas .ew-volgh-icon-btn { display: grid; }
  body.ew-atlas .ew-volgh-sidebar {
    top: 0;
    width: min(280px, 88vw);
    height: 100vh;
    transform: translateX(-110%);
  }
  body.ew-atlas .ew-volgh-sidebar-inner { padding: 0 16px 24px; }
  body.ew-atlas.ew-mobile-nav-open .ew-volgh-sidebar { transform: translateX(0); }
  body.ew-atlas.ew-mobile-nav-open .ew-volgh-overlay { top: 0; background: rgba(8,24,21,.62); }
  body.ew-atlas .ew-volgh-main { margin-left: 0; padding-top: var(--ew-atlas-bar); }
  body.ew-atlas .ew-volgh-pagehead { padding: 24px 18px 18px; }
  body.ew-atlas .ew-volgh-content { padding: 0 18px 28px; }
  .ew-atlas-overview { grid-template-columns: 1fr 1fr; }
  .ew-atlas-overview-total { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 700px) {
  .ew-atlas-header-label small { display: none; }
  body.ew-atlas .ew-volgh-page-title { font-size: 1.65rem; }
  body.ew-atlas .ew-volgh-breadcrumb { display: none; }
  body.ew-atlas .ew-widget-grid,
  body.ew-atlas .ew-widget-grid-3 { grid-template-columns: 1fr 1fr; }
  body.ew-atlas .ew-widget { min-height: 150px; padding: 17px 15px; }
  body.ew-atlas .ew-widget-value { font-size: 1.45rem; }
  body.ew-atlas .ew-volgh-footer span { display: none; }
  .ew-atlas-overview { grid-template-columns: 1fr; }
  .ew-atlas-overview-total { grid-column: auto; }
  .ew-atlas-overview-line { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 430px) {
  body.ew-atlas .ew-widget-grid,
  body.ew-atlas .ew-widget-grid-3 { grid-template-columns: 1fr; }
}

/* Volgh-inspired authenticated shell */
body.ew-spruko {
  --ew-volgh-sidebar: 265px;
  --ew-volgh-header: 72px;
  --ew-volgh-hor: 0px;
  --ew-volgh-bg: #f2f3f8;
  --ew-volgh-accent: #6259ca;
  --ew-volgh-accent-soft: #f0effb;
  background: var(--ew-volgh-bg);
  color: #334151;
  font-family: var(--ew-font-body);
}
body.ew-spruko,
body.ew-spruko button,
body.ew-spruko input,
body.ew-spruko select,
body.ew-spruko textarea,
body.ew-spruko table,
body.ew-spruko .dropdown-menu,
body.ew-spruko .tooltip,
body.ew-spruko .popover,
body.ew-spruko .modal { font-family: var(--ew-font-body); letter-spacing: 0; }
body.ew-spruko h1,
body.ew-spruko h2,
body.ew-spruko h3,
body.ew-spruko h4,
body.ew-spruko h5,
body.ew-spruko h6,
body.ew-spruko .h1,
body.ew-spruko .h2,
body.ew-spruko .h3,
body.ew-spruko .h4,
body.ew-spruko .h5,
body.ew-spruko .h6,
body.ew-spruko .ew-title,
body.ew-spruko .ew-volgh-page-title,
body.ew-spruko .ew-widget-value,
body.ew-spruko .ew-kpi-tile strong,
body.ew-spruko .ew-vg-metric strong,
body.ew-spruko .ew-vg-payment-amount strong,
body.ew-spruko .ew-vg-referral-summary strong,
body.ew-spruko .ew-vg-rate-note strong,
body.ew-spruko .ew-vg-panel-head > div > strong,
body.ew-spruko .ew-spruko-brand strong {
  font-family: var(--ew-font-display);
  letter-spacing: 0;
}
body.ew-spruko .ew-volgh-header {
  left: var(--ew-volgh-sidebar);
  height: var(--ew-volgh-header);
  grid-template-columns: 1fr auto;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e9ebf2;
  box-shadow: 0 2px 12px rgba(36, 43, 63, .04);
}
body.ew-spruko .ew-volgh-header-left,
body.ew-spruko .ew-volgh-header-right { display: flex; align-items: center; gap: 12px; }
body.ew-spruko .ew-volgh-icon-btn,
body.ew-spruko .ew-volgh-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  color: #6c7890;
}
body.ew-spruko .ew-volgh-icon-btn:hover,
body.ew-spruko .ew-volgh-header-icon:hover { background: #f3f4f8; color: var(--ew-volgh-accent); }
.ew-spruko-context { display: grid; line-height: 1.2; }
.ew-spruko-context b { color: #293246; font-size: .88rem; font-weight: 600; }
.ew-spruko-context small { color: #939bad; font-size: .68rem; }
body.ew-spruko .ew-volgh-profile {
  min-height: 42px;
  padding: 3px 8px 3px 3px;
  border-radius: 4px;
}
body.ew-spruko .ew-volgh-profile:hover { background: #f4f5f9; }
body.ew-spruko .ew-volgh-avatar {
  width: 35px;
  height: 35px;
  background: var(--ew-volgh-accent);
  border-radius: 50%;
}
body.ew-spruko .ew-volgh-sidebar {
  top: 0;
  right: auto;
  bottom: 0;
  width: var(--ew-volgh-sidebar);
  height: 100vh;
  background: #fff;
  border: 0;
  border-right: 1px solid #e7e9f0;
  box-shadow: 2px 0 10px rgba(36, 43, 63, .025);
}
body.ew-spruko .ew-volgh-sidebar-inner {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 28px;
}
.ew-spruko-brand {
  height: var(--ew-volgh-header);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 26px;
  border-bottom: 1px solid #eef0f5;
  color: #252d3d;
  text-decoration: none;
}
.ew-spruko-brand:hover { color: #252d3d; }
.ew-spruko-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ew-volgh-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(98, 89, 202, .24);
}
.ew-spruko-brand strong { display: block; font-size: 1.05rem; font-weight: 700; }
.ew-spruko-brand small { display: block; margin-top: 2px; color: #a0a8b8; font-size: .56rem; font-weight: 600; text-transform: uppercase; }
body.ew-spruko .ew-volgh-nav {
  display: block;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 10px 0 0;
}
body.ew-spruko .ew-volgh-nav-category {
  display: block;
  margin: 18px 0 7px;
  padding: 0 28px;
  color: #a8afbd;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
}
body.ew-spruko .ew-volgh-nav-item {
  position: relative;
  height: auto;
  min-height: 42px;
  margin: 1px 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  color: #687387;
  font-size: .8rem;
  font-weight: 500;
}
body.ew-spruko .ew-volgh-nav-item svg { width: 17px; height: 17px; color: #8791a4; }
body.ew-spruko .ew-volgh-nav-item:hover { background: #f6f6fa; color: var(--ew-volgh-accent); }
body.ew-spruko .ew-volgh-nav-item.active {
  background: var(--ew-volgh-accent-soft);
  color: var(--ew-volgh-accent);
  font-weight: 600;
}
body.ew-spruko .ew-volgh-nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--ew-volgh-accent);
}
body.ew-spruko .ew-volgh-nav-item.active svg { color: var(--ew-volgh-accent); }
body.ew-spruko .ew-volgh-main {
  min-height: 100vh;
  margin: 0 0 0 var(--ew-volgh-sidebar);
  padding-top: var(--ew-volgh-header);
}
body.ew-spruko .ew-volgh-pagehead {
  margin: 24px 22px 0;
  padding: 19px 22px;
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 43, 63, .045);
}
body.ew-spruko .ew-volgh-page-title { color: #242c3b; font-size: 1.2rem; font-weight: 600; }
body.ew-spruko .ew-volgh-breadcrumb { font-size: .76rem; }
body.ew-spruko .ew-volgh-breadcrumb a { color: #8992a5; }
body.ew-spruko .ew-volgh-breadcrumb .active { color: var(--ew-volgh-accent); }
body.ew-spruko .ew-volgh-content { padding: 22px; }
body.ew-spruko .ew-volgh-lead { margin: -4px 0 18px; color: #7e8799; font-size: .82rem; }
body.ew-spruko .ew-volgh-footer { padding: 18px 22px; border-top: 1px solid #e5e8ef; background: #fff; }
body.ew-spruko .ew-panel,
body.ew-spruko .ew-panel-card,
body.ew-spruko .ew-section-card,
body.ew-spruko .ew-profile-header,
body.ew-spruko .ew-kpi-tile,
body.ew-spruko .ew-data-panel,
body.ew-spruko .card,
body.ew-spruko .ew-widget {
  border: 1px solid #eceef4 !important;
  border-radius: 4px !important;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 43, 63, .05) !important;
}
body.ew-spruko .ew-section-head,
body.ew-spruko .ew-data-toolbar,
body.ew-spruko .card-header { background: #fff !important; border-bottom-color: #eceef4 !important; }
body.ew-spruko .ew-widget-grid { gap: 22px; }
body.ew-spruko .ew-widget {
  min-height: 170px;
  padding: 22px;
  text-align: center;
}
body.ew-spruko .ew-widget-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ew-volgh-accent) !important;
  color: #fff;
  box-shadow: 0 7px 15px rgba(98, 89, 202, .24);
}
body.ew-spruko .ew-widget-label { color: #697487; font-size: .72rem; }
body.ew-spruko .ew-widget-value { color: #242c3b; font-family: var(--ew-font-display); font-size: 1.7rem; font-weight: 600; }
body.ew-spruko .ew-widget-note { color: #9199a9; }
body.ew-spruko .ew-kpi-strip { gap: 22px; }
body.ew-spruko .ew-kpi-tile::before { background: var(--ew-volgh-accent); }
body.ew-spruko .ew-kpi-tile strong { color: #242c3b; font-family: var(--ew-font-display); }
body.ew-spruko .ew-button,
body.ew-spruko .btn-primary,
body.ew-spruko .btn-success,
body.ew-spruko .btn-warning,
body.ew-spruko .btn-danger,
body.ew-spruko .btn-secondary {
  border-color: var(--ew-volgh-accent) !important;
  border-radius: 4px !important;
  background: var(--ew-volgh-accent) !important;
  font-size: .72rem;
  text-transform: none;
}
body.ew-spruko .ew-button.secondary { border-color: #d8dce7 !important; background: #fff !important; color: #596579 !important; }
body.ew-spruko .form-control,
body.ew-spruko .form-select { min-height: 44px; border-color: #dfe2ea; border-radius: 4px; }
body.ew-spruko .form-control:focus,
body.ew-spruko .form-select:focus { border-color: #968fe0; box-shadow: 0 0 0 3px rgba(98, 89, 202, .12); }
body.ew-spruko .ew-table thead th { background: #f7f7fa; color: #667186; }
body.ew-spruko .progress { background: #e9eaf1; }
body.ew-spruko .progress-bar { background: var(--ew-volgh-accent) !important; }
body.ew-spruko .text-primary,
body.ew-spruko .text-info { color: var(--ew-volgh-accent) !important; }
body.ew-spruko .ew-page-actions-bar { padding: 0; border: 0; }
body.ew-spruko .ew-list-row { border-radius: 4px; border-color: #e8eaf0; }
@media (min-width: 1051px) {
  body.ew-spruko.ew-sidebar-collapsed { --ew-volgh-sidebar: 0px; }
  body.ew-spruko.ew-sidebar-collapsed .ew-volgh-sidebar { transform: translateX(-100%); }
}

@media (max-width: 1050px) {
  body.ew-spruko { --ew-volgh-sidebar: 0px; }
  body.ew-spruko .ew-volgh-header { left: 0; padding: 0 14px; }
  body.ew-spruko .ew-volgh-sidebar {
    width: min(265px, 88vw);
    transform: translateX(-110%);
    box-shadow: 10px 0 28px rgba(31, 38, 55, .14);
  }
  body.ew-spruko.ew-mobile-nav-open .ew-volgh-sidebar { transform: translateX(0); }
  body.ew-spruko.ew-mobile-nav-open .ew-volgh-overlay { top: 0; background: rgba(31, 38, 55, .35); }
  body.ew-spruko .ew-volgh-main { margin-left: 0; }
  body.ew-spruko .ew-volgh-pagehead { margin: 14px 14px 0; }
  body.ew-spruko .ew-volgh-content { padding: 14px; }
}

@media (max-width: 700px) {
  .ew-spruko-context small,
  body.ew-spruko .ew-volgh-breadcrumb { display: none; }
  body.ew-spruko .ew-volgh-pagehead { padding: 14px 16px; }
  body.ew-spruko .ew-widget-grid,
  body.ew-spruko .ew-widget-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 430px) {
  body.ew-spruko .ew-widget-grid,
  body.ew-spruko .ew-widget-grid-3 { grid-template-columns: 1fr; }
}

body.ew-spruko .ew-referral-link {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(240px, 1.55fr) auto;
  align-items: end;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e7e9f0;
  border-radius: 4px;
  background: #f8f8fb;
}
body.ew-spruko .ew-referral-link span {
  display: block;
  margin-bottom: 6px;
  color: #858ea0;
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
}
body.ew-spruko .ew-referral-link strong { color: #293246; font-size: .96rem; }
body.ew-spruko .ew-referral-link small {
  display: block;
  overflow: hidden;
  color: #596579;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ew-spruko .ew-referral-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 42px 20px;
  color: #929aab;
  text-align: center;
}
body.ew-spruko .ew-referral-empty strong { color: #3b4659; font-size: .9rem; }
body.ew-spruko .ew-referral-empty span { font-size: .78rem; }

@media (max-width: 700px) {
  body.ew-spruko .ew-referral-link { grid-template-columns: 1fr; align-items: stretch; gap: 14px; }
  body.ew-spruko .ew-referral-link .ew-button { width: 100%; }
  body.ew-spruko .ew-referral-url { min-width: 0; }
}

/* Member dashboard: Volgh analytics composition */
.ew-vg-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ew-vg-toolbar > div:first-child { display: grid; gap: 3px; }
.ew-vg-toolbar strong { color: #293246; font-size: .9rem; font-weight: 600; }
.ew-vg-toolbar span { color: #8992a4; font-size: .74rem; }
.ew-vg-toolbar-actions { display: flex; gap: 9px; }
.ew-vg-primary-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.35fr);
  gap: 22px;
  align-items: stretch;
}
.ew-vg-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ew-vg-metric {
  min-height: 174px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  padding: 20px;
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 43, 63, .05);
  text-align: center;
}
.ew-vg-metric-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6259ca;
  color: #fff;
  box-shadow: 0 7px 15px rgba(98, 89, 202, .22);
}
.ew-vg-metric.blue .ew-vg-metric-icon { background: #2686e8; box-shadow: 0 7px 15px rgba(38, 134, 232, .2); }
.ew-vg-metric.teal .ew-vg-metric-icon { background: #17b7a4; box-shadow: 0 7px 15px rgba(23, 183, 164, .2); }
.ew-vg-metric.pink .ew-vg-metric-icon { background: #db3f8d; box-shadow: 0 7px 15px rgba(219, 63, 141, .2); }
.ew-vg-metric-icon svg { width: 22px; height: 22px; }
.ew-vg-metric > div { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.ew-vg-metric > div > span { color: #687387; font-size: .72rem; font-weight: 600; }
.ew-vg-metric > div > strong { color: #222b3a; font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.ew-vg-metric > div > small { color: #9aa2b1; font-size: .68rem; }
.ew-vg-chart-panel,
.ew-vg-panel {
  min-width: 0;
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 43, 63, .05);
}
.ew-vg-chart-panel { min-height: 370px; display: flex; flex-direction: column; }
.ew-vg-panel-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid #eceef4;
}
.ew-vg-panel-head > div { display: grid; gap: 3px; }
.ew-vg-panel-head > div > span { color: #99a1b0; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-panel-head > div > strong { color: #293246; font-size: .94rem; font-weight: 600; }
.ew-vg-panel-head > a { color: #6259ca; font-size: .72rem; font-weight: 600; text-decoration: none; }
.ew-vg-rate,
.ew-vg-count {
  padding: 5px 9px;
  border-radius: 3px;
  background: #f0effb;
  color: #6259ca;
  font-size: .68rem;
  font-weight: 600;
}
.ew-vg-chart {
  flex: 1;
  min-height: 290px;
  display: flex;
  align-items: end;
  gap: clamp(8px, 2vw, 22px);
  padding: 52px 24px 22px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 58px, #eceef4 59px, transparent 60px);
}
.ew-vg-chart-column {
  position: relative;
  height: 220px;
  min-width: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}
.ew-vg-chart-column i {
  width: min(34px, 76%);
  min-height: 10px;
  display: block;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #756cdb, #6259ca);
}
.ew-vg-chart-column:nth-child(even) i { background: linear-gradient(180deg, #3cc8bb, #17a997); }
.ew-vg-chart-column small { color: #8b94a5; font-size: .61rem; white-space: nowrap; }
.ew-vg-chart-value {
  position: absolute;
  top: -29px;
  color: #687387;
  font-size: .6rem;
  white-space: nowrap;
}
.ew-vg-chart-empty,
.ew-vg-empty {
  flex: 1;
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 28px;
  color: #949cac;
  text-align: center;
}
.ew-vg-chart-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #f0effb;
  color: #6259ca;
}
.ew-vg-chart-empty-icon svg { width: 21px; height: 21px; }
.ew-vg-chart-empty strong,
.ew-vg-empty strong { color: #3d4759; font-size: .86rem; }
.ew-vg-chart-empty small,
.ew-vg-empty span { color: #949cac; font-size: .72rem; }
.ew-vg-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 22px;
  align-items: start;
}
.ew-vg-investment-table th { white-space: nowrap; }
.ew-vg-investment-table td { min-width: 110px; vertical-align: middle; }
.ew-vg-investment-table td:first-child { min-width: 90px; }
.ew-vg-investment-table td:last-child { min-width: 170px; }
.ew-vg-investment-table td:first-child small { display: block; margin-top: 3px; color: #929aab; font-size: .64rem; }
.ew-vg-progress-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #596579; font-size: .68rem; }
.ew-vg-progress-label small { color: #929aab; font-size: .61rem; }
.ew-vg-investment-table .progress { height: 5px; border-radius: 3px; }
.ew-vg-credit-list { padding: 5px 20px; }
.ew-vg-credit-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid #eef0f5;
}
.ew-vg-credit-row:last-child { border-bottom: 0; }
.ew-vg-credit-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f5;
  color: #139886;
  font-size: 1rem;
  font-weight: 600;
}
.ew-vg-credit-row > div { min-width: 0; display: grid; gap: 3px; }
.ew-vg-credit-row > div strong { overflow: hidden; color: #3a4558; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.ew-vg-credit-row > div small { color: #939bac; font-size: .62rem; }
.ew-vg-credit-row > b { color: #139886; font-size: .72rem; white-space: nowrap; }
.ew-vg-referral-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 20px 20px;
  padding: 15px;
  border: 1px solid #e7e5f6;
  border-radius: 4px;
  background: #f8f7fd;
}
.ew-vg-referral-strip > div { display: grid; gap: 2px; }
.ew-vg-referral-strip span { color: #858ea0; font-size: .62rem; }
.ew-vg-referral-strip strong { color: #6259ca; font-size: 1.15rem; }
.ew-vg-empty.compact { min-height: 170px; }

@media (max-width: 1180px) {
  .ew-vg-primary-grid { grid-template-columns: 1fr; }
  .ew-vg-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ew-vg-metric { min-height: 158px; }
}

@media (max-width: 900px) {
  .ew-vg-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-vg-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ew-vg-toolbar { align-items: stretch; flex-direction: column; }
  .ew-vg-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ew-vg-metric-grid { gap: 12px; }
  .ew-vg-metric { min-height: 146px; padding: 15px 10px; }
  .ew-vg-metric-icon { width: 46px; height: 46px; }
  .ew-vg-metric > div > strong { font-size: 1.1rem; }
  .ew-vg-chart { gap: 5px; padding-right: 12px; padding-left: 12px; }
  .ew-vg-chart-value { display: none; }
  .ew-vg-panel-head { padding: 13px 15px; }
  .ew-vg-credit-list { padding: 5px 15px; }
  .ew-vg-referral-strip { margin: 8px 15px 15px; }
}

/* Authenticated workflows */
.ew-vg-order-layout,
.ew-vg-profile-layout,
.ew-vg-payment-layout,
.ew-vg-security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}
.ew-vg-order-card,
.ew-vg-guide-panel,
.ew-vg-profile-card,
.ew-vg-security-rail,
.ew-vg-withdraw-form,
.ew-vg-balance-rail,
.ew-vg-notification-shell,
.ew-vg-payment-slip,
.ew-vg-payment-aside,
.ew-vg-password-intro,
.ew-vg-password-form {
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 43, 63, .05);
}
.ew-vg-order-head,
.ew-vg-profile-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid #eceef4;
}
.ew-vg-order-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6259ca;
  color: #fff;
  box-shadow: 0 7px 15px rgba(98, 89, 202, .2);
}
.ew-vg-order-icon svg { width: 20px; height: 20px; }
.ew-vg-order-head > div,
.ew-vg-profile-heading > div { min-width: 0; }
.ew-vg-order-head > div > span,
.ew-vg-profile-heading > div > span { color: #9aa2b1; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-order-head h2,
.ew-vg-profile-heading h2 { margin: 3px 0 0; color: #293246; font-size: 1rem; font-weight: 600; }
.ew-vg-profile-heading p { margin: 5px 0 0; color: #8992a4; font-size: .74rem; }
.ew-vg-order-form,
.ew-vg-profile-form,
.ew-vg-withdraw-body,
.ew-vg-password-form { padding: 26px; }
.ew-vg-amount-field > label { display: block; margin-bottom: 8px; color: #566176; font-size: .72rem; font-weight: 600; }
.ew-vg-amount-field > div {
  display: grid;
  grid-template-columns: auto 1fr;
  overflow: hidden;
  border: 1px solid #dfe2ea;
  border-radius: 4px;
  background: #fff;
}
.ew-vg-amount-field > div:focus-within { border-color: #968fe0; box-shadow: 0 0 0 3px rgba(98,89,202,.12); }
.ew-vg-amount-field > div > span { display: grid; place-items: center; min-width: 64px; padding: 0 14px; border-right: 1px solid #dfe2ea; background: #f7f7fa; color: #6259ca; font-size: .72rem; font-weight: 700; }
.ew-vg-amount-field input { min-width: 0; height: 56px; padding: 0 16px; border: 0; outline: 0; color: #252f41; font-size: 1.25rem; font-weight: 600; }
.ew-vg-amount-field > small { display: block; margin-top: 7px; color: #949cac; font-size: .68rem; }
.ew-vg-order-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border: 1px solid #e7e9f0;
  border-radius: 4px;
  background: #fafafd;
}
.ew-vg-order-preview > div { min-height: 86px; display: grid; align-content: center; gap: 5px; padding: 16px 18px; border-right: 1px solid #e7e9f0; border-bottom: 1px solid #e7e9f0; }
.ew-vg-order-preview > div:nth-child(2n) { border-right: 0; }
.ew-vg-order-preview > div:nth-last-child(-n+2) { border-bottom: 0; }
.ew-vg-order-preview span { color: #8d96a7; font-size: .64rem; }
.ew-vg-order-preview strong { color: #303a4d; font-size: .9rem; font-weight: 600; }
.ew-vg-order-preview > div:nth-child(2) strong { color: #139886; }
.ew-vg-order-submit,
.ew-vg-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.ew-vg-order-submit p,
.ew-vg-form-footer > span { max-width: 430px; margin: 0; color: #8b94a5; font-size: .7rem; line-height: 1.55; }
.ew-vg-steps { margin: 0; padding: 18px 20px; list-style: none; }
.ew-vg-steps li,
.ew-vg-security-rail li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eef0f5; }
.ew-vg-steps li:last-child,
.ew-vg-security-rail li:last-child { border-bottom: 0; }
.ew-vg-steps li > span,
.ew-vg-security-rail li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f0effb; color: #6259ca; font-size: .68rem; font-weight: 700; }
.ew-vg-steps div,
.ew-vg-security-rail li div { display: grid; gap: 3px; }
.ew-vg-steps strong,
.ew-vg-security-rail li strong { color: #3c4659; font-size: .76rem; }
.ew-vg-steps small,
.ew-vg-security-rail li small { color: #9199a9; font-size: .67rem; line-height: 1.5; }
.ew-vg-rate-note { margin: 0 20px 20px; padding: 18px; border-radius: 4px; background: #6259ca; color: #fff; }
.ew-vg-rate-note span,
.ew-vg-rate-note small { display: block; color: rgba(255,255,255,.72); font-size: .65rem; }
.ew-vg-rate-note strong { display: block; margin: 5px 0; font-size: 1.7rem; }
.ew-vg-withdraw-layout { display: grid; grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr); gap: 22px; align-items: start; }
.ew-vg-withdraw-main { min-width: 0; display: grid; gap: 22px; }
.ew-vg-balance-options { display: grid; gap: 10px; padding: 18px; }
.ew-vg-balance-option { position: relative; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e4e6ed; border-radius: 4px; background: #fafafd; cursor: pointer; }
.ew-vg-balance-option:has(input:checked) { border-color: #6259ca; background: #f3f2fc; box-shadow: inset 3px 0 #6259ca; }
.ew-vg-balance-option input { position: absolute; opacity: 0; pointer-events: none; }
.ew-vg-balance-radio { width: 16px; height: 16px; border: 1px solid #b7bdca; border-radius: 50%; background: #fff; }
.ew-vg-balance-option:has(input:checked) .ew-vg-balance-radio { border: 5px solid #6259ca; }
.ew-vg-balance-option > span:last-child { display: grid; gap: 3px; min-width: 0; }
.ew-vg-balance-option small { color: #818b9e; font-size: .65rem; }
.ew-vg-balance-option strong { color: #293246; font-size: 1.08rem; }
.ew-vg-balance-option em { color: #9aa2b1; font-size: .61rem; font-style: normal; }
.ew-vg-withdraw-status { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 13px; border-top: 1px solid #eef0f5; }
.ew-vg-withdraw-status > span { width: 9px; height: 9px; border-radius: 50%; }
.ew-vg-withdraw-status > span.open { background: #17aa91; box-shadow: 0 0 0 4px #e8f7f3; }
.ew-vg-withdraw-status > span.closed { background: #dc527d; box-shadow: 0 0 0 4px #fbeef2; }
.ew-vg-withdraw-status > div { display: grid; gap: 2px; }
.ew-vg-withdraw-status strong { color: #465166; font-size: .7rem; }
.ew-vg-withdraw-status small { color: #9aa2b1; font-size: .61rem; }
.ew-vg-settlement { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 24px 0; padding: 18px; border: 1px solid #e7e9f0; border-radius: 4px; background: #f8f8fb; }
.ew-vg-settlement > div { display: grid; gap: 5px; }
.ew-vg-settlement span { color: #8791a3; font-size: .62rem; }
.ew-vg-settlement strong { color: #3d475a; font-size: .86rem; }
.ew-vg-settlement i { color: #b0b6c2; font-style: normal; }
.ew-vg-settlement .net strong { color: #139886; }
.ew-vg-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ew-vg-security-rail ul { margin: 0; padding: 14px 20px; list-style: none; }
.ew-vg-notification-shell { overflow: hidden; }
.ew-vg-notification-list { padding: 4px 22px; }
.ew-vg-notification { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 19px 0; border-bottom: 1px solid #eef0f5; }
.ew-vg-notification:last-child { border-bottom: 0; }
.ew-vg-notification-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f0effb; color: #6259ca; }
.ew-vg-notification-icon.credit { background: #e8f8f4; color: #139886; }
.ew-vg-notification-icon.payment { background: #eef6fe; color: #2686e8; }
.ew-vg-notification-icon.security { background: #fbeef3; color: #d64380; }
.ew-vg-notification-icon svg { width: 17px; height: 17px; }
.ew-vg-notification > div { min-width: 0; }
.ew-vg-notification > div > span { color: #6259ca; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-notification p { margin: 5px 0 0; color: #505b6f; font-size: .78rem; line-height: 1.55; }
.ew-vg-notification time { color: #969eae; font-size: .64rem; white-space: nowrap; }
.ew-vg-payment-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); }
.ew-vg-payment-slip { overflow: hidden; }
.ew-vg-payment-slip-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #eceef4; }
.ew-vg-payment-slip-head > div { display: grid; gap: 3px; }
.ew-vg-payment-slip-head > div span { color: #969eae; font-size: .62rem; text-transform: uppercase; }
.ew-vg-payment-slip-head > div strong { color: #343e51; font-size: .88rem; }
.ew-vg-payment-amount { padding: 30px 24px; border-bottom: 1px solid #eceef4; background: #f7f7fb; text-align: center; }
.ew-vg-payment-amount span,
.ew-vg-payment-amount small { display: block; color: #8f98a9; font-size: .68rem; }
.ew-vg-payment-amount strong { display: block; margin: 7px 0; color: #6259ca; font-size: 2rem; font-weight: 600; }
.ew-vg-payment-details { margin: 0; padding: 8px 24px; }
.ew-vg-payment-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid #eef0f5; }
.ew-vg-payment-details dt { color: #929aab; font-size: .68rem; font-weight: 500; }
.ew-vg-payment-details dd { margin: 0; color: #3b4659; font-size: .76rem; font-weight: 600; }
.ew-vg-reference-box { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; margin: 18px 24px 24px; padding: 16px 18px; border: 1px dashed #948de0; border-radius: 4px; background: #f5f4fc; }
.ew-vg-reference-box span { color: #858ea0; font-size: .62rem; }
.ew-vg-reference-box strong { color: #4d45ad; font-size: 1.05rem; }
.ew-vg-reference-box button { grid-row: 1 / 3; grid-column: 2; width: 38px; height: 38px; align-self: center; display: grid; place-items: center; border: 0; border-radius: 4px; background: #6259ca; color: #fff; }
.ew-vg-reference-box button.copied { background: #159a87; }
.ew-vg-reference-box svg { width: 17px; height: 17px; }
.ew-vg-payment-aside { padding: 24px; }
.ew-vg-payment-aside > div > span { color: #db3f8d; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-payment-aside h2 { margin: 5px 0 0; color: #303a4d; font-size: 1rem; }
.ew-vg-payment-aside ul { margin: 22px 0 28px; padding-left: 18px; color: #657085; font-size: .74rem; line-height: 1.65; }
.ew-vg-payment-aside li + li { margin-top: 9px; }
.ew-vg-security-layout { grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); }
.ew-vg-password-intro { min-height: 360px; padding: 30px; background: #6259ca; color: #fff; }
.ew-vg-password-intro .ew-vg-order-icon { margin-bottom: 40px; background: rgba(255,255,255,.15); box-shadow: none; }
.ew-vg-password-intro > span:not(.ew-vg-order-icon) { color: rgba(255,255,255,.7); font-size: .64rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-password-intro h2 { margin: 8px 0 12px; color: #fff; font-size: 1.4rem; }
.ew-vg-password-intro p { margin: 0; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.65; }

@media (max-width: 900px) {
  .ew-vg-order-layout,
  .ew-vg-profile-layout,
  .ew-vg-payment-layout,
  .ew-vg-security-layout,
  .ew-vg-withdraw-layout { grid-template-columns: 1fr; }
  .ew-vg-guide-panel,
  .ew-vg-security-rail,
  .ew-vg-balance-rail,
  .ew-vg-payment-aside,
  .ew-vg-password-intro { order: 2; }
  .ew-vg-password-intro { min-height: 250px; }
}

@media (max-width: 600px) {
  .ew-vg-order-form,
  .ew-vg-profile-form,
  .ew-vg-withdraw-body,
  .ew-vg-password-form { padding: 20px 16px; }
  .ew-vg-order-preview,
  .ew-vg-field-grid { grid-template-columns: 1fr; }
  .ew-vg-order-preview > div { border-right: 0; }
  .ew-vg-order-preview > div:nth-last-child(2) { border-bottom: 1px solid #e7e9f0; }
  .ew-vg-order-submit,
  .ew-vg-form-footer { align-items: stretch; flex-direction: column; }
  .ew-vg-order-submit .ew-button,
  .ew-vg-form-footer .ew-button { width: 100%; }
  .ew-vg-settlement { grid-template-columns: 1fr; }
  .ew-vg-settlement i { display: none; }
  .ew-vg-notification-list { padding: 2px 16px; }
  .ew-vg-notification { grid-template-columns: 38px minmax(0, 1fr); }
  .ew-vg-notification time { grid-column: 2; }
  .ew-vg-payment-details > div { grid-template-columns: 1fr; gap: 4px; }
  .ew-vg-payment-amount strong { font-size: 1.55rem; }
}

.ew-vg-referral-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, .55fr)) minmax(220px, 1.35fr);
  overflow: hidden;
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36,43,63,.05);
}
.ew-vg-referral-summary > div { min-height: 116px; display: grid; align-content: center; gap: 4px; padding: 18px 22px; border-right: 1px solid #eceef4; }
.ew-vg-referral-summary > div:last-child { border-right: 0; }
.ew-vg-referral-summary span { color: #8a93a5; font-size: .64rem; font-weight: 600; text-transform: uppercase; }
.ew-vg-referral-summary strong { color: #6259ca; font-size: 1.45rem; }
.ew-vg-referral-summary small { color: #9ba3b2; font-size: .63rem; }
.ew-vg-referral-summary .total { background: #6259ca; }
.ew-vg-referral-summary .total span,
.ew-vg-referral-summary .total small { color: rgba(255,255,255,.72); }
.ew-vg-referral-summary .total strong { color: #fff; }
.ew-vg-support-shell,
.ew-vg-compose-form,
.ew-vg-compose-aside,
.ew-vg-conversation,
.ew-vg-ticket-aside {
  border: 1px solid #eceef4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36,43,63,.05);
}
.ew-vg-support-toolbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #eceef4; }
.ew-vg-support-toolbar > div { display: grid; gap: 3px; }
.ew-vg-support-toolbar span { color: #969eae; font-size: .63rem; text-transform: uppercase; }
.ew-vg-support-toolbar strong { color: #333d50; font-size: .9rem; }
.ew-vg-ticket-list { padding: 5px 20px; }
.ew-vg-ticket { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid #eef0f5; color: inherit; text-decoration: none; }
.ew-vg-ticket:last-child { border-bottom: 0; }
.ew-vg-ticket:hover strong { color: #6259ca; }
.ew-vg-ticket-id { width: 44px; height: 34px; display: grid; place-items: center; border-radius: 3px; background: #f0effb; color: #6259ca; font-size: .68rem; font-weight: 600; }
.ew-vg-ticket > div { min-width: 0; display: grid; gap: 4px; }
.ew-vg-ticket > div strong { overflow: hidden; color: #3b4659; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.ew-vg-ticket > div small { color: #929aab; font-size: .64rem; }
.ew-vg-ticket > svg { width: 16px; color: #9da5b4; }
.ew-vg-support-compose,
.ew-vg-conversation-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 22px; align-items: start; }
.ew-vg-compose-form > form { padding: 24px; }
.ew-vg-compose-aside { min-height: 310px; padding: 28px; background: #6259ca; color: #fff; }
.ew-vg-compose-aside .ew-vg-order-icon { margin-bottom: 38px; background: rgba(255,255,255,.14); box-shadow: none; }
.ew-vg-compose-aside h2 { margin: 0 0 10px; color: #fff; font-size: 1.1rem; }
.ew-vg-compose-aside p { margin: 0; color: rgba(255,255,255,.72); font-size: .75rem; line-height: 1.65; }
.ew-vg-conversation-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #eceef4; }
.ew-vg-conversation-head > div { min-width: 0; display: grid; gap: 4px; }
.ew-vg-conversation-head > div span { color: #969eae; font-size: .62rem; text-transform: uppercase; }
.ew-vg-conversation-head > div strong { overflow: hidden; color: #354053; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.ew-vg-message-list { display: grid; gap: 14px; min-height: 240px; padding: 22px; background: #f7f7fa; }
.ew-vg-message { max-width: 78%; padding: 14px 16px; border: 1px solid #e2e5ec; border-radius: 4px; background: #fff; }
.ew-vg-message.member { justify-self: end; border-color: #dcd8f4; background: #f0effb; }
.ew-vg-message > div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.ew-vg-message strong { color: #465166; font-size: .67rem; }
.ew-vg-message time { color: #979faf; font-size: .59rem; }
.ew-vg-message p { margin: 0; color: #596579; font-size: .75rem; line-height: 1.6; white-space: pre-wrap; }
.ew-vg-reply-form { padding: 20px; border-top: 1px solid #eceef4; }
.ew-vg-reply-form .ew-button { margin-top: 12px; }
.ew-vg-ticket-aside { padding: 20px; }
.ew-vg-ticket-aside > div { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid #eef0f5; }
.ew-vg-ticket-aside > div span { color: #969eae; font-size: .61rem; text-transform: uppercase; }
.ew-vg-ticket-aside > div strong { color: #414c60; font-size: .75rem; }
.ew-vg-ticket-aside > a { margin-top: 20px; }
.ew-vg-ticket-aside form { margin-top: 9px; }

@media (max-width: 900px) {
  .ew-vg-referral-summary { grid-template-columns: repeat(3, 1fr); }
  .ew-vg-referral-summary .total { grid-column: 1 / -1; }
  .ew-vg-support-compose,
  .ew-vg-conversation-layout { grid-template-columns: 1fr; }
  .ew-vg-compose-aside,
  .ew-vg-ticket-aside { order: 2; }
}

@media (max-width: 600px) {
  .ew-vg-referral-summary { grid-template-columns: 1fr 1fr; }
  .ew-vg-referral-summary > div { min-height: 98px; border-bottom: 1px solid #eceef4; }
  .ew-vg-referral-summary > div:nth-child(2n) { border-right: 0; }
  .ew-vg-referral-summary .total { grid-column: 1 / -1; border-bottom: 0; }
  .ew-vg-support-toolbar { align-items: stretch; flex-direction: column; }
  .ew-vg-ticket-list { padding: 4px 15px; }
  .ew-vg-ticket { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 10px; }
  .ew-vg-ticket .ew-badge-soft { grid-column: 2; width: max-content; }
  .ew-vg-ticket > svg { grid-column: 3; grid-row: 1 / 3; }
  .ew-vg-message { max-width: 92%; }
}

/* APREX TRADE identity */
:root { --apx-ink:#130724; --apx-deep:#211044; --apx-violet:#7136c8; --apx-electric:#a64cf4; --apx-lilac:#d8b9f6; --apx-pearl:#f7f3fb; --apx-silver:#a9afbe; --apx-line:#ded6e8; --apx-mint:#2bbf9b; }
body,button,input,select,textarea { font-family:"Archivo",sans-serif; letter-spacing:0; }
.apx-public { margin:0; color:var(--apx-ink); background:var(--apx-pearl); }
.apx-public-head { height:76px; padding:0 clamp(22px,5vw,80px); display:flex; align-items:center; justify-content:space-between; background:#12062b; border-bottom:1px solid rgba(216,185,246,.35); position:relative; z-index:20; }
.apx-wordmark { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.apx-wordmark i { width:38px; height:38px; display:grid; place-items:center; font:normal 26px/1 "DM Serif Display",serif; color:#fff; background:var(--apx-violet); clip-path:polygon(50% 0,100% 100%,0 100%); }
.apx-wordmark span { font-size:1rem; }
.apx-wordmark b { font-weight:800; }
.apx-public-head nav { display:flex; align-items:center; gap:28px; }
.apx-public-head nav a { color:#d8d0e4; text-decoration:none; font-size:.82rem; font-weight:700; }
.apx-public-head nav .join { color:#170a29; background:#f4eaff; padding:11px 17px; }
.apx-mobile-trigger,.apx-mobile-nav { display:none; }
.apx-hero { min-height:calc(88vh - 76px); display:flex; align-items:center; padding:70px clamp(22px,7vw,110px); color:#fff; background:#12062b url('/images/aprex-trade-hero.png') center/cover no-repeat; position:relative; }
.apx-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(9,3,24,.96) 0%,rgba(15,5,35,.73) 43%,rgba(15,5,35,.08) 76%); }
.apx-hero-content { position:relative; width:min(650px,100%); }
.apx-overline { display:block; color:#d9b6ff; font-size:.72rem; font-weight:800; margin-bottom:20px; }
.apx-overline.dark { color:#7136c8; }
.apx-hero h1 { margin:0; font:400 clamp(4.2rem,9vw,8.8rem)/.82 "DM Serif Display",serif; }
.apx-hero h1 b { display:block; color:#c987ff; font:800 clamp(2.1rem,4vw,4rem)/1 "Archivo",sans-serif; }
.apx-hero p { width:min(580px,100%); margin:28px 0; color:#ddd3e8; font-size:1.05rem; line-height:1.75; }
.apx-hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.apx-btn { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:0 23px; text-decoration:none; font-weight:800; font-size:.8rem; border:1px solid transparent; border-radius:2px; }
.apx-btn.primary { color:#170a29; background:#f4eaff; }
.apx-btn.ghost { color:#fff; border-color:#a77acb; background:rgba(18,6,43,.4); }
.apx-hero-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:42px 0 0; border-top:1px solid rgba(216,185,246,.35); }
.apx-hero-stats div { padding:20px 16px 0 0; }
.apx-hero-stats dt { color:#a9a0b6; font-size:.68rem; text-transform:uppercase; }
.apx-hero-stats dd { margin:5px 0 0; font-size:1.28rem; font-weight:800; }
.apx-rule-strip { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-bottom:1px solid var(--apx-line); }
.apx-rule-strip>div { min-height:135px; padding:27px clamp(18px,3vw,42px); display:grid; align-content:center; border-right:1px solid var(--apx-line); }
.apx-rule-strip span { color:var(--apx-violet); font-size:.66rem; font-weight:800; }
.apx-rule-strip strong { margin:8px 0 2px; font-size:.95rem; }
.apx-rule-strip small { color:#777080; }
.apx-calc-band,.apx-network { padding:90px clamp(22px,7vw,110px); display:grid; grid-template-columns:minmax(260px,.8fr) minmax(420px,1.2fr); gap:clamp(50px,8vw,130px); align-items:center; }
.apx-section-copy h2 { margin:8px 0 20px; font:400 clamp(2.5rem,5vw,5rem)/.98 "DM Serif Display",serif; }
.apx-section-copy p { color:#6f6878; line-height:1.8; max-width:520px; }
.apx-calculator { background:#fff; border:1px solid var(--apx-line); border-left:5px solid var(--apx-violet); padding:34px; box-shadow:20px 24px 0 #e6daef; }
.apx-calculator label { display:block; margin-bottom:10px; font-size:.75rem; font-weight:800; }
.apx-calc-input { display:flex; align-items:center; border-bottom:2px solid var(--apx-ink); }
.apx-calc-input span { font:400 2rem "DM Serif Display",serif; }
.apx-calc-input input { width:100%; border:0; outline:0; padding:8px 14px; font:400 3rem "DM Serif Display",serif; color:var(--apx-ink); }
.apx-calculator input[type=range] { width:100%; accent-color:var(--apx-violet); margin:22px 0; }
.apx-calc-results { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--apx-line); }
.apx-calc-results div { padding:18px; border-right:1px solid var(--apx-line); }
.apx-calc-results div:last-child { border:0; }
.apx-calc-results small { display:block; color:#81798a; font-size:.66rem; }
.apx-calc-results strong { display:block; margin-top:8px; font-size:1rem; }
.apx-calc-results .highlight { color:#fff; background:var(--apx-deep); }
.apx-calc-results .highlight small { color:#d7c9e5; }
.apx-calc-note { display:block; color:#81798a; margin-top:18px; }
.apx-network { color:#fff; background:var(--apx-ink); }
.apx-network .apx-section-copy p { color:#bdb1ca; }
.apx-levels { display:grid; grid-template-columns:1fr 1fr; border:1px solid #5d4671; }
.apx-levels div { min-height:160px; display:flex; flex-direction:column; justify-content:center; padding:30px; border-right:1px solid #5d4671; border-bottom:1px solid #5d4671; }
.apx-levels div:nth-child(2n) { border-right:0; }
.apx-levels div:nth-last-child(-n+2) { border-bottom:0; }
.apx-levels b { color:#d094ff; font:400 3rem "DM Serif Display",serif; }
.apx-levels span { color:#c9becf; font-size:.75rem; }
.apx-final { padding:68px clamp(22px,7vw,110px); display:flex; align-items:center; justify-content:space-between; gap:30px; background:#ded2e8; }
.apx-final span { font-size:.7rem; font-weight:800; color:#7136c8; }
.apx-final h2 { margin:8px 0 0; font:400 clamp(2rem,4vw,4rem) "DM Serif Display",serif; }
.apx-final .apx-btn { background:var(--apx-ink); color:#fff; }
.apx-footer { padding:45px clamp(22px,5vw,80px); display:grid; grid-template-columns:1fr 1fr auto; gap:30px; align-items:center; color:#d4cadf; background:#0b0418; }
.apx-footer p { margin:0; color:#8f849a; font-size:.8rem; }
.apx-footer>div { display:grid; gap:8px; text-align:right; font-size:.72rem; }
.apx-footer a { color:#d4cadf; }

/* Authentication: asymmetric editorial layout, not the inherited portal card. */
.apx-public .ew-auth-shell,.apx-public .ew-register-shell { min-height:calc(100vh - 76px); background:#f5f0f8; }
.apx-public .ew-auth-visual,.apx-public .ew-register-visual { background:#17092f url('/images/aprex-trade-hero.png') center/cover no-repeat; position:relative; }
.apx-public .ew-auth-visual::before,.apx-public .ew-register-visual::before { content:""; position:absolute; inset:0; background:rgba(18,6,43,.64); }
.apx-public .ew-auth-message,.apx-public .ew-register-visual-inner { position:relative; z-index:1; }
.apx-public .ew-auth-panel { background:#f7f3fb; }
.apx-public .ew-auth-form { max-width:560px; }
.apx-public .ew-auth-form .form-control,
.apx-public .ew-register-block .form-control {
  width:100%;
  height:54px;
  min-height:54px;
  box-sizing:border-box;
  border:0;
  border-bottom:2px solid #a79caf;
  border-radius:0;
  background:transparent;
  padding:0 14px;
  line-height:1.35;
}
.apx-public .ew-auth-form .ew-password-field .form-control,
.apx-public .ew-register-block .ew-password-field .form-control { padding-right:52px; }
.apx-public .ew-auth-form .ew-password-toggle,
.apx-public .ew-register-block .ew-password-toggle { top:5px; right:5px; bottom:5px; width:42px; }
.apx-public .ew-auth-form .text-danger,
.apx-public .ew-register-block .text-danger { display:block; margin-top:6px; }
.apx-public .ew-register-block { border:0; border-top:1px solid #d8cede; border-radius:0; box-shadow:none; background:transparent; }
.apx-public .ew-button { border-radius:2px; background:var(--apx-deep); }

/* Member/admin workspace: violet instrument panel. */
.ew-app { background:#eee9f2; color:#271d31; }
.ew-volgh-header { background:#fff; border-bottom:3px solid #7a3bc5; box-shadow:none; }
.ew-volgh-sidebar { background:#16092a; border-right:0; }
.ew-spruko-brand { border-bottom:1px solid #49355d; }
.ew-spruko-brand-mark { border-radius:2px; background:#8b42d1; color:#fff; }
.ew-spruko-brand strong,.ew-spruko-brand small { color:#fff; }
.ew-volgh-nav-category { color:#9e82b8; }
.ew-volgh-nav-item { color:#cfc1db; border-radius:2px; }
.ew-volgh-nav-item:hover,.ew-volgh-nav-item.active { color:#fff; background:#7136c8; }
.ew-volgh-main { background:#eee9f2; }
.ew-volgh-pagehead { border-bottom:1px solid #d4cadc; background:#f9f7fa; }
.ew-volgh-page-title,.ew-title { font-family:"DM Serif Display",serif; font-weight:400; }
.ew-widget,.ew-vg-panel,.ew-vg-chart-panel,.ew-data-panel,.ew-panel,.ew-vg-order-card,.ew-vg-guide-panel,.ew-vg-withdraw-form,.ew-vg-balance-rail { border-radius:3px; box-shadow:none; border-color:#d6cbdc; }
.ew-widget-primary,.ew-vg-metric.purple { background:#2b1649; }
.ew-button { border-radius:2px; background:#7136c8; }
.ew-button:hover { background:#55249a; }
.progress-bar { background:#8b42d1; }

@media(max-width:850px){.apx-public-head nav{display:none}.apx-mobile-trigger{display:block;border:1px solid #785a93;background:transparent;color:#fff;padding:8px 12px}.apx-mobile-nav.open{display:grid;padding:16px 22px;gap:12px;background:#17092f}.apx-mobile-nav a{color:#fff;text-decoration:none}.apx-hero{min-height:720px;background-position:62% center}.apx-hero::before{background:rgba(12,4,29,.78)}.apx-rule-strip{grid-template-columns:1fr 1fr}.apx-calc-band,.apx-network{grid-template-columns:1fr}.apx-footer{grid-template-columns:1fr}.apx-footer>div{text-align:left}}
@media(max-width:560px){.apx-hero{min-height:680px;padding-top:52px;align-items:flex-start}.apx-hero h1{font-size:4rem}.apx-hero-stats{grid-template-columns:1fr 1fr}.apx-rule-strip{grid-template-columns:1fr}.apx-rule-strip>div{min-height:105px;border-bottom:1px solid var(--apx-line)}.apx-calc-band,.apx-network{padding:65px 20px}.apx-calculator{padding:22px;box-shadow:9px 12px 0 #e6daef}.apx-calc-results{grid-template-columns:1fr}.apx-calc-results div{border-right:0;border-bottom:1px solid var(--apx-line)}.apx-final{align-items:flex-start;flex-direction:column}.apx-levels div{min-height:125px;padding:20px}}
@media(max-width:560px){.ew-currency-switcher select{width:94px;max-width:94px;min-height:34px;padding-left:7px;padding-right:22px;font-size:.68rem}body.ew-spruko .ew-volgh-header-right{gap:4px}}

/* WealthFlow public identity */
:root {
  --wf-ink: #061629;
  --wf-navy: #071d36;
  --wf-cyan: #12d7d1;
  --wf-mint: #baf8ee;
  --wf-lime: #d6ff62;
  --wf-paper: #f4f8f8;
  --wf-line: #bfd3d4;
  --wf-muted: #63777b;
}
.wf-public { margin: 0; background: var(--wf-paper); color: var(--wf-ink); font-family: "Manrope", sans-serif; }
.wf-public * { box-sizing: border-box; letter-spacing: 0; }
.wf-public h1,.wf-public h2,.wf-public h3,.wf-brand { font-family: "Space Grotesk", sans-serif; }
.wf-public-header { position: absolute; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 82px; padding: 0 5vw; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; }
.wf-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 1rem; font-weight: 700; }
.wf-brand b { color: var(--wf-cyan); font-weight: 700; }
.wf-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--wf-cyan); color: #fff; font-size: 1.15rem; transform: skewX(-8deg); }
.wf-desktop-nav { display: flex; align-items: center; gap: 30px; }
.wf-desktop-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .78rem; font-weight: 700; }
.wf-desktop-nav a:hover { color: #fff; }
.wf-desktop-nav .wf-nav-action { padding: 11px 17px; border: 1px solid var(--wf-cyan); color: #fff; }
.wf-menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.35); background: transparent; }
.wf-menu-button span { display: block; height: 2px; margin: 4px 0; background: #fff; }
.wf-mobile-nav { display: none; }
.wf-hero { position: relative; min-height: 760px; height: 92svh; max-height: 940px; display: flex; align-items: center; overflow: hidden; background: var(--wf-navy) url('/images/wealthflow-hero.png') center center/cover no-repeat; color: #fff; }
.wf-hero::before { content: ""; position: absolute; inset: 0; background: rgba(3,18,34,.24); pointer-events: none; }
.wf-hero-inner { position: relative; z-index: 2; width: min(610px, 90vw); margin-left: 8vw; padding-top: 58px; animation: wf-rise .8s ease both; }
.wf-kicker,.wf-section-intro > span,.wf-final-cta > div > span { margin: 0 0 17px; color: var(--wf-cyan); font-size: .7rem; font-weight: 800; }
.wf-hero h1 { margin: 0; font-size: 5.4rem; line-height: .9; font-weight: 700; }
.wf-hero h1 span { color: var(--wf-cyan); }
.wf-hero h2 { margin: 27px 0 13px; font-size: 1.75rem; font-weight: 500; }
.wf-hero-copy { max-width: 560px; margin: 0; color: rgba(255,255,255,.73); font-size: .95rem; line-height: 1.75; }
.wf-hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.wf-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 2px; font-size: .76rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.wf-button:hover { transform: translateY(-2px); }
.wf-button.solid { background: var(--wf-cyan); color: var(--wf-ink); }
.wf-button.solid:hover { background: var(--wf-lime); }
.wf-button.line { border-color: rgba(255,255,255,.38); color: #fff; }
.wf-hero-readout { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-top: 42px; border-top: 1px solid rgba(255,255,255,.25); }
.wf-hero-readout div { min-height: 86px; padding: 18px 17px 12px 0; border-right: 1px solid rgba(255,255,255,.18); }
.wf-hero-readout div + div { padding-left: 17px; }
.wf-hero-readout span,.wf-hero-readout strong { display: block; }
.wf-hero-readout span { color: rgba(255,255,255,.57); font-size: .62rem; }
.wf-hero-readout strong { margin-top: 7px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; }
.wf-scroll-cue { position: absolute; z-index: 2; right: 5vw; bottom: 30px; color: rgba(255,255,255,.64); font-size: .67rem; text-decoration: none; }
.wf-scroll-cue span { margin-left: 8px; color: var(--wf-cyan); }
.wf-return-section,.wf-network { padding: 105px 7vw; }
.wf-return-section { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(580px, 1.28fr); gap: 7vw; background: #fff; }
.wf-section-intro { max-width: 520px; }
.wf-section-intro h2 { margin: 0; font-size: 2.65rem; line-height: 1.08; color: var(--wf-ink); }
.wf-section-intro p { margin: 22px 0 0; color: var(--wf-muted); font-size: .9rem; line-height: 1.8; }
.wf-return-console { display: grid; grid-template-columns: .8fr 1.2fr; border-top: 3px solid var(--wf-cyan); border-bottom: 1px solid var(--wf-line); background: var(--wf-paper); }
.wf-amount-control { padding: 34px; border-right: 1px solid var(--wf-line); }
.wf-amount-control label { display: block; margin-bottom: 20px; color: var(--wf-muted); font-size: .68rem; font-weight: 800; }
.wf-amount-control > div { display: flex; align-items: center; border-bottom: 1px solid var(--wf-ink); }
.wf-amount-control > div span { font-size: 1.45rem; }
.wf-amount-control input[type="number"] { width: 100%; padding: 10px 8px; border: 0; outline: 0; background: transparent; color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 600; }
.wf-amount-control input[type="range"] { width: 100%; margin: 34px 0 13px; accent-color: var(--wf-cyan); }
.wf-amount-control small { color: var(--wf-muted); font-size: .66rem; }
.wf-return-output { display: grid; grid-template-columns: 1fr 1fr; }
.wf-return-output > div { min-height: 125px; display: flex; flex-direction: column; justify-content: center; padding: 23px; border-right: 1px solid var(--wf-line); border-bottom: 1px solid var(--wf-line); }
.wf-return-output span { color: var(--wf-muted); font-size: .62rem; font-weight: 700; }
.wf-return-output strong { margin-top: 7px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.wf-return-output .total { background: var(--wf-mint); }
.wf-return-output .maturity { background: var(--wf-ink); color: #fff; }
.wf-return-output .maturity span { color: rgba(255,255,255,.6); }
.wf-timeline { padding: 105px 7vw 90px; background: var(--wf-ink); color: #fff; }
.wf-section-intro.light h2 { color: #fff; }
.wf-week-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 60px; border-top: 1px solid rgba(255,255,255,.2); }
.wf-week-track::before { content: ""; position: absolute; top: -2px; left: 0; width: 80%; height: 3px; background: var(--wf-cyan); animation: wf-track 1.2s ease both; }
.wf-week-track > div { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.15); }
.wf-week-track b { color: var(--wf-cyan); font-family: "Space Grotesk", sans-serif; font-size: 2rem; }
.wf-week-track span { margin-top: 16px; font-size: .8rem; font-weight: 800; }
.wf-week-track small { margin-top: 4px; color: rgba(255,255,255,.5); font-size: .64rem; }
.wf-week-track .finish { background: var(--wf-cyan); color: var(--wf-ink); }
.wf-week-track .finish b,.wf-week-track .finish small { color: var(--wf-ink); }
.wf-timeline-note { margin: 22px 0 0; color: rgba(255,255,255,.55); font-size: .7rem; }
.wf-network { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: end; }
.wf-network-levels { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--wf-ink); }
.wf-network-levels div { min-height: 155px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border-right: 1px solid var(--wf-line); transition: background .2s ease, transform .2s ease; }
.wf-network-levels div:hover { background: var(--wf-mint); transform: translateY(-5px); }
.wf-network-levels span,.wf-network-levels small { color: var(--wf-muted); font-size: .62rem; }
.wf-network-levels strong { margin: 7px 0; font-family: "Space Grotesk", sans-serif; font-size: 2.5rem; }
.wf-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 70px 7vw; background: var(--wf-cyan); color: var(--wf-ink); }
.wf-final-cta > div > span { color: var(--wf-ink); }
.wf-final-cta h2 { margin: 0; font-size: 2.2rem; }
.wf-final-cta .wf-button { background: var(--wf-ink); color: #fff; }
.wf-footer { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 30px; padding: 42px 5vw; background: #020c16; color: #fff; }
.wf-footer p { margin: 0; color: rgba(255,255,255,.55); font-size: .7rem; text-align: center; }
.wf-footer > div { display: flex; justify-content: flex-end; gap: 18px; color: rgba(255,255,255,.5); font-size: .65rem; }
.wf-footer a { color: inherit; text-decoration: none; }
@keyframes wf-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wf-track { from { width: 0; } to { width: 80%; } }

/* WealthFlow authentication */
.wf-public .ew-auth-shell,.wf-public .ew-register-shell { min-height: 100svh; padding-top: 82px; background: var(--wf-paper); }
.wf-public .ew-auth-visual,.wf-public .ew-register-visual { position: relative; background: var(--wf-ink) url('/images/wealthflow-hero.png') 68% center/cover no-repeat; }
.wf-public .ew-auth-visual::before,.wf-public .ew-register-visual::before { content: ""; position: absolute; inset: 0; background: rgba(3,19,35,.48); }
.wf-public .ew-auth-message,.wf-public .ew-register-visual-inner { position: relative; z-index: 1; }
.wf-public .ew-auth-panel { background: #fff; }
.wf-public .ew-auth-form { max-width: 620px; }
.wf-public .ew-eyebrow { color: #068d8c; }
.wf-public .ew-title { color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; }
.wf-public .ew-title-light { color: #fff; }
.wf-public .form-control,.wf-public .form-select { min-height: 50px; border: 0; border-bottom: 1px solid #9eb3b6; border-radius: 0; background: #f6f9f9; }
.wf-public .form-control:focus,.wf-public .form-select:focus { border-color: var(--wf-cyan); box-shadow: 0 2px 0 var(--wf-cyan); }
.wf-public .ew-button { border-radius: 2px; background: var(--wf-ink); }
.wf-public .ew-register-block { border: 0; border-top: 1px solid var(--wf-line); border-radius: 0; box-shadow: none; }
.wf-public .ew-register-block-head > span { background: var(--wf-cyan); color: var(--wf-ink); }
.wf-public .ew-register-perk i { background: var(--wf-cyan); color: var(--wf-ink); }

/* WealthFlow member and admin workspace */
body.wf-app { --ew-volgh-accent: #08aaa7; background: #edf3f3; color: var(--wf-ink); font-family: "Manrope", sans-serif; }
body.wf-app .ew-volgh-sidebar { background: #06182b; }
body.wf-app .ew-spruko-brand-mark { border-radius: 2px; background: var(--wf-cyan); color: var(--wf-ink); }
body.wf-app .ew-volgh-nav-item.active,body.wf-app .ew-volgh-nav-item:hover { background: #0d7778; }
body.wf-app .ew-volgh-header { border-bottom: 3px solid var(--wf-cyan); }
body.wf-app .ew-volgh-main { background: #edf3f3; }
body.wf-app .ew-volgh-pagehead { background: #fff; border-bottom-color: #c8d8d9; }
body.wf-app .ew-volgh-page-title,body.wf-app .ew-title { color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; }
body.wf-app .ew-button { border-radius: 2px; background: #087f7e; }
body.wf-app .ew-button:hover { background: #056261; }
body.wf-app .ew-widget,body.wf-app .ew-vg-panel,body.wf-app .ew-vg-chart-panel,body.wf-app .ew-data-panel,body.wf-app .ew-panel,body.wf-app .ew-vg-order-card,body.wf-app .ew-vg-guide-panel,body.wf-app .ew-vg-withdraw-form,body.wf-app .ew-vg-balance-rail { border-color: #cbdadb; border-radius: 2px; box-shadow: none; }
body.wf-app .ew-vg-metric.purple,body.wf-app .ew-widget-primary { background: var(--wf-ink); }
body.wf-app .progress-bar { background: var(--wf-cyan); }
body.wf-app .ew-currency-switcher select { border-color: #a8c9c9; background: #edfafa; color: #075c5b; }

@media (max-width: 980px) {
  .wf-desktop-nav { display: none; }
  .wf-menu-button { display: block; }
  .wf-mobile-nav.open { position: absolute; z-index: 29; top: 82px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 5vw 18px; background: var(--wf-ink); }
  .wf-mobile-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: .78rem; }
  .wf-return-section,.wf-network { grid-template-columns: 1fr; }
  .wf-return-console { grid-template-columns: 1fr; }
  .wf-amount-control { border-right: 0; border-bottom: 1px solid var(--wf-line); }
}
@media (max-width: 700px) {
  .wf-public-header { height: 70px; padding: 0 20px; }
  .wf-mobile-nav.open { top: 70px; padding-left: 20px; padding-right: 20px; }
  .wf-hero { min-height: 720px; height: auto; padding: 115px 0 60px; background-position: 63% center; }
  .wf-hero::before { background: rgba(3,18,34,.7); }
  .wf-hero-inner { width: auto; margin: 0; padding: 0 22px; }
  .wf-hero h1 { font-size: 3.3rem; }
  .wf-hero h2 { font-size: 1.35rem; }
  .wf-hero-actions { align-items: stretch; flex-direction: column; }
  .wf-hero-readout { grid-template-columns: 1fr; }
  .wf-hero-readout div,.wf-hero-readout div + div { min-height: 65px; padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .wf-scroll-cue { display: none; }
  .wf-return-section,.wf-network,.wf-timeline { padding: 72px 22px; }
  .wf-section-intro h2 { font-size: 2rem; }
  .wf-return-output { grid-template-columns: 1fr; }
  .wf-return-output > div { min-height: 100px; border-right: 0; }
  .wf-week-track { grid-template-columns: 1fr 1fr; }
  .wf-week-track::before { display: none; }
  .wf-week-track > div { min-height: 125px; }
  .wf-week-track .finish { grid-column: 1 / -1; }
  .wf-network-levels { grid-template-columns: 1fr 1fr; }
  .wf-final-cta { align-items: flex-start; flex-direction: column; padding: 55px 22px; }
  .wf-final-cta h2 { font-size: 1.7rem; }
  .wf-footer { grid-template-columns: 1fr; padding: 40px 22px; }
  .wf-footer p { text-align: left; }
  .wf-footer > div { justify-content: flex-start; }
  .wf-public .ew-auth-shell,.wf-public .ew-register-shell { padding-top: 70px; }
}

/* WealthFlow account overview */
.wf-pending-line { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 13px 16px; border-left: 3px solid #e0a51d; background: #fff8e6; font-size: .75rem; }
.wf-pending-line span { color: #856317; }
.wf-pending-line a { margin-left: auto; color: #075f60; font-weight: 800; text-decoration: none; }
.wf-dash-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; padding: 26px 28px; background: var(--wf-ink); color: #fff; }
.wf-dash-actions > div { display: grid; gap: 3px; }
.wf-dash-actions span,.wf-cycle-heading span,.wf-network-brief > span { color: var(--wf-cyan); font-size: .62rem; font-weight: 800; }
.wf-dash-actions strong { font-family: "Space Grotesk", sans-serif; font-size: 2rem; }
.wf-dash-actions small { color: rgba(255,255,255,.52); font-size: .66rem; }
.wf-dash-actions nav { display: flex; gap: 8px; }
.wf-dash-actions nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .7rem; font-weight: 800; text-decoration: none; }
.wf-dash-actions nav a.primary { border-color: var(--wf-cyan); background: var(--wf-cyan); color: var(--wf-ink); }
.wf-balance-ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border-top: 3px solid var(--wf-cyan); background: #fff; }
.wf-balance-ledger > div { min-height: 125px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border-right: 1px solid #d8e2e3; }
.wf-balance-ledger span { color: #6c7b7f; font-size: .62rem; }
.wf-balance-ledger strong { margin: 6px 0 3px; color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.wf-balance-ledger small { min-height: 28px; color: #8c999c; font-size: .6rem; }
.wf-cycle-workspace,.wf-credit-ledger { margin-bottom: 24px; background: #fff; border: 1px solid #cfdddd; }
.wf-cycle-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid #dce6e6; }
.wf-cycle-heading h2 { margin: 3px 0 0; color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.wf-cycle-heading > small { color: #829194; font-size: .64rem; }
.wf-cycle-list { display: grid; }
.wf-cycle-row { display: grid; grid-template-columns: .65fr repeat(3, 1fr) 1.4fr; align-items: center; min-height: 124px; border-bottom: 1px solid #e2eaea; }
.wf-cycle-row:last-child { border-bottom: 0; }
.wf-cycle-row > div { min-width: 0; padding: 20px; }
.wf-cycle-id,.wf-cycle-value { display: grid; gap: 4px; }
.wf-cycle-id span,.wf-cycle-value span { color: #849295; font-size: .59rem; }
.wf-cycle-id strong,.wf-cycle-value strong { color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.wf-cycle-id small,.wf-cycle-value small,.wf-cycle-progress small { color: #869497; font-size: .58rem; }
.wf-cycle-progress { border-left: 1px solid #e0e8e8; }
.wf-cycle-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: .62rem; }
.wf-cycle-progress .progress { height: 5px; border-radius: 0; }
.wf-cycle-progress > small { display: block; margin-top: 8px; }
.wf-empty-flow { min-height: 220px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 30px; color: #7e8d90; }
.wf-empty-flow strong { color: var(--wf-ink); font-size: .9rem; }
.wf-empty-flow span { margin: 6px 0 13px; font-size: .7rem; }
.wf-empty-flow a { color: #087f7e; font-size: .7rem; font-weight: 800; text-decoration: none; }
.wf-empty-flow.compact { min-height: 145px; }
.wf-dash-lower { display: grid; grid-template-columns: 1.55fr .45fr; gap: 24px; }
.wf-credit-rows > div { display: grid; grid-template-columns: .55fr 1fr 1fr 1.2fr .8fr; align-items: center; gap: 12px; min-height: 58px; padding: 10px 20px; border-bottom: 1px solid #e2eaea; font-size: .64rem; }
.wf-credit-rows time { color: #7f8e91; }
.wf-credit-rows b { color: #087f7e; }
.wf-credit-rows > div > strong { justify-self: end; font-size: .72rem; }
.wf-network-brief { min-height: 250px; padding: 25px; background: var(--wf-cyan); color: var(--wf-ink); }
.wf-network-brief > span { color: var(--wf-ink); }
.wf-network-brief > strong { display: block; margin-top: 35px; font-family: "Space Grotesk", sans-serif; font-size: 4rem; line-height: 1; }
.wf-network-brief p { margin: 8px 0 30px; font-size: .7rem; }
.wf-network-brief a { color: var(--wf-ink); font-size: .68rem; font-weight: 800; text-decoration: none; }
@media (max-width: 1050px) {
  .wf-balance-ledger { grid-template-columns: 1fr 1fr; }
  .wf-cycle-row { grid-template-columns: 1fr 1fr; }
  .wf-cycle-progress { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e0e8e8; }
  .wf-dash-lower { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wf-dash-actions { align-items: stretch; flex-direction: column; padding: 20px; }
  .wf-dash-actions nav { display: grid; grid-template-columns: 1fr 1fr; }
  .wf-dash-actions nav a { justify-content: center; }
  .wf-balance-ledger { grid-template-columns: 1fr; }
  .wf-balance-ledger > div { min-height: 100px; border-right: 0; border-bottom: 1px solid #d8e2e3; }
  .wf-cycle-row { grid-template-columns: 1fr; }
  .wf-cycle-progress { grid-column: auto; }
  .wf-credit-rows > div { grid-template-columns: 1fr 1fr; }
  .wf-credit-rows > div > strong { justify-self: start; }
  .wf-pending-line { align-items: flex-start; flex-direction: column; }
  .wf-pending-line a { margin-left: 0; }
}

/* WealthFlow authentication workspaces */
.wf-login-stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr);
  padding-top: 82px;
  background: var(--wf-ink) url('/images/wealthflow-hero.png') 58% center/cover no-repeat;
  color: #fff;
}
.wf-login-message {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(55px, 8vw, 125px);
  background: linear-gradient(90deg, rgba(3,18,34,.9), rgba(3,18,34,.26));
}
.wf-login-message > span,.wf-login-dock header > span,.wf-register-intro span,.wf-register-workspace aside > span {
  color: var(--wf-cyan);
  font-size: .66rem;
  font-weight: 800;
}
.wf-login-message h1 {
  max-width: 730px;
  margin: 18px 0 24px;
  font-size: clamp(3.1rem, 6vw, 6.8rem);
  line-height: .92;
}
.wf-login-message > p { max-width: 560px; margin: 0; color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.8; }
.wf-login-message > div { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: end; gap: 10px 16px; max-width: 540px; margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.wf-login-message > div b { color: var(--wf-cyan); font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; line-height: 1; }
.wf-login-message > div small { padding-bottom: 4px; color: rgba(255,255,255,.58); font-size: .62rem; }
.wf-login-dock { display: flex; justify-content: center; flex-direction: column; padding: clamp(42px, 5vw, 76px); background: #fff; color: var(--wf-ink); }
.wf-login-dock header h2 { margin: 8px 0; font-size: 2rem; }
.wf-login-dock header p { margin: 0 0 35px; color: var(--wf-muted); font-size: .75rem; line-height: 1.65; }
.wf-auth-field { margin-bottom: 20px; }
.wf-auth-field label { display: block; margin-bottom: 8px; color: #40565b; font-size: .66rem; font-weight: 800; }
.wf-auth-field .form-control { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid #c7d6d7; border-radius: 0; background: #f7fafa; color: var(--wf-ink); line-height: 1.4; }
.wf-auth-field .form-control:focus { border-color: #079e9b; outline: 0; box-shadow: 3px 3px 0 rgba(18,215,209,.24); }
.wf-auth-field .text-danger { display: block; margin-top: 6px; font-size: .65rem; }
.wf-login-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 3px 0 24px; color: var(--wf-muted); font-size: .66rem; }
.wf-login-options label { display: flex; align-items: center; gap: 7px; }
.wf-login-options input { accent-color: #087f7e; }
.wf-login-options a,.wf-login-dock footer a,.wf-register-submit a,.wf-register-signin a { color: #087f7e; font-weight: 800; text-decoration: none; }
.wf-login-dock footer { margin-top: 25px; padding-top: 20px; border-top: 1px solid #dfe8e8; color: var(--wf-muted); font-size: .7rem; }

.wf-register-stage { min-height: 100svh; padding: 142px 6vw 70px; background: linear-gradient(to bottom, var(--wf-ink) 0 82px, var(--wf-paper) 82px); }
.wf-register-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 50px; align-items: end; max-width: 1320px; margin: 0 auto 45px; }
.wf-register-intro h1 { max-width: 800px; margin: 9px 0 0; color: var(--wf-ink); font-size: clamp(2.5rem, 5vw, 5.5rem); line-height: .96; }
.wf-register-intro > p { max-width: 480px; margin: 0; color: var(--wf-muted); font-size: .82rem; line-height: 1.8; }
.wf-register-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; border-top: 3px solid var(--wf-cyan); background: #fff; }
.wf-register-workspace > aside { padding: 32px; background: var(--wf-ink); color: #fff; }
.wf-register-workspace aside dl { margin: 35px 0; }
.wf-register-workspace aside dl > div { display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.wf-register-workspace aside dt { color: var(--wf-cyan); font-family: "Space Grotesk", sans-serif; font-size: .75rem; font-weight: 700; }
.wf-register-workspace aside dd { margin: 0; color: rgba(255,255,255,.8); font-size: .7rem; line-height: 1.55; }
.wf-register-workspace aside > p { margin: 0; color: rgba(255,255,255,.48); font-size: .63rem; }
.wf-register-form { min-width: 0; padding: 18px 42px 34px; }
.wf-register-form > section { padding: 27px 0 22px; border-bottom: 1px solid #dce6e6; }
.wf-register-form > section > header { display: flex; gap: 15px; margin-bottom: 22px; }
.wf-register-form > section > header > b { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: var(--wf-cyan); color: var(--wf-ink); font-family: "Space Grotesk", sans-serif; font-size: .68rem; }
.wf-register-form h2 { margin: 0 0 4px; color: var(--wf-ink); font-size: .92rem; }
.wf-register-form header p { margin: 0; color: var(--wf-muted); font-size: .63rem; }
.wf-register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wf-register-grid .wf-auth-field { margin-bottom: 0; }
.wf-register-submit { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 28px; }
.wf-register-submit p,.wf-register-signin { margin: 0; color: var(--wf-muted); font-size: .65rem; }
.wf-register-signin { max-width: 1320px; margin: 24px auto 0; text-align: right; }

@media (max-width: 950px) {
  .wf-login-stage { grid-template-columns: 1fr 420px; }
  .wf-login-message { padding: 55px 38px; }
  .wf-register-workspace { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wf-login-stage { grid-template-columns: 1fr; padding-top: 70px; background-position: 63% center; }
  .wf-login-message { min-height: 490px; padding: 65px 22px 48px; background: rgba(3,18,34,.72); }
  .wf-login-message h1 { font-size: 3.2rem; }
  .wf-login-dock { padding: 42px 22px 48px; }
  .wf-register-stage { padding: 110px 20px 50px; }
  .wf-register-intro { grid-template-columns: 1fr; gap: 18px; }
  .wf-register-intro h1 { font-size: 2.65rem; }
  .wf-register-workspace { grid-template-columns: 1fr; }
  .wf-register-workspace > aside { padding: 26px 22px; }
  .wf-register-workspace aside dl { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; }
  .wf-register-workspace aside dl > div { grid-template-columns: 30px 1fr; padding: 14px 9px 14px 0; }
  .wf-register-form { padding: 10px 22px 28px; }
  .wf-register-grid { grid-template-columns: 1fr; gap: 18px; }
  .wf-register-submit { align-items: stretch; flex-direction: column; }
  .wf-register-submit .wf-button { width: 100%; }
  .wf-register-signin { text-align: left; }
}
@media (max-width: 440px) {
  .wf-login-message > div { grid-template-columns: auto 1fr; }
  .wf-register-workspace aside dl { grid-template-columns: 1fr; }
}
