/* =====================================================================
   POCKETFOLIO DESIGN SYSTEM — NORDIC MARINE SLATE (#124E6F)
   Color Theme: HEX #124E6F | RGB 18, 78, 111 | HSL 201, 72%, 25%
   Secondary Accents: Glacier Cyan (#29B6F6), Emerald (#10B981), Amber (#E5A93B)
   Design Style: Professional Modern Fintech Dashboard
===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Brand Theme Colors — #124E6F (Nordic Marine Slate) */
  --primary-raw: 18, 78, 111;
  --primary: #124e6f;
  --primary-light: #1b6a95;
  --primary-lighter: #2685ba;
  --primary-deep: #0b344b;
  --primary-glow: rgba(18, 78, 111, 0.40);
  --primary-subtle: rgba(18, 78, 111, 0.14);
  --primary-gradient: linear-gradient(135deg, #0d3b55 0%, #124e6f 55%, #1b6a95 100%);
  --primary-gradient-hover: linear-gradient(135deg, #09283a 0%, #0e405c 55%, #15577b 100%);

  /* Secondary Accents — Pure Nordic Marine & Glacier Blue Shades */
  --accent-cyan: #29b6f6;
  --accent-cyan-subtle: rgba(41, 182, 246, 0.14);
  --accent-pink: #38bdf8;
  --accent-pink-subtle: rgba(56, 189, 248, 0.14);
  --accent-gold: #2685ba;
  --accent-gold-subtle: rgba(38, 133, 186, 0.14);
  --status-success: #29b6f6;
  --status-success-subtle: rgba(41, 182, 246, 0.14);
  --status-warning: #1b6a95;
  --status-danger: #475569;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition-normal: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius (Matching round stylish cards from images) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;
}

/* ================= DARK THEME (Pure Black Background with Marine Blue Containers) ================= */
[data-theme="dark"], :root {
  --bg-body: #000000;
  --bg-body-gradient: #000000;

  --bg-surface: #0a111a;
  --bg-surface-elevated: #0d1a29;
  --bg-surface-hover: #132438;
  --bg-card: #080e15;
  --bg-card-border: rgba(41, 182, 246, 0.14);
  --bg-card-border-glow: rgba(41, 182, 246, 0.32);
  --bg-card-border-subtle: rgba(41, 182, 246, 0.10);

  --input-bg: #091018;
  --input-border: rgba(41, 182, 246, 0.18);
  --input-border-focus: #1b6a95;
  --input-text: #f1f5f9;
  --input-placeholder: #64748b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --sidebar-bg: #000000;
  --sidebar-border: rgba(255, 255, 255, 0.08);

  --nav-bg: rgba(0, 0, 0, 0.95);
  --nav-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 16px 42px -6px rgba(0, 0, 0, 0.92);
  --shadow-glow: none;
}

/* Enforce pure black background on page canvas & sidebar */
[data-theme="dark"] html,
[data-theme="dark"] body,
:root:not([data-theme="light"]) html,
:root:not([data-theme="light"]) body {
  background: #000000 !important;
  background-color: #000000 !important;
}

[data-theme="dark"] .dashboard-layout,
[data-theme="dark"] .dashboard-sidebar,
[data-theme="dark"] .dashboard-main,
[data-theme="dark"] .view-page-container,
:root:not([data-theme="light"]) .dashboard-layout,
:root:not([data-theme="light"]) .dashboard-sidebar,
:root:not([data-theme="light"]) .dashboard-main,
:root:not([data-theme="light"]) .view-page-container {
  background: #000000 !important;
  background-color: #000000 !important;
}

[data-theme="dark"] .ambient-glow,
:root:not([data-theme="light"]) .ambient-glow {
  display: none !important;
}

/* Elegant dark blue container shades in dark mode (matching light mode elevated blue aesthetic) */
[data-theme="dark"] .action-item-card,
:root:not([data-theme="light"]) .action-item-card {
  background: #0d1e2e;
  border: 1px solid rgba(41, 182, 246, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .action-item-card:hover,
:root:not([data-theme="light"]) .action-item-card:hover {
  background: #12283d;
  border-color: rgba(41, 182, 246, 0.45);
  box-shadow: 0 4px 16px rgba(18, 78, 111, 0.35);
}

[data-theme="dark"] .overview-metric-card,
:root:not([data-theme="light"]) .overview-metric-card {
  background: #0b1520;
  border: 1px solid rgba(41, 182, 246, 0.14);
}

[data-theme="dark"] .overview-metric-card:hover,
:root:not([data-theme="light"]) .overview-metric-card:hover {
  background: #0f1c2c;
  border-color: rgba(41, 182, 246, 0.35);
}

[data-theme="dark"] .bento-compliance-hub,
:root:not([data-theme="light"]) .bento-compliance-hub {
  background: linear-gradient(170deg, #09131d 0%, #060a10 100%);
  border: 1px solid rgba(41, 182, 246, 0.18);
}

/* ================= LIGHT THEME (Arctic Slate & Deep Marine) ================= */
[data-theme="light"] {
  --bg-body: #f2f5f8;
  --bg-body-gradient: radial-gradient(circle at 50% -10%, rgba(18, 78, 111, 0.08) 0%, rgba(41, 182, 246, 0.02) 40%, rgba(242, 245, 248, 0) 75%), #f2f5f8;

  --bg-surface: #ffffff;
  --bg-surface-elevated: #e8eff5;
  --bg-surface-hover: #dde7ef;
  --bg-card: #ffffff;
  --bg-card-border: #dae3eb;
  --bg-card-border-glow: rgba(18, 78, 111, 0.35);
  --bg-card-border-subtle: rgba(0, 0, 0, 0.04);

  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-border-focus: #124e6f;
  --input-text: #0f172a;
  --input-placeholder: #94a3b8;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --sidebar-bg: #ffffff;
  --sidebar-border: #dae3eb;

  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: #dae3eb;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(18, 78, 111, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(18, 78, 111, 0.12);
  --shadow-glow: 0 0 20px rgba(18, 78, 111, 0.18);

  --accent-cyan: #0284c7;
  --accent-gold: #124e6f;
  --accent-gold-subtle: rgba(18, 78, 111, 0.08);
  --status-success: #0284c7;
  --status-success-subtle: rgba(2, 132, 199, 0.10);
  --status-warning: #124e6f;
  --status-danger: #64748b;
}

/* ================= BASE RESETS ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-main);
  background: var(--bg-body-gradient);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* ================= AMBIENT GLOW ================= */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 380px;
  background: radial-gradient(circle, rgba(18, 78, 111, 0.22) 0%, rgba(41, 182, 246, 0.05) 50%, rgba(10, 14, 20, 0) 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  top: 68px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 500;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
  max-width: 400px;
}

.toast.toast-success { border-color: var(--status-success); }
.toast.toast-error { border-color: var(--status-danger); }
.toast.toast-info { border-color: var(--primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================= TOP NAVBAR ================= */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: all var(--transition-normal);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 14px var(--primary-glow);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Nav Center (Spacious Alexatel-style search) */
.nav-links-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-network-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 10px var(--status-success);
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.gas-tag {
  font-size: 0.675rem;
  color: var(--primary-lighter);
  background: var(--primary-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

/* Pill Search Bar (Spacious and prominent like Alexatel) */
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--text-muted);
  width: 380px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-search-bar:hover {
  border-color: var(--primary);
  color: var(--text-secondary);
  background: var(--bg-surface-hover);
}

.search-kbd {
  margin-left: auto;
  font-size: 0.675rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-dropdown-trigger {
  display: none; /* Hide cluttered dropdowns from header */
}

/* Nav Actions Right */
.nav-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-badge-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-lighter);
  transition: all var(--transition-fast);
}

.wallet-badge-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-subtle);
  transform: translateY(-1px);
}

[data-theme="light"] .wallet-badge-btn {
  background: #ffffff;
  border-color: #dae3eb;
  color: #124e6f;
}

[data-theme="light"] .wallet-badge-btn:hover {
  border-color: #124e6f;
  box-shadow: 0 2px 10px rgba(18, 78, 111, 0.12);
}

.theme-toggle-btn, .icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  color: var(--text-secondary);
  position: relative;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .icon-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.notification-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: transform var(--transition-fast);
}

.user-avatar-btn:hover {
  transform: scale(1.05);
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--bg-card-border);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-lighter);
}

/* ================= AUTH VIEWS ================= */
.auth-wrapper {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 36px 36px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.auth-header {
  margin-bottom: 22px;
  text-align: left;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.auth-subtitle {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.required-star {
  color: var(--primary);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--input-text);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.input-icon-right {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.password-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.req-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.675rem;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.req-item.valid {
  color: var(--status-success);
  background: var(--status-success-subtle);
}

.req-icon {
  width: 11px;
  height: 11px;
}

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.725rem;
  font-weight: 600;
  margin: 4px 0;
}

.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--bg-card-border);
}

.divider-or:not(:empty)::before { margin-right: 10px; }
.divider-or:not(:empty)::after { margin-left: 10px; }

.btn-social {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-social:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary);
}

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.auth-footer button {
  color: var(--primary-lighter);
  font-weight: 700;
}

.auth-legal-note {
  font-size: 0.675rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.auth-legal-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* OTP Screen */
.dev-otp-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-subtle);
  border: 1px dashed var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 12px;
  cursor: pointer;
}

.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 20px 0;
}

.otp-digit {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--input-text);
  outline: none;
}

.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.resend-btn {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px;
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard-layout {
  display: flex;
  height: calc(100vh - 68px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* --- Sidebar (100vh Fixed with smooth internal scrolling) --- */
.dashboard-sidebar {
  width: 305px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  position: relative;
  width: 100%;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 42px 10px 14px;
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.sidebar-link-text {
  white-space: nowrap;
  flex-shrink: 1;
}

.sidebar-link span {
  white-space: nowrap;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  transform: none;
}

/* Active sidebar item in stylish purple pill */
.sidebar-link.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.sidebar-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary-subtle);
  color: var(--primary-lighter);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
  line-height: 1.2;
}

.sidebar-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
  transition: transform var(--transition-fast), stroke var(--transition-fast);
  pointer-events: none;
}

.sidebar-link:hover .sidebar-chevron {
  stroke: var(--text-primary);
}

.sidebar-link.active .sidebar-chevron {
  stroke: #ffffff;
}

.sidebar-submenu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  margin-top: 6px;
}

.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.sidebar-sublink svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke var(--transition-fast);
}

.sidebar-sublink:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  transform: translateX(2px);
}

.sidebar-sublink.active {
  color: #e5b152;
  background: rgba(229, 177, 82, 0.12);
  border-color: rgba(229, 177, 82, 0.25);
  font-weight: 600;
}

.sidebar-sublink.active svg {
  stroke: #e5b152;
}

.sidebar-sublink.active:hover {
  color: #e5b152;
  background: rgba(229, 177, 82, 0.18);
  transform: none;
}

[data-theme="light"] .sidebar-sublink {
  color: #475569;
}

[data-theme="light"] .sidebar-sublink:hover {
  color: #0f172a;
  background: #dde7ef;
  transform: none;
}

[data-theme="light"] .sidebar-sublink.active {
  color: #d97706;
  background: #fdf4e9;
  border-color: rgba(217, 119, 6, 0.25);
  font-weight: 600;
}

[data-theme="light"] .sidebar-sublink.active svg {
  stroke: #d97706;
}

[data-theme="light"] .sidebar-sublink.active:hover {
  color: #d97706;
  background: #faebd7;
}

[data-theme="light"] .sidebar-badge-new {
  background: #d0e2f2;
  color: #0284c7;
}

[data-theme="light"] .sidebar-link:hover .sidebar-badge-new {
  background: #c3dcfa;
  color: #0369a1;
}

/* Sidebar Upgrade Card (Floating Pro widget) */
.sidebar-upgrade-card {
  background: linear-gradient(135deg, rgba(114, 60, 235, 0.16) 0%, rgba(244, 114, 182, 0.08) 100%);
  border: 1px solid rgba(114, 60, 235, 0.28);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upgrade-card-badge {
  align-self: flex-start;
  font-size: 0.675rem;
  font-weight: 800;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.upgrade-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.upgrade-card-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.upgrade-card-desc {
  font-size: 0.725rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.upgrade-card-btn {
  margin-top: 4px;
  background: #ffffff;
  color: #0c0d12;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.upgrade-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.sidebar-footer {
  padding-top: 8px;
  border-top: 1px solid var(--sidebar-border);
}

/* ================= DASHBOARD MAIN ================= */
.dashboard-main {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 32px 42px 64px 42px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.dashboard-main::-webkit-scrollbar {
  width: 6px;
}

.dashboard-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.dashboard-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- 1. Executive Welcome Deck (Open, Spacious Page Hero Header) --- */
.executive-command-deck {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 24px;
  flex-wrap: wrap;
}

.executive-command-deck::before {
  display: none;
}

.exec-profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-avatar-wrap {
  position: relative;
}

.hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.avatar-status-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #29b6f6;
  box-shadow: 0 0 8px rgba(41, 182, 246, 0.6);
  border: 2.5px solid var(--bg-card);
}

[data-theme="light"] .avatar-status-badge {
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.35);
}

.exec-user-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exec-greeting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.badge-pro-tier {
  font-size: 0.675rem;
  font-weight: 800;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px var(--primary-glow);
  letter-spacing: 0.04em;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.pill-badge.clickable:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.pill-badge-warning {
  color: var(--accent-cyan);
  border-color: rgba(41, 182, 246, 0.3);
  background: rgba(41, 182, 246, 0.08);
}

.pill-badge-gold {
  color: var(--primary-lighter);
  font-weight: 700;
  background: var(--primary-subtle);
  border-color: rgba(41, 182, 246, 0.2);
}

[data-theme="light"] .pill-badge-warning {
  color: #124e6f;
  border-color: rgba(18, 78, 111, 0.22);
  background: rgba(18, 78, 111, 0.06);
}

[data-theme="light"] .pill-badge-gold {
  color: #124e6f;
  background: rgba(18, 78, 111, 0.06);
  border-color: rgba(18, 78, 111, 0.20);
}

.sidebar-logout-btn {
  color: var(--text-muted);
}
.sidebar-logout-btn:hover {
  color: var(--primary-lighter) !important;
  background: var(--primary-subtle) !important;
}
[data-theme="light"] .sidebar-logout-btn:hover {
  color: #124e6f !important;
  background: rgba(18, 78, 111, 0.08) !important;
}

.exec-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-timeframe-dock {
  display: flex;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border-subtle);
  gap: 3px;
}

.hero-time-pill {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero-time-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-hero-deposit {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-hero-deposit:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
}

.btn-hero-withdraw {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-hero-withdraw:hover {
  border-color: var(--primary);
  color: var(--primary-lighter);
  background: var(--bg-surface-hover);
}

.hero-view-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.hero-view-profile-btn:hover {
  color: var(--primary-lighter);
  background: var(--bg-surface-hover);
}

/* ================= BENTO GRID ARCHITECTURE ================= */
.bento-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.bento-row {
  display: grid;
  gap: 24px;
}

.bento-row-top {
  grid-template-columns: 1.6fr 1fr;
  align-items: stretch;
}

.bento-row-middle {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.bento-row-bottom {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--bg-card-border-glow);
  box-shadow: var(--shadow-md);
}

/* --- Bento Overview Deck (Simple & Classy Hub) --- */
.bento-overview-deck {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.bento-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 78, 111, 0.08);
  border: 1px solid rgba(18, 78, 111, 0.16);
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .overview-icon-badge {
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.25);
  color: #29b6f6;
}

.overview-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.overview-clean-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(18, 78, 111, 0.05);
  border: 1px solid rgba(18, 78, 111, 0.12);
  color: var(--text-secondary);
}

[data-theme="dark"] .overview-clean-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--text-secondary);
}

