/* SHUAA Capital — Helix Tokenisation Platform — Unified Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --primary:        #009CDE;
  --primary-hover:  #2575FC;
  --primary-light:  #E0F5FF;
  --secondary:      #0057B7;
  --bg:             #F0F4F8;
  --sidebar-bg:     #002F6C;
  --topbar-bg:      #FFFFFF;
  --text:           #111827;
  --text-muted:     #6B7280;
  --border:         #E2E8F0;
  --white:          #FFFFFF;
  --success:        #059669;
  --success-bg:     #D1FAE5;
  --danger:         #DC2626;
  --danger-bg:      #FEE2E2;
  --warning:        #D97706;
  --warning-bg:     #FEF3C7;
  --sidebar-w:      230px;
  --topbar-h:       64px;
  --footer-h:       46px;
  --radius:         10px;
  --shadow:         0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 24px rgba(0,0,0,0.10);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ─── Logo ─────────────────────────────────────────────────────────────────── */
.logo-img { height: 32px; width: auto; object-fit: contain; }
.logo-img-sm { height: 26px; }
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
}
.logo-icon { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }

/* ─── LOGIN PAGE — Split screen ─────────────────────────────────────────────── */
/* ─── Investor Login Page — Glassmorphism ──────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #05101f 0%, #0a1a35 50%, #071428 100%);
}

/* Subtle colour blobs — just a hint of colour, not a flood */
.inv-login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.inv-login-blob--1 {
  width: 480px; height: 480px;
  background: rgba(0,87,183,0.18);
  top: -100px; left: -80px;
}
.inv-login-blob--2 {
  width: 360px; height: 360px;
  background: rgba(0,156,222,0.12);
  bottom: -60px; right: -60px;
}
.inv-login-blob--3 {
  width: 260px; height: 260px;
  background: rgba(0,47,108,0.15);
  top: 35%; left: 55%;
}

/* Nav */
.inv-login-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.inv-login-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
}
.inv-login-nav-inner img {
  margin-right: auto;
}
.inv-login-nav-links {
  display: flex;
  gap: 28px;
}
.inv-login-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.inv-login-nav-links a:hover { color: var(--text); }

/* Scrollable middle area */
.inv-login-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  position: relative;
  z-index: 1;
}

/* Center column */
.inv-login-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

/* Tabs */
.inv-login-tabs {
  border-bottom-color: rgba(255,255,255,0.20) !important;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
}
.inv-login-tabs .auth-tab {
  color: rgba(255,255,255,0.55) !important;
}
.inv-login-tabs .auth-tab:hover {
  color: rgba(255,255,255,0.85) !important;
}
.inv-login-tabs .auth-tab.active {
  color: #ffffff !important;
  border-bottom-color: #009CDE !important;
}

/* Glass card */
.inv-login-card {
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,1);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.40);
}
.inv-login-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: center;
}
.inv-login-card-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 28px;
  text-align: center;
}

/* Form inputs inside glass card */
.inv-login-card .form-group label {
  color: var(--text) !important;
}
.inv-login-card .form-group .form-input {
  background: #ffffff !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px;
}
.inv-login-card .form-group .form-input::placeholder { color: var(--text-muted) !important; }
.inv-login-card .form-group .form-input:focus {
  border-color: #009CDE !important;
  box-shadow: 0 0 0 3px rgba(0,156,222,0.15) !important;
}

