/* PaymentsWorkspace V3 — Workspace Pro (Dark & Light Dual Theme) */
:root,
[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-elevated: #11161e;
  --bg-surface: #151c26;
  --bg-hover: #1a2330;
  --border: #1f2a38;
  --border-strong: #2b394c;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #0077ff;
  --accent-hover: #1a88ff;
  --accent-soft: rgba(0, 119, 255, 0.14);
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --emerald-text: #34d399;
  --amber-bg: rgba(245, 158, 11, 0.15);
  --amber-text: #fbbf24;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-text: #f87171;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --input-bg: #0d1219;
}

[data-theme="light"] {
  --bg: #f3f6fa;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --bg-hover: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #0066eb;
  --accent-hover: #0052cc;
  --accent-soft: rgba(0, 102, 235, 0.10);
  --cyan: #0891b2;
  --emerald: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --emerald-text: #047857;
  --amber-bg: rgba(245, 158, 11, 0.15);
  --amber-text: #b45309;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-text: #dc2626;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --input-bg: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* App Shell */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-body {
  display: flex;
  flex: 1;
  min-width: 0;
}

/* Left Slim Navigation Rail */
.nav-rail {
  width: 76px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 14px;
  position: sticky;
  top: 96px;
  height: calc(100vh - 96px);
  z-index: 10;
  flex-shrink: 0;
}
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 1;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.rail-btn svg { width: 19px; height: 19px; }
.rail-btn:hover { background: var(--bg-hover); color: var(--text); }
.rail-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0, 119, 255, 0.25);
}
.rail-bottom { width: 100%; padding-top: 12px; border-top: 1px solid var(--border); }
.rail-logout:hover { color: var(--danger-text); }

/* Main Column */
.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top Command Bar */
.topbar {
  height: 96px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0 24px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 25;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-left { flex: 1; min-width: 0; }
.topbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 8px;
}
.topbar-logo { height: 64px; width: auto; max-width: 230px; object-fit: contain; }

.account-select, .mini-select {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.account-select:focus, .mini-select:focus { border-color: var(--accent); }

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px 7px 34px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }

