/* OmniAgent Platform Stylesheet */
:root {
  --navy: #0d2137;
  --navy-deep: #081625;
  --slate: #5b6b7c;
  --line: #e6eaef;
  --tint: #f4f7fa;
  --teal: #1a7fa3;
  --teal-bright: #2499c4;
  --teal-dark: #14657f;
  --gold: #c1912f;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 33, 55, 0.08);
  --shadow-hover: 0 6px 24px rgba(13, 33, 55, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #1a2635;
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--navy);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); }

/* ---------- Public layout ---------- */
.public-page { min-height: 100vh; display: flex; flex-direction: column; }

.pub-header {
  background: var(--navy);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.pub-header .brand img { height: 36px; }

.pub-header nav a {
  color: rgba(255,255,255,0.8);
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
}

.pub-header nav a:hover { color: var(--white); }

.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}

.hero img.hero-logo { height: 80px; margin-bottom: 24px; }

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-bright); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #d4a234; color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #e74c3c; color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }
.btn-secondary { background: var(--tint); color: var(--navy); border: 1.5px solid var(--line); }
.btn-secondary:hover { background: var(--line); }

/* Capability cards */
.capability-section { padding: 60px 40px; background: var(--tint); }
.capability-section h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.capability-section p.lead { text-align: center; color: var(--slate); margin-bottom: 40px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.cap-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cap-card .cap-icon { font-size: 28px; margin-bottom: 12px; }
.cap-card h3 { font-size: 16px; margin-bottom: 8px; }
.cap-card p { color: var(--slate); font-size: 13px; }

/* Request access section */
.access-section {
  padding: 60px 40px;
  background: var(--white);
}

.access-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.access-inner h2 { font-size: 26px; margin-bottom: 12px; }
.access-inner p { color: var(--slate); margin-bottom: 28px; }
.access-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.25s;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand img { height: 32px; }
.sidebar-brand span { color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 16px; }

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 12px 20px 4px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  margin: 1px 8px;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active { background: rgba(26,127,163,0.25); color: var(--teal-bright); }
.nav-item .ni-icon { width: 18px; text-align: center; font-size: 15px; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 16px; }

.sidebar-footer { padding: 12px 0; }

/* Main content area */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); }

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
}

.page-content { padding: 28px; flex: 1; background: var(--tint); }