/* Switch line inside card */
.inv-login-card .auth-switch-line { color: var(--text-muted); }
.inv-login-card .auth-switch-line a { color: #009CDE; font-weight: 600; }

/* Card title/sub on white background */
.inv-login-card-title { color: var(--text) !important; }
.inv-login-card-sub { color: var(--text-muted) !important; }

/* T&C row */
.inv-tc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.inv-tc-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #009CDE;
  cursor: pointer;
}
.inv-tc-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.inv-tc-label a { color: #009CDE; font-weight: 600; text-decoration: none; }

/* OTP digits */
.inv-otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.inv-otp-digit {
  width: 48px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.inv-otp-digit:focus {
  border-color: #009CDE;
  box-shadow: 0 0 0 3px rgba(0,156,222,0.15);
  background: #fff;
}

/* OTP back button */
.inv-otp-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.inv-otp-back:hover { color: var(--text); }

/* Footer pinned at bottom */
.inv-login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: var(--text-muted);
}
.inv-login-footer-left {
  display: flex;
  align-items: center;
}
.inv-login-footer-right {
  text-align: right;
}

/* ─── Auth Tabs ─────────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab {
  padding: 10px 24px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-switch-line {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch-line a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.auth-switch-line a:hover { text-decoration: underline; }

/* ─── APP SHELL ─────────────────────────────────────────────────────────────── */

/* Fixed topbar: white, 64px, logo left, user right */
.admin-topbar, .inv-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.topbar-divider { width: 1px; height: 22px; background: var(--border); }
.topbar-title { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.portal-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.portal-switcher:hover { color: var(--primary); }
.portal-switcher svg { flex-shrink: 0; }
.topbar-spacer { flex: 1; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.topbar-user:hover { background: var(--bg); }
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-label { font-size: 13px; font-weight: 500; color: var(--text); }
.topbar-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.topbar-logout:hover { border-color: var(--danger); color: var(--danger); }

/* Sidebar: navy */
.admin-sidebar, .inv-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: var(--footer-h);
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  padding: 24px 12px !important;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  border-right: none;
}
.sidebar-logo-area {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 16px 20px 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  user-select: none;
  margin: 1px 0;
}
.sidebar-item:hover { color: white; background: rgba(255,255,255,0.07); }
.sidebar-item.active {
  color: white;
  background: rgba(255,255,255,0.12);
  border-left-color: white;
}
.sidebar-item svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Admin sidebar — light (overrides dark default) */
.admin-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E5E7EB;
}
.admin-sidebar .sidebar-section-label {
  color: #9CA3AF;
}
.admin-sidebar .sidebar-item {
  color: #6B7280;
  border-left-color: transparent;
}
.admin-sidebar .sidebar-item:hover {
  color: #111827;
  background: #F3F4F6;
}
.admin-sidebar .sidebar-item.active {
  color: #1B3272;
  background: #EBF0FB;
  border-left-color: #1B3272;
}
.admin-sidebar .sidebar-item svg { color: inherit; }

/* Wallet chip */
.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F0F4FF;
  border: 1px solid #C7D2FE;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s;
  margin-right: 12px;
}
.wallet-chip:hover { background: #E0E7FF; }
.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px #dcfce7;
  flex-shrink: 0;
}
.wallet-usdc {
  font-size: 13px;
  font-weight: 600;
  color: #1B3272;
}
.wallet-addr {
  font-size: 12px;
  color: #6B7280;
  font-family: 'Courier New', monospace;
  border-left: 1px solid #C7D2FE;
  padding-left: 8px;
  margin-left: 2px;
}

/* Content body */
.admin-body, .inv-body {
  margin-top: var(--topbar-h);
  margin-left: var(--sidebar-w);
  min-height: calc(100vh - var(--topbar-h) - var(--footer-h));
  padding: 32px 36px;
  padding-bottom: calc(var(--footer-h) + 24px);
  background: var(--bg);
}

/* Footer */
.admin-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 100;
}

/* ─── Screen Switch ──────────────────────────────────────────────────────────── */
.admin-screen { display: none; }
.admin-screen.active { display: block; }
.hidden { display: none !important; }

/* ─── Page Header ────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header-left { display: flex; align-items: center; gap: 14px; }
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Issuer Bar ──────────────────────────────────────────────────────────────── */
.issuer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.issuer-bar-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.issuer-bar-addr { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text); }
.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.copy-btn:hover { color: var(--primary); }

/* ─── Toolbar ─────────────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,50,114,0.1);
}
.filter-select {
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--primary); }
.toolbar-spacer { flex: 1; }

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: none; border: none; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECACA; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid #A7F3D0; }
.btn-success:hover { background: var(--success); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Dropdown ────────────────────────────────────────────────────────────────── */
.dropdown-wrap { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 190px;
  z-index: 500;
  overflow: hidden;
  animation: fadeIn 0.1s ease;
}
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}
.dropdown-menu button:hover { background: var(--bg); }
.dropdown-menu button.danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ─── Tables ──────────────────────────────────────────────────────────────────── */
/* Standard table container: always white card with border + shadow. Used everywhere. */
.table-card,
.data-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #FAFBFD;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--primary); }
.data-table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFBFD; }
.col-ticker { font-weight: 700; color: var(--primary); font-size: 13px; }
.col-name { color: var(--text); max-width: 220px; font-weight: 500; }
.col-price { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 600; }
.col-change-pos { color: var(--success); font-size: 12px; font-weight: 600; }
.col-change-neg { color: var(--danger); font-size: 12px; font-weight: 600; }
.col-change-nil { color: var(--text-muted); font-size: 12px; }
.col-actions { text-align: right; white-space: nowrap; }