.badge-2fa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-2fa svg { width: 14px; height: 14px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta strong { font-size: 12px; }
.user-meta small { font-size: 10px; color: var(--text-muted); }

/* Dual-Pane Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  flex: 1;
}
.workspace-main {
  padding: 24px 26px 40px;
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0058d6);
  color: #ffffff;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-full { width: 100%; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.link-btn.small { font-size: 12px; }

/* View Sections */
.view-section { display: none; }
.view-section.active { display: block; }

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.kpi-icon {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.kpi-icon.blue { background: var(--accent-soft); color: var(--accent); }
.kpi-icon.emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.kpi-icon.cyan { background: rgba(6, 182, 212, 0.14); color: var(--cyan); }
.kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sparkline {
  width: calc(100% + 36px);
  margin-left: -18px;
  height: 40px;
  display: block;
}

/* Panels */
.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.muted { color: var(--text-muted); font-size: 12px; }
.filter-bar { display: flex; gap: 8px; }

/* Incoming Cards */
.incoming-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.incoming-grid.full { grid-template-columns: 1fr; }
.inc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.inc-card:hover, .inc-card.selected { border-color: var(--accent); }
.inc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.inc-platform {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.inc-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.inc-owner { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.inc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.inc-amount { font-size: 17px; font-weight: 800; }
.inc-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Data Table */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.data-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr.selected { background: var(--accent-soft); }
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.td-desc strong { display: block; font-size: 13px; }
.td-desc small { color: var(--text-muted); font-size: 11.5px; }

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-completed, .pill-paid, .pill-received {
  background: var(--emerald-bg);
  color: var(--emerald-text);
}
.pill-pending, .pill-accepted, .pill-confirmed, .pill-issued {
  background: var(--amber-bg);
  color: var(--amber-text);
}
.pill-cancelled {
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Right Persistent Inspector Panel */
.inspector-panel {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inspector-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.inspector-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.inspector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.ic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ic-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ic-amount {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 4px;
}
.ic-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.ic-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.ic-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.ic-meta dt { color: var(--text-muted); }
.ic-meta dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.bic-block { display: flex; flex-direction: column; gap: 10px; }
.bic-row { display: flex; flex-direction: column; }
.bic-row small { font-size: 11px; color: var(--text-muted); }
.bic-row strong { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }

.smtp-dot {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
}
.smtp-dot.warn { background: var(--amber-bg); color: var(--amber-text); }

.quick-report-form { display: flex; flex-direction: column; gap: 8px; }
.quick-report-form label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.quick-report-form input {
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.quick-report-form input:focus { border-color: var(--accent); }

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.span-2 { grid-column: span 2; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-actions {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.status-manager-list { display: flex; flex-direction: column; gap: 8px; }
.sm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}
.audit-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.audit-row {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Auth Card */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 45%), var(--bg);
}
.auth-topbar {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
}
.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.brand-logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; margin: 0 auto; }
.auth-heading { text-align: center; margin-bottom: 20px; }
.auth-heading h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.auth-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.totp-input {
  text-align: center;
  font-size: 22px !important;
  letter-spacing: 0.35em;
  font-weight: 700;
}
.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  margin-bottom: 14px;
  font-weight: 600;
}
.auth-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.badge-2fa-mini { color: var(--emerald-text); font-weight: 600; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  min-width: 260px;
}
.toast.success { border-left-color: var(--emerald); }
.toast.error { border-left-color: #ef4444; }

/* Responsive */
@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .inspector-panel { border-left: none; border-top: 1px solid var(--border); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .kpi-grid, .incoming-grid, .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .form-actions { grid-column: span 1; }
  .search-wrap, .user-meta { display: none; }
  .topbar { padding: 0 12px; height: 76px; }
  .topbar-logo { height: 50px; }
  .nav-rail { top: 76px; height: calc(100vh - 76px); }
  .workspace-main { padding: 16px; }
}

/* ==========================================================================
   V3.6 Visual Polish — Sleek Left Rail, Icon-Only Theme Switch, Bell & Hero
   ========================================================================== */

/* Upgraded Left Navigation Rail */
.nav-rail {
  width: 88px;
  padding: 18px 10px 16px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}
.rail-nav { gap: 8px; }
.rail-btn {
  position: relative;
  padding: 12px 6px;
  border-radius: 13px;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.rail-btn svg {
  width: 21px;
  height: 21px;
  transition: transform 0.18s ease;
}
.rail-btn:hover {
  transform: translateY(-1px);
  background: var(--bg-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.rail-btn:hover svg { transform: scale(1.08); }
.rail-btn.active {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.22), rgba(6, 182, 212, 0.16));
  color: var(--accent);
  border-color: rgba(0, 119, 255, 0.38);
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.18);
}
.rail-btn.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22%;
  bottom: 22%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
}

/* Larger Icon-Only Sliding Light/Dark Switch */
.theme-switch {
  position: relative;
  width: 78px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.theme-switch:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.theme-switch .ts-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 3px 10px rgba(0, 119, 255, 0.35);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
[data-theme="dark"] .theme-switch .ts-thumb {
  transform: translateX(40px);
}
[data-theme="light"] .theme-switch .ts-thumb {
  transform: translateX(0);
}
.theme-switch .ts-icon {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.theme-switch .ts-icon svg { width: 17px; height: 17px; }
[data-theme="light"] .theme-switch .ts-sun { color: #ffffff; }
[data-theme="light"] .theme-switch .ts-moon { color: var(--text-muted); opacity: 0.7; }
[data-theme="dark"] .theme-switch .ts-moon { color: #ffffff; }
[data-theme="dark"] .theme-switch .ts-sun { color: var(--text-muted); opacity: 0.65; }

/* Notification Bell & Dropdown */
.notif-wrap { position: relative; }
.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.notif-btn svg { width: 19px; height: 19px; }
.notif-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-elevated);
}
.notif-popover {
  position: absolute;
  top: 48px;
  right: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  z-index: 60;
  overflow: hidden;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.14s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item strong { font-size: 12.5px; color: var(--text); }
.notif-item span { font-size: 11.5px; color: var(--text-secondary); }
.notif-item small { font-size: 11px; color: var(--text-muted); }

/* Captivating Hero Header & Card Polish */
.page-hero {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.12) 0%, rgba(6, 182, 212, 0.08) 55%, transparent 100%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 4px;
}
.kpi-card {
  position: relative;
  border-top: 2px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
}
.kpi-card:nth-child(2):hover { border-top-color: var(--emerald); }
.kpi-card:nth-child(3):hover { border-top-color: var(--cyan); }

/* Auth Success & Registration Switch */
.alert-success {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.auth-switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-switch-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch-link a:hover { text-decoration: underline; }


/* ==========================================================================
   V3.7 — Split-Hero Home/Login & Right Slide-In Drawers (Notifications + Profile)
   ========================================================================== */

/* Clickable User Chip Button */
.user-chip-btn {
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  padding: 5px 12px 5px 6px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.user-chip-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.user-chip-btn .user-meta { text-align: left; }
.chip-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Right Slide-In Drawer System */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 15, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 80;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -16px 0 44px rgba(0, 0, 0, 0.38);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-elevated);
}
.drawer-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.drawer-close:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drawer-toolbar {
  padding: 11px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}
.drawer-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slide-drawer .notif-list {
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slide-drawer .notif-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 13px 15px;
}
.slide-drawer .notif-item:hover {
  border-color: var(--accent);
}
.drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
}

/* Profile Drawer Cards */
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.14), rgba(6, 182, 212, 0.08)), var(--bg-surface);
  border: 1px solid var(--border);
}
.profile-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.28);
}
.profile-identity h3 { margin: 0; font-size: 16px; font-weight: 700; }
.profile-identity p { margin: 2px 0 6px; font-size: 12.5px; color: var(--text-secondary); word-break: break-all; }
.profile-role-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.drawer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
}
.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dc-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.dc-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.dc-meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dc-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.dc-meta dt { color: var(--text-muted); }
.dc-meta dd { margin: 0; font-weight: 600; text-align: right; }

.linked-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.linked-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
}
.linked-acc-row strong { display: block; font-size: 12.5px; }
.linked-acc-row small { color: var(--text-muted); font-size: 11px; }

.btn-danger-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(239, 68, 68, 0.25);
  transition: filter 0.15s ease;
}
.btn-danger-soft:hover { filter: brightness(1.08); }