/* Workforce Intelligence visual system: BMW-inspired white, charcoal and blue. */
.workforce-body { background: #eef1f4; }
.workforce-body .sidebar { width: 252px; background: #101820; border-right: 4px solid #0066b1; }
.workforce-body .sidebar-brand { padding: 24px 20px 20px; background: #0b1117; }
.workforce-body .sidebar-brand span { font-size: 15px; letter-spacing: .01em; }
.workforce-body .nav-label { color: #7f9ab2; }
.workforce-body .nav-item { border-radius: 3px; padding: 9px 18px; }
.workforce-body .nav-item:hover { background: #1a2d3d; }
.workforce-body .nav-item.active { background: #0066b1; color: #fff; }
.workforce-body .topbar { background: #fff; border-bottom: 3px solid #0066b1; }
.workforce-body .topbar-right { display: flex; align-items: center; gap: 16px; }
.workforce-body .client-logo { height: 36px; width: auto; object-fit: contain; display: block; }
.workforce-body .page-content { background: #eef1f4; }
.workforce-body .card, .workforce-body .kpi-card { border-radius: 4px; box-shadow: 0 4px 18px rgba(16,24,32,.08); }
.workforce-body .card-title { letter-spacing: .01em; }
.workforce-body .btn-primary { background: #0066b1; }
.workforce-body .btn-primary:hover { background: #004f8c; }
.workforce-body .kpi-positive { color: #0066b1; }
.workforce-body .filter-bar { background: #fff; border-left: 4px solid #0066b1; padding: 14px 18px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(16,24,32,.06); }
.workforce-body .wf-profile-head { border-bottom: 1px solid #d7dee5; }
.workforce-body .wf-eyebrow { color: #0066b1; font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.workforce-body .wf-profile-head h1 { font-size: 30px; margin: 4px 0; }
.workforce-body .wf-profile-head p { color: var(--slate); }
.wf-breadcrumb { color: var(--slate); margin-bottom: 18px; font-size: 13px; }
.wf-breadcrumb span { margin: 0 8px; color: #aab7c3; }
.wf-profile-head { display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:20px; margin-bottom:20px; }
.wf-profile-grid { display:grid; grid-template-columns: minmax(240px, .8fr) 2fr; gap:20px; margin-bottom:20px; }
.wf-identity dl { display:grid; grid-template-columns: 110px 1fr; gap:10px 16px; font-size:13px; }
.wf-identity dt { color:var(--slate); }
.wf-identity dd { font-weight:600; overflow-wrap:anywhere; }
.wf-insight-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.pagination { display:flex; justify-content:space-between; align-items:center; padding-top:16px; color:var(--slate); font-size:13px; }
.table-muted { color:var(--slate); font-size:12px; }
.workforce-body .filter-bar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:16px; }
.workforce-body .filter-field { display:flex; flex-direction:column; gap:6px; min-width:220px; }
.workforce-body .filter-field label { color:var(--navy); font-size:12px; font-weight:700; }
.workforce-body .filter-field input, .workforce-body .filter-field select, .workforce-body .filter-bar select, .workforce-body .filter-bar input { min-height:38px; padding:8px 11px; border:1px solid #c7d1db; border-radius:4px; background:#fff; color:var(--navy); font:inherit; }
.workforce-body .filter-bar > .btn { min-height:38px; }
.workforce-body .form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px 16px; align-items:end; }
.workforce-body .form-grid label { display:flex; flex-direction:column; gap:6px; color:var(--navy); font-size:12px; font-weight:700; text-transform:none; }
.workforce-body .form-grid label > input, .workforce-body .form-grid label > select, .workforce-body .form-grid label > textarea { min-height:38px; padding:8px 11px; border:1px solid #c7d1db; border-radius:4px; background:#fff; color:var(--navy); font:400 13px/1.4 inherit; }
.workforce-body .form-grid > div, .workforce-body .form-grid > button { align-self:end; }
.workforce-body .form-grid h3 { font-size:14px; color:var(--navy); margin-bottom:2px; }
.loading-indicator { display:none; align-items:center; gap:7px; color:var(--slate); font-size:12px; font-weight:600; }
.loading-indicator::before { content:""; width:14px; height:14px; border:2px solid #cbd5df; border-top-color:#0066b1; border-radius:50%; animation:wf-spin .7s linear infinite; }
.is-loading .loading-indicator { display:inline-flex; }
.is-loading button { opacity:.7; cursor:wait; }
@keyframes wf-spin { to { transform:rotate(360deg); } }
.btn.is-busy { position:relative; padding-left:26px; opacity:.85; cursor:wait; pointer-events:none; }
.btn.is-busy::before { content:""; position:absolute; left:8px; top:50%; width:12px; height:12px; margin-top:-6px; border:2px solid rgba(255,255,255,.35); border-top-color:currentColor; border-radius:50%; animation:wf-spin .6s linear infinite; }
.btn-secondary.is-busy::before { border-color:#cbd5df; border-top-color:#0066b1; }
.workforce-page-loader { position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; background:rgba(16,24,32,.32); backdrop-filter:blur(2px); }
.workforce-page-loader.is-visible { display:flex; }
.workforce-page-loader > div { min-width:260px; display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 36px; background:#fff; border:1px solid #d7dee5; border-radius:4px; box-shadow:0 16px 36px rgba(16,24,32,.22); color:var(--navy); }
.workforce-page-loader strong { font-size:15px; }
.workforce-page-loader span:last-child { color:var(--slate); font-size:12px; }
.workforce-page-spinner { width:30px; height:30px; border:3px solid #d6e3ed; border-top-color:#0066b1; border-radius:50%; animation:wf-spin .7s linear infinite; }
.workforce-desktop-required { display:none; }
.workforce-body .currency-value { white-space:nowrap; font-variant-numeric:tabular-nums; }
.metric-list > div { border-bottom:1px solid var(--line); padding:12px 0; display:flex; justify-content:space-between; gap:16px; }
@media (max-width: 900px) { .wf-profile-grid, .wf-insight-grid { grid-template-columns:1fr; } }

/* Workforce is an operational desktop workspace; data grids and control actions are not offered on narrow screens. */
@media (max-width: 1024px) {
  .workforce-body .app-shell, .workforce-body .workforce-page-loader { display:none !important; }
  .workforce-body .workforce-desktop-required { min-height:100vh; display:grid; place-items:center; padding:28px; background:#eef1f4; }
  .workforce-desktop-required-panel { width:min(100%, 420px); padding:28px; background:#fff; border-top:4px solid #0066b1; box-shadow:0 4px 18px rgba(16,24,32,.10); text-align:center; }
  .workforce-desktop-required-panel img { width:110px; height:36px; object-fit:contain; margin:0 auto 20px; }
  .workforce-desktop-required-panel h1 { margin:0 0 10px; color:#101820; font-size:22px; }
  .workforce-desktop-required-panel p { margin:0; color:#5b6b7c; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.card-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: block;
}

a.kpi-link, a.kpi-link:visited { color: inherit; text-decoration: none; }
a.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,32,.12); text-decoration: none; border-left: 3px solid #0066b1; padding-left: 17px; }
a.kpi-link { transition: transform .12s, box-shadow .12s, border-color .12s; cursor: pointer; }

.kpi-label { font-size: 11px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.kpi-value { font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 700; color: var(--navy); }
.kpi-sub { font-size: 12px; color: var(--slate); margin-top: 2px; }
.kpi-positive { color: #1a7fa3; }
.kpi-negative { color: #e74c3c; }

/* Charts */
.chart-wrap { position: relative; height: 220px; }
.chart-wrap-lg { position: relative; height: 300px; }

/* Tables */
.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

table.data-table th a { color: rgba(255,255,255,0.8); }
table.data-table th a:hover { color: var(--white); }

table.data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.data-table tr:nth-child(even) td { background: var(--tint); }
table.data-table tr:hover td { background: #eaf3f9; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-active, .badge-paid { background: #d1f0e5; color: #0a6b41; }
.badge-sent { background: #d6eaf8; color: #1a527f; }
.badge-suspended, .badge-overdue { background: #fde8d8; color: #8b3a1a; }
.badge-deactivated, .badge-draft { background: #ebebeb; color: #5b6b7c; }
.badge-settled { background: #d1f0e5; color: #0a6b41; }

/* Usage bar */
.usage-bar { background: var(--line); border-radius: 4px; height: 6px; margin-top: 4px; }
.usage-bar-fill { background: var(--teal); border-radius: 4px; height: 6px; transition: width 0.3s; }
.usage-bar-fill.over80 { background: var(--gold); }
.usage-bar-fill.over95 { background: #e74c3c; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
}

.form-control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,127,163,0.12); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error { background: #fde8d8; color: #8b3a1a; border: 1px solid #f5c6aa; }
.alert-success { background: #d1f0e5; color: #0a6b41; border: 1px solid #a3dfc0; }

/* Pagination */
.pagination { display: flex; gap: 4px; align-items: center; margin-top: 16px; }
.page-link { padding: 6px 12px; border-radius: 6px; border: 1.5px solid var(--line); color: var(--navy); font-size: 13px; display: inline-block; }
.page-link.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.page-link:hover:not(.active) { background: var(--tint); color: var(--navy); }

/* Sign-in page */
.signin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 20px;
}

.signin-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.signin-card .logo-wrap { text-align: center; margin-bottom: 28px; }
.signin-card .logo-wrap img { height: 64px; }
.signin-card h1 { font-size: 22px; text-align: center; margin-bottom: 24px; }

/* Launcher grid */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.launcher-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.launcher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: inherit; }
.launcher-card .lc-icon { font-size: 32px; }
.launcher-card h3 { font-size: 16px; color: var(--navy); }
.launcher-card p { color: var(--slate); font-size: 13px; }
.launcher-card .lc-stat { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; color: var(--teal); }

/* Activity feed */
.activity-feed { font-size: 13px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 5px; flex-shrink: 0; }
.activity-meta { font-size: 11px; color: var(--slate); margin-top: 2px; }

/* Export actions */
.export-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .toolbar-title { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); flex: 1; }

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 22px;
  padding: 4px 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 200;
    transform: translateX(-100%);
  }

  .sidebar.open { transform: translateX(0); }

  .main-content { width: 100%; }

  .menu-toggle { display: block; }

  .page-content { padding: 16px; }

  .topbar { padding: 0 16px; }

  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 20px; }

  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }

  .cap-grid { grid-template-columns: 1fr; }
  .launcher-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .pub-header { padding: 0 20px; }
  .capability-section, .access-section { padding: 40px 20px; }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
  }
  .overlay.open { display: block; }
}

/* ===========================
   LANDING PAGE (lp-*) STYLES
   =========================== */

/* Shared layout */
.lp-wrap { width: 100%; padding: 0 72px; }

/* Reveal on scroll */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lp-reveal.lp-in { opacity: 1; transform: none; }
.lp-reveal-d1 { transition-delay: 0.07s; }
.lp-reveal-d2 { transition-delay: 0.15s; }
.lp-reveal-d3 { transition-delay: 0.23s; }
.lp-reveal-d4 { transition-delay: 0.31s; }
@media (prefers-reduced-motion: reduce) { .lp-reveal { opacity: 1; transform: none; transition: none; } }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,234,239,0.9);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; }
.lp-nav-full { width: 100%; padding: 0 32px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 19px; }
.lp-brand img { height: 32px; transition: transform 0.2s; }
.lp-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links > a { font-size: 14.5px; font-weight: 500; color: var(--slate); text-decoration: none; transition: color 0.15s; }
.lp-nav-links > a:not(.lp-btn):hover { color: var(--navy); }
.lp-nav-cb { display: none; }
.lp-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.lp-nav-toggle svg { width: 20px; height: 20px; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.17s ease, box-shadow 0.17s ease, background 0.17s ease; }
.lp-btn-primary { background: linear-gradient(135deg, #2499c4, #14657f); color: #fff; box-shadow: 0 8px 24px rgba(26,127,163,0.3); padding: 13px 26px; font-size: 15px; }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26,127,163,0.42); color: #fff; }
.lp-btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); padding: 13px 26px; font-size: 15px; }
.lp-btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.lp-btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); padding: 13px 26px; font-size: 15px; }
.lp-btn-ghost-dark:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.lp-btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.3); padding: 13px 26px; font-size: 15px; }
.lp-btn-whatsapp:hover { background: #1eb857; transform: translateY(-2px); color: #fff; }
.lp-btn-outline-sm { border-color: var(--line); color: var(--navy); background: transparent; padding: 8px 16px; font-size: 13.5px; }
.lp-btn-outline-sm:hover { border-color: var(--teal); color: var(--teal); }
.lp-btn-primary-sm { background: linear-gradient(135deg, #2499c4, #14657f); color: #fff; padding: 8px 16px; font-size: 13.5px; }
.lp-btn-primary-sm:hover { color: #fff; transform: translateY(-1px); }
.lp-btn-ghost-nav { background: transparent; border-color: transparent; color: var(--slate); padding: 8px 16px; font-size: 13.5px; }
.lp-btn-ghost-nav:hover { border-color: var(--teal); color: var(--teal); background: rgba(26,127,163,0.06); }
.lp-btn-lg { padding: 16px 30px; font-size: 16px; }

/* Hero */
.lp-hero { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; overflow: hidden; }
.lp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 450px at 85% 20%, rgba(36,153,196,0.09), transparent 65%),
    radial-gradient(550px 380px at 80% 80%, rgba(193,145,47,0.06), transparent 65%);
  pointer-events: none;
}
.lp-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(13,33,55,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(13,33,55,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(700px 520px at 80% 40%, rgba(0,0,0,0.85), transparent 75%);
  -webkit-mask-image: radial-gradient(700px 520px at 80% 40%, rgba(0,0,0,0.85), transparent 75%);
  pointer-events: none;
}
.lp-hero-grid { position: relative; display: flex; gap: 60px; align-items: center; width: 100%; padding: 60px 0; }
.lp-hero-copy { flex: 1.1; min-width: 0; max-width: 620px; padding-left: 3%; }
.lp-hero-visual { flex: 0.9; min-width: 0; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--teal-dark);
  background: rgba(26,127,163,0.08); border: 1px solid rgba(26,127,163,0.2);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
}
.lp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }
.lp-hero h1 { font-family: 'DM Sans', sans-serif; font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.09; letter-spacing: -0.02em; color: var(--navy); }
.lp-accent { background: linear-gradient(105deg, #2499c4 10%, #14657f 55%, #c1912f 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lede { margin-top: 24px; font-size: 18px; color: var(--slate); max-width: 44ch; line-height: 1.6; }
.lp-hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.lp-hero-visual { display: flex; align-items: center; justify-content: center; position: relative; min-height: 400px; }
.lp-hero-visual::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(36,153,196,0.13) 0%, rgba(36,153,196,0) 68%); }
.lp-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(26,127,163,0.3); }
.lp-ring-1 { width: 300px; height: 300px; animation: lp-spin 55s linear infinite; }
.lp-ring-2 { width: 380px; height: 380px; border-color: rgba(193,145,47,0.22); animation: lp-spin 85s linear infinite reverse; }
.lp-dot { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bright); }
.lp-ring-2 .lp-dot { background: #c1912f; }
.lp-hero-visual img { position: relative; width: 220px; height: 220px; filter: drop-shadow(0 20px 40px rgba(13,33,55,0.2)); animation: lp-floaty 7s ease-in-out infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Stats strip */
.lp-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(36,153,196,0.03), rgba(193,145,47,0.03)), var(--tint); }
.lp-stats-grid { display: flex; flex-wrap: wrap; }
.lp-stats-grid > div { flex: 1 1 0; min-width: 160px; padding: 28px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lp-stats-grid > div:not(:last-child) { border-right: 1px solid var(--line); }
.lp-stats-grid strong { font-family: 'DM Sans', sans-serif; font-size: 26px; font-weight: 800; background: linear-gradient(120deg, var(--navy), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats-grid span { font-size: 13px; color: var(--slate); }

/* Section shared */
.lp-section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.lp-section-head h2 { font-family: 'DM Sans', sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.015em; }
.lp-section-head p { margin-top: 14px; color: var(--slate); font-size: 16px; line-height: 1.6; }
.lp-section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* Modules */
.lp-modules { padding: 88px 0 96px; }
.lp-modules-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.lp-modules-grid > .lp-module-card { flex: 1 1 44%; min-width: 280px; }
.lp-module-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.lp-module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-bright), #c1912f);
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease;
}
.lp-module-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(13,33,55,0.13); border-color: transparent; }
.lp-module-card:hover::before { transform: scaleX(1); }
.lp-module-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: transform 0.22s ease; }
.lp-module-card:hover .lp-module-icon { transform: scale(1.1) rotate(-4deg); }
.lp-module-icon svg { width: 22px; height: 22px; }
.lp-mi-teal { background: rgba(26,127,163,0.1); color: var(--teal); }
.lp-mi-navy { background: rgba(13,33,55,0.08); color: var(--navy); }
.lp-mi-gold { background: rgba(193,145,47,0.1); color: #c1912f; }
.lp-module-card h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.lp-module-card > p { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; }
.lp-module-detail { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.lp-module-detail li { font-size: 13px; color: var(--slate); padding-left: 16px; position: relative; }
.lp-module-detail li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }

/* Cloud provider cards in landing module */
.lp-cloud-meta { flex: 1; min-width: 220px; }
.lp-cloud-provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lp-cloud-provider-card {
  border: 1.5px solid var(--lp-provider-color);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  min-width: 0;
}
.lp-cloud-provider-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-provider-color);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.lp-cloud-provider-badge { font-size: 10px; color: var(--slate); overflow-wrap: anywhere; }

/* Proof section */
.lp-proof { padding: 88px 0; background: var(--tint); }
.lp-proof-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.lp-proof-card { flex: 1 1 42%; min-width: 270px; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px; overflow: hidden; transition: box-shadow 0.22s ease, transform 0.22s ease; }
.lp-proof-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--teal); }
.lp-proof-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13,33,55,0.12); }
.lp-proof-card h3 { font-family: 'DM Sans', sans-serif; font-size: 16.5px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.lp-proof-card p { font-size: 14px; color: var(--slate); line-height: 1.65; }

/* Execution depth section */
.lp-meat { padding: 88px 0; background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-meat-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.lp-meat-card {
  flex: 1 1 30%;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 10px 28px rgba(13,33,55,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-meat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(13,33,55,0.12); }
.lp-meat-card h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.lp-meat-card p { font-size: 14px; color: var(--slate); line-height: 1.65; margin-bottom: 14px; }

/* Stack */
.lp-stack-section { padding: 88px 0; }
.lp-stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-badge { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 11px 20px; transition: transform 0.17s ease, border-color 0.17s ease, box-shadow 0.17s ease, color 0.17s ease; }
.lp-badge:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--teal); box-shadow: 0 4px 14px rgba(26,127,163,0.12); }

/* CTA band */
.lp-cta-band { position: relative; background: linear-gradient(140deg, var(--navy) 0%, #081625 100%); padding: 84px 0; overflow: hidden; }
.lp-cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px 360px at 82% 15%, rgba(36,153,196,0.18), transparent 65%),
              radial-gradient(440px 300px at 10% 88%, rgba(193,145,47,0.12), transparent 65%);
  pointer-events: none;
}
.lp-cta-inner { position: relative; text-align: center; }
.lp-cta-inner h2 { font-family: 'DM Sans', sans-serif; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin-top: 10px; }
.lp-cta-inner p { color: rgba(255,255,255,0.6); margin-top: 14px; font-size: 16px; max-width: 55ch; margin-left: auto; margin-right: auto; line-height: 1.6; }
.lp-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Footer */
.lp-footer { background: #081625; color: rgba(255,255,255,0.55); padding: 36px 0 28px; }
.lp-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; }
.lp-footer-brand img { height: 26px; }
.lp-footer-brand span { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 16px; color: #fff; }
.lp-footer-right { font-size: 13.5px; font-style: italic; }
.lp-footer-fine { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.3); }

/* Mobile - landing */
@media (max-width: 960px) {
  .lp-hero-grid { flex-direction: column; gap: 48px; }
  .lp-hero { padding: 0; min-height: calc(100vh - 72px); }
  .lp-hero-visual { min-height: 300px; }
  .lp-hero-visual img { width: 180px; height: 180px; }
  .lp-hero-visual::before { width: 300px; height: 300px; }
  .lp-ring-1 { width: 240px; height: 240px; }
  .lp-ring-2 { width: 300px; height: 300px; }
  .lp-cloud-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .lp-wrap { padding: 0 36px; }
  .lp-nav-links { gap: 18px; }
}

@media (max-width: 1800px) and (min-width: 1200px) {
  .lp-module-card,
  .lp-proof-card,
  .lp-meat-card {
    padding: 22px 20px;
  }

  .lp-module-card h3,
  .lp-proof-card h3,
  .lp-meat-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .lp-module-card > p,
  .lp-proof-card p,
  .lp-meat-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .lp-module-detail {
    padding-top: 10px;
    gap: 3px;
  }

  .lp-module-detail li {
    font-size: 12px;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .lp-modules-grid > .lp-module-card { flex-basis: 100%; min-width: 0; }
  .lp-proof-card { flex-basis: 100%; min-width: 0; }
  .lp-meat-card { flex-basis: 100%; min-width: 0; }
}

@media (max-width: 980px) {
  .lp-wrap { padding: 0 24px; }
  .lp-nav-full { padding: 0 20px; }
  .lp-nav-toggle { display: flex; }
  .lp-nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px; box-shadow: 0 16px 32px rgba(13,33,55,0.1);
  }
  .lp-nav-cb:checked ~ .lp-nav-links { display: flex; }
  .lp-nav-links > a { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--tint); }
  .lp-nav-links > a.lp-btn { margin-top: 10px; border-bottom: none; }
  .lp-modules-grid > .lp-module-card { flex-basis: 100%; min-width: 0; }
  .lp-proof-card { flex-basis: 100%; }
  .lp-hero-ctas .lp-btn { flex: 1 1 auto; }
  .lp-stats-grid > div { flex-basis: 44%; }
  .lp-stats-grid > div:not(:last-child) { border-right: none; }
  .lp-modules { padding: 60px 0; }
  .lp-proof, .lp-meat, .lp-stack-section { padding: 60px 0; }
  .lp-cta-band { padding: 60px 0; }
  .lp-cta-btns .lp-btn { width: 100%; justify-content: center; }
  .lp-cloud-meta { min-width: 0; width: 100%; }
  .lp-meat-card { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .lp-wrap { padding: 0 20px; }

  /* Compact hero on mobile */
  .lp-hero { min-height: 0; }
  .lp-hero-grid { padding: 32px 0 24px; gap: 24px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-lede { font-size: 15px; margin-top: 16px; }
  .lp-hero-ctas { margin-top: 20px; gap: 10px; }
  .lp-hero-visual { min-height: 200px; }
  .lp-hero-visual img { width: 130px; height: 130px; }
  .lp-hero-visual::before { width: 220px; height: 220px; }
  .lp-ring-1 { width: 180px; height: 180px; }
  .lp-ring-2 { width: 220px; height: 220px; }

  /* Compact stats: 2x2 grid, smaller sizes */
  .lp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-stats-grid > div { flex: none; min-width: 0; padding: 16px 10px; }
  .lp-stats-grid strong { font-size: 20px; }
  .lp-stats-grid span { font-size: 12px; line-height: 1.35; }

  /* Reduce section vertical padding */
  .lp-modules { padding: 40px 0; }
  .lp-proof, .lp-meat, .lp-stack-section { padding: 40px 0; }
  .lp-cta-band { padding: 40px 0; }
  .lp-section-head { margin-bottom: 28px; }
  .lp-section-head h2 { font-size: 22px; }
  .lp-section-head p { font-size: 14px; margin-top: 10px; }

  /* Cloud card: force stacked layout on mobile */
  .lp-modules-grid > .lp-module-card > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .lp-modules-grid > .lp-module-card > div[style*="display:flex"] > div {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .lp-cloud-provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lp-cloud-provider-name { font-size: 10.5px; }
  .lp-cloud-provider-badge { font-size: 9.5px; }

  /* Keep mobile layout simple: one card after another */
  .lp-modules-grid,
  .lp-proof-grid,
  .lp-meat-grid {
    display: block;
  }

  .lp-modules-grid > .lp-module-card,
  .lp-proof-card,
  .lp-meat-card {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px 0;
  }

  .lp-modules-grid > .lp-module-card:last-child,
  .lp-proof-grid > .lp-proof-card:last-child,
  .lp-meat-grid > .lp-meat-card:last-child {
    margin-bottom: 0;
  }

  .lp-module-card,
  .lp-proof-card,
  .lp-meat-card {
    padding: 18px 16px;
  }

  .lp-module-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .lp-module-icon svg { width: 18px; height: 18px; }

  .lp-module-card h3,
  .lp-proof-card h3,
  .lp-meat-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .lp-module-card > p,
  .lp-proof-card p,
  .lp-meat-card p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lp-module-card > p { -webkit-line-clamp: 4; }
  .lp-proof-card p { -webkit-line-clamp: 4; }
  .lp-meat-card p { -webkit-line-clamp: 3; }

  .lp-module-detail {
    padding-top: 8px;
    gap: 2px;
  }

  .lp-module-detail li {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .lp-proof-card p,
  .lp-meat-card p {
    -webkit-line-clamp: 3;
  }

  .lp-module-detail li:nth-child(n+4) {
    display: none;
  }

  .lp-proof-card .lp-module-detail,
  .lp-meat-card .lp-module-detail {
    display: none;
  }
}

@media (max-width: 520px) {
  .lp-cloud-provider-grid { grid-template-columns: 1fr; }
}

/* Mobile gate for authenticated app */
.mobile-gate {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.mobile-gate img { width: 64px; margin-bottom: 24px; opacity: 0.9; }
.mobile-gate h2 { font-family: "DM Sans", sans-serif; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.mobile-gate p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 30ch; margin: 0 auto 28px; }
.mobile-gate a { color: #2499c4; text-decoration: none; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 10px 20px; display: inline-block; }
@media (max-width: 768px) { .mobile-gate { display: flex; } }

.mobile-gate-btn { background: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: 11px 22px; color: #2499c4; font-size: 14px; font-family: 'DM Sans',sans-serif; font-weight: 700; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.mobile-gate-btn:hover { border-color: #2499c4; color: #fff; }


/* ---------- Choose workspace ---------- */
.choose-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--teal-dark) 100%);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choose-inner { max-width: 1080px; width: 100%; }
.choose-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; color: #fff; }
.choose-brand img { height: 64px; }
.choose-brand h1 { color: #fff; font-size: 28px; margin: 0; }
.choose-brand p { color: rgba(255,255,255,0.7); margin: 4px 0 0; }
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choose-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .choose-grid, .choose-grid:has(> :nth-child(3)) { grid-template-columns: 1fr; } }
.choose-card {
  position: relative; background: #fff; border-radius: 18px; padding: 32px 28px;
  color: var(--navy); text-decoration: none; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.choose-card:hover { transform: translateY(-4px); box-shadow: 0 32px 80px rgba(0,0,0,0.32); color: var(--navy); }
.choose-card h2 { font-family: 'DM Sans', sans-serif; font-size: 24px; }
.choose-card p { color: var(--slate); font-size: 14px; line-height: 1.55; }
.choose-card ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.choose-card li { font-size: 13px; color: var(--slate); padding-left: 16px; position: relative; }
.choose-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }
.choose-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(26,127,163,0.12); color: var(--teal-dark);
}
.choose-badge-alt { background: rgba(193,145,47,0.15); color: #8b6a1e; }
.choose-cta { margin-top: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; color: var(--teal-dark); font-size: 15px; }
.choose-card-trading { background: linear-gradient(160deg, #ffffff 0%, #f4f7fa 100%); border: 1px solid var(--line); }

.choose-card-banking {
  background: linear-gradient(135deg, #0b1a4a 0%, #1a4bb0 100%);
  color: #eaf1ff;
  border: none;
}
.choose-card-banking h2 { color: #fff; }
.choose-card-banking p { color: rgba(234, 241, 255, 0.75); }
.choose-card-banking li { color: rgba(234, 241, 255, 0.75); }
.choose-card-banking li::before { background: #4c8dff; }
.choose-card-banking .choose-cta { color: #6ea3ff; }
.choose-card-banking:hover { color: #eaf1ff; }
.choose-badge-bank { background: rgba(76, 141, 255, 0.2); color: #6ea3ff; }
.choose-badge-learn { background: rgba(74, 194, 107, 0.18); color: #4ac26b; }.choose-signout { text-align: center; margin-top: 28px; }

.choose-card-sync {
  background: linear-gradient(140deg, #24225a 0%, #16183a 100%);
  border: 1px solid rgba(122, 108, 255, 0.35);
}
.choose-card-sync h2 { color: #fff; }
.choose-card-sync p { color: rgba(224, 224, 255, 0.78); }
.choose-card-sync li { color: rgba(224, 224, 255, 0.78); }
.choose-card-sync li::before { background: #7a6cff; }
.choose-card-sync .choose-cta { color: #a89bff; }
.choose-card-sync:hover { color: #eef; }
.choose-badge-sync { background: rgba(122, 108, 255, 0.22); color: #a89bff; }

.choose-signout button {
  background: transparent; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.85);
  padding: 8px 20px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.choose-signout button:hover { background: rgba(255,255,255,0.1); color: #fff; }

.choose-empty {
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #eaf1ff;
  max-width: 640px;
}
.choose-empty h2 { color: #fff; margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.choose-empty p { color: rgba(234, 241, 255, 0.82); margin: 0; font-size: 14px; line-height: 1.55; }


/* =====================================================
   NEXUS MARKETS - Trading workspace styles
   ===================================================== */
.tr-body { background: #0a1220; color: #d8e2f0; }
.tr-shell { display: flex; min-height: 100vh; }

.tr-sidebar {
  width: 232px; flex-shrink: 0;
  background: linear-gradient(180deg, #0a1220 0%, #0b1729 100%);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.tr-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05); }
.tr-brand img { height: 34px; }
.tr-brand-title { color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.tr-brand-sub { color: #c1912f; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.tr-nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.tr-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; margin: 2px 8px; border-radius: 8px;
  color: #96a5bd; font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.tr-nav-item span { width: 18px; text-align: center; font-size: 14px; }
.tr-nav-item:hover { background: rgba(36,153,196,0.1); color: #fff; }
.tr-nav-item.active { background: linear-gradient(90deg, rgba(36,153,196,0.22), rgba(36,153,196,0.05)); color: #2499c4; border-left: 2px solid #2499c4; margin-left: 8px; padding-left: 16px; }
.tr-nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 16px; }

.tr-status {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 14px 16px;
  background: rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 10px;
}
.tr-status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-status-label { font-size: 9px; color: #6b7d97; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.tr-status-value { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tr-status-value.up { color: #22c55e; }
.tr-status-value.down { color: #ef4444; }

.tr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.tr-topbar {
  height: 52px; background: #0b1729;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: sticky; top: 0; z-index: 20;
}
.tr-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tr-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35);
  color: #ef4444; font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
}
.tr-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7); animation: tr-pulse 1.4s infinite; }
@keyframes tr-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.tr-page-title { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }

.tr-topbar-right { flex: 1; overflow: hidden; }
.tr-watch { display: flex; gap: 14px; overflow-x: auto; justify-content: flex-end; }
.tr-watch::-webkit-scrollbar { display: none; }
.tr-watch-item { min-width: 96px; padding: 4px 8px; border-left: 1px solid rgba(255,255,255,0.06); text-align: right; }
.tr-watch-sym { color: #6b7d97; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; }
.tr-watch-px { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color 0.4s ease; }
.tr-watch-px.flash-up { color: #22c55e; }
.tr-watch-px.flash-down { color: #ef4444; }
.tr-watch-chg { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-watch-chg.up { color: #22c55e; }
.tr-watch-chg.down { color: #ef4444; }

.tr-ticker { background: #060c17; border-bottom: 1px solid rgba(255,255,255,0.05);
  height: 28px; overflow: hidden; position: relative; }
.tr-ticker-inner { display: flex; gap: 32px; padding: 6px 0; white-space: nowrap;
  animation: tr-marquee 50s linear infinite; will-change: transform; }
@keyframes tr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tr-ticker-item { color: #96a5bd; font-size: 12px; font-family: 'DM Sans', sans-serif; }
.tr-ticker-item b { color: #d8e2f0; font-weight: 700; letter-spacing: 0.03em; margin-right: 4px; }
.tr-ticker-price { color: #fff; font-variant-numeric: tabular-nums; margin: 0 4px; }
.tr-ticker-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-ticker-chg.up { color: #22c55e; }
.tr-ticker-chg.down { color: #ef4444; }

.tr-page { padding: 20px; flex: 1; background: #0a1220; color: #d8e2f0; }

/* Flash animations for individual price cells */
.tr-flash-up { animation: tr-flashup 0.7s ease-out; }
.tr-flash-down { animation: tr-flashdown 0.7s ease-out; }
@keyframes tr-flashup {
  0% { background: rgba(34,197,94,0.4); }
  100% { background: transparent; }
}
@keyframes tr-flashdown {
  0% { background: rgba(239,68,68,0.4); }
  100% { background: transparent; }
}

/* Re-skin core widgets (kpi, cards, tables) inside .tr-body */
.tr-body .kpi-card { background: #10203a; border: 1px solid rgba(255,255,255,0.05); box-shadow: none; }
.tr-body .kpi-label { color: #6b7d97; }
.tr-body .kpi-value { color: #fff; }
.tr-body .kpi-sub { color: #6b7d97; }
.tr-body .kpi-positive { color: #22c55e; }
.tr-body .kpi-negative { color: #ef4444; }

.tr-body .card { background: #10203a; border: 1px solid rgba(255,255,255,0.05); box-shadow: none; color: #d8e2f0; }
.tr-body .card-title { color: #fff; font-family: 'DM Sans', sans-serif; letter-spacing: 0.01em; }

.tr-body .toolbar { color: #d8e2f0; }
.tr-body .toolbar-title { color: #fff; }

.tr-body table.data-table th { background: #0b1729; color: #96a5bd; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tr-body table.data-table td { color: #d8e2f0; border-bottom: 1px solid rgba(255,255,255,0.05); background: transparent; font-variant-numeric: tabular-nums; }
.tr-body table.data-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.tr-body table.data-table tr:hover td { background: rgba(36,153,196,0.08); }
.tr-body table.data-table td a, .tr-body table.data-table th a { color: #2499c4; }
.tr-body table.data-table td a:hover { color: #4bb8e0; }

.tr-body .badge-sent { background: rgba(36,153,196,0.18); color: #4bb8e0; }
.tr-body .badge-active, .tr-body .badge-paid { background: rgba(34,197,94,0.15); color: #22c55e; }
.tr-body .badge-overdue, .tr-body .badge-suspended { background: rgba(239,68,68,0.15); color: #ef4444; }
.tr-body .badge-deactivated, .tr-body .badge-draft { background: rgba(255,255,255,0.06); color: #96a5bd; }

.tr-body .form-label { color: #96a5bd; }
.tr-body .form-control { background: #0b1729; border: 1px solid rgba(255,255,255,0.08); color: #fff; }
.tr-body .form-control:focus { border-color: #2499c4; box-shadow: 0 0 0 3px rgba(36,153,196,0.18); }

.tr-body .btn-secondary { background: rgba(255,255,255,0.06); color: #d8e2f0; border-color: rgba(255,255,255,0.1); }
.tr-body .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.tr-body .btn-primary { background: linear-gradient(135deg, #2499c4, #14657f); }
.tr-body .btn-primary:hover { background: linear-gradient(135deg, #34acdd, #1a7fa3); }
.tr-body .btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.tr-body .alert-success { background: rgba(34,197,94,0.12); color: #86efac; border-color: rgba(34,197,94,0.4); }
.tr-body .alert-error { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.4); }

/* Recent trades feed (used on instrument page) */
.tr-tape-feed { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; font-size: 12px; }
.tr-tape-feed .row { display: grid; grid-template-columns: 60px 1fr 80px 80px; gap: 6px; padding: 4px 6px; border-radius: 4px; }
.tr-tape-feed .row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.tr-tape-feed .row.buy .side { color: #22c55e; }
.tr-tape-feed .row.sell .side { color: #ef4444; }
.tr-tape-feed .row .time { color: #6b7d97; font-variant-numeric: tabular-nums; }
.tr-tape-feed .row .px { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.tr-tape-feed .row .qty { text-align: right; color: #96a5bd; font-variant-numeric: tabular-nums; }

/* Order book */
.tr-book { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.tr-book .col { display: flex; flex-direction: column; gap: 2px; }
.tr-book .col h4 { color: #96a5bd; font-size: 10px; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 6px; }
.tr-book .row { display: grid; grid-template-columns: 1fr 60px; padding: 3px 6px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.tr-book .col.bids .row { background: linear-gradient(90deg, rgba(34,197,94,0.15) var(--fill,0%), transparent var(--fill,0%)); }
.tr-book .col.asks .row { background: linear-gradient(-90deg, rgba(239,68,68,0.15) var(--fill,0%), transparent var(--fill,0%)); }
.tr-book .col.bids .row .p { color: #22c55e; }
.tr-book .col.asks .row .p { color: #ef4444; }
.tr-book .col .q { text-align: right; color: #96a5bd; }

@media (max-width: 900px) {
  .tr-topbar-right { display: none; }
}


/* ---- Trade ticket ---- */
.tr-side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #0b1729; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.tr-side-toggle input[type=radio] { display: none; }
.tr-side-toggle label { display: flex; align-items: center; justify-content: center; padding: 10px 8px; border-radius: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; cursor: pointer;
  color: #96a5bd; transition: background 0.15s, color 0.15s; }
.tr-side-toggle input:checked + .tr-side-buy { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 4px 12px rgba(34,197,94,0.35); }
.tr-side-toggle input:checked + .tr-side-sell { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.35); }

.tr-qty-chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tr-qty-chips button {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #d8e2f0; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-size: 11.5px; font-weight: 700;
}
.tr-qty-chips button:hover { background: rgba(36,153,196,0.2); border-color: #2499c4; color: #fff; }

.tr-preview {
  background: #0b1729; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px 14px; margin: 14px 0 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.tr-preview-row { display: flex; justify-content: space-between; font-size: 12.5px; color: #96a5bd; }
.tr-preview-row b { color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-preview-status { margin-top: 6px; padding: 8px 10px; border-radius: 7px; text-align: center; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,0.03); color: #96a5bd; }
.tr-preview-status.ok { background: rgba(34,197,94,0.14); color: #86efac; }
.tr-preview-status.bad { background: rgba(239,68,68,0.14); color: #fca5a5; }

.tr-submit {
  width: 100%; padding: 16px 20px; border-radius: 12px; border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 0.08em;
  color: #fff; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 26px rgba(34,197,94,0.35);
}
.tr-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(34,197,94,0.45); }
.tr-submit.sell { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 10px 26px rgba(239,68,68,0.35); }
.tr-submit.sell:hover:not(:disabled) { box-shadow: 0 14px 32px rgba(239,68,68,0.45); }
.tr-submit:disabled { filter: grayscale(0.6) brightness(0.7); cursor: not-allowed; box-shadow: none; }


/* Force high-contrast white text on all action buttons in the dark trading theme */
.tr-body .btn,
.tr-body .btn-primary,
.tr-body .btn-secondary,
.tr-body .btn-danger,
.tr-body .btn-gold,
.tr-body .btn-outline { color: #ffffff !important; font-weight: 700; }

.tr-body .btn-secondary {
  background: rgba(36,153,196,0.18);
  border-color: rgba(36,153,196,0.35);
  color: #ffffff !important;
}
.tr-body .btn-secondary:hover {
  background: rgba(36,153,196,0.32);
  border-color: #2499c4;
  color: #ffffff !important;
}
.tr-body .btn-primary { color: #ffffff !important; }
.tr-body .btn-primary:hover { color: #ffffff !important; }
.tr-body .btn-danger { color: #ffffff !important; }
.tr-body .btn-danger:hover { color: #ffffff !important; }

/* Table "Trade" / row action buttons */
.tr-body table.data-table .btn { color: #ffffff !important; }

/* Quantity chips: brighter text */
.tr-qty-chips button { color: #ffffff !important; font-weight: 700; }
.tr-qty-chips button:hover { color: #ffffff !important; }

/* Side toggle unselected label needs to stay legible */
.tr-side-toggle label { color: #ffffff !important; opacity: 0.55; }
.tr-side-toggle input:checked + label { opacity: 1; }

/* Ensure the big submit stays pure white regardless of parent styles */
.tr-submit, .tr-submit:disabled { color: #ffffff !important; }

/* Sidebar sign-out button uses .tr-nav-item on a form button element */
.tr-sidebar form button.tr-nav-item { color: #ffffff !important; opacity: 0.85; }
.tr-sidebar form button.tr-nav-item:hover { opacity: 1; }


/* ============================================================
   Icon slots (SVG stroke-based)
   ============================================================ */
.ni-icon, .tr-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.ni-icon svg, .tr-ico svg { width: 18px; height: 18px; }
.lc-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(36,153,196,0.12); color: var(--teal); }
.lc-icon svg { width: 24px; height: 24px; }

/* Launcher card icon in the choose page / launcher */
.tr-body .lc-icon { background: rgba(36,153,196,0.15); color: #4bb8e0; }

/* ============================================================
   Redesigned buttons - solid colours, guaranteed contrast
   ============================================================ */
:root {
  --btn-primary-bg: #0f7fa0;
  --btn-primary-bg-hover: #128fb4;
  --btn-secondary-bg: #223452;
  --btn-secondary-bg-hover: #2d446c;
  --btn-danger-bg: #b91c1c;
  --btn-danger-bg-hover: #dc2626;
  --btn-gold-bg: #a17323;
  --btn-gold-bg-hover: #c1912f;
}

/* Reset base button colours (applies to both light + dark themes) */
.btn { border: 1px solid transparent; box-shadow: 0 1px 2px rgba(0,0,0,0.15); font-weight: 700; letter-spacing: 0.02em; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.btn-primary   { background: var(--btn-primary-bg); color: #ffffff; border-color: transparent; }
.btn-primary:hover   { background: var(--btn-primary-bg-hover); color: #ffffff; }

.btn-secondary { background: var(--btn-secondary-bg); color: #ffffff; border-color: rgba(255,255,255,0.14); }
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); color: #ffffff; border-color: rgba(255,255,255,0.22); }

.btn-danger    { background: var(--btn-danger-bg); color: #ffffff; border-color: transparent; }
.btn-danger:hover    { background: var(--btn-danger-bg-hover); color: #ffffff; }

.btn-gold      { background: var(--btn-gold-bg); color: #ffffff; border-color: transparent; }
.btn-gold:hover      { background: var(--btn-gold-bg-hover); color: #ffffff; }

/* Standard (light) theme keeps secondary as a light chip for the App modules */
body:not(.tr-body) .btn-secondary { background: #edf2f7; color: #0d2137; border-color: #d3dbe6; }
body:not(.tr-body) .btn-secondary:hover { background: #dee6f0; color: #0d2137; }

/* Dark trading theme uses the solid navy variant defined above */
.tr-body .btn-primary   { background: var(--btn-primary-bg); color: #ffffff !important; }
.tr-body .btn-primary:hover   { background: var(--btn-primary-bg-hover); color: #ffffff !important; }
.tr-body .btn-secondary { background: var(--btn-secondary-bg); color: #ffffff !important; border-color: rgba(255,255,255,0.18); }
.tr-body .btn-secondary:hover { background: var(--btn-secondary-bg-hover); color: #ffffff !important; border-color: rgba(255,255,255,0.30); }
.tr-body .btn-danger    { background: var(--btn-danger-bg); color: #ffffff !important; }
.tr-body .btn-danger:hover    { background: var(--btn-danger-bg-hover); color: #ffffff !important; }
.tr-body .wallet-zero td { color: #6b7d97; }


/* Alert toasts */
.tr-alert-toasts { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.tr-alert-toast { background: #10203a; border: 1px solid rgba(255,255,255,0.08); border-left: 4px solid #2499c4; padding: 10px 14px; border-radius: 6px; color: #d8e2f0; box-shadow: 0 6px 24px rgba(0,0,0,0.35); animation: tr-toast-in 0.3s ease-out; font-size: 13px; }
.tr-alert-toast.up { border-left-color: #22c55e; }
.tr-alert-toast.down { border-left-color: #ef4444; }
.tr-alert-toast .t-head { font-weight: 600; margin-bottom: 3px; color: #fff; }
.tr-alert-toast .t-body { color: #96a5bd; font-size: 12px; }
.tr-alert-toast .t-body a { color: #4bb8e0; }
.tr-alert-toast.leaving { animation: tr-toast-out 1s ease-in forwards; }
@keyframes tr-toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes tr-toast-out { to { transform: translateX(120%); opacity: 0; } }

/* Risk row on Positions */
.tr-risk-row td { background: rgba(255,255,255,0.02); padding: 10px 12px; }
.tr-risk-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.tr-risk-form .rf { display: flex; flex-direction: column; gap: 4px; }
.tr-risk-form .rf label { font-size: 11px; color: #6b7d97; }
.tr-risk-form .rf input { background: #0b1729; border: 1px solid rgba(255,255,255,0.08); color: #fff; padding: 6px 8px; border-radius: 4px; width: 130px; font-size: 12px; }
.tr-risk-summary { font-size: 12px; color: #96a5bd; }
.tr-risk-summary b { color: #d8e2f0; }
.tr-risk-toggle { background: none; border: 1px solid rgba(255,255,255,0.12); color: #96a5bd; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; }
.tr-risk-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
/* Deposit FX preview */
.tr-fx-preview { margin-top: 12px; padding: 14px; background: #0b1729; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; }
.tr-fx-preview .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: #96a5bd; }
.tr-fx-preview .row b { color: #fff; font-variant-numeric: tabular-nums; }
.tr-fx-preview .row.big { padding-top: 10px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 16px; }
.tr-fx-preview .row.big b { color: #4bb8e0; font-size: 20px; font-weight: 700; }
.tr-fx-preview .hint { font-size: 11px; color: #6b7d97; margin-top: 8px; }

/* Payment processing overlay */
.tr-pay-overlay { position: fixed; inset: 0; background: rgba(6, 12, 22, 0.78); backdrop-filter: blur(4px); z-index: 9998; align-items: center; justify-content: center; }
.tr-pay-card { background: #10203a; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 32px 40px; min-width: 380px; max-width: 460px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.tr-pay-spinner { width: 52px; height: 52px; border: 4px solid rgba(75,184,224,0.15); border-top-color: #4bb8e0; border-radius: 50%; margin: 0 auto 18px; animation: tr-spin 0.8s linear infinite; }
.tr-pay-title { font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.tr-pay-sub { font-size: 12px; color: #96a5bd; margin-bottom: 18px; font-family: monospace; }
.tr-pay-steps { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-top: 12px; }
.tr-pay-steps .s { font-size: 12px; color: #6b7d97; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,0.02); border-left: 3px solid transparent; }
.tr-pay-steps .s.active { color: #4bb8e0; border-left-color: #4bb8e0; background: rgba(75,184,224,0.06); }
.tr-pay-steps .s.done { color: #22c55e; border-left-color: #22c55e; }
.tr-pay-steps .s.done::before { content: '✓ '; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
/* Auto-dismissing flash notifications */
.alert-success, .alert-error, .alert-warning { cursor: pointer; transition: opacity 0.35s ease, transform 0.35s ease, margin 0.35s ease, padding 0.35s ease, max-height 0.35s ease; overflow: hidden; }
.alert-success.is-dismissing, .alert-error.is-dismissing, .alert-warning.is-dismissing { opacity: 0; transform: translateY(-6px); max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }


/* =====================================================
   Journey (user activity metrics)
   ===================================================== */
.jrn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.jrn-stat {
  background: #10203a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px 18px;
}
.jrn-stat-num {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  min-height: 26px;
}
.jrn-stat-num time { font-size: 22px; }
.jrn-stat-label {
  color: #96a5bd;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.jrn-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .jrn-grid { grid-template-columns: 1fr; }
}
.jrn-panel {
  padding: 18px 20px;
}
.jrn-panel-title {
  color: #d8e2f0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.jrn-empty { color: #96a5bd; font-size: 13px; }

.jrn-range {
  background: #0a1526;
  color: #d8e2f0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
}

.jrn-recent {
  list-style: none; margin: 0; padding: 0;
  max-height: 320px; overflow-y: auto;
}
.jrn-recent li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 12px;
}
.jrn-recent li:last-child { border-bottom: none; }
.jrn-recent-path {
  color: #4bb8e0; text-decoration: none;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 60%;
}
.jrn-recent-path:hover { color: #fff; }
.jrn-recent-meta {
  display: flex; gap: 8px; align-items: center;
  color: #96a5bd; font-size: 12px; flex-shrink: 0;
}
.jrn-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(75,184,224,0.12);
  color: #4bb8e0;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid rgba(75,184,224,0.2);
}

.jrn-admin-table td, .jrn-admin-table th { vertical-align: middle; }
.ta-right { text-align: right; }

/* =====================================================
   Journey (user activity metrics)
   ===================================================== */
.jrn-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.jrn-stat {
  background: #10203a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px 18px;
}
.jrn-stat-num {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  min-height: 26px;
}
.jrn-stat-num time { font-size: 22px; }
.jrn-stat-label {
  color: #96a5bd;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.jrn-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .jrn-grid { grid-template-columns: 1fr; }
}
.jrn-panel {
  padding: 18px 20px;
}
.jrn-panel-title {
  color: #d8e2f0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.jrn-empty { color: #96a5bd; font-size: 13px; }

.jrn-range {
  background: #0a1526;
  color: #d8e2f0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
}

.jrn-recent {
  list-style: none; margin: 0; padding: 0;
  max-height: 320px; overflow-y: auto;
}
.jrn-recent li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 12px;
}
.jrn-recent li:last-child { border-bottom: none; }
.jrn-recent-path {
  color: #4bb8e0; text-decoration: none;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 60%;
}
.jrn-recent-path:hover { color: #fff; }
.jrn-recent-meta {
  display: flex; gap: 8px; align-items: center;
  color: #96a5bd; font-size: 12px; flex-shrink: 0;
}
.jrn-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(75,184,224,0.12);
  color: #4bb8e0;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid rgba(75,184,224,0.2);
}

.jrn-admin-table td, .jrn-admin-table th { vertical-align: middle; }
.ta-right { text-align: right; }

.jrn-row-inactive td { color: #6b7d97; }
.jrn-row-inactive td:first-child { color: #96a5bd; }

.jrn-row-inactive td { color: #6b7d97; }
.jrn-row-inactive td:first-child { color: #96a5bd; }

/* Force journey panels dark - .card defaults to var(--white). */
.jrn-panel.card,
.jrn-panel {
  background: #10203a;
  color: #d8e2f0;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: none;
}
.jrn-panel .data-table,
.jrn-panel .data-table th,
.jrn-panel .data-table td {
  background: transparent;
  color: #d8e2f0;
  border-color: rgba(255,255,255,0.06);
}
.jrn-panel .data-table thead th {
  color: #96a5bd;
  background: rgba(255,255,255,0.02);
}
.jrn-panel .data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.jrn-panel-title { color: #d8e2f0; }

/* Force journey panels dark - .card defaults to var(--white). */
.jrn-panel.card,
.jrn-panel {
  background: #10203a;
  color: #d8e2f0;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: none;
}
.jrn-panel .data-table,
.jrn-panel .data-table th,
.jrn-panel .data-table td {
  background: transparent;
  color: #d8e2f0;
  border-color: rgba(255,255,255,0.06);
}
.jrn-panel .data-table thead th {
  color: #96a5bd;
  background: rgba(255,255,255,0.02);
}
.jrn-panel .data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.jrn-panel-title { color: #d8e2f0; }

/* Defeat the light-theme zebra stripe inside dark journey panels. */
.jrn-panel table.data-table tbody tr:nth-child(odd) td,
.jrn-panel table.data-table tbody tr:nth-child(even) td {
  background: transparent;
}
.jrn-panel table.data-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}

/* Defeat the light-theme zebra stripe inside dark journey panels. */
.jrn-panel table.data-table tbody tr:nth-child(odd) td,
.jrn-panel table.data-table tbody tr:nth-child(even) td {
  background: transparent;
}
.jrn-panel table.data-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}