/* ─── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-active .badge-dot { background: #059669; }
.badge-draft { background: #F1F5F9; color: #64748B; border: 1px solid #E2E8F0; }
.badge-draft .badge-dot { background: #94A3B8; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-pending { background: var(--warning-bg); color: #92400E; }
.badge-rejected { background: var(--danger-bg); color: #991B1B; }
.badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-announced { background: var(--primary-light); color: var(--primary); }
.badge-executing { background: var(--warning-bg); color: #92400E; }

/* ─── Pagination ──────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Row Actions ─────────────────────────────────────────────────────────────── */
.row-actions-wrap { position: relative; display: inline-flex; justify-content: flex-end; }
.row-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 1px;
}
.row-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Shared row-action dropdown (used by all data tables) */
.row-action-menu {
  display: none;
  position: fixed;
  min-width: 164px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 9000;
  overflow: hidden;
  padding: 4px 0;
}
.row-action-menu.open { display: block; }
.row-action-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
  white-space: nowrap;
}
.row-action-menu button:hover { background: var(--bg); }
.row-action-menu .menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.row-action-menu button.danger { color: var(--danger); }
.row-action-menu button.danger:hover { background: var(--danger-bg); }
.row-action-menu button.success { color: var(--success); }
.row-action-menu button.success:hover { background: var(--success-bg); }

/* ─── Tabs ────────────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab-item {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Stats / Cards ───────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.stat-card-value { font-size: 24px; font-weight: 800; color: var(--text); }
.stat-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.detail-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.detail-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.detail-field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.detail-field span { font-size: 14px; color: var(--text); font-weight: 500; }

/* ─── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,50,114,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }
.radio-group { display: flex; gap: 10px; margin-top: 6px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.radio-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.radio-option input { display: none; }

/* ─── Modal ───────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.modal-box {
  background: white;
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}
.modal-box.modal-lg { max-width: 700px; }
.modal-box.modal-xl { max-width: 960px; }
.modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Toast ───────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--footer-h) + 16px);
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideInRight 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast-success { background: var(--primary); color: white; }
.toast-error   { background: var(--danger); color: white; }
.toast-info    { background: var(--text); color: white; }

/* ─── Empty State ─────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.3;
}
.empty-state h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 13px; }

/* ─── KV List ─────────────────────────────────────────────────────────────────── */
.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #F1F5F9;
}
.kv-row:last-child { border-bottom: none; }
.kv-key {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 150px;
  padding-top: 2px;
}
.kv-val { font-size: 13px; color: var(--text); font-weight: 500; }

/* ─── Settings ────────────────────────────────────────────────────────────────── */
.settings-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.settings-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.settings-section .section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.color-field { display: flex; align-items: center; gap: 10px; }
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}
.color-hex {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
input[type="color"] {
  -webkit-appearance: none;
  padding: 0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1.5px solid var(--border); border-radius: 7px; }

/* ─── Investor Portal — Asset Cards ───────────────────────────────────────────── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.asset-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.asset-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(27,50,114,0.12);
  transform: translateY(-2px);
}
.asset-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.asset-card-ticker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}
.asset-card-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.asset-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.asset-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--primary-light);
  color: var(--primary);
}
.asset-card-nav {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.asset-nav-item label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.asset-nav-item span { font-size: 14px; font-weight: 700; color: var(--text); }
.asset-card-action { margin-top: 18px; }

/* ─── Opportunities Grid (new card design) ────────────────────────────────────── */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.opp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.opp-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.opp-card-ticker { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 0.3px; }
.opp-card-name { font-size: 12px; color: var(--text-muted); margin-top: 2px; margin-bottom: 10px; }
.opp-card-divider { height: 1px; background: var(--border); margin-bottom: 10px; }
.opp-card-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; padding: 4px 0; gap: 8px; }
.opp-card-label { color: var(--text-muted); white-space: nowrap; }
.opp-card-val { font-weight: 600; color: var(--text); text-align: right; }
.opp-card-action { margin-top: auto; padding-top: 14px; }