/* ==========================================================================
   Split-Hero Home / Login Page (Inspired by Original Home)
   ========================================================================== */
.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 119, 255, 0.16), transparent 38%),
    radial-gradient(circle at 82% 24%, rgba(6, 182, 212, 0.14), transparent 40%),
    var(--bg);
}
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px 10px;
}
.landing-brand { display: inline-flex; align-items: center; text-decoration: none; }
.landing-logo { height: 68px; width: auto; display: block; }
.landing-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.landing-grid {
  flex: 1;
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 34px 44px;
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(370px, 1.02fr) minmax(420px, 1.32fr);
  gap: 26px;
  align-items: center;
}

.landing-title {
  margin: 8px 0 18px;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.title-accent {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-subtitle {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 340px;
}

/* Center Showcase Card */
.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.showcase-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.showcase-mark { height: 22px; width: auto; }
.showcase-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  line-height: 1.2;
}
.sec-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.showcase-secure-pill strong { display: block; font-size: 12px; color: var(--accent); }
.showcase-secure-pill small { font-size: 11px; color: var(--text-muted); }

.showcase-hero-body {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 18px;
  align-items: center;
}
.showcase-text h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.showcase-text p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plat-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.plat-badge.telus { border-color: rgba(16, 185, 129, 0.4); color: var(--emerald-text); }
.plat-badge.appen { border-color: rgba(0, 119, 255, 0.4); color: var(--accent); }
.plat-badge.oneforma { border-color: rgba(6, 182, 212, 0.4); color: var(--cyan); }

.showcase-visual {
  background: linear-gradient(145deg, rgba(0, 119, 255, 0.16), rgba(6, 182, 212, 0.10)), var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vis-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.vis-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.vis-pill {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
}
.vis-bars {
  height: 78px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 4px 2px;
}
.vis-bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--accent));
  opacity: 0.9;
}
.vis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.vis-footer small { display: block; font-size: 10.5px; color: var(--text-muted); }
.vis-footer strong { font-size: 13px; }
.vis-shield {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vis-shield svg { width: 17px; height: 17px; }

.showcase-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sf-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.sf-icon svg { width: 15px; height: 15px; }
.sf-icon.blue { background: var(--accent-soft); color: var(--accent); }
.sf-icon.cyan { background: rgba(6, 182, 212, 0.14); color: var(--cyan); }
.sf-icon.emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.sf-item strong { font-size: 12px; line-height: 1.25; }
.sf-item span { font-size: 11px; color: var(--text-muted); line-height: 1.35; }

/* Right Login Card Polish */
.landing-auth-card {
  max-width: 100%;
  border-radius: 22px;
  padding: 30px 28px;
}
.btn-lg { padding: 11px 16px; font-size: 14px; }
.auth-notice-box {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-notice-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.auth-notice-box strong { display: block; font-size: 12px; margin-bottom: 2px; }
.auth-notice-box span { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }

@media (max-width: 1180px) {
  .landing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    padding: 16px 20px 36px;
  }
  .landing-header { padding: 16px 20px; }
  .landing-logo { height: 52px; }
  .showcase-hero-body { grid-template-columns: 1fr; }
  .showcase-features { grid-template-columns: 1fr; }
}


/* ==========================================================================
   V3.8 — WeModHub Branding & Link Sections
   ========================================================================== */
.plat-badge.wemodhub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 14px;
  font-size: 12.5px;
  border-color: rgba(0, 119, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.plat-badge.wemodhub:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.wmh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.wemodhub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.13), rgba(6, 182, 212, 0.09)), var(--bg-elevated);
  border: 1px solid rgba(0, 119, 255, 0.28);
  flex-wrap: wrap;
}
.wemodhub-banner strong { display: block; font-size: 13px; color: var(--text); }
.wemodhub-banner span { display: block; font-size: 11.5px; color: var(--text-secondary); }

.wemodhub-card {
  background: linear-gradient(145deg, rgba(0, 119, 255, 0.10), rgba(6, 182, 212, 0.06)), var(--bg-surface);
  border-color: rgba(0, 119, 255, 0.28);
}
.wmh-card-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.wmh-card-body p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.rail-external { color: var(--cyan); }
.rail-external:hover { color: var(--accent); }


/* ==========================================================================
   V3.10 — Set 1 Editorial Fintech Vector Banners (Light & Dark Adaptive)
   ========================================================================== */
.page-hero-illustrated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  overflow: hidden;
}
.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.hero-art-wrap {
  width: 310px;
  max-width: 40%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--border);
}
.hero-art-img {
  width: 100%;
  height: auto;
  max-height: 148px;
  object-fit: contain;
  display: block;
}

.showcase-vector-wrap {
  padding: 10px;
  align-items: center;
  justify-content: center;
}
.showcase-vector-img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-vector-banner {
  margin: 0 auto 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.10), rgba(6, 182, 212, 0.07)), var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-vector-banner img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .page-hero-illustrated { flex-direction: column; align-items: flex-start; }
  .hero-art-wrap { width: 100%; max-width: 100%; }
}


/* ==========================================================================
   V3.11 — High-Res Set 1 PNG Illustrations (Larger, Crisp, Light/Dark Polish)
   ========================================================================== */