.clean-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

/* --- 6-Metrics Grid --- */
.overview-six-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.overview-metric-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-normal);
}

.overview-metric-card:hover {
  border-color: var(--bg-card-border-glow);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -3px rgba(18, 78, 111, 0.12);
}

.overview-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-trend-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
}

.metric-clean-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-clean-pill.cyan {
  background: rgba(41, 182, 246, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(41, 182, 246, 0.25);
}

.metric-clean-pill.gold {
  background: rgba(41, 182, 246, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(41, 182, 246, 0.25);
}

.metric-clean-pill.blue {
  background: var(--primary-subtle);
  color: var(--primary-lighter);
  border: 1px solid rgba(41, 182, 246, 0.25);
}

.metric-clean-pill.violet {
  background: rgba(27, 106, 149, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(41, 182, 246, 0.25);
}

.metric-value-display {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.35px;
  line-height: 1.15;
}

.metric-value-display.gold-accent {
  color: #38bdf8;
}

/* Elegant Shape Line Accent */
.metric-shape-line {
  height: 2px;
  width: 100%;
  border-radius: var(--radius-full);
  margin-top: 1px;
}

.metric-shape-line.cyan {
  background: linear-gradient(90deg, #29b6f6 0%, rgba(41, 182, 246, 0.05) 85%);
}

.metric-shape-line.gold {
  background: linear-gradient(90deg, #2685ba 0%, rgba(38, 133, 186, 0.05) 85%);
}

.metric-shape-line.blue {
  background: linear-gradient(90deg, #1b6a95 0%, rgba(27, 106, 149, 0.05) 85%);
}

.metric-shape-line.violet {
  background: linear-gradient(90deg, #1b6a95 0%, rgba(27, 106, 149, 0.05) 85%);
}

/* Light Theme Precision Overrides */
[data-theme="light"] .overview-metric-card {
  background: #ffffff;
  border-color: #dae3eb;
  box-shadow: 0 1px 3px rgba(18, 78, 111, 0.04);
}

[data-theme="light"] .overview-metric-card:hover {
  background: #ffffff;
  border-color: #124e6f;
  box-shadow: 0 8px 24px -2px rgba(18, 78, 111, 0.10);
}

[data-theme="light"] .metric-value-display.gold-accent {
  color: #124e6f;
}

[data-theme="light"] .metric-clean-pill.cyan {
  color: #0284c7;
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.28);
}

[data-theme="light"] .metric-clean-pill.gold {
  color: #124e6f;
  background: rgba(18, 78, 111, 0.08);
  border-color: rgba(18, 78, 111, 0.22);
}

[data-theme="light"] .metric-clean-pill.blue {
  color: #124e6f;
  background: rgba(18, 78, 111, 0.08);
  border-color: rgba(18, 78, 111, 0.20);
}

[data-theme="light"] .metric-clean-pill.violet {
  color: #1b6a95;
  background: rgba(27, 106, 149, 0.08);
  border-color: rgba(27, 106, 149, 0.20);
}

[data-theme="light"] .metric-shape-line.gold {
  background: linear-gradient(90deg, #124e6f 0%, rgba(18, 78, 111, 0.05) 85%);
}

[data-theme="light"] .metric-shape-line.violet {
  background: linear-gradient(90deg, #1b6a95 0%, rgba(27, 106, 149, 0.05) 85%);
}

[data-theme="light"] .metric-shape-line.blue {
  background: linear-gradient(90deg, #124e6f 0%, rgba(18, 78, 111, 0.05) 85%);
}

/* --- Wallets at a Glance Deck (from Image 3) --- */
.wallets-glance-deck {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wallets-glance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.glance-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.glance-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.glance-big-balance {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.glance-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-glance-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-glance-action.deposit {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-glance-action.deposit:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
}

.btn-glance-action.withdraw {
  background: var(--bg-surface-elevated);
  border-color: var(--bg-card-border);
  color: var(--text-primary);
}

.btn-glance-action.withdraw:hover {
  border-color: var(--primary);
  color: var(--primary-lighter);
  background: var(--bg-surface-hover);
}

.btn-glance-action.transfer {
  background: var(--bg-surface-elevated);
  border-color: var(--bg-card-border);
  color: var(--text-secondary);
}

.btn-glance-action.transfer:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.wallets-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wallet-tile {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
  position: relative;
  border-left-width: 4px;
}

.wallet-tile-main {
  border-left-color: #29b6f6;
}

.wallet-tile-yield {
  border-left-color: #124e6f;
}

.wallet-tile-quant {
  border-left-color: #1b6a95;
}

.wallet-tile-bonus {
  border-left-color: #38bdf8;
}

.wallet-tile:hover {
  border-color: var(--bg-card-border-glow);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.wallet-tile-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-tile-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-tile-icon-box.amber { background: rgba(38, 133, 186, 0.15); color: #2685ba; }
.wallet-tile-icon-box.emerald { background: rgba(18, 78, 111, 0.15); color: #124e6f; }
.wallet-tile-icon-box.cyan { background: rgba(41, 182, 246, 0.15); color: #29b6f6; }
.wallet-tile-icon-box.gold { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.wallet-tile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.wallet-tile-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.wallet-tile-val.gold {
  color: var(--accent-gold);
}

.wallet-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.wallet-tile-link:hover {
  color: var(--primary-lighter);
}

/* --- Activity & Sessions Right Column (from Image 4) --- */
.activity-sessions-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-icon-badge.purple {
  background: var(--primary-subtle);
  color: var(--primary-lighter);
}

.activity-icon-badge.cyan {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
}

.activity-footer-link {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-card-border-subtle);
}

.card-footer-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.card-footer-action-link:hover {
  color: var(--primary-lighter);
}

.session-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.session-device-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(41, 182, 246, 0.12);
  color: #29b6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-device-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.session-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.session-badge-current {
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(41, 182, 246, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(41, 182, 246, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.session-meta-text {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.session-timestamp-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-make-deposit-empty {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--primary-glow);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-make-deposit-empty:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
}

/* --- Card 1: Balance Terminal & Dual Spline Curve --- */
.bento-chart-terminal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.terminal-metric-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-caption-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-caption {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.ribbon-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

[data-theme="light"] .ribbon-trend-badge {
  color: #124e6f;
  background: rgba(18, 78, 111, 0.08);
  border: 1px solid rgba(18, 78, 111, 0.20);
}

.ribbon-val-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.earnings-value-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
}

.earnings-subtext {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.chart-timeframe-dock {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border-subtle);
}

.timeframe-pill {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.timeframe-pill:hover {
  color: var(--text-primary);
}

.timeframe-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* SVG Chart Canvas */
.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  margin: 18px 0 10px 0;
}

.dynamic-yield-svg {
  width: 100%;
  height: 170px;
  display: block;
  overflow: visible;
}

.chart-node {
  transition: r 0.2s ease;
  cursor: pointer;
}

.chart-node:hover {
  r: 6.5;
}

.chart-node-active {
  filter: drop-shadow(0 0 4px rgba(41, 182, 246, 0.5));
}

/* Tooltip Badge at Peak Node */
.chart-active-tooltip {
  position: absolute;
  top: 4px;
  right: 18px;
  background: #ffffff;
  color: #0c0d12;
  border-radius: var(--radius-md);
  padding: 7px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  z-index: 5;
}

.tooltip-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
}

.tooltip-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0c0d12;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 4px 0 4px;
}

.chart-x-labels .active-today {
  color: var(--primary-lighter);
  font-weight: 800;
}

/* Sub-Metrics Strip (Inside balance card - clean borderless columns like Felix) */
.terminal-sub-periods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--bg-card-border-subtle);
}

.period-cell {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}

.period-cell.active {
  background: transparent;
  border: none;
}

.period-cell-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.period-cell-tag {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trend-icon-green {
  font-size: 0.8rem;
  color: var(--status-success);
  font-weight: 800;
}

.period-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* --- Card 2: Concentric Security & Compliance Hub --- */
.bento-compliance-hub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.concentric-rings-box {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concentric-rings-svg {
  transform: rotate(-90deg);
}

.concentric-label-center {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.compliance-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.compliance-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.action-item-card:hover {
  border-color: var(--bg-card-border-glow);
  background: var(--bg-surface-hover);
}

.action-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-item-icon.violet { background: var(--primary-subtle); color: var(--primary-lighter); }
.action-item-icon.pink { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
.action-item-icon.cyan { background: var(--accent-cyan-subtle); color: var(--accent-cyan); }
.action-item-icon.emerald { background: rgba(18, 78, 111, 0.15); color: #1b6a95; }

[data-theme="light"] .action-item-icon.violet { background: rgba(18, 78, 111, 0.08); color: #124e6f; }
[data-theme="light"] .action-item-icon.pink { background: rgba(2, 132, 199, 0.10); color: #0284c7; }
[data-theme="light"] .action-item-icon.cyan { background: rgba(41, 182, 246, 0.12); color: #0369a1; }
[data-theme="light"] .action-item-icon.emerald { background: rgba(27, 106, 149, 0.10); color: #124e6f; }

.action-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.action-item-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
}

.action-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-action-trigger {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-action-trigger.highlight {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-action-trigger.secondary {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
}

.btn-action-trigger.completed {
  background: var(--status-success-subtle);
  color: var(--status-success);
}

/* ================= BENTO ROW 2: QUAD GRID (4 ALLOCATION POOLS) ================= */
.bento-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 2px;
}

.bento-title-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.section-meta-pill {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary-lighter);
  background: var(--primary-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.bento-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.bento-pool-card {
  padding: 24px 22px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pool-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Circular icon badges */
.pool-icon-halo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pool-icon-halo.violet { background: var(--primary-subtle); color: var(--primary-lighter); }
.pool-icon-halo.pink { background: var(--accent-pink-subtle); color: var(--accent-pink); }
.pool-icon-halo.gold { background: var(--accent-gold-subtle); color: var(--accent-gold); }

.pool-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-apy-chip, .card-payout-chip {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary-light);
}

.card-apy-chip.quant {
  background: var(--primary-subtle);
  color: var(--primary-lighter);
}

.card-payout-chip {
  background: rgba(41, 182, 246, 0.12);
  color: var(--accent-cyan);
}

.card-amount-large {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
  margin: 2px 0;
}

.card-amount-large.gold {
  color: var(--accent-cyan);
}

[data-theme="light"] .card-amount-large.gold {
  color: #124e6f;
}

.pool-capacity-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 2px;
}

.capacity-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.capacity-fill.violet { background: var(--primary-gradient); }
.capacity-fill.pink { background: linear-gradient(90deg, #1b6a95, #29b6f6); }
.capacity-fill.gold { background: linear-gradient(90deg, #1b6a95, #38bdf8); }

[data-theme="light"] .capacity-fill.gold {
  background: linear-gradient(90deg, #124e6f, #2685ba);
}

.pool-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
}

.capacity-num {
  font-weight: 700;
  color: var(--text-secondary);
}

.capacity-num.pink { color: var(--accent-cyan); }
.capacity-num.gold { color: var(--accent-cyan); }

[data-theme="light"] .capacity-num.gold {
  color: #124e6f;
}

/* ================= BENTO ROW 3: BREAKDOWN & COMMUNITY ================= */
.bento-terminal-breakdown {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.perf-header-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.perf-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.perf-title-row .section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.perf-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Full Width Performance Tabs */
.perf-tabs-bar {
  display: flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  width: 100%;
}

.perf-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.perf-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.perf-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--bg-card-border);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .perf-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.08);
}

.badge-static-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(229, 169, 59, 0.16);
  color: #e5a93b;
  border: 1px solid rgba(229, 169, 59, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Total Earnings Main Card */
.perf-earnings-hero {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.perf-earnings-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perf-earnings-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perf-earnings-label .currency-symbol {
  color: var(--text-muted);
  font-weight: 500;
}

.perf-trend-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perf-earnings-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
  margin: 3px 0 1px;
}

.perf-earnings-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Period Breakdown Grid */
.perf-period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.perf-period-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}

.perf-period-box.border-blue {
  border: 1.5px solid #2563eb;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.18);
}

[data-theme="light"] .perf-period-box.border-blue {
  border: 1.5px solid #124e6f;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.12);
}

.perf-period-box.border-purple {
  border: 1.5px solid #7c3aed;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .perf-period-box.border-purple {
  border: 1.5px solid #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.perf-period-header {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perf-period-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

.btn-view-portfolio {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-view-portfolio:hover {
  border-color: var(--primary);
  color: var(--primary-lighter);
  background: var(--bg-surface-hover);
}

/* --- Community Network Hub --- */
.bento-community-hub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.community-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comm-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comm-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comm-badge-live {
  font-size: 0.675rem;
  font-weight: 700;
  background: var(--status-success-subtle);
  color: var(--status-success);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.comm-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comm-stat-cell {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comm-stat-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comm-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.comm-stat-val.gold {
  color: var(--accent-gold);
}

.referral-share-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.referral-share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.referral-input-dock {
  display: flex;
  gap: 8px;
}

.referral-share-input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--input-text);
  font-family: monospace;
}

.btn-copy-share {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-copy-share:hover {
  background: var(--primary-gradient-hover);
}

/* ================= BENTO ROW 4: ACTIVITY & AUDIT LOGS ================= */
.activity-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.activity-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.activity-row:hover {
  border-color: var(--bg-card-border-glow);
  background: var(--bg-surface-hover);
}

.activity-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-row-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-row-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.activity-row-right {
  font-size: 0.85rem;
  font-weight: 700;
}

.empty-activity-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  gap: 8px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(12px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.modal-notice-box {
  background: var(--primary-subtle);
  border: 1px solid rgba(114, 60, 235, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.quick-amounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.quick-amount-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px 4px;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.quick-amount-btn:hover {
  border-color: var(--primary);
  color: var(--primary-lighter);
  background: var(--primary-subtle);
}

/* ================= ANIMATIONS & RESPONSIVE ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .bento-quad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .bento-row-top,
  .bento-row-middle,
  .bento-row-bottom {
    grid-template-columns: 1fr;
  }
  .wallets-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-network-pill,
  .nav-search-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 0 14px;
  }
  .nav-links-center {
    display: none;
  }
  .dashboard-layout {
    height: auto;
    overflow: visible;
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
  }
  .dashboard-main {
    height: auto;
    overflow: visible;
    padding: 14px 10px;
  }
  .overview-six-grid {
    grid-template-columns: 1fr;
  }
  .wallets-four-grid {
    grid-template-columns: 1fr;
  }
  .executive-command-deck {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .exec-actions-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .bento-quad-grid {
    grid-template-columns: 1fr;
  }
  .terminal-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .chart-timeframe-dock {
    width: 100%;
    justify-content: space-between;
  }
  .terminal-sub-periods {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .comm-stats-row {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   SMART YIELD POOL & COMPLEMENTARY PAGES — CLASSY FINTECH UI
   Nordic Marine (#124E6F) + Glacier Cyan (#29B6F6) + Warm Gold (#D97706)
   ===================================================================== */

/* Page View Containers */
.view-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================================================================
   CLEAN, AIRY, UNCONGESTED SMART YIELD POOL (Matching Reference Images)
   Theme-adaptive for both Light and Dark modes
   ===================================================================== */
.syp-clean-view {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 32px 64px 32px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .syp-clean-view {
    padding: 16px 14px 48px 14px;
    gap: 20px;
  }
}

/* 1. Header Deck */
.syp-header-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.syp-clean-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
}

.syp-clean-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 780px;
}

/* 2. KYC Alert Banner */
.syp-kyc-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.35);
  transition: all var(--transition-fast);
}

[data-theme="light"] .syp-kyc-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.syp-kyc-alert-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.syp-kyc-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #38bdf8;
  background: rgba(41, 182, 246, 0.15);
}

.syp-kyc-alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.syp-kyc-alert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #124e6f;
}

[data-theme="dark"] .syp-kyc-alert-title {
  color: #38bdf8;
}

.syp-kyc-alert-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.syp-kyc-alert-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.syp-stepper-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.775rem;
  font-weight: 600;
}

[data-theme="dark"] .syp-stepper-pill {
  background: rgba(255, 255, 255, 0.08);
}

.syp-stepper-pill .curr {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  padding: 3px 8px;
  border-radius: 4px;
}

.syp-stepper-pill .stepper-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.syp-stepper-pill .next {
  color: #38bdf8;
  background: rgba(41, 182, 246, 0.14);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-syp-kyc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid rgba(41, 182, 246, 0.3);
  box-shadow: 0 4px 14px var(--primary-glow);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-syp-kyc-action:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

@media (max-width: 860px) {
  .syp-kyc-alert {
    flex-direction: column;
    align-items: flex-start;
  }
  .syp-kyc-alert-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* 3. Spacious Table Card */
.syp-table-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.syp-clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.syp-clean-table th {
  padding: 16px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card-border);
  background: var(--bg-surface);
  white-space: nowrap;
}

.syp-clean-table th .th-info {
  opacity: 0.6;
  font-size: 0.75rem;
  margin-left: 3px;
  cursor: help;
}

.syp-clean-table th .th-sort {
  opacity: 0.5;
  font-size: 0.75rem;
  margin-left: 3px;
  cursor: pointer;
}

.syp-clean-table td {
  padding: 22px;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.syp-clean-table tbody tr {
  transition: background var(--transition-fast);
}

.syp-clean-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.syp-clean-table tbody tr:last-child td {
  border-bottom: none;
}

.pool-name-primary {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.col-rates {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rate-wpr {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rate-wpr small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 3px;
}

.rate-apr {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cell-duration {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.cell-invest {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-clean-invest {
  background: var(--primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-clean-invest:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-clean-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-clean-details:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* 4. Two-Column Grid: ROI Calculator & Why Pocketfolio */
.syp-two-col-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .syp-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.syp-sub-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.syp-sub-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 22px 0;
}

/* Calculator Inputs */
.calc-inputs-clean-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .calc-inputs-clean-row {
    grid-template-columns: 1fr;
  }
}

.clean-select-box,
.clean-amount-box {
  position: relative;
  display: flex;
  align-items: center;
}

.clean-select,
.clean-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-fast);
}

.clean-select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
}

.select-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--text-muted);
}

.clean-select:focus,
.clean-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.15);
}

/* Calculator Result Headline */
.calc-result-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
}

.calc-result-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.calc-result-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.calc-result-amount {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-lighter);
  letter-spacing: -0.02em;
}

[data-theme="light"] .calc-result-amount {
  color: #124e6f;
}

/* Calculator Chart */
.calc-chart-clean-deck {
  display: flex;
  gap: 12px;
  height: 160px;
  margin-bottom: 8px;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
  width: 72px;
  flex-shrink: 0;
}

.chart-drawing-area {
  flex: 1;
  height: 100%;
}

#calcProjectionSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 84px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Why Pocketfolio Items */
.why-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  transition: all var(--transition-fast);
}

.why-item-row:hover {
  border-color: var(--accent-cyan);
  transform: translateX(2px);
}

.why-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 78, 111, 0.12);
  color: #124e6f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .why-icon-box {
  background: rgba(41, 182, 246, 0.15);
  color: #38bdf8;
}

.why-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why-item-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.why-item-desc {
  font-size: 0.835rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 5. Quick FAQ Section */
.syp-faq-clean-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.syp-faq-clean-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.syp-faq-accordion-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bg-card-border);
}

.faq-row-item {
  border-bottom: 1px solid var(--bg-card-border);
}

.faq-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-q-text {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-row-btn:hover .faq-q-text {
  color: var(--accent-cyan);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-row-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-row-answer {
  display: none;
  padding: 0 6px 18px 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-row-answer p {
  margin: 0;
}

.faq-row-item.open .faq-row-answer {
  display: block;
  animation: faqFadeSlide 0.2s ease-out;
}

@keyframes faqFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Breadcrumb Bar */
.syp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.syp-breadcrumb-deck {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.825rem;
}

.syp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 78, 111, 0.16);
  border: 1px solid rgba(41, 182, 246, 0.2);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.syp-back-btn:hover {
  background: rgba(41, 182, 246, 0.22);
  border-color: var(--accent-cyan);
  transform: translateX(-2px);
}

.syp-breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.syp-breadcrumb-sub {
  color: var(--text-secondary);
  font-weight: 500;
}

.syp-breadcrumb-active {
  color: var(--text-primary);
  font-weight: 700;
}

.syp-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  color: #34d399;
}

.syp-status-dot {
  width: 7px;
  height: 7px;
  background: #29b6f6;
  border-radius: 50%;
  box-shadow: 0 0 8px #29b6f6;
}

/* Hero Header Banner */
.syp-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(18, 78, 111, 0.32) 0%, rgba(16, 22, 32, 0.85) 60%, rgba(13, 59, 85, 0.2) 100%);
  border: 1px solid rgba(41, 182, 246, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.syp-hero-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(41, 182, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.syp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(41, 182, 246, 0.12);
  border: 1px solid rgba(41, 182, 246, 0.28);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.syp-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #ffffff 40%, #e0f2fe 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.syp-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.5;
  margin: 0;
}

.syp-hero-metrics {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.syp-mini-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  min-width: 135px;
}

.syp-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.syp-stat-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.syp-stat-val.cyan {
  color: var(--accent-cyan);
}

.syp-stat-val.gold {
  color: #fbbf24;
}

.syp-stat-val .unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.syp-stat-val .trend {
  color: #34d399;
  font-size: 0.95rem;
}

/* KYC Level 1 Required Banner */
.syp-kyc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(18, 78, 111, 0.12) 0%, rgba(16, 22, 32, 0.92) 50%, rgba(18, 78, 111, 0.06) 100%);
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.syp-kyc-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.syp-kyc-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #fbbf24;
  flex-shrink: 0;
}

.syp-kyc-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.syp-kyc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fef3c7;
  margin: 0;
}

.syp-level-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.syp-step-node {
  color: var(--text-muted);
}

.syp-step-node.active {
  color: #f87171;
}

.syp-step-node.target {
  color: #34d399;
}

.syp-step-arrow {
  color: var(--text-muted);
}

.syp-kyc-desc {
  font-size: 0.84rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.45;
}

.btn-syp-kyc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(41, 182, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-syp-kyc:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 78, 111, 0.5);
}

/* Pools Section Header & Toggle */
.syp-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.syp-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.syp-section-sub {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin: 0;
}

.syp-view-toggle-bar {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.syp-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.syp-view-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.5);
}

/* 5 POOLS: CARDS GRID */
.syp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.syp-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(16, 22, 32, 0.95) 0%, rgba(18, 78, 111, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.syp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 182, 246, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(18, 78, 111, 0.25);
}

.syp-card.featured-card {
  border-color: rgba(41, 182, 246, 0.35);
  background: linear-gradient(160deg, rgba(16, 22, 32, 0.98) 0%, rgba(18, 78, 111, 0.22) 100%);
}

.syp-card.apex-card {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(160deg, rgba(16, 22, 32, 0.98) 0%, rgba(217, 119, 6, 0.12) 100%);
}

.syp-card-tier-tag {
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.syp-card-tier-tag.gold,
.syp-card-tier-tag.apex {
  color: #fbbf24;
}

.syp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.syp-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.syp-card-profile {
  font-size: 0.775rem;
  color: var(--text-secondary);
  display: block;
}

.syp-protection-pill {
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.syp-protection-pill.gold {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #fbbf24;
}

.syp-rates-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.syp-rate-item {
  display: flex;
  flex-direction: column;
}

.syp-rate-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

.syp-rate-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.syp-rate-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.syp-rate-value.cyan {
  color: var(--accent-cyan);
}

.syp-rate-value.gold {
  color: #38bdf8;
}

.syp-rate-value.gold-bright {
  color: #29b6f6;
}

.rate-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.syp-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.syp-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.syp-metric-k {
  color: var(--text-muted);
}

.syp-metric-v {
  font-weight: 600;
  color: var(--text-secondary);
}

.syp-metric-v.highlight {
  color: var(--text-primary);
  font-weight: 700;
}

.syp-metric-v.gold {
  color: #fbbf24;
}

.quota-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.syp-quota-progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 18px;
}

.syp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #124e6f 0%, #29b6f6 100%);
  border-radius: var(--radius-full);
}

.syp-progress-fill.gold {
  background: linear-gradient(90deg, #1b6a95 0%, #38bdf8 100%);
}

.syp-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-syp-invest {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-gradient);
  border: 1px solid rgba(41, 182, 246, 0.3);
  color: #ffffff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-syp-invest:hover {
  background: var(--primary-gradient-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(18, 78, 111, 0.4);
}

.btn-syp-invest.btn-apex {
  background: linear-gradient(135deg, #0b344b 0%, #124e6f 60%, #1b6a95 100%);
  border-color: rgba(41, 182, 246, 0.4);
}

.btn-syp-invest.btn-apex:hover {
  box-shadow: 0 4px 16px rgba(18, 78, 111, 0.5);
}

.btn-syp-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-syp-details:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 5 POOLS: TABLE VIEW */
.syp-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.syp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.syp-table th {
  padding: 14px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 20, 0.6);
}

.syp-table td {
  padding: 16px 18px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.syp-table tbody tr {
  transition: background var(--transition-fast);
}

.syp-table tbody tr:hover {
  background: rgba(18, 78, 111, 0.12);
}

.syp-table tbody tr.highlighted-row {
  background: rgba(41, 182, 246, 0.05);
}

.syp-table tbody tr.apex-row {
  background: rgba(217, 119, 6, 0.05);
}

.table-pool-name-col {
  display: flex;
  flex-direction: column;
}

.table-pool-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.table-pool-title.gold {
  color: #fbbf24;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-row-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(41, 182, 246, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(41, 182, 246, 0.3);
}

.badge-row-tag.gold {
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.35);
}

.table-pool-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-rates-col {
  display: flex;
  flex-direction: column;
}

.table-rate-wpr {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.92rem;
}

.table-rate-wpr.gold {
  color: #fbbf24;
}

.table-rate-apr {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-rate-apr.gold {
  color: #29b6f6;
}

.table-pill.duration {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.table-pill.duration.highlight {
  background: rgba(41, 182, 246, 0.1);
  border-color: rgba(41, 182, 246, 0.3);
  color: var(--accent-cyan);
}

.table-pill.duration.gold {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #fbbf24;
}

.table-val {
  font-weight: 700;
  color: var(--text-primary);
}

.table-val.gold {
  color: #fbbf24;
}

.table-quota-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.table-quota-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.table-quota-bar .fill {
  height: 100%;
  background: var(--accent-cyan);
}

.table-quota-bar.gold .fill {
  background: #fbbf24;
}

.btn-syp-invest-table {
  background: var(--primary-gradient);
  border: 1px solid rgba(41, 182, 246, 0.3);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-syp-invest-table:hover {
  box-shadow: 0 2px 10px rgba(18, 78, 111, 0.5);
  transform: translateY(-1px);
}

.btn-syp-invest-table.gold {
  background: linear-gradient(135deg, #124e6f 0%, #1b6a95 100%);
  border-color: rgba(41, 182, 246, 0.4);
}

.btn-syp-details-table {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-syp-details-table:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ROI CALCULATOR & WHY POCKETFOLIO GRID */
.syp-calc-why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 6px;
}

@media (max-width: 1080px) {
  .syp-calc-why-grid {
    grid-template-columns: 1fr;
  }
}

.syp-calc-card,
.syp-why-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.syp-calc-badge {
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 4px;
}

.syp-calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.syp-calc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.syp-calc-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #29b6f6;
  border-radius: 50%;
  box-shadow: 0 0 6px #29b6f6;
}

.syp-calc-inputs-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .syp-calc-inputs-row {
    grid-template-columns: 1fr;
  }
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-select-wrap,
.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-select,
.calc-input {
  width: 100%;
  background: rgba(10, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.calc-select {
  appearance: none;
  cursor: pointer;
  padding-right: 32px;
}

.select-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-muted);
}

.calc-input {
  padding-left: 28px;
  padding-right: 56px;
  font-family: var(--font-display);
}

.calc-curr-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-curr-suffix {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.calc-select:focus,
.calc-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.25);
}

.calc-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

.calc-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-chip:hover {
  background: rgba(41, 182, 246, 0.15);
  border-color: rgba(41, 182, 246, 0.3);
  color: #ffffff;
}

.calc-chip.active {
  background: var(--primary);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.4);
}

/* Calculation Result Summary Banner */
.calc-earnings-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 14, 20, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.calc-strip-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2px;
}

.calc-strip-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.calc-big-earnings {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-lighter);
  text-shadow: 0 0 16px var(--primary-glow);
  letter-spacing: -0.02em;
}

[data-theme="light"] .calc-big-earnings {
  color: #124e6f;
  text-shadow: none;
}

.calc-earnings-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.calc-strip-right {
  display: flex;
  gap: 20px;
}

.calc-detail-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.calc-detail-stat .k {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-detail-stat .v {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-detail-stat .v.gold {
  color: #fbbf24;
}

/* Dynamic SVG Growth Chart */
.calc-chart-box {
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.calc-chart-labels-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.chart-y-top {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chart-legend-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #34d399;
}

.calc-svg-container {
  width: 100%;
  height: 140px;
}

.calc-curve-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.calc-timeline-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-cta-row {
  margin-top: auto;
}

.btn-calc-invest {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  border: 1px solid rgba(41, 182, 246, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-calc-invest:hover {
  background: var(--primary-gradient-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(18, 78, 111, 0.5);
  transform: translateY(-1px);
}

/* WHY POCKETFOLIO DECK */
.syp-why-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.syp-why-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.syp-pillars-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.syp-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.syp-pillar-card:hover {
  background: rgba(18, 78, 111, 0.14);
  border-color: rgba(41, 182, 246, 0.25);
  transform: translateX(2px);
}

.pillar-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pillar-icon-box.gold {
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #fbbf24;
}

.pillar-icon-box.cyan {
  background: rgba(41, 182, 246, 0.16);
  border: 1px solid rgba(41, 182, 246, 0.3);
  color: var(--accent-cyan);
}

.pillar-icon-box.amber {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.pillar-body {
  display: flex;
  flex-direction: column;
}

.pillar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pillar-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pillar-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.pillar-tag.cyan {
  background: rgba(41, 182, 246, 0.12);
  color: var(--accent-cyan);
}

.pillar-tag.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.pillar-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* QUICK FAQ ACCORDION SECTION */
.syp-faq-container {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  margin-top: 8px;
}

.syp-faq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.syp-faq-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.syp-faq-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.syp-faq-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.syp-faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.syp-faq-search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.syp-faq-search-box input {
  background: rgba(10, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.825rem;
  padding: 8px 14px 8px 34px;
  min-width: 260px;
  outline: none;
  transition: all var(--transition-fast);
}

.syp-faq-search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.25);
}

.syp-faq-btn-group {
  display: flex;
  gap: 6px;
}

.syp-faq-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.syp-faq-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.syp-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syp-faq-item {
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.syp-faq-item:hover {
  border-color: rgba(41, 182, 246, 0.2);
}

.syp-faq-item.active {
  border-color: rgba(41, 182, 246, 0.35);
  background: rgba(18, 78, 111, 0.1);
}

.syp-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.syp-faq-trigger:hover {
  color: var(--accent-cyan);
}

.syp-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal), color var(--transition-fast), background var(--transition-fast);
}

.syp-faq-item.active .syp-faq-icon {
  transform: rotate(180deg);
  background: rgba(41, 182, 246, 0.2);
  color: var(--accent-cyan);
}

.syp-faq-content {
  display: none;
  padding: 0 20px 18px 20px;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.syp-faq-item.active .syp-faq-content {
  display: block;
  animation: fadeInFaq 0.25s ease;
}

@keyframes fadeInFaq {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.syp-faq-content strong {
  color: #ffffff;
  font-weight: 600;
}

/* =====================================================================
   CLASSY QUANT POOLS INTERFACE (Consistent, Luxury Institutional Style)
   Theme-adaptive for Light & Dark Modes
   ===================================================================== */
.quant-page-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 36px 80px 36px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .quant-page-view {
    padding: 18px 16px 56px 16px;
    gap: 22px;
  }
}

/* Page Header */
.quant-page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quant-page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.quant-page-subtitle {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* KYC Alert Banner */
.quant-kyc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: #141721;
  border: 1px solid rgba(41, 182, 246, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

[data-theme="light"] .quant-kyc-banner {
  background: #ffffff;
  border: 1px solid #dae3eb;
  box-shadow: 0 2px 10px rgba(18, 78, 111, 0.05);
}

.quant-kyc-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quant-kyc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(41, 182, 246, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(41, 182, 246, 0.2);
}

[data-theme="light"] .quant-kyc-icon {
  background: rgba(18, 78, 111, 0.08);
  border: 1px solid rgba(18, 78, 111, 0.16);
  color: #124e6f;
}

.quant-kyc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quant-kyc-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quant-kyc-desc {
  font-size: 0.835rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.quant-kyc-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.quant-stepper-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

[data-theme="light"] .quant-stepper-pill {
  background: #f1f5f9;
  border: 1px solid #dae3eb;
}

.quant-stepper-pill .curr {
  color: #64748b;
  background: rgba(18, 78, 111, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

[data-theme="dark"] .quant-stepper-pill .curr {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

.quant-stepper-pill .stepper-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quant-stepper-pill .next {
  color: #38bdf8;
  background: rgba(41, 182, 246, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

[data-theme="light"] .quant-stepper-pill .next {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.10);
}

.btn-quant-kyc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(41, 182, 246, 0.3);
  box-shadow: 0 4px 14px var(--primary-glow);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-quant-kyc:hover {
  background: var(--primary-gradient-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 18px rgba(18, 78, 111, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .quant-kyc-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .quant-kyc-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* 4 Bucket Cards Grid - Spacious layout */
.quant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1200px) {
  .quant-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .quant-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Individual Bucket Plan Card */
.quant-card {
  background: #141721;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--transition-fast);
}

[data-theme="light"] .quant-card {
  background: #ffffff;
  border: 1px solid #dae3eb;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.04);
}

.quant-card:hover {
  border-color: rgba(41, 182, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .quant-card:hover {
  border-color: #124e6f;
  box-shadow: 0 10px 28px -4px rgba(18, 78, 111, 0.12);
}

/* Card Header */
.quant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.quant-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quant-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.quant-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #38bdf8;
  background: rgba(41, 182, 246, 0.12);
  border: 1px solid rgba(41, 182, 246, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.quant-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #1c202d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}

[data-theme="light"] .quant-card-icon {
  background: rgba(18, 78, 111, 0.06);
  border: 1px solid rgba(18, 78, 111, 0.14);
  color: #124e6f;
}

/* Rate Box */
.quant-rate-box {
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="light"] .quant-rate-box {
  background: #f8fafc;
  border: 1px solid #dae3eb;
}

.quant-rate-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quant-rate-header svg {
  color: #38bdf8;
}

[data-theme="light"] .quant-rate-header svg {
  color: #1b6a95;
}

.quant-rate-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Reduced font size for percentage rates */
.quant-rate-num {
  font-size: 0.98rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

[data-theme="light"] .quant-rate-num {
  color: #124e6f;
}

.quant-rate-to {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Specs Grid (Duration & Min Amount) */
.quant-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 0;
}

.quant-spec-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quant-spec-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quant-spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Description Text */
.quant-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}

/* CTA Action Button - Bluish palette */
.btn-quant-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(41, 182, 246, 0.3);
  background: var(--primary-gradient);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-quant-action:hover {
  background: var(--primary-gradient-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 18px rgba(18, 78, 111, 0.5);
  transform: translateY(-1px);
}

/* "How Quant Pools Work" Guide Panel */
.quant-guide-panel {
  background: #141721;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 8px;
}

[data-theme="light"] .quant-guide-panel {
  background: #ffffff;
  border: 1px solid #dae3eb;
  box-shadow: 0 2px 10px rgba(18, 78, 111, 0.04);
}

.quant-guide-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(41, 182, 246, 0.12);
  border: 1px solid rgba(41, 182, 246, 0.25);
  color: #38bdf8;
}

[data-theme="light"] .quant-guide-icon-wrap {
  background: rgba(18, 78, 111, 0.08);
  border: 1px solid rgba(18, 78, 111, 0.18);
  color: #124e6f;
}

.quant-guide-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quant-guide-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.quant-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quant-guide-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.quant-guide-list .bullet-dot {
  color: #38bdf8;
  font-size: 1.1rem;
  line-height: 1;
}

[data-theme="light"] .quant-guide-list .bullet-dot {
  color: #124e6f;
}

.quant-guide-list strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

/* POOL DETAILS MODAL (PDM) */
.modal-box-large {
  max-width: 680px;
  width: 92%;
}

.modal-kicker-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 4px;
}

.modal-body-pdm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0 0 0;
}

.pdm-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .pdm-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pdm-stat-box {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.pdm-stat-box .k {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.pdm-stat-box .v {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pdm-stat-box .v.cyan {
  color: var(--accent-cyan);
}

.pdm-stat-box .v.gold {
  color: #fbbf24;
}

.pdm-breakdown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdm-section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pdm-bars-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdm-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdm-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pdm-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pdm-bar-track .fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.pdm-bar-track .fill.cyan { background: #29b6f6; }
.pdm-bar-track .fill.blue { background: #1b6a95; }
.pdm-bar-track .fill.emerald { background: #2685ba; }
.pdm-bar-track .fill.amber { background: #38bdf8; }
.pdm-bar-track .fill.purple { background: #124e6f; }

.pdm-terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .pdm-terms-grid {
    grid-template-columns: 1fr;
  }
}

.pdm-term-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(10, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.pdm-term-icon {
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdm-term-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.pdm-term-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.pdm-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-pdm-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-pdm-invest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  border: 1px solid rgba(41, 182, 246, 0.4);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18, 78, 111, 0.4);
}

/* =====================================================================
   SPOT TO FUTURE ARBITRAGE SCANNER UI
   Modern Nordic Marine / Glacier Blue Aesthetic
   ===================================================================== */

.spot-future-page-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 36px 60px 36px;
  min-height: 100%;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
}

/* Page Header Deck */
.spot-header-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.spot-main-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.spot-main-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* WebSocket Live Connection Card */
.spot-conn-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: rgba(16, 22, 32, 0.75);
  border: 1.5px solid rgba(41, 182, 246, 0.45);
  box-shadow: 0 0 24px rgba(41, 182, 246, 0.12), inset 0 0 16px rgba(41, 182, 246, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.spot-conn-card:hover {
  border-color: rgba(41, 182, 246, 0.7);
  box-shadow: 0 0 30px rgba(41, 182, 246, 0.18), inset 0 0 20px rgba(41, 182, 246, 0.06);
}

.spot-conn-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spot-conn-radar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(41, 182, 246, 0.12);
  color: var(--accent-cyan);
  position: relative;
}

.spot-conn-radar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0.4;
  animation: radarPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.spot-conn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spot-conn-status {
  font-size: 0.96rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.spot-conn-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.spot-conn-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spot-metric-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.spot-conn-last {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 4px;
}

.btn-spot-reconnect {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-spot-reconnect:hover {
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.45);
  color: var(--accent-cyan);
}

.btn-spot-reconnect.rotating svg {
  animation: spin 0.75s linear infinite;
}

/* Filters Card */
.spot-filters-card {
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.spot-filters-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spot-filters-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.spot-filters-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}

.spot-filters-meta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.spot-live-pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spot-live-pulse-indicator .pulse-wave-svg {
  color: var(--accent-cyan);
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
  animation: liveWavePulse 2s ease-in-out infinite;
}

@keyframes liveWavePulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.6; }
}

.btn-spot-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition-fast);
}

.btn-spot-clear-filters:hover {
  color: var(--accent-cyan);
}

/* Filters Form Row */
.spot-filters-form-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.spot-filter-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-control-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.spot-exchange-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 290px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spot-exchange-trigger-btn:hover,
.spot-exchange-trigger-btn[aria-expanded="true"] {
  border-color: rgba(41, 182, 246, 0.45);
  background: var(--bg-surface-elevated);
}

.spot-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.spot-trigger-left svg {
  color: var(--text-muted);
}

.spot-trigger-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spot-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Symbol Input */
.spot-symbol-wrap {
  flex: 1;
  max-width: 320px;
}

.spot-input-box {
  width: 100%;
}

.spot-symbol-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.spot-symbol-input:focus {
  border-color: rgba(41, 182, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.12);
}

.spot-symbol-input::placeholder {
  color: var(--text-muted);
}

/* =====================================================================
   Exchange Selection Popover Menu (Matching Image 3)
   ===================================================================== */
.spot-exchange-popover-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 580px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(41, 182, 246, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(41, 182, 246, 0.08);
  padding: 22px;
  z-index: 120;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.spot-popover-lead {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-popover-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spot-popover-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot-popover-col-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spot-popover-col-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spot-popover-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.spot-popover-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.spot-popover-col-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.spot-quick-toggles-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-bottom: 6px;
}

.spot-quick-action-link {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.spot-quick-action-link:hover {
  color: var(--accent-cyan);
}

.spot-quick-action-link::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.spot-quick-action-link.active::before {
  border-color: var(--accent-cyan);
  background: radial-gradient(circle, var(--accent-cyan) 40%, transparent 45%);
}

.spot-exchange-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-exchange-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.spot-exchange-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.spot-ex-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spot-ex-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all var(--transition-fast);
  margin: 0;
}

.spot-ex-checkbox:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.spot-ex-checkbox:checked::before {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #0a0e14;
  border-bottom: 2px solid #0a0e14;
  transform: rotate(-45deg) translate(1px, -1px);
}

.spot-ex-badge-sq {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(18, 78, 111, 0.35);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-ex-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.spot-ex-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(41, 182, 246, 0.35);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.spot-ex-count-badge.zero {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* =====================================================================
   Active Opportunities Table Card
   ===================================================================== */
.spot-opportunities-card {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spot-table-title-deck {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spot-opportunities-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}

.spot-opportunities-counter {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.spot-table-scroll-wrap {
  width: 100%;
  max-height: 790px;
  overflow-y: auto;
  overflow-x: hidden !important;
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 182, 246, 0.4) rgba(255, 255, 255, 0.03);
}

.spot-table-scroll-wrap::-webkit-scrollbar {
  width: 6px;
}

.spot-table-scroll-wrap::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

.spot-table-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.spot-table-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(41, 182, 246, 0.35);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.spot-table-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(41, 182, 246, 0.65);
}

.spot-live-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.spot-live-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.spot-live-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card);
  text-align: left;
  padding: 13px 12px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1.5px solid var(--bg-card-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  user-select: none;
  white-space: nowrap;
}

.spot-live-table thead th.th-prices {
  text-align: left;
}

.th-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: 4px;
  cursor: help;
  vertical-align: middle;
}

.spot-live-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.spot-live-table tbody tr:hover {
  background: rgba(41, 182, 246, 0.04);
}

.spot-live-table tbody td {
  padding: 13px 12px;
  font-size: 0.87rem;
  vertical-align: middle;
  white-space: nowrap;
}

.td-spot-sym-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.td-spot-sym-main {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.td-spot-sym-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.td-spot-exchange {
  color: var(--text-primary);
  font-weight: 500;
}

.td-spot-time {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.td-spot-rate {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.td-spot-rate.positive {
  color: #38bdf8;
}

.td-spot-apr {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-display);
}

.td-spot-spread {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-display);
}

.td-spot-profit {
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-display);
}

.td-spot-prices-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.td-spot-prices-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* =====================================================================
   Spot Luxury Multi-Column Footer (Image 2)
   ===================================================================== */
.spot-luxury-footer {
  margin-top: 48px;
  padding: 44px 0 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
}

.spot-footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 36px;
}

.spot-footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spot-footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.spot-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot-footer-list li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
}

.spot-footer-list li a:hover {
  color: var(--accent-cyan);
}

.spot-footer-ext svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.spot-footer-list li a:hover .spot-footer-ext svg {
  color: var(--accent-cyan);
}

.spot-social-links-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spot-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.spot-social-circle:hover {
  background: var(--primary-lighter);
  border-color: var(--primary-lighter);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 78, 111, 0.4);
}

/* ================= LIGHT THEME ADJUSTMENTS FOR SPOT VIEW ================= */
[data-theme="light"] .spot-conn-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(18, 78, 111, 0.35);
  box-shadow: 0 4px 16px rgba(18, 78, 111, 0.08);
}

[data-theme="light"] .spot-conn-status {
  color: var(--primary);
}

[data-theme="light"] .spot-metric-tag {
  background: rgba(18, 78, 111, 0.06);
  border-color: rgba(18, 78, 111, 0.15);
  color: var(--text-primary);
}

[data-theme="light"] .btn-spot-reconnect {
  background: rgba(18, 78, 111, 0.04);
  border-color: rgba(18, 78, 111, 0.15);
  color: var(--text-secondary);
}

[data-theme="light"] .btn-spot-reconnect:hover {
  background: rgba(18, 78, 111, 0.08);
  color: var(--primary);
}

[data-theme="light"] .spot-badge-num {
  background: rgba(18, 78, 111, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .spot-exchange-popover-panel {
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .spot-ex-badge-sq {
  background: rgba(18, 78, 111, 0.08);
  color: var(--primary);
  border-color: rgba(18, 78, 111, 0.12);
}

[data-theme="light"] .spot-ex-checkbox {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .spot-ex-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="light"] .spot-ex-checkbox:checked::before {
  border-left-color: #ffffff;
  border-bottom-color: #ffffff;
}

[data-theme="light"] .spot-ex-count-badge {
  border-color: rgba(18, 78, 111, 0.25);
  color: var(--primary);
}

[data-theme="light"] .spot-table-scroll-wrap {
  scrollbar-color: rgba(18, 78, 111, 0.4) rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .spot-table-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .spot-table-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(18, 78, 111, 0.3);
}

[data-theme="light"] .spot-table-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 78, 111, 0.6);
}

[data-theme="light"] .spot-live-table thead th {
  background: #ffffff;
  border-bottom-color: var(--bg-card-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .spot-live-table tbody tr {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .spot-live-table tbody tr:hover {
  background: rgba(18, 78, 111, 0.03);
}

[data-theme="light"] .spot-luxury-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .spot-social-circle {
  background: rgba(18, 78, 111, 0.05);
  border-color: rgba(18, 78, 111, 0.12);
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .spot-footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .spot-future-page-view {
    padding: 20px 16px 40px 16px;
  }
  .spot-conn-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .spot-conn-right {
    width: 100%;
    justify-content: space-between;
  }
  .spot-exchange-popover-panel {
    width: 100%;
    left: 0;
  }
  .spot-popover-columns-grid {
    grid-template-columns: 1fr;
  }
  .spot-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================================
   ORDERS MANAGEMENT PAGES (Smart Yield Pool Orders & Quant Pool Orders)
   ===================================================================== */

.orders-page-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 36px 60px 36px;
  min-height: 100%;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
}

.orders-header-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.orders-main-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.orders-main-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.orders-filters-deck {
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.orders-filters-grid {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.orders-filter-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  flex: 1;
}

.orders-control-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.orders-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.orders-select-btn:hover,
.orders-select-btn[aria-expanded="true"] {
  border-color: rgba(41, 182, 246, 0.45);
  background: var(--bg-surface-elevated);
}

.orders-select-btn svg {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.orders-select-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Orders Dropdown Menu matching Image 5 */
.orders-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 230px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(41, 182, 246, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75);
  padding: 6px;
  z-index: 100;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.orders-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.orders-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.orders-dropdown-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(41, 182, 246, 0.08);
}

.orders-dropdown-item .chk-icon {
  display: none;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
}

.orders-dropdown-item.active .chk-icon {
  display: inline-block;
}

/* Date control */
.orders-date-control {
  min-width: 250px;
}

.orders-date-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  box-sizing: border-box;
}

.orders-date-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.orders-date-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
}

.orders-date-input::placeholder {
  color: var(--text-muted);
}

.orders-filter-action-wrap {
  margin-left: auto;
}

.btn-orders-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-orders-clear-filters:hover {
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.45);
  color: var(--accent-cyan);
}

/* Orders Table Card */
.orders-table-card {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.orders-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
}

.orders-clean-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.orders-clean-table thead th {
  text-align: left;
  padding: 16px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.02);
}

.orders-clean-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.orders-clean-table tbody tr:hover {
  background: rgba(41, 182, 246, 0.03);
}

.orders-clean-table tbody td {
  padding: 16px 22px;
  font-size: 0.88rem;
  color: var(--text-primary);
  vertical-align: middle;
}

/* Empty State Card matching Images 4 & 5 */
.orders-empty-state-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  gap: 16px;
}

.orders-empty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.orders-empty-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* Pagination Footer */
.orders-pagination-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--bg-card-border);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.orders-paging-text {
  font-weight: 500;
}

.orders-paging-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.orders-page-btn:hover:not(:disabled) {
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.4);
  color: var(--accent-cyan);
}

.orders-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.orders-page-current {
  padding: 0 10px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
}

/* Light Mode Overrides for Orders */
[data-theme="light"] .orders-dropdown-menu {
  background: #ffffff;
  border-color: var(--bg-card-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .orders-dropdown-item:hover {
  background: rgba(18, 78, 111, 0.06);
}

[data-theme="light"] .orders-dropdown-item.active {
  background: rgba(18, 78, 111, 0.1);
  color: var(--primary);
}

[data-theme="light"] .btn-orders-clear-filters {
  background: rgba(18, 78, 111, 0.04);
  border-color: rgba(18, 78, 111, 0.15);
  color: var(--text-primary);
}

[data-theme="light"] .btn-orders-clear-filters:hover {
  background: rgba(18, 78, 111, 0.08);
  color: var(--primary);
}

[data-theme="light"] .orders-clean-table thead th {
  background: #f8fafc;
}

[data-theme="light"] .orders-empty-icon-box {
  background: rgba(18, 78, 111, 0.04);
  border-color: rgba(18, 78, 111, 0.1);
}

[data-theme="light"] .orders-page-btn {
  background: rgba(18, 78, 111, 0.04);
  border-color: rgba(18, 78, 111, 0.12);
}

/* =====================================================================
   QUANT POOL ORDERS UI (Screenshots 2, 3, 4, 5)
   ===================================================================== */

.quant-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.quant-segmented-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.quant-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quant-tab-btn:hover {
  color: var(--text-primary);
}

.quant-tab-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-quant-show-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-quant-show-filters:hover {
  background: rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.35);
  color: var(--accent-cyan);
}

.btn-quant-show-filters.active {
  background: rgba(41, 182, 246, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Metric Cards Grid (Screenshot 2) */
.quant-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .quant-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .quant-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.quant-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quant-metric-card:hover {
  border-color: rgba(41, 182, 246, 0.28);
}

.quant-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
}

.quant-metric-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.quant-metric-icon-dollar {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quant-metric-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.quant-metric-value.text-loss {
  color: #EF4444 !important;
}

.quant-metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Performance Over Time & Breakdown Cards (Screenshots 2 & 3) */
.quant-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.quant-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 18px 0;
}

.quant-chart-placeholder-box {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.07);
}

.quant-chart-placeholder-text {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.quant-breakdown-card {
  padding: 24px 28px;
  margin-bottom: 36px;
}

.quant-breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quant-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.quant-breakdown-row:last-child {
  border-bottom: none;
}

.quant-breakdown-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.quant-breakdown-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-display);
}

.quant-breakdown-val.text-win {
  color: #10B981 !important;
}

.quant-breakdown-val.text-loss {
  color: #EF4444 !important;
}

/* Details column header highlight (Screenshot 4) */
.th-quant-details {
  background: rgba(255, 255, 255, 0.035) !important;
  text-align: center;
  border-radius: 4px;
}

/* Pagination Bar (Screenshots 4 & 5) */
.quant-pagination-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--bg-card-border);
}

.quant-paging-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quant-page-current-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-quant-page-nav {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-quant-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-quant-page-nav:hover:not(:disabled) {
  background: rgba(41, 182, 246, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(41, 182, 246, 0.35);
}

/* Luxury Footer Disclaimer & Bottom Bar (Screenshot 3) */
.quant-page-footer {
  margin-top: 10px;
}

.spot-footer-disclaimer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.spot-footer-disclaimer strong {
  color: var(--text-secondary);
}

.spot-footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.spot-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spot-footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.spot-footer-bottom-links a:hover {
  color: var(--accent-cyan);
}

/* Light Theme Overrides for Quant Pool */
[data-theme="light"] .quant-segmented-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .quant-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-quant-show-filters {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .btn-quant-show-filters:hover {
  background: rgba(18, 78, 111, 0.06);
  color: var(--primary);
  border-color: rgba(18, 78, 111, 0.25);
}

[data-theme="light"] .quant-chart-placeholder-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-quant-page-nav {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-quant-page-nav:hover:not(:disabled) {
  background: rgba(18, 78, 111, 0.06);
  color: var(--primary);
  border-color: rgba(18, 78, 111, 0.25);
}

[data-theme="light"] .th-quant-details {
  background: #f1f5f9 !important;
}

[data-theme="light"] .spot-footer-disclaimer {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .spot-footer-bottom-bar {
  border-top-color: #f1f5f9;
}

/* =====================================================================
   PORTFOLIO PAGES (Smart Yield Pool & Quant Pool - Screenshots 1 to 5)
   ===================================================================== */

.portfolio-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.portfolio-hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 250px;
}

.portfolio-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.portfolio-hero-balance {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.portfolio-hero-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  margin-top: 2px;
}

.portfolio-trend-win {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10B981;
  font-weight: 600;
  font-family: var(--font-display);
}

.portfolio-pnl-tag {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--text-muted);
  cursor: help;
  font-size: 0.82rem;
}

.portfolio-hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.quant-stats-quad {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.portfolio-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 14px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.portfolio-stat-pill:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.portfolio-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Luminous Glassmorphic Bluish Shade Gradients (Dark Mode) */
.portfolio-stat-icon-wrap.icon-blue {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.portfolio-stat-icon-wrap.icon-amber {
  background: rgba(2, 132, 199, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.portfolio-stat-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.portfolio-stat-icon-wrap.icon-purple,
.portfolio-stat-icon-wrap.icon-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.portfolio-stat-pill:hover .portfolio-stat-icon-wrap {
  transform: scale(1.05);
}

.portfolio-stat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.portfolio-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap !important;
  line-height: 1.1;
}

.portfolio-stat-label.has-tooltip {
  border-bottom: none !important;
  cursor: pointer;
}

.portfolio-stat-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap !important;
  letter-spacing: -0.01em;
}

.portfolio-stat-val.text-win {
  color: #10B981 !important;
}

.portfolio-stat-val.text-purple,
.portfolio-stat-val.text-cyan {
  color: #38bdf8 !important;
}

@media (max-width: 1180px) {
  .portfolio-hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .quant-stats-quad {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .quant-stats-quad .portfolio-stat-pill {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Tooltip (Screenshot 5) */
.relative-stat {
  position: relative;
}

/* Tooltip Matching Screenshots 1, 2, 3, 4 */
.quant-stat-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  width: max-content;
  max-width: 260px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 100;
}

.quant-stat-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.relative-stat:hover .quant-stat-tooltip,
.quant-stat-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip Align Right (Screenshot 4: Today's Earnings) */
.relative-stat.tooltip-align-right .quant-stat-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}

.relative-stat.tooltip-align-right .quant-stat-tooltip::after {
  left: auto;
  right: 32px;
  transform: none;
}

.relative-stat.tooltip-align-right:hover .quant-stat-tooltip,
.relative-stat.tooltip-align-right .quant-stat-tooltip.show {
  transform: translateX(0) translateY(0);
}

/* Dual-Month Range Picker (Screenshot 5) */
.dual-calendar-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
  min-width: 530px;
  box-sizing: border-box;
}

.dual-calendar-popup.show {
  display: flex;
  gap: 28px;
  animation: calendarPop 0.18s ease-out;
}

@keyframes calendarPop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dual-cal-month {
  flex: 1;
  min-width: 236px;
}

.dual-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 28px;
}

.dual-cal-header-title {
  flex: 1;
  text-align: center;
}

.dual-cal-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.dual-cal-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dual-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 3px;
  text-align: center;
  margin-bottom: 6px;
}

.dual-cal-weekday {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dual-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 3px;
}

.dual-cal-day {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dual-cal-day.muted {
  color: #475569;
  cursor: default;
}

.dual-cal-day:not(.muted):hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.dual-cal-day.today {
  background: #232d3f;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dual-cal-day.range-start,
.dual-cal-day.range-end {
  background: #38bdf8 !important;
  color: #0c1829 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.dual-cal-day.in-range {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border-radius: 0 !important;
}

/* Light Theme for Calendar */
[data-theme="light"] .dual-calendar-popup {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .dual-cal-nav-btn {
  color: #64748b;
}

[data-theme="light"] .dual-cal-nav-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .dual-cal-day.muted {
  color: #cbd5e1;
}

[data-theme="light"] .dual-cal-day:not(.muted):hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

[data-theme="light"] .dual-cal-day.today {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .dual-cal-day.range-start,
[data-theme="light"] .dual-cal-day.range-end {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] .dual-cal-day.in-range {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

/* Section block & title */
.portfolio-section-block {
  margin-bottom: 24px;
}

.portfolio-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 14px 0;
}

.portfolio-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.portfolio-section-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Pool Breakdown Deck (Screenshot 1) */
.portfolio-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 42px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.portfolio-breakdown-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Active Investments Deck (Screenshots 1, 2, 4, 3, 5) */
.portfolio-active-deck {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

/* Empty State Container strictly stacking elements vertically on next lines */
.portfolio-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  gap: 8px !important;
}

.portfolio-empty-pulse-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-empty-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  display: block !important;
  width: 100%;
  text-align: center;
}

.portfolio-empty-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  display: block !important;
  width: 100%;
  text-align: center;
}

/* Light Theme Overrides for Portfolio */
[data-theme="light"] .portfolio-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .portfolio-hero-balance {
  color: #0f172a;
}

[data-theme="light"] .portfolio-stat-pill {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  padding: 8px 14px;
}

[data-theme="light"] .portfolio-stat-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .portfolio-stat-label {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

[data-theme="light"] .portfolio-stat-val {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
}

[data-theme="light"] .portfolio-stat-val.text-win {
  color: #059669 !important;
}

[data-theme="light"] .portfolio-stat-val.text-purple,
[data-theme="light"] .portfolio-stat-val.text-cyan {
  color: #0284c7 !important;
}

/* Light theme icon containers with refined bluish shade gradients */
[data-theme="light"] .portfolio-stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .portfolio-stat-icon-wrap.icon-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #2563eb;
}

[data-theme="light"] .portfolio-stat-icon-wrap.icon-amber {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(2, 132, 199, 0.28);
  color: #0284c7;
}

[data-theme="light"] .portfolio-stat-icon-wrap.icon-emerald {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #16a34a;
}

[data-theme="light"] .portfolio-stat-icon-wrap.icon-purple,
[data-theme="light"] .portfolio-stat-icon-wrap.icon-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
}

[data-theme="light"] .portfolio-breakdown-card,
[data-theme="light"] .portfolio-active-deck {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .portfolio-empty-title {
  color: #0f172a;
}

[data-theme="light"] .portfolio-empty-sub {
  color: #64748b;
}

/* Quant Empty State Illustration & Action */
.quant-empty-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
}

[data-theme="dark"] .quant-empty-icon-circle {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(2, 132, 199, 0.05) 100%);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.btn-quant-empty-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   WALLET PAGE VIEW STYLES (Screenshots 1, 2, 3, 4, 5)
   ========================================================================== */
.wallet-page-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 32px;
  gap: 20px;
}

/* Header Deck */
.wallet-header-deck {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wallet-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.wallet-main-sub {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.wallet-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-wallet-action-deposit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5b152;
  color: #0d1117;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wallet-action-deposit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-wallet-action-withdraw {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #191e29;
  border: 1px solid #2d3648;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wallet-action-withdraw:hover,
.btn-wallet-action-transfer:hover {
  background: #222938;
  border-color: #3e4a62;
}

.wallet-btn-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5b152;
  box-shadow: 0 0 8px rgba(229, 177, 82, 0.7);
}

.btn-wallet-action-transfer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #191e29;
  border: 1px solid #2d3648;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Nav Tabs Pill Bar */
.wallet-nav-tabs-deck {
  display: flex;
  align-items: center;
  background: #141822;
  border: 1px solid #222a38;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  width: 100%;
}

.wallet-nav-tab {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8b95a5;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.wallet-nav-tab.active {
  background: #242c3c;
  border-color: #3b465c;
  color: #ffffff;
  font-weight: 600;
}

/* Summary Section Card */
.wallet-summary-card {
  background: #11141e;
  border: 1px solid #202636;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-summary-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
  margin: 0;
}

.wallet-summary-icon {
  color: #6b7280;
}

/* 3 Cards Grid */
.wallet-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wallet-stat-card {
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 120px;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.wallet-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.wallet-stat-card.card-blue {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.32) 0%, rgba(37, 99, 235, 0.12) 50%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.22);
}

.wallet-stat-card.card-green {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.32) 0%, rgba(2, 132, 199, 0.12) 50%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 4px 18px rgba(14, 116, 144, 0.22);
}

.wallet-stat-card.card-red {
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.32) 0%, rgba(79, 70, 229, 0.12) 50%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 4px 18px rgba(67, 56, 202, 0.22);
}

.wallet-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-blue .wallet-stat-label {
  color: #60a5fa;
  font-size: 0.825rem;
  font-weight: 600;
}

.card-green .wallet-stat-label {
  color: #38bdf8;
  font-size: 0.825rem;
  font-weight: 600;
}

.card-red .wallet-stat-label {
  color: #818cf8;
  font-size: 0.825rem;
  font-weight: 600;
}

.wallet-stat-icon.blue { color: #60a5fa; }
.wallet-stat-icon.green,
.wallet-stat-icon.cyan { color: #38bdf8; }
.wallet-stat-icon.red,
.wallet-stat-icon.indigo { color: #818cf8; }

.wallet-stat-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.wallet-big-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.wallet-sub-breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}

.wallet-sub-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallet-sub-breakdown-row strong {
  color: #ffffff;
  font-weight: 600;
}

.wallet-stat-single-val {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 0;
}

/* Filters Section */
.wallet-filters-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-filters-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wallet-filters-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.wallet-filters-row .wallet-filter-control,
.wallet-filters-row .wallet-date-control {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
}

.wallet-filters-row .wallet-select-btn,
.wallet-filters-row .wallet-date-input-wrap,
.wallet-filters-row .wallet-search-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.wallet-filters-row-bottom {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.wallet-filters-row-bottom .wallet-filter-control {
  display: flex;
}

.wallet-filters-row-bottom .wallet-select-btn {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.wallet-filters-row-bottom .wallet-date-control {
  display: flex;
}

.wallet-filters-row-bottom .wallet-date-input-wrap {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.wallet-filter-control {
  display: inline-flex;
}

.wallet-filter-control.flex-grow {
  flex: 1;
  min-width: 160px;
}

.wallet-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #141824;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
  user-select: none;
}

.wallet-select-btn:hover {
  border-color: #3b465e;
  background: #181e2d;
}

.wallet-search-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  background: #141824;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.wallet-search-input:focus {
  border-color: #4b5563;
}

.wallet-search-input::placeholder {
  color: #6b7280;
}

.wallet-date-control {
  display: inline-flex;
}

.wallet-date-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #141824;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wallet-date-input-wrap:hover {
  border-color: #3b465e;
}

.wallet-date-input-wrap svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.wallet-date-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}

.btn-wallet-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141824;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 9px 20px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 42px;
  box-sizing: border-box;
}

.btn-wallet-clear-filters:hover {
  background: #1d2334;
  border-color: #3e4a64;
}

/* Custom Dropdown Menu (Screenshot 5) */
.wallet-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: #161b26;
  border: 1px solid #273144;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  z-index: 99999;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  box-sizing: border-box;
}

.wallet-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.825rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 12px;
  white-space: nowrap;
}

.wallet-dropdown-item:hover {
  background: #202738;
  color: #ffffff;
}

.wallet-dropdown-item.active {
  color: #ffffff;
  background: #1e2536;
  font-weight: 600;
}

.wallet-dropdown-item .chk-icon {
  display: none;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 600;
}

.wallet-dropdown-item.active .chk-icon {
  display: inline-block;
}

/* Table Summary Bar */
.wallet-table-summary-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.wallet-metrics-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.wallet-metrics-summary .metric-credit strong {
  color: #10b981;
  font-weight: 600;
}

.wallet-metrics-summary .metric-debit strong {
  color: #ef4444;
  font-weight: 600;
}

.btn-wallet-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141824;
  border: 1px solid #242c3d;
  border-radius: 6px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wallet-export:hover {
  background: #1e2434;
  border-color: #3b465e;
}

/* Clean Table */
.wallet-table-card {
  background: #11141e;
  border: 1px solid #202636;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
}

.wallet-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
}

.wallet-clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.wallet-clean-table th {
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  background: #141721;
  border-bottom: 1px solid #202636;
  white-space: nowrap;
}

.wallet-clean-table td {
  padding: 14px 18px;
  font-size: 0.825rem;
  color: #ffffff;
  border-bottom: 1px solid #1a1f2c;
  white-space: nowrap;
}

.wallet-clean-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Empty State */
.wallet-empty-state-deck {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
}

.wallet-empty-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #181d2a;
  border: 1px solid #263042;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.wallet-empty-text {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .wallet-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR WALLET PAGE VIEW
   ========================================================================== */
[data-theme="light"] .wallet-main-title {
  color: #0f172a;
}

[data-theme="light"] .wallet-main-sub {
  color: #64748b;
}

[data-theme="light"] .btn-wallet-action-withdraw,
[data-theme="light"] .btn-wallet-action-transfer {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-wallet-action-withdraw:hover,
[data-theme="light"] .btn-wallet-action-transfer:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .wallet-nav-tabs-deck {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .wallet-nav-tab {
  color: #64748b;
}

[data-theme="light"] .wallet-nav-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .wallet-nav-tab.active {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wallet-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .wallet-summary-title {
  color: #0f172a;
}

[data-theme="light"] .wallet-summary-icon {
  color: #94a3b8;
}

[data-theme="light"] .wallet-stat-card {
  background: #E8EFF5;
  border: 1px solid #dae3eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18, 78, 111, 0.05);
}

[data-theme="light"] .wallet-stat-card:hover {
  background: #dde7ef;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 78, 111, 0.10);
}

[data-theme="light"] .wallet-stat-card.card-blue {
  background: #E8EFF5;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

[data-theme="light"] .card-blue .wallet-stat-label {
  color: #1d4ed8;
}

[data-theme="light"] .wallet-stat-card.card-green {
  background: #E8EFF5;
  border: 1px solid rgba(2, 132, 199, 0.28);
}

[data-theme="light"] .card-green .wallet-stat-label {
  color: #0284c7;
}

[data-theme="light"] .wallet-stat-card.card-red {
  background: #E8EFF5;
  border: 1px solid rgba(79, 70, 229, 0.28);
}

[data-theme="light"] .card-red .wallet-stat-label {
  color: #4f46e5;
}

[data-theme="light"] .wallet-stat-icon.blue { color: #1d4ed8; }
[data-theme="light"] .wallet-stat-icon.green,
[data-theme="light"] .wallet-stat-icon.cyan { color: #0284c7; }
[data-theme="light"] .wallet-stat-icon.red,
[data-theme="light"] .wallet-stat-icon.indigo { color: #4f46e5; }

[data-theme="light"] .wallet-big-val,
[data-theme="light"] .wallet-stat-single-val {
  color: #0f172a;
}

[data-theme="light"] .wallet-sub-breakdown {
  color: #64748b;
}

[data-theme="light"] .wallet-sub-breakdown-row strong {
  color: #0f172a;
}

[data-theme="light"] .wallet-select-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .wallet-select-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

[data-theme="light"] .wallet-search-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .wallet-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .wallet-search-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .wallet-date-input-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .wallet-date-input-wrap:hover {
  border-color: #94a3b8;
}

[data-theme="light"] .wallet-date-input-wrap svg {
  color: #64748b;
}

[data-theme="light"] .wallet-date-input {
  color: #0f172a;
}

[data-theme="light"] .btn-wallet-clear-filters {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

[data-theme="light"] .btn-wallet-clear-filters:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .wallet-dropdown-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .wallet-dropdown-item {
  color: #475569;
}

[data-theme="light"] .wallet-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .wallet-dropdown-item.active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

[data-theme="light"] .wallet-metrics-summary {
  color: #64748b;
}

[data-theme="light"] .btn-wallet-export {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-wallet-export:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .wallet-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 240px;
}

[data-theme="light"] .wallet-clean-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .wallet-clean-table td {
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .wallet-clean-table tr:hover td {
  background: #f8fafc;
}

[data-theme="light"] .wallet-empty-icon-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .wallet-empty-text {
  color: #64748b;
}

/* =====================================================================
   11. REWARDS & EARNINGS DESIGN SYSTEM (Refer & Earn, Community Network)
   ===================================================================== */
.rewards-page-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.rewards-header-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.rewards-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.rewards-main-sub {
  font-size: 0.865rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.btn-faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-faq-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-rewards-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-rewards-back:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

.rewards-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-sizing: border-box;
  overflow: visible;
}

.rewards-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rewards-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.rewards-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.badge-pill-inactive {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.refer-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .refer-grid-two-col {
    grid-template-columns: 1fr;
  }
}

.refer-field-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.refer-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 42px;
  box-sizing: border-box;
}

.refer-code-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5a93b;
  letter-spacing: 0.8px;
  font-family: monospace, 'Space Grotesk', sans-serif;
}

.btn-copy-code-icon {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.btn-copy-code-icon:hover {
  color: var(--text-primary);
}

.refer-link-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
}

.btn-refer-glow {
  flex: 1;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: rgba(229, 169, 59, 0.08);
  border: 1px solid rgba(229, 169, 59, 0.4);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(229, 169, 59, 0.1);
}

.btn-refer-glow:hover {
  background: rgba(229, 169, 59, 0.15);
  border-color: rgba(229, 169, 59, 0.6);
  transform: translateY(-1px);
}

.btn-refer-plain {
  flex: 1;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refer-plain:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Section Title */
.rewards-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 0;
}

.rewards-section-title svg {
  color: #94a3b8;
}

/* Stat Grids */
.rewards-stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rewards-stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .rewards-stat-grid-3, .rewards-stat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rewards-stat-grid-3, .rewards-stat-grid-4 {
    grid-template-columns: 1fr;
  }
}

.rewards-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}

.rewards-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rewards-stat-name {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

.rewards-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* Start Your Badge Journey Banner */
.badge-journey-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(229, 169, 59, 0.12) 0%, rgba(18, 78, 111, 0.18) 100%);
  border: 1px solid rgba(229, 169, 59, 0.28);
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .badge-journey-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.journey-left-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.journey-rocket-icon-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.journey-star-mini {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #101620;
  border: 2px solid #0c1119;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-welcome-tag {
  font-size: 0.785rem;
  font-weight: 700;
  color: #e5a93b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.journey-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.journey-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  max-width: 680px;
}

.btn-start-investing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.btn-start-investing:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Unlock First Badge */
.unlock-badge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.unlock-badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unlock-badge-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.unlock-badge-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.badge-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .badge-req-grid {
    grid-template-columns: 1fr;
  }
}

.badge-req-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-req-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.req-circle-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.req-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.req-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.req-val-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.req-curr-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.req-target-val {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.req-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.req-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e5a93b);
  border-radius: 9999px;
}

.req-foot-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.req-needed-text {
  color: #e5a93b;
  font-weight: 600;
}

.badge-benefits-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.benefits-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefits-items-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.benefit-item:hover {
  color: #e5a93b;
}

.btn-explore-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.35);
  color: #e5a93b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-explore-badges:hover {
  background: rgba(229, 169, 59, 0.2);
  border-color: rgba(229, 169, 59, 0.5);
  transform: translateY(-1px);
}

/* Bonus Transactions */
.bonus-tx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bonus-tx-title-deck {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bonus-wallet-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bonus-tx-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.bonus-tx-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.bonus-tx-actions-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
}

.btn-tx-tool {
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-tx-tool:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.bonus-tx-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
}

.tx-empty-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tx-empty-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.tx-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ================= COMMUNITY NETWORK STYLES ================= */
.tier-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tier-left-deck {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-ribbon-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tier-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tier-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.tier-right-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tier-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-select-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-stats-box {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
}

.tier-stat-total {
  color: #e5a93b;
  font-weight: 700;
}

.tier-stat-active {
  color: #10b981;
  font-weight: 700;
}

.tier-stat-inactive {
  color: #f59e0b;
  font-weight: 700;
}

.btn-tier-refresh {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tier-refresh:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.directory-main-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.directory-header-deck {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-users-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.directory-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.directory-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.community-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

@media (max-width: 900px) {
  .community-filter-row {
    flex-wrap: wrap;
  }
}

.community-search-wrap {
  flex: 1 1 240px;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.community-filter-row .wallet-select-wrap {
  width: auto;
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
}

.community-filter-row .wallet-select-btn {
  width: auto;
  min-width: 125px;
  height: 42px;
  white-space: nowrap;
}

.community-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.community-search-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px 0 40px;
  color: var(--text-primary);
  font-size: 0.85rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.community-search-input:focus {
  border-color: #1b6a95;
}

.community-empty-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
  gap: 12px;
}

.community-empty-users-icon {
  color: #64748b;
}

.community-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.btn-community-try-again {
  padding: 9px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-community-try-again:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ================= LIGHT THEME OVERRIDES FOR REWARDS ================= */
[data-theme="light"] .rewards-card {
  background: #ffffff;
  border-color: #dae3eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-faq-pill {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .btn-faq-pill:hover {
  background: #f1f5f9;
}

[data-theme="light"] .btn-rewards-back {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .badge-pill-inactive {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

[data-theme="light"] .refer-code-box {
  background: #E8EFF5;
  border-color: #dae3eb;
}

[data-theme="light"] .btn-refer-glow {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

[data-theme="light"] .btn-refer-plain {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .btn-refer-plain:hover {
  background: #f8fafc;
}

[data-theme="light"] .rewards-stat-card {
  background: #E8EFF5;
  border: 1px solid #dae3eb;
}

[data-theme="light"] .rewards-stat-name {
  color: #475569;
}

[data-theme="light"] .rewards-stat-val {
  color: #0f172a;
}

[data-theme="light"] .badge-journey-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #e0f2fe 100%);
  border-color: #fde68a;
}

[data-theme="light"] .journey-star-mini {
  background: #ffffff;
  border-color: #fef3c7;
}

[data-theme="light"] .badge-req-card {
  background: #E8EFF5;
  border-color: #dae3eb;
}

[data-theme="light"] .req-circle-icon {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .req-progress-track {
  background: #cbd5e1;
}

[data-theme="light"] .badge-benefits-deck {
  border-top-color: #dae3eb;
}

[data-theme="light"] .btn-explore-badges {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

[data-theme="light"] .bonus-tx-actions-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .tx-empty-icon-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

[data-theme="light"] .btn-tier-refresh {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .community-search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-community-try-again {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ================= BONUS SUMMARY SECTION ================= */
.bonus-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bonus-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bonus-circle-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bonus-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.bonus-card-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.bonus-summary-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bonus-stat-badge {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  border-radius: 10px;
  min-width: 140px;
  text-align: center;
  box-sizing: border-box;
}

.bonus-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.bonus-stat-value {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-family: var(--font-display, inherit);
}

.bonus-stat-badge.badge-credits,
.bonus-stat-badge.badge-debits,
.bonus-stat-badge.badge-balance {
  background: rgba(18, 78, 111, 0.22);
  border: 1px solid rgba(41, 182, 246, 0.3);
}
.bonus-stat-badge.badge-credits .bonus-stat-label { color: #34d399; }
.bonus-stat-value.text-credits { color: #10b981; }

.bonus-stat-badge.badge-debits .bonus-stat-label { color: #f87171; }
.bonus-stat-value.text-debits { color: #ef4444; }

.bonus-stat-badge.badge-balance .bonus-stat-label { color: #fbbf24; }
.bonus-stat-value.text-balance { color: #e5a93b; }

.bonus-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bonus-filter-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-bonus-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bonus-clear-all:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Custom Select Wrapper for proper positioning */
.wallet-select-wrap {
  position: relative;
  display: inline-block;
  width: auto;
}

.bonus-filter-field .wallet-select-wrap {
  width: 100%;
  display: block;
}

.bonus-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .bonus-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bonus-filter-grid {
    grid-template-columns: 1fr;
  }
}

.bonus-filter-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.bonus-field-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.bonus-filter-field .wallet-select-wrap {
  width: 100%;
  position: relative;
  display: block;
}

.bonus-filter-field .wallet-select-btn {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(18, 78, 111, 0.22);
  border: 1px solid rgba(41, 182, 246, 0.3);
  color: #ffffff;
}

.bonus-filter-field .wallet-select-btn:hover {
  background: rgba(18, 78, 111, 0.35);
  border-color: rgba(41, 182, 246, 0.5);
}

.bonus-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bonus-date-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: rgba(18, 78, 111, 0.22);
  border: 1px solid rgba(41, 182, 246, 0.3);
  padding: 0 36px 0 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
}

.bonus-date-input:focus {
  border-color: #1b6a95;
  background: rgba(18, 78, 111, 0.35);
}

.bonus-calendar-icon {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.bonus-filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bonus-filter-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-bonus-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 42px;
  border-radius: 8px;
  background: #e5a93b;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bonus-search:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-bonus-export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bonus-export-pdf:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.bonus-history-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bonus-empty-state {
  padding: 48px 20px;
  text-align: center;
}

/* ================= WELCOME REWARDS SECTION ================= */
.welcome-how-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5a93b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.welcome-how-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.welcome-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid #f59e0b;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.welcome-alert-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.welcome-alert-icon {
  flex-shrink: 0;
  color: #f59e0b;
}

.welcome-alert-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.welcome-alert-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

.welcome-alert-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.welcome-level-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-level-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 700;
}

.welcome-level-badge.level-0 {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.welcome-level-badge.level-2 {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.welcome-level-arrow {
  color: var(--text-muted);
}

.btn-welcome-complete-kyc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #e5a93b;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-welcome-complete-kyc:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.welcome-main-card {
  padding: 64px 24px;
}

.welcome-center-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  gap: 14px;
}

.welcome-gift-wrap {
  position: relative;
  margin-bottom: 6px;
}

.welcome-gift-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-sparkle-star {
  position: absolute;
  top: -6px;
  right: -6px;
}

.welcome-empty-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.welcome-empty-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.welcome-cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-welcome-primary-kyc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  background: #e5a93b;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-welcome-primary-kyc:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-welcome-secondary-faq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-welcome-secondary-faq:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================= REFER & EARNINGS FAQ SECTION ================= */
.faq-top-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-section-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bg-card-border);
}

.faq-item {
  border-bottom: 1px solid var(--bg-card-border);
  transition: background-color 0.2s ease;
  border-radius: 8px;
  margin: 2px 0;
}

.faq-item.open.active-highlight,
.faq-item.open {
  background: rgba(229, 169, 59, 0.08);
}

.faq-item-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.925rem;
  font-weight: 600;
  outline: none;
  border-radius: 8px;
}

.faq-item-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-item-chevron {
  transform: rotate(180deg);
}

.faq-item-body {
  display: none;
  padding: 0 14px 16px 14px;
}

.faq-item.open .faq-item-body {
  display: block;
}

.faq-item-body p {
  margin: 0;
  font-size: 0.865rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================= LIGHT THEME OVERRIDES FOR BONUS, WELCOME & FAQ ================= */
[data-theme="light"] .bonus-circle-icon-box,
[data-theme="light"] .faq-top-icon-box {
  background: #fef3c7;
  border-color: #fde68a;
}

[data-theme="light"] .bonus-stat-badge,
[data-theme="light"] .bonus-stat-badge.badge-credits,
[data-theme="light"] .bonus-stat-badge.badge-debits,
[data-theme="light"] .bonus-stat-badge.badge-balance {
  background: #E8EFF5 !important;
  border: 1px solid #cbdbe8 !important;
  box-shadow: 0 1px 2px rgba(18, 78, 111, 0.04);
}

[data-theme="light"] .bonus-stat-badge .bonus-stat-label,
[data-theme="light"] .bonus-stat-badge.badge-credits .bonus-stat-label,
[data-theme="light"] .bonus-stat-badge.badge-debits .bonus-stat-label,
[data-theme="light"] .bonus-stat-badge.badge-balance .bonus-stat-label {
  color: #475569 !important;
}

[data-theme="light"] .bonus-stat-value.text-credits {
  color: #10b981 !important;
}

[data-theme="light"] .bonus-stat-value.text-debits {
  color: #ef4444 !important;
}

[data-theme="light"] .bonus-stat-value.text-balance {
  color: #d97706 !important;
}

[data-theme="light"] .btn-bonus-clear-all {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .btn-bonus-clear-all:hover {
  background: #f8fafc;
}

/* Blue shade for Income Type, Transaction Type, Source, Destination, From Date, To Date */
[data-theme="light"] .bonus-filter-field .wallet-select-btn,
[data-theme="light"] .bonus-filter-field .bonus-date-input,
[data-theme="light"] .bonus-filter-actions-row .wallet-select-btn,
[data-theme="light"] .tier-right-controls .wallet-select-btn,
[data-theme="light"] .community-filter-row .wallet-select-btn,
[data-theme="light"] .community-filter-row .community-search-input {
  background: #E8EFF5 !important;
  border: 1px solid #cbdbe8 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(18, 78, 111, 0.04);
}

[data-theme="light"] .bonus-filter-field .wallet-select-btn:hover,
[data-theme="light"] .bonus-filter-field .bonus-date-input:focus,
[data-theme="light"] .bonus-filter-actions-row .wallet-select-btn:hover,
[data-theme="light"] .tier-right-controls .wallet-select-btn:hover,
[data-theme="light"] .community-filter-row .wallet-select-btn:hover,
[data-theme="light"] .community-filter-row .community-search-input:focus {
  background: #dde8f2 !important;
  border-color: #9cbdd8 !important;
}

[data-theme="light"] .btn-bonus-export-pdf {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .btn-bonus-export-pdf:hover {
  background: #f8fafc;
}

[data-theme="light"] .welcome-alert-banner {
  background: #fffdf5;
  border-color: #f59e0b;
}

[data-theme="light"] .welcome-level-badge.level-0 {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

[data-theme="light"] .welcome-level-badge.level-2 {
  background: #dcfce7;
  color: #10b981;
  border-color: #86efac;
}

[data-theme="light"] .welcome-gift-icon-box {
  background: #fef3c7;
  border-color: #fde68a;
}

[data-theme="light"] .btn-welcome-secondary-faq {
  background: #ffffff;
  border-color: #dae3eb;
  color: #0f172a;
}

[data-theme="light"] .btn-welcome-secondary-faq:hover {
  background: #f8fafc;
}

[data-theme="light"] .faq-item.active-highlight,
[data-theme="light"] .faq-item.open {
  background: #fef9ee;
}

[data-theme="light"] .faq-item {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .faq-accordion-list {
  border-top-color: #f1f5f9;
}

/* ================= ACCOUNT AND SETTINGS PAGES UI ================= */
.settings-page-view {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
}

.settings-header-deck {
  margin-bottom: 2px;
}

.settings-main-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-main-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

[data-theme="light"] .settings-card {
  background: #ffffff;
  border-color: #dae3eb;
}

.settings-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.settings-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.settings-card-header-underlined {
  border-bottom: 1px dotted var(--text-muted);
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 16px;
}

.settings-card-header-underlined .settings-card-title,
.settings-card-header-underlined .settings-main-title {
  margin: 0;
}

.settings-kyc-pill {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

/* Profile details */
.settings-profile-main-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.settings-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e8eff5;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

[data-theme="dark"] .settings-avatar-circle {
  background: #1e293b;
  color: #f8fafc;
}

.settings-user-info-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-pf-account {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.settings-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.settings-contact-row svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

/* INVITE & EARN */
.settings-invite-section {
  border-top: 1px solid var(--bg-card-border);
  padding-top: 20px;
}

[data-theme="light"] .settings-invite-section {
  border-top-color: #f1f5f9;
}

.settings-invite-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.settings-invite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settings-invite-box {
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .settings-invite-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

.settings-invite-box-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px dotted var(--text-muted);
  display: inline-block;
  align-self: flex-start;
}

.settings-referral-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-referral-code-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 0.08em;
  font-family: var(--font-mono, monospace);
}

.settings-icon-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.settings-icon-copy-btn:hover {
  color: var(--text-primary);
}

.settings-referral-actions-row {
  display: flex;
  gap: 10px;
}

.settings-btn-pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .settings-btn-pill-action {
  background: #ffffff;
  border-color: #cbd5e1;
}

.settings-btn-pill-action:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-gold);
}

/* Two col grid for Sponsor and Set Username */
.settings-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .settings-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.settings-sponsor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.settings-sponsor-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.settings-sponsor-badge {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.885rem;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .settings-sponsor-badge {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.settings-edit-square-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e5b382;
  color: #431407;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition-fast);
}

.settings-edit-square-btn:hover {
  filter: brightness(0.95);
}

.settings-username-input-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.885rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .settings-input {
  border-color: #cbd5e1;
}

.settings-input:focus {
  border-color: #d97706;
}

.settings-field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Country of nationality */
.settings-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-nationality-body {
  margin-top: 14px;
}

.settings-select-wrap {
  width: 100%;
}

.settings-select {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.885rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .settings-select {
  border-color: #cbd5e1;
}

.settings-select:focus {
  border-color: #d97706;
}

.settings-helper-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.settings-btn-save-tan {
  background: #e5b382;
  color: #431407;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.885rem;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.settings-btn-save-tan:hover {
  filter: brightness(0.95);
}

/* Empty state */
.settings-empty-state {
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.settings-empty-icon-wrap {
  margin-bottom: 8px;
  opacity: 0.8;
}

.settings-empty-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-empty-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  max-width: 440px;
}

/* Security rows */
.settings-items-list {
  display: flex;
  flex-direction: column;
}

.settings-row-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-card-border);
}

[data-theme="light"] .settings-row-item {
  border-bottom-color: #f1f5f9;
}

.settings-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row-item:first-child {
  padding-top: 4px;
}

.settings-row-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(229, 179, 130, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .settings-row-icon-box {
  background: rgba(229, 179, 130, 0.12);
}

.settings-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-row-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-row-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.settings-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.settings-status-badge.active {
  background: #dcfce7;
  color: #15803d;
}

.settings-status-badge.inactive {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.settings-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

[data-theme="light"] .settings-btn-manage {
  background: #ffffff;
  border-color: #cbd5e1;
}

.settings-btn-manage:hover {
  background: var(--bg-surface-hover);
  border-color: #d97706;
}

/* KYC page styles */
.settings-kyc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.settings-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .settings-btn-refresh {
  background: #ffffff;
  border-color: #cbd5e1;
}

.settings-btn-refresh:hover {
  background: var(--bg-surface-hover);
}

.settings-kyc-refresh-note {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 10px;
}

.settings-kyc-step-card {
  padding: 18px 24px;
}

.settings-kyc-step-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.settings-kyc-step-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.settings-kyc-step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-kyc-step-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-kyc-step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.settings-kyc-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: #d97706;
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
  cursor: pointer;
}

.settings-kyc-link:hover {
  text-decoration: underline;
}

.settings-kyc-progress-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 2px solid #f3e8d9;
}

[data-theme="dark"] .settings-kyc-progress-card {
  border-bottom-color: rgba(229, 179, 130, 0.2);
}

.settings-kyc-progress-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-kyc-levels-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.settings-kyc-progress-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.settings-kyc-percentage-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.settings-kyc-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
}

.settings-kyc-pct-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.settings-kyc-benefits-deck {
  margin-top: 6px;
}

.settings-section-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.settings-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.settings-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.settings-benefit-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-benefit-icon-box.emerald {
  background: #dcfce7;
}

.settings-benefit-icon-box.blue {
  background: #e0f2fe;
}

.settings-benefit-icon-box.purple {
  background: #f3e8ff;
}

[data-theme="dark"] .settings-benefit-icon-box.emerald {
  background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .settings-benefit-icon-box.blue {
  background: rgba(2, 132, 199, 0.15);
}

[data-theme="dark"] .settings-benefit-icon-box.purple {
  background: rgba(147, 51, 234, 0.15);
}

.settings-benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-benefit-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Phone Number Management Styles (Image 3) */
.settings-back-link-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.settings-back-link-btn:hover {
  color: var(--text-primary);
}

.settings-phone-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-phone-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.settings-warning-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.785rem;
  font-weight: 700;
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

[data-theme="dark"] .settings-warning-pill {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

.settings-close-x-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.settings-close-x-btn:hover {
  color: var(--text-primary);
}

.settings-link-orange {
  color: #d97706;
  text-decoration: none;
  font-weight: 600;
}

.settings-link-orange:hover {
  text-decoration: underline;
}

.settings-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Verification Levels Cards (Images 1 & 2) */
.settings-verification-level-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.settings-verification-requirements {
  margin-top: 16px;
  margin-bottom: 6px;
  flex: 1;
}

.settings-req-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.settings-req-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.settings-req-list li {
  margin-bottom: 6px;
}

/* FAQs Accordion on KYC Page (Images 1 & 2) */
.settings-faq-card {
  padding: 24px;
}

.settings-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  overflow: hidden;
}

[data-theme="light"] .settings-faq-accordion {
  border-color: #e2e8f0;
}

.settings-faq-item {
  border-bottom: 1px solid var(--bg-card-border);
  transition: background var(--transition-fast);
}

[data-theme="light"] .settings-faq-item {
  border-bottom-color: #f1f5f9;
}

.settings-faq-item:last-child {
  border-bottom: none;
}

.settings-faq-item.open,
.settings-faq-item.active-highlight {
  background: #fef9ee;
}

[data-theme="dark"] .settings-faq-item.open,
[data-theme="dark"] .settings-faq-item.active-highlight {
  background: rgba(229, 179, 130, 0.08);
}

.settings-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 14px;
}

.settings-faq-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-faq-chevron {
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.settings-faq-item.open .settings-faq-chevron {
  transform: rotate(180deg);
}

.settings-faq-body {
  padding: 0 20px 18px 20px;
}

.settings-faq-body p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   1. COMPLETE PROFILE MODAL STYLES (MATCHING USER IMAGE 1)
   ===================================================================== */
.modal-profile-complete-box {
  max-width: 460px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px 28px 28px 28px;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .modal-profile-complete-box {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

.modal-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.modal-profile-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

[data-theme="light"] .modal-profile-title {
  color: #111827;
}

.modal-profile-sub {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.45;
}

[data-theme="light"] .modal-profile-sub {
  color: #6b7280;
}

.modal-profile-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

[data-theme="light"] .modal-profile-close-btn {
  border-color: #d1d5db;
  color: #4b5563;
}

.modal-profile-close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Info Notice Box */
.profile-info-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  margin-bottom: 20px;
}

[data-theme="light"] .profile-info-alert {
  background: #ffffff;
  border-color: #e5e7eb;
}

.profile-info-alert-icon {
  flex-shrink: 0;
  color: var(--text-primary);
  margin-top: 2px;
  display: flex;
  align-items: center;
}

[data-theme="light"] .profile-info-alert-icon {
  color: #374151;
}

.profile-info-alert-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

[data-theme="light"] .profile-info-alert-text {
  color: #4b5563;
}

/* Modal Form Fields */
.profile-modal-group {
  margin-bottom: 18px;
}

.profile-modal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

[data-theme="light"] .profile-modal-label {
  color: #111827;
}

.profile-modal-label svg {
  color: var(--text-primary);
  flex-shrink: 0;
}

[data-theme="light"] .profile-modal-label svg {
  color: #111827;
}

.profile-req-star {
  color: #ef4444;
}

.profile-modal-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="light"] .profile-modal-input {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.profile-modal-input:focus {
  border-color: #d97706;
}

.profile-modal-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

[data-theme="light"] .profile-modal-hint {
  color: #6b7280;
}

/* Email with inline Verified badge */
.profile-email-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-email-input {
  padding-right: 110px;
}

.profile-verified-pill {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.775rem;
  font-weight: 600;
  pointer-events: none;
}

[data-theme="light"] .profile-verified-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* Mobile input row with flag selector */
.profile-mobile-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-country-code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .profile-country-code-btn {
  border-color: #e5e7eb;
  background: #ffffff;
}

.profile-country-code-btn:hover {
  border-color: #d97706;
}

.profile-code-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.profile-mobile-input {
  flex: 1;
  height: 42px;
}

/* Complete Profile Button */
.btn-complete-profile-submit {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: none;
  background: #deb688;
  color: #523719;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-complete-profile-submit:hover {
  background: #d4a36e;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-complete-profile-submit {
  background: #d97706;
  color: #ffffff;
}

[data-theme="dark"] .btn-complete-profile-submit:hover {
  background: #b45309;
}


/* =====================================================================
   2. CUSTOM COUNTRY DROPDOWN (SOLVES UGLY OS SELECT POPUP)
   ===================================================================== */
.custom-country-picker {
  position: relative;
  width: 100%;
}

.custom-country-trigger {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.9rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
  text-align: left;
}

[data-theme="light"] .custom-country-trigger {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.custom-country-trigger:focus,
.custom-country-picker.open .custom-country-trigger {
  border-color: #d97706;
}

.country-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.country-name {
  font-weight: 500;
}

.country-chevron {
  stroke: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.custom-country-picker.open .country-chevron {
  transform: rotate(180deg);
}

/* Floating Country Menu */
.custom-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.25), 0 4px 10px -2px rgba(0, 0, 0, 0.1);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: countryMenuFadeIn 0.15s ease-out;
}

@keyframes countryMenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .custom-country-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-card-border);
  background: var(--bg-surface-elevated);
}

[data-theme="light"] .country-search-wrap {
  border-bottom-color: #f1f5f9;
  background: #f8fafc;
}

.country-search-wrap svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.country-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--input-text);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  max-height: 220px;
}

.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

[data-theme="light"] .country-item {
  color: #1e293b;
}

.country-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-item:hover {
  background: var(--bg-surface-hover);
}

[data-theme="light"] .country-item:hover {
  background: #f1f5f9;
}

.country-item.selected {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  font-weight: 600;
}

[data-theme="light"] .country-item.selected {
  background: #fffbeb;
  color: #b45309;
}

.country-item-check {
  color: #d97706;
  font-size: 0.85rem;
}


/* =====================================================================
   3. SUPPORT PAGE UI (MATCHING USER IMAGES 3 & 4)
   ===================================================================== */
.support-page-view {
  width: 100%;
  max-width: 1280px;
  padding: 24px 32px 60px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .support-page-view {
    padding: 16px;
  }
}

.support-header-deck {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.support-main-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.support-main-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Header Action Buttons */
.btn-support-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .btn-support-header-action {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-support-header-action:hover {
  background: var(--bg-surface-hover);
  border-color: #d97706;
}

.btn-support-create-solid {
  background: #deb688 !important;
  border-color: #deb688 !important;
  color: #452a12 !important;
}

.btn-support-create-solid:hover {
  background: #d4a36e !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-support-create-solid {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

/* 2-Column Grid for Create Ticket */
.support-create-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .support-create-grid {
    grid-template-columns: 1fr;
  }
}

/* Main Form Card */
.support-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-top: 3px solid #deb688;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .support-form-card {
  background: #ffffff;
  border-color: #e2e8f0;
  border-top-color: #deb688;
}

.support-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.support-card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-icon-orange {
  background: rgba(229, 169, 59, 0.14);
  color: #d97706;
}

[data-theme="light"] .support-icon-orange {
  background: #fdf5ea;
  color: #d97706;
}

.support-icon-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

[data-theme="light"] .support-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.support-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.support-card-sub {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Support Form Elements */
.support-form-group {
  margin-bottom: 20px;
}

.support-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.support-req {
  color: #ef4444;
}

.support-optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.support-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.885rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .support-input {
  border-color: #cbd5e1;
  background: #ffffff;
}

.support-input:focus,
.support-textarea:focus {
  border-color: #d97706;
}

.support-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.885rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .support-textarea {
  border-color: #cbd5e1;
  background: #ffffff;
}

.support-desc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.775rem;
}

.support-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.support-counter {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Upload Dropzone */
.support-upload-dropzone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 6px;
}

[data-theme="light"] .support-upload-dropzone {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.support-upload-dropzone:hover {
  border-color: #d97706;
  background: var(--bg-surface-hover);
}

.support-upload-dropzone svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.support-upload-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.support-upload-clear:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-support-submit {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: none;
  background: #deb688;
  color: #452a12;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  margin-top: 10px;
}

.btn-support-submit:hover {
  background: #d4a36e;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-support-submit {
  background: #d97706;
  color: #ffffff;
}

[data-theme="dark"] .btn-support-submit:hover {
  background: #b45309;
}

/* Right Column Sidebar Cards Stack */
.support-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .support-info-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.support-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.support-info-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-circle-orange {
  background: rgba(229, 169, 59, 0.18);
  color: #d97706;
}

[data-theme="light"] .support-circle-orange {
  background: #fef3c7;
  color: #d97706;
}

.support-circle-blue {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

[data-theme="light"] .support-circle-blue {
  background: #dbeafe;
  color: #2563eb;
}

.support-circle-green {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

[data-theme="light"] .support-circle-green {
  background: #dcfce7;
  color: #16a34a;
}

.support-info-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Quick Tips List */
.support-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-tips-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.support-tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #d97706;
}

/* Response Time Rows */
.support-response-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.support-response-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

.support-row-label {
  color: var(--text-secondary);
}

.support-row-val {
  font-weight: 700;
  color: var(--text-primary);
}

.support-footnote {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Security Notice Card */
.support-security-card {
  background: rgba(22, 163, 74, 0.05);
  border-color: rgba(22, 163, 74, 0.2);
}

[data-theme="light"] .support-security-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.support-security-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .support-security-text {
  color: #166534;
}


/* =====================================================================
   4. MY SUPPORT TICKETS VIEW (IMAGE 4)
   ===================================================================== */
.support-tickets-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-top: 3px solid #3b82f6;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .support-tickets-card {
  background: #ffffff;
  border-color: #e2e8f0;
  border-top-color: #3b82f6;
}

.support-tickets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.support-tickets-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-support-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .btn-support-refresh {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-support-refresh:hover {
  background: var(--bg-surface-hover);
  border-color: #3b82f6;
}

.btn-support-refresh.spinning svg {
  animation: spinRefresh 0.7s linear infinite;
}

@keyframes spinRefresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Filter Bar */
.support-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .support-filter-bar {
    flex-direction: column;
  }
}

.support-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.support-search-icon {
  position: absolute;
  left: 14px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.support-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .support-search-input {
  border-color: #cbd5e1;
  background: #ffffff;
}

.support-search-input:focus {
  border-color: #3b82f6;
}

.support-status-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.support-funnel-icon {
  position: absolute;
  left: 12px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.support-status-select {
  padding: 10px 32px 10px 36px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

[data-theme="light"] .support-status-select {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

/* Empty State */
.support-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.support-empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

[data-theme="light"] .support-empty-icon-wrap {
  background: #f1f5f9;
}

.support-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.support-empty-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
}

/* Tickets Table when tickets exist */
.support-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.support-tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.support-tickets-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-card-border);
}

[data-theme="light"] .support-tickets-table th {
  border-bottom-color: #e2e8f0;
}

.support-tickets-table td {
  padding: 14px;
  border-bottom: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  vertical-align: middle;
}

[data-theme="light"] .support-tickets-table td {
  border-bottom-color: #f1f5f9;
}

.support-tickets-table tr:last-child td {
  border-bottom: none;
}

.support-tickets-table tr:hover td {
  background: var(--bg-surface-hover);
}

[data-theme="light"] .support-tickets-table tr:hover td {
  background: #f8fafc;
}

.support-tck-id {
  font-family: monospace;
  font-weight: 600;
  color: #d97706;
}

.support-tck-subject {
  font-weight: 600;
  color: var(--text-primary);
}

.support-tck-desc-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.support-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-open {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

[data-theme="light"] .status-open {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-in_progress {
  background: rgba(229, 169, 59, 0.15);
  color: #d97706;
}

[data-theme="light"] .status-in_progress {
  background: #fffbeb;
  color: #b45309;
}

.status-resolved {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

[data-theme="light"] .status-resolved {
  background: #ecfdf5;
  color: #059669;
}

.status-closed {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

[data-theme="light"] .status-closed {
  background: #f1f5f9;
  color: #475569;
}

/* =====================================================================
   KYC VERIFICATION REQUIRED MODAL (Matching Image 1)
   ===================================================================== */
.kyc-req-modal-box {
  max-width: 440px;
  width: 92%;
  padding: 34px 28px 26px 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

[data-theme="light"] .kyc-req-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.14);
}

.kyc-req-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.kyc-req-close-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.kyc-req-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

[data-theme="light"] .kyc-req-icon-circle {
  background: #fef3c7;
}

.kyc-req-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.kyc-req-sub {
  font-size: 0.885rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.4;
}

.kyc-req-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.kyc-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  box-sizing: border-box;
}

[data-theme="light"] .kyc-req-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.kyc-req-row-label {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-primary);
}

.kyc-req-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.kyc-req-pill.curr {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .kyc-req-pill.curr {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.kyc-req-pill.req {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="light"] .kyc-req-pill.req {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.kyc-req-notice-box {
  display: flex;
  gap: 12px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 22px;
  box-sizing: border-box;
}

[data-theme="light"] .kyc-req-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.kyc-req-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}

.kyc-req-notice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kyc-req-notice-title {
  font-size: 0.885rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.kyc-req-notice-text {
  font-size: 0.815rem;
  color: var(--text-secondary);
  line-height: 1.48;
  margin: 0;
}

.kyc-req-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-kyc-req-complete {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dfa35d;
  color: #18181b;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(223, 163, 93, 0.35);
}

.btn-kyc-req-complete:hover {
  background: #cb8d48;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(223, 163, 93, 0.45);
}

.btn-kyc-req-later {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--bg-card-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .btn-kyc-req-later {
  border: 1px solid #e2e8f0;
  color: #1e293b;
  background: #ffffff;
}

.btn-kyc-req-later:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}