/* ─── Deal Detail Split Layout ───────────────────────────────────────────────── */
.dd-split { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: stretch; }

/* Hero card — split left (blue) / right (white) */
.dd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
}
.dd-hero-left {
  position: relative;
  background: linear-gradient(145deg, #012d4f 0%, #01527a 55%, #0073ae 100%);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dd-hero-right {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dd-hero-inner { position: relative; z-index: 2; }
.dd-fund-ticker { font-size: 38px; font-weight: 800; color: #ffffff; line-height: 1; margin-bottom: 4px; letter-spacing: -0.5px; }
.dd-fund-name { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.70); margin-bottom: 8px; }
.dd-fund-desc { font-size: 12.5px; color: rgba(255,255,255,0.50); margin-bottom: 28px; line-height: 1.6; }
.dd-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
  margin-bottom: 24px;
}
.dd-hero-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.40); margin-bottom: 4px; }
.dd-hero-stat-value { font-size: 18px; font-weight: 800; color: #ffffff; line-height: 1.1; }
.dd-hero-stat-sub { font-size: 10.5px; color: rgba(255,255,255,0.35); margin-top: 3px; }
.dd-stat-pills { display: flex; flex-wrap: wrap; gap: 18px; }
.dd-stat-pill { display: flex; flex-direction: column; gap: 3px; }
.dd-stat-pill-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.40); }
.dd-stat-pill-value { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.90); }