.page-hero-illustrated {
  padding: 22px 26px;
  gap: 28px;
}
.hero-art-wrap {
  width: 390px;
  max-width: 46%;
  padding: 10px 14px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.16), rgba(0, 119, 255, 0.05) 70%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.hero-art-img {
  width: 100%;
  height: auto;
  max-height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 20, 50, 0.16));
}

.showcase-vector-wrap {
  padding: 12px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.14), rgba(0, 119, 255, 0.04) 75%, transparent 100%), var(--bg-elevated);
}
.showcase-vector-img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 20, 50, 0.18));
}

.auth-vector-banner {
  padding: 12px 16px;
}
.auth-vector-banner img {
  max-height: 155px;
  filter: drop-shadow(0 6px 14px rgba(0, 20, 50, 0.16));
}


/* ==========================================================================
   V3.12 — Expanded Vector Illustrations after Removing Extra Hero Buttons
   ========================================================================== */
.page-hero-illustrated {
  padding: 24px 28px;
  gap: 28px;
  align-items: center;
}
.hero-left-col {
  flex: 0.92;
}
.hero-art-wrap {
  width: 470px;
  max-width: 54%;
  padding: 12px 16px;
}
.hero-art-img {
  max-height: 255px;
}

.showcase-hero-body {
  grid-template-columns: 0.95fr 1.25fr;
  gap: 22px;
}
.showcase-vector-wrap {
  padding: 14px;
}
.showcase-vector-img {
  max-height: 315px;
}


/* ==========================================================================
   V3.13 — Admin Full Movement Parameter Editor
   ========================================================================== */
.admin-editor-card {
  border-color: rgba(0, 119, 255, 0.34);
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.08), transparent 65%), var(--bg-surface);
}
.mini-input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  outline: none;
  min-width: 210px;
}
.mini-input:focus { border-color: var(--accent); }
.admin-mv-table td { padding: 10px 10px; font-size: 12.5px; }


/* ==========================================================================
   V3.14 — Admin Easy Movement Selector & Interactive Card List
   ========================================================================== */
.admin-quick-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.admin-quick-picker label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.admin-picker-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.admin-scope-tabs {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}
.scope-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.scope-tab:hover { color: var(--text); }
.scope-tab.active {
  background: var(--accent);
  color: #ffffff;
}

.admin-mv-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.admin-mv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.admin-mv-item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.admin-mv-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.22);
}
.amv-main {
  min-width: 0;
  flex: 1;
}
.amv-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.amv-platform {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}
.amv-date {
  font-size: 11.5px;
  color: var(--text-muted);
}
.amv-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.amv-owner {
  font-size: 12px;
  color: var(--text-secondary);
}
.amv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.amv-amount {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.amv-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.amv-edit-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.admin-mv-item.active .amv-edit-chip {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}


/* ==========================================================================
   V3.21 — Value Date Control Badge for Incoming & Paid Movements
   ========================================================================== */
.vdate-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.vdate-tag.vdate-ok {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.vdate-tag.vdate-sched {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 119, 255, 0.28);
}
.vdate-tag.vdate-warn {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Clean Single-Logo Rendering per Theme — Larger Login Logos */
.logo-for-dark, .logo-for-light { display: none !important; }
[data-theme="dark"] .logo-for-dark { display: block !important; }
[data-theme="light"] .logo-for-light { display: block !important; }
.topbar-logo { height: 64px; width: auto; max-width: 245px; object-fit: contain; }
.landing-logo { height: 78px; width: auto; max-width: 320px; object-fit: contain; }
.brand-logo { height: 74px; width: auto; max-width: 300px; object-fit: contain; margin: 0 auto; }
.showcase-mark { height: 22px; width: auto; object-fit: contain; }


/* ==========================================================================
   V3.28 — Login Center Auth & Right Vector Showcase Repositioning
   ========================================================================== */
.landing-showcase .showcase-card {
  padding: 24px;
}
.landing-showcase .showcase-hero-body {
  grid-template-columns: 0.95fr 1.15fr;
  gap: 20px;
}
.landing-showcase .showcase-vector-img {
  max-height: 290px;
}
.landing-auth .landing-auth-card {
  padding: 28px 26px;
}


/* ==========================================================================
   V3.30 — Enlarged Vector Graphics on Login & Workspace Hero Banners
   ========================================================================== */
.landing-grid {
  max-width: 1520px;
  grid-template-columns: minmax(220px, 0.80fr) minmax(360px, 0.96fr) minmax(480px, 1.50fr);
  gap: 26px;
}

.landing-showcase .showcase-card {
  padding: 24px 26px;
}
.landing-showcase .showcase-hero-body {
  grid-template-columns: 0.78fr 1.42fr;
  gap: 20px;
  align-items: center;
}
.landing-showcase .showcase-vector-wrap {
  padding: 16px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-showcase .showcase-vector-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  transform: scale(1.04);
}

/* Dashboard & Inner Pages Hero Vector Graphics */
.page-hero-illustrated {
  padding: 26px 30px;
  gap: 30px;
}
.hero-left-col {
  flex: 0.82;
}
.hero-art-wrap {
  width: 560px;
  max-width: 60%;
  padding: 14px 18px;
}
.hero-art-img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

/* Register & Verify-Email Auth Banner Vector */
.auth-vector-banner img {
  max-height: 195px;
}

@media (max-width: 1280px) {
  .landing-showcase .showcase-hero-body {
    grid-template-columns: 1fr;
  }
  .landing-showcase .showcase-vector-img {
    max-height: 320px;
    transform: none;
  }
}


/* ==========================================================================
   V3.32 — Left Sidebar Logo + Screenshot 1 Menu Style
   ========================================================================== */
.app-body {
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  height: 76px;
}
.nav-rail {
  width: 236px !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 18px 14px 16px !important;
  align-items: stretch !important;
  background: linear-gradient(180deg, #0b161c 0%, #091217 100%) !important;
  border-right: 1px solid rgba(52, 234, 84, 0.14) !important;
}
[data-theme="light"] .nav-rail {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9f7 100%) !important;
  border-right: 1px solid var(--border) !important;
}
.rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.rail-logo {
  width: 100%;
  max-width: 196px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  display: block;
}
.rail-nav {
  gap: 6px !important;
}
.rail-btn {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #9cb3be;
  text-align: left;
}
[data-theme="light"] .rail-btn {
  color: var(--text-secondary);
}
.rail-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.rail-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: none !important;
  box-shadow: none !important;
}
.rail-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.42) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(52, 234, 84, 0.24) !important;
  box-shadow: inset 3px 0 0 #34ea54 !important;
}
[data-theme="light"] .rail-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.14) 0%, rgba(52, 234, 84, 0.10) 100%) !important;
  color: #1b5e4b !important;
  border-color: rgba(43, 102, 104, 0.25) !important;
  box-shadow: inset 3px 0 0 #2b6668 !important;
}
.rail-btn.active::before {
  display: none !important;
}


/* ==========================================================================
   V3.33 — Unified Left-Rail Green Highlight Across Topbar & Active Buttons
   ========================================================================== */
.topbar .theme-switch .ts-thumb,
#authThemeToggle .ts-thumb {
  background: linear-gradient(135deg, #2b6668 0%, #34ea54 100%) !important;
  box-shadow: 0 3px 10px rgba(52, 234, 84, 0.35) !important;
}
.topbar .theme-switch:hover,
.topbar .theme-switch:focus-visible,
#authThemeToggle:hover,
#authThemeToggle:focus-visible {
  border-color: rgba(52, 234, 84, 0.45) !important;
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.32) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  box-shadow: 0 0 0 3px rgba(52, 234, 84, 0.16) !important;
}

.topbar .notif-btn:hover,
.topbar .notif-btn:focus-visible,
.topbar .notif-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.42) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  color: #4ade80 !important;
  border-color: rgba(52, 234, 84, 0.35) !important;
  box-shadow: inset 3px 0 0 #34ea54 !important;
}

.topbar .user-chip-btn:hover,
.topbar .user-chip-btn:focus-visible,
.topbar .user-chip-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.42) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  color: #4ade80 !important;
  border-color: rgba(52, 234, 84, 0.35) !important;
  box-shadow: inset 3px 0 0 #34ea54 !important;
}
.topbar .user-avatar,
.profile-avatar-lg {
  background: linear-gradient(135deg, #2b6668 0%, #34ea54 100%) !important;
  color: #061215 !important;
}

[data-theme="light"] .topbar .notif-btn:hover,
[data-theme="light"] .topbar .notif-btn:focus-visible,
[data-theme="light"] .topbar .notif-btn.active,
[data-theme="light"] .topbar .user-chip-btn:hover,
[data-theme="light"] .topbar .user-chip-btn:focus-visible,
[data-theme="light"] .topbar .user-chip-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.14) 0%, rgba(52, 234, 84, 0.10) 100%) !important;
  color: #1b5e4b !important;
  border-color: rgba(43, 102, 104, 0.30) !important;
  box-shadow: inset 3px 0 0 #2b6668 !important;
}

.btn-primary,
.scope-tab.active,
.admin-mv-item.active .amv-edit-chip {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.65) 0%, rgba(22, 163, 74, 0.55) 60%, rgba(52, 234, 84, 0.38) 100%) !important;
  color: #e6fff0 !important;
  border: 1px solid rgba(52, 234, 84, 0.35) !important;
  box-shadow: inset 3px 0 0 #34ea54, 0 4px 14px rgba(20, 83, 45, 0.25) !important;
}
.btn-primary:hover {
  filter: brightness(1.08);
  border-color: rgba(52, 234, 84, 0.55) !important;
}

.inc-card.selected,
.data-table tbody tr.selected,
.admin-mv-item.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.28) 0%, rgba(52, 234, 84, 0.08) 100%) !important;
  border-color: rgba(52, 234, 84, 0.35) !important;
  box-shadow: inset 3px 0 0 #34ea54 !important;
}


/* ==========================================================================
   V3.34 — Theme Switch Inside Right Box & Compact Login Box Heights
   ========================================================================== */