/* Right panel KV rows */
.dd-kv-title { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.dd-kv-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; gap: 12px; }
.dd-kv-row:last-child { border-bottom: none; }
.dd-kv-label { color: #6b7280; font-weight: 500; white-space: nowrap; }
.dd-kv-value { color: #111827; font-weight: 700; text-align: right; }
.dd-nav-change-pos { color: #16a34a; }
.dd-nav-change-neg { color: #dc2626; }

/* Decorative wave overlay */
.dd-hero-wave {
  position: absolute;
  right: -60px; bottom: -80px;
  width: 420px; height: 340px;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

/* Action card */
.dd-action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
.dd-balance-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dd-balance-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.dd-balance-amount { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1; }
.dd-balance-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.dd-amount-row { display: flex; gap: 8px; }
.dd-currency-sel {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  min-width: 90px;
  flex-shrink: 0;
}
.dd-currency-sel:focus { outline: none; border-color: var(--primary); }
.dd-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
  margin: 12px 0 4px;
}
.dd-disclaimer input[type="checkbox"] { margin-top: 1px; flex-shrink: 0; accent-color: var(--primary); }
.dd-txn-section { margin-top: 36px; }
.dd-txn-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* ─── Powered-by Footer ───────────────────────────────────────────────────────── */
.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.helix-logo-icon { width: 18px; height: 18px; color: #0D3349; }

/* ─── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
  width: 100%;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
}
.lp-nav-logo { height: 32px; width: auto; flex-shrink: 0; margin-right: auto; }
.lp-nav-links {
  display: flex;
  gap: 32px;
  margin-right: 32px;
}
.lp-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
  text-decoration: none;
}
.lp-nav-links a:hover { color: var(--primary); }
.lp-nav-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.lp-nav-btn:hover { background: var(--primary-hover); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.lp-hero {
  background: var(--primary);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
  gap: 60px;
  max-width: 100%;
}
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e1f50 0%, #1B3272 50%, #2a4aa0 100%);
  z-index: 0;
}
.lp-hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: -200px;
  right: -150px;
  z-index: 0;
  box-shadow: 0 0 0 140px rgba(255,255,255,0.02), 0 0 0 280px rgba(255,255,255,0.015);
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 580px;
  margin: 0 auto 0 calc((100% - 1200px) / 2);
  padding-left: 40px;
}
.lp-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.lp-hero-h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.lp-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.lp-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-btn-primary {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-btn-primary:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.lp-btn-ghost {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-btn-ghost:hover { color: white; }
.lp-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  margin-right: calc((100% - 1200px) / 2);
  padding-right: 40px;
}
.lp-hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 28px;
  backdrop-filter: blur(10px);
  min-width: 220px;
}
.lp-hero-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.lp-hero-card-value {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.lp-hero-card-change {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.lp-hero-card-change.positive { color: #4ade80; }

/* ─── Stats Bar ─────────────────────────────────────────────────────────────── */
.lp-stats {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.lp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-stat {
  padding: 36px 20px;
  text-align: center;
  flex: 1;
}
.lp-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.lp-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.lp-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.lp-section { padding: 96px 40px; }
.lp-section-alt { background: var(--bg); }
.lp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.lp-section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.lp-section-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.lp-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 56px;
}

/* ─── Feature Cards ─────────────────────────────────────────────────────────── */
.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lp-feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lp-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lp-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.lp-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.lp-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.lp-feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Fund Cards ─────────────────────────────────────────────────────────────── */
.lp-funds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-fund-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.lp-fund-card:hover { box-shadow: var(--shadow-md); }
.lp-fund-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.lp-fund-ticker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.lp-fund-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.lp-fund-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.lp-fund-badge.active { background: var(--success-bg); color: var(--success); }
.lp-fund-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.lp-fund-stats > div {
  flex: 1;
  padding-right: 12px;
}
.lp-fund-stats > div:not(:first-child) {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.lp-fund-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.lp-fund-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.lp-fund-stat-val.positive { color: var(--success); }

/* ─── CTA Banner ────────────────────────────────────────────────────────────── */
.lp-cta-banner {
  background: var(--primary);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: -200px;
  left: -100px;
  pointer-events: none;
}
.lp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.lp-cta-inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  line-height: 1.2;
}
.lp-cta-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.lp-cta-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-cta-btn:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.lp-footer {
  background: #0c1a3a;
  padding: 64px 40px 0;
}
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.lp-footer-links {
  display: flex;
  gap: 64px;
}
.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.lp-footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.lp-footer-col a:hover { color: white; }
.lp-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.lp-footer-powered {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.lp-footer-powered strong { color: rgba(255,255,255,0.5); }

/* ─── Investor Onboarding ───────────────────────────────────────────────────── */
.ob-stepper-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sidebar-bg);
  padding: 20px 32px 16px;
  flex-shrink: 0;
}
.ob-stepper-bar .ob-step-bubble {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.6);
}
.ob-stepper-bar .ob-step.active .ob-step-bubble {
  background: #fff;
  border-color: #fff;
  border-width: 2px;
  color: var(--sidebar-bg);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}
.ob-stepper-bar .ob-step.done .ob-step-bubble {
  background: #fff;
  border-color: #fff;
  color: var(--sidebar-bg);
}
.ob-stepper-bar .ob-step-label {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.ob-stepper-bar .ob-step.active .ob-step-label {
  color: #fff;
  font-weight: 700;
}
.ob-stepper-bar .ob-step.done .ob-step-label {
  color: rgba(255,255,255,0.8);
}
.ob-stepper-bar .ob-step-line {
  border-top-color: rgba(255,255,255,0.2);
}
.ob-stepper-bar .ob-step-line.done {
  border-top-color: rgba(255,255,255,0.6);
}

.ob-stepper {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  gap: 0;
}
.ob-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 96px;
}
.ob-step-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.2s;
}
.ob-step.active .ob-step-bubble {
  background: #fff;
  border-color: var(--primary);
  border-width: 2.5px;
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.ob-step.done .ob-step-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ob-step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
  max-width: 84px;
  transition: color 0.2s;
}
.ob-step.active .ob-step-label { color: var(--primary); font-weight: 700; }
.ob-step.done .ob-step-label { color: var(--primary); }
.ob-step-line {
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--border);
  align-self: flex-start;
  margin-top: 19px;
  transition: border-color 0.2s;
}
.ob-step-line.done { border-color: var(--primary); }

.ob-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.ob-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ob-card .ob-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.ob-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ob-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}
.ob-btn-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ob-btn-back:hover { border-color: #aaa; color: var(--text); }
.ob-btn-next {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ob-btn-next:hover { background: var(--primary-hover); }

/* Review summary */
.ob-review-section { margin-bottom: 24px; }
.ob-review-section h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ob-review-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ob-review-row:last-child { border-bottom: none; }
.ob-review-label { color: var(--text-muted); }
.ob-review-value { font-weight: 600; color: var(--text); }

/* eKYC upload areas */
.ob-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #f8fafc;
}
.ob-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.ob-upload-icon { font-size: 28px; margin-bottom: 8px; }
.ob-upload-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ob-upload-sub { font-size: 12px; color: var(--text-muted); }

/* Section dividers within an ob-card step */
.ob-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ob-section-title:first-child { margin-top: 0; }

/* Declaration/regulatory boxes (PEP, FATCA) */
.ob-decl-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  background: var(--bg);
}
.ob-decl-box-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ob-radio-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ob-radio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  flex: 1;
  min-width: 160px;
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ob-radio-pill input[type=radio] { accent-color: var(--primary); flex-shrink: 0; }
.ob-radio-pill.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ob-decl-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}