.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.showcase-top-actions {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 1181px) {
  .landing-grid {
    align-items: center !important;
    padding: 14px 34px 24px !important;
    gap: 24px !important;
  }
  .landing-auth .landing-auth-card,
  .landing-showcase .showcase-card {
    height: auto !important;
    flex: 0 1 auto !important;
    padding: 20px 24px !important;
    gap: 14px !important;
  }
  .landing-auth .auth-logo-wrap {
    margin-bottom: 10px !important;
  }
  .landing-auth .brand-logo {
    height: 54px !important;
  }
  .landing-auth .auth-heading {
    margin-bottom: 12px !important;
  }
  .landing-auth .auth-form {
    gap: 11px !important;
  }
  .landing-auth .field input {
    padding: 8px 12px !important;
  }
  .landing-auth .auth-notice-box {
    margin-top: 12px !important;
    padding: 10px 12px !important;
  }
  .landing-auth .auth-switch-link {
    margin-top: 10px !important;
  }
  .landing-showcase .showcase-hero-body {
    flex: 0 0 auto !important;
    gap: 14px !important;
  }
  .landing-showcase .showcase-vector-wrap {
    min-height: 220px !important;
    padding: 10px !important;
  }
  .landing-showcase .showcase-vector-img {
    max-height: 240px !important;
    transform: none !important;
  }
  .landing-showcase .sf-item {
    padding: 9px 11px !important;
  }
}


/* ==========================================================================
   V3.35 — Topbar Logo + Screenshot 2 Sidebar Menu + Accounts in Right Drawer
   ========================================================================== */
.topbar {
  height: 74px !important;
  padding: 0 22px !important;
}
.topbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 12px !important;
}
.topbar-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 195px !important;
  object-fit: contain !important;
}
.nav-rail {
  width: 232px !important;
  top: 74px !important;
  height: calc(100vh - 74px) !important;
  padding: 16px 12px !important;
}
.rail-btn {
  padding: 11px 14px !important;
  border-radius: 12px !important;
}
.rail-btn.active {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.42) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(52, 234, 84, 0.24) !important;
  box-shadow: inset 3px 0 0 #34ea54 !important;
}
.linked-acc-row {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.linked-acc-row:hover {
  border-color: rgba(52, 234, 84, 0.40);
  background: var(--bg-hover);
}
.linked-acc-row.active {
  border-color: rgba(52, 234, 84, 0.42);
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.34) 0%, rgba(52, 234, 84, 0.10) 100%);
  box-shadow: inset 3px 0 0 #34ea54;
}


/* ==========================================================================
   V3.36 — Sidebar Menu Logo at 80% Menu Width
   ========================================================================== */
.nav-rail {
  width: 240px !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 18px 14px 16px !important;
  align-items: stretch !important;
}
.rail-brand {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 0 18px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--border) !important;
  text-decoration: none !important;
}
.rail-logo {
  width: 80% !important;
  max-width: 80% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}


/* ==========================================================================
   V3.37 — Single Logo in Topbar Next to Search Bar (Removed from Sidebar)
   ========================================================================== */
.nav-rail .rail-brand {
  display: none !important;
}
.topbar .topbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
  text-decoration: none !important;
}
.topbar .topbar-logo {
  height: 46px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
}
.topbar .logo-for-dark,
.topbar .logo-for-light,
.landing-header .logo-for-dark,
.landing-header .logo-for-light,
.auth-logo-wrap .logo-for-dark,
.auth-logo-wrap .logo-for-light {
  display: none !important;
}
html[data-theme="dark"] .topbar .logo-for-dark,
html[data-theme="dark"] .landing-header .logo-for-dark,
html[data-theme="dark"] .auth-logo-wrap .logo-for-dark {
  display: block !important;
}
html[data-theme="light"] .topbar .logo-for-light,
html[data-theme="light"] .landing-header .logo-for-light,
html[data-theme="light"] .auth-logo-wrap .logo-for-light {
  display: block !important;
}


/* ==========================================================================
   V3.38 — Doubled Topbar Logo Size
   ========================================================================== */
.topbar {
  height: 108px !important;
  padding: 0 24px !important;
}
.topbar .topbar-logo {
  height: 92px !important;
  width: auto !important;
  max-width: 380px !important;
  object-fit: contain !important;
}
.nav-rail {
  top: 108px !important;
  height: calc(100vh - 108px) !important;
}


/* ==========================================================================
   V3.39 — Sidebar Exit Button Matched to Profile Drawer Sign Out Button
   ========================================================================== */
.rail-bottom {
  width: 100% !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--border) !important;
}
.rail-bottom .rail-btn.rail-logout {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px 15px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  background: var(--danger-bg) !important;
  color: var(--danger-text) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  transition: filter 0.15s ease !important;
  transform: none !important;
  box-shadow: none !important;
}
.rail-bottom .rail-btn.rail-logout:hover {
  filter: brightness(1.08) !important;
  background: var(--danger-bg) !important;
  color: var(--danger-text) !important;
  transform: none !important;
  box-shadow: none !important;
}
.rail-bottom .rail-btn.rail-logout svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   V3.40 — Mobile & Responsive Overhaul + PWA Standalone Support
   ========================================================================== */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }
  .topbar {
    height: auto !important;
    min-height: 68px !important;
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .topbar-left {
    width: 100%;
    flex: 1 1 100%;
    gap: 10px;
  }
  .topbar .topbar-logo {
    height: 46px !important;
    max-width: 170px !important;
  }
  .search-wrap {
    display: block !important;
    flex: 1 1 auto !important;
    max-width: none !important;
  }
  .search-wrap input {
    padding: 8px 10px 8px 32px !important;
    font-size: 13px !important;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .user-meta {
    display: flex !important;
    flex-direction: column;
    max-width: 125px;
  }
  .user-meta strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-rail {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 62px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    flex-direction: row !important;
    align-items: center !important;
    border-right: none !important;
    border-top: 1px solid var(--border-strong) !important;
    z-index: 40 !important;
  }
  .rail-nav {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 2px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    overflow-x: auto;
  }
  .rail-btn {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 6px 6px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    min-width: 52px;
    flex: 1 1 0;
  }
  .rail-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  .rail-bottom {
    display: none !important;
  }

  .workspace-main {
    padding: 14px 14px 24px !important;
  }
  .page-hero,
  .page-hero-illustrated {
    padding: 16px !important;
    gap: 14px !important;
  }
  .page-head h1 {
    font-size: 20px !important;
  }
  .hero-art-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
  }
  .hero-art-img {
    max-height: 170px !important;
  }
  .kpi-grid,
  .incoming-grid,
  .form-grid,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
  .field.span-2,
  .form-actions {
    grid-column: span 1 !important;
  }
  .panel-card {
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .data-table th,
  .data-table td {
    padding: 9px 8px !important;
    font-size: 12px !important;
  }
  .inspector-panel {
    padding: 16px 14px 24px !important;
  }
}

@media (display-mode: standalone) {
  .topbar {
    padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
  }
}


/* ==========================================================================
   V3.41 — Full Responsive Fix for Login Page (Mobile, Tablet & Narrow Desktop)
   ========================================================================== */
.landing-body {
  overflow-x: hidden;
  max-width: 100vw;
}
.landing-grid {
  width: 100% !important;
  max-width: 1460px !important;
  box-sizing: border-box !important;
}
.landing-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1280px) {
  .landing-grid {
    grid-template-columns: 1fr !important;
    max-width: 720px !important;
    padding: 16px 20px 32px !important;
    gap: 20px !important;
  }
  .landing-subtitle {
    max-width: none !important;
  }
  .landing-showcase .showcase-hero-body {
    grid-template-columns: 1fr !important;
  }
  .landing-showcase .showcase-vector-wrap {
    min-height: 200px !important;
  }
  .landing-showcase .showcase-vector-img {
    max-height: 260px !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .landing-header {
    padding: 14px 16px 8px !important;
  }
  .landing-logo {
    height: auto !important;
    max-height: 52px !important;
    max-width: 210px !important;
    width: auto !important;
  }
  .landing-grid {
    padding: 12px 14px 88px !important;
    gap: 16px !important;
  }
  .landing-title {
    font-size: clamp(28px, 7.5vw, 38px) !important;
    margin: 6px 0 12px !important;
  }
  .landing-subtitle {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
  .landing-auth .landing-auth-card,
  .landing-showcase .showcase-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    gap: 14px !important;
  }
  .brand-logo {
    height: auto !important;
    max-height: 54px !important;
    max-width: 210px !important;
    width: auto !important;
  }
  .showcase-features {
    grid-template-columns: 1fr !important;
  }
  .showcase-vector-wrap {
    min-height: 160px !important;
    padding: 8px !important;
  }
  .showcase-vector-img {
    max-height: 200px !important;
  }
  .theme-switch {
    width: 68px !important;
    height: 34px !important;
  }
  .theme-switch .ts-thumb {
    width: 24px !important;
    height: 24px !important;
  }
  [data-theme="dark"] .theme-switch .ts-thumb {
    transform: translateX(34px) !important;
  }
}


/* ==========================================================================
   V3.44 — WeModHub Button Matched to Sign-In Green Gradient & Large Favicon
   ========================================================================== */
.plat-badge.wemodhub {
  background: linear-gradient(90deg, rgba(43, 102, 104, 0.65) 0%, rgba(22, 163, 74, 0.55) 60%, rgba(52, 234, 84, 0.38) 100%) !important;
  color: #e6fff0 !important;
  border: 1px solid rgba(52, 234, 84, 0.35) !important;
  box-shadow: inset 3px 0 0 #34ea54, 0 4px 14px rgba(20, 83, 45, 0.25) !important;
  border-radius: 9px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.plat-badge.wemodhub:hover {
  filter: brightness(1.08) !important;
  border-color: rgba(52, 234, 84, 0.55) !important;
}
.plat-badge.wemodhub .wmh-dot {
  background: #4ade80 !important;
}


/* ==========================================================================
   V3.48 — Payout Methods Cards (Bank Account, PayPal, Payoneer)
   ========================================================================== */
.payout-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.pm-card:hover {
  border-color: rgba(52, 234, 84, 0.45);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.pm-card.active {
  background: linear-gradient(135deg, rgba(43, 102, 104, 0.36) 0%, rgba(52, 234, 84, 0.12) 100%) !important;
  border-color: rgba(52, 234, 84, 0.48) !important;
  box-shadow: inset 3px 0 0 #34ea54, 0 6px 18px rgba(20, 83, 45, 0.18) !important;
}
[data-theme="light"] .pm-card.active {
  background: linear-gradient(135deg, rgba(43, 102, 104, 0.14) 0%, rgba(52, 234, 84, 0.10) 100%) !important;
  border-color: rgba(43, 102, 104, 0.38) !important;
  box-shadow: inset 3px 0 0 #2b6668 !important;
}
.pm-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pm-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-icon svg {
  width: 18px;
  height: 18px;
}
.pm-card.active .pm-icon {
  background: linear-gradient(135deg, #2b6668 0%, #34ea54 100%);
  border-color: transparent;
  color: #061215;
}
.pm-badge {
  display: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-text);
}
.pm-card.active .pm-badge {
  display: inline-flex;
}
.pm-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.pm-card small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .payout-method-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   V3.51 — Thin Status-Colored Borders on Overview, Incoming & Admin Cards
   ========================================================================== */
.inc-card.card-status-paid,
.admin-mv-item.card-status-paid {
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
}
.inc-card.card-status-paid:hover,
.admin-mv-item.card-status-paid:hover {
  border-color: rgba(52, 211, 153, 0.78) !important;
}

.inc-card.card-status-confirmed,
.admin-mv-item.card-status-confirmed {
  border: 1px solid rgba(251, 191, 36, 0.48) !important;
}
.inc-card.card-status-confirmed:hover,
.admin-mv-item.card-status-confirmed:hover {
  border-color: rgba(251, 191, 36, 0.82) !important;
}

.inc-card.card-status-pending,
.admin-mv-item.card-status-pending {
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
}
.inc-card.card-status-pending:hover,
.admin-mv-item.card-status-pending:hover {
  border-color: rgba(245, 158, 11, 0.72) !important;
}

.inc-card.card-status-cancelled,
.admin-mv-item.card-status-cancelled {
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
}
.inc-card.card-status-cancelled:hover,
.admin-mv-item.card-status-cancelled:hover {
  border-color: rgba(248, 113, 113, 0.78) !important;
}

.inc-card.card-status-other,
.admin-mv-item.card-status-other {
  border: 1px solid rgba(6, 182, 212, 0.38) !important;
}
.inc-card.card-status-other:hover,
.admin-mv-item.card-status-other:hover {
  border-color: rgba(6, 182, 212, 0.72) !important;
}

[data-theme="light"] .inc-card.card-status-paid,
[data-theme="light"] .admin-mv-item.card-status-paid {
  border-color: rgba(5, 150, 105, 0.42) !important;
}
[data-theme="light"] .inc-card.card-status-confirmed,
[data-theme="light"] .admin-mv-item.card-status-confirmed {
  border-color: rgba(180, 83, 9, 0.40) !important;
}
[data-theme="light"] .inc-card.card-status-pending,
[data-theme="light"] .admin-mv-item.card-status-pending {
  border-color: rgba(217, 119, 6, 0.34) !important;
}


/* ==========================================================================
   V3.52 — Organized Bottom Divider + Readable Paid On & Value Date Pills
   ========================================================================== */
.inc-card .inc-owner {
  margin-bottom: 0 !important;
}
.inc-card .inc-bottom.inc-bottom-separated {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.incoming-grid:not(.full) .inc-card .inc-bottom.inc-bottom-separated {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.inc-pills-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.incoming-grid.full .inc-pills-group {
  justify-content: flex-end;
}
.inc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.inc-meta-pill .imp-lbl {
  font-weight: 500;
}
.inc-meta-pill strong {
  font-weight: 700;
}
.inc-meta-pill.inc-pill-paid {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #34d399;
}
.inc-meta-pill.inc-pill-paid .imp-lbl {
  color: #86efac;
}
.inc-meta-pill.inc-pill-date {
  background: rgba(14, 42, 62, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #e2e8f0;
}
.inc-meta-pill.inc-pill-date .imp-lbl {
  color: #94a3b8;
}
.inc-meta-pill.inc-pill-warn {
  background: var(--amber-bg);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: var(--amber-text);
}

[data-theme="light"] .inc-meta-pill.inc-pill-paid {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}
[data-theme="light"] .inc-meta-pill.inc-pill-paid .imp-lbl {
  color: #059669;
}
[data-theme="light"] .inc-meta-pill.inc-pill-date {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.30);
  color: #0f172a;
}
[data-theme="light"] .inc-meta-pill.inc-pill-date .imp-lbl {
  color: #475569;
}

@media (max-width: 900px) {
  .incoming-grid.full .inc-card .inc-bottom.inc-bottom-separated {
    flex-direction: column;
    align-items: flex-start;
  }
  .incoming-grid.full .inc-pills-group {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   V3.54 — Overview Cards: Pills Right-Aligned on Same Row as Amount
   ========================================================================== */
.incoming-grid:not(.full) .inc-card .inc-bottom.inc-bottom-separated {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 10px !important;
  flex-wrap: wrap !important;
}
.incoming-grid:not(.full) .inc-pills-group {
  margin-left: auto;
  justify-content: flex-end !important;
  gap: 6px !important;
}
.incoming-grid:not(.full) .inc-meta-pill {
  padding: 4px 10px !important;
  font-size: 11.5px !important;
}

@media (max-width: 900px) {
  .incoming-grid:not(.full) .inc-card .inc-bottom.inc-bottom-separated {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .incoming-grid:not(.full) .inc-pills-group {
    margin-left: 0;
    justify-content: flex-start !important;
  }
}