/* eKYC document upload grid */
.ob-kyc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.ob-kyc-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.ob-kyc-box:hover { border-color: var(--primary); background: var(--primary-light); }
.ob-kyc-box.uploaded { border-color: var(--success); background: #f0fdf4; border-style: solid; }
.ob-kyc-box-icon { font-size: 22px; margin-bottom: 8px; color: var(--text-muted); }
.ob-kyc-box.uploaded .ob-kyc-box-icon { color: var(--success); }
.ob-kyc-box-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.ob-kyc-box-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.ob-kyc-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--primary-light);
  border: 1px solid rgba(0,156,222,0.3);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.ob-kyc-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ob-kyc-info-body { flex: 1; min-width: 0; }
.ob-kyc-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.ob-kyc-info-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Declaration checkboxes */
.ob-declaration {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ob-declaration:last-child { border-bottom: none; }
.ob-declaration input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); width:16px; height:16px; }
.ob-declaration label { font-size: 14px; color: var(--text); line-height: 1.5; cursor: pointer; }
.ob-declaration label span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── Shared gl-nav sidebar styles ─────────────────────────────────────────── */
.gl-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2px;
}
.gl-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
}
.gl-nav-item.active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-weight: 600;
}
.gl-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.gl-nav-item:hover .gl-nav-icon,
.gl-nav-item.active .gl-nav-icon { opacity: 1; }
.gl-nav-label { flex: 1; }
.gl-nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(34,197,94,0.20);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: 20px;
  padding: 2px 7px;
  letter-spacing: 0.5px;
}
.gl-sidebar-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 16px 12px 8px;
}
.gl-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
}
.gl-sidebar-footer:hover { background: rgba(255,255,255,0.08); }
.gl-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.20);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gl-sidebar-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.gl-sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.40); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════════
   WEB3 PROFILE PILL + EMBEDDED WALLET DROPDOWN
   (shared by admin & investor portals)
═══════════════════════════════════════════════════════════════════ */
.w3-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  user-select: none;
}
.w3-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.w3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.20);
}
.w3-balance {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.w3-addr {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}
.w3-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
.w3-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.w3-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.w3-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.w3-pill.open .w3-chevron { transform: rotate(180deg); }

/* ── Wallet dropdown shell ─────────────────────────────────────── */
.w3-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--topbar-h, 60px) - 4px);
  right: 20px;
  width: 308px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 200;
  overflow: hidden;
}
.w3-dropdown.open { display: block; }

/* Header row */
.w3-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.w3-dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.w3-dropdown-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.w3-dropdown-addr {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.12s;
}
.w3-dropdown-addr:hover { color: var(--primary); }
.w3-network-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.w3-network-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}
.w3-dropdown-divider {
  height: 1px;
  background: var(--border);
}

/* Balance / wallet card */
.w3-balance-section {
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #0057B7 100%);
  text-align: center;
}
.w3-balance-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 6px;
}
.w3-balance-amount {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
}
.w3-balance-ticker {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  margin-left: 4px;
}
.w3-balance-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.w3-wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.w3-wallet-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}
.w3-wallet-btn:hover { background: rgba(255,255,255,0.20); }

/* Token holdings list */
.w3-holdings-section {
  padding: 10px 12px 8px;
}
.w3-holdings-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 4px;
  margin-bottom: 4px;
}
.w3-holding-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.w3-holding-row:hover { background: var(--bg); }
.w3-holding-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: monospace;
  letter-spacing: -0.02em;
}
.w3-holding-info { flex: 1; min-width: 0; }
.w3-holding-ticker {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
}
.w3-holding-name {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w3-holding-right { text-align: right; flex-shrink: 0; }
.w3-holding-units {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
}
.w3-holding-val {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.w3-holdings-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0 6px;
}

/* Nav items */
.w3-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
}
.w3-dropdown-item:hover { background: var(--bg); }
.w3-dropdown-item--danger { color: var(--danger); }
.w3-dropdown-item--danger:hover { background: var(--danger-bg); }

/* Simple pill (non-web3 mode) */
.w3-pill--simple {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  cursor: pointer;
  transition: background 0.15s;
}
.w3-pill--simple:hover, .w3-pill--simple.open { background: rgba(255,255,255,0.20); }
.w3-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.w3-status-dot.pending { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.25); }
.w3-status-dot.rejected { background: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,0.25); }

/* Wallet CTA section in simple dropdown */
.w3-wallet-cta {
  padding: 12px;
}
.w3-wallet-cta-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.w3-wallet-status-card {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.w3-wallet-status-card.pending { background: #fffbeb; border: 1px solid #fde68a; }
.w3-wallet-status-card.rejected { background: var(--danger-bg); border: 1px solid #fecaca; }
.w3-wallet-cta-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.w3-wallet-cta-btn:hover { background: var(--primary); color: #fff; }

/* Onboarding — wallet step */
.ob-optional-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0.04em;
}
/* Wallet picker — list of provider options */
.ob-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ob-wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  transition: border-color 0.15s, background 0.12s, box-shadow 0.12s;
}
.ob-wallet-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ob-wallet-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.03em;
}
.ob-wallet-option-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ob-wallet-option-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.ob-wallet-option-tag--popular {
  background: #ecfdf5;
  color: #065f46;
}
.ob-wallet-option-tag--new {
  background: #eff6ff;
  color: #1d4ed8;
}
.ob-wallet-option-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Create custodial wallet banner */
.ob-wallet-create-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  margin-bottom: 8px;
}
.ob-wallet-create-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.ob-wallet-create-content { flex: 1; min-width: 0; }
.ob-wallet-create-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
}
.ob-wallet-create-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.ob-wallet-create-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.ob-wallet-create-btn:hover { background: var(--primary); color: #ffffff; }

/* Manual address toggle + area */
.ob-wallet-manual-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 0 4px;
  text-align: center;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.ob-wallet-manual-toggle:hover { color: var(--text); }
.ob-wallet-manual-area {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Connected confirmation card */
.ob-wallet-connected-card {
  border-radius: 14px;
  border: 1px solid #BBF7D0;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  padding: 28px 24px 22px;
  text-align: center;
}
.ob-wallet-connected-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
}
.ob-wallet-connected-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  background: rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.ob-wallet-connected-provider-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.ob-wallet-connected-addr {
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
  word-break: break-all;
  padding: 0 16px;
}
.ob-wallet-connected-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 0 8px;
}

/* Skip / or-divider (used in modal too) */
.ob-wallet-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.ob-wallet-or-divider::before,
.ob-wallet-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ob-wallet-skip {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  padding: 4px 8px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.ob-wallet-skip:hover { color: var(--text); }

/* ─────────────────────────────────────────
   MODAL HEADER — PRIMARY (navy)
───────────────────────────────────────── */
.modal-header--primary {
  background: var(--sidebar-bg, #002F6C);
  border-bottom-color: var(--sidebar-bg, #002F6C);
}
.modal-header--primary .modal-title { color: #fff; }
.modal-header--primary .modal-close { color: rgba(255,255,255,0.8); }
.modal-header--primary .modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ─────────────────────────────────────────
   REVIEW CARD (ca-rv-card) — shared
───────────────────────────────────────── */
.ca-rv-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ca-rv-card-header {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.ca-rv-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 16px 14px;
}
.ca-rv-field { padding: 10px 0 0; }
.ca-rv-field--wide { grid-column: 1 / -1; }
.ca-rv-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.ca-rv-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
