/* ==========================================================================
   BlockVault – Blockchain Asset Management & Web3 SaaS Platform
   Unified Master Design System & Custom Stylesheet (Bootstrap 5.3 Extension)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR SYSTEM & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Primary & Brand Web3 Palette */
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-light: rgba(124, 58, 237, 0.14);
  --secondary: #06B6D4;
  --secondary-hover: #0891B2;
  --secondary-light: rgba(6, 182, 212, 0.14);
  --accent: #8B5CF6;
  --accent-cyan: #38BDF8;

  /* Surfaces & Backgrounds (Pure Deep Navy & Charcoal Hierarchy) */
  --bg-primary: #070B14;
  --bg-secondary: #0E1424;
  --bg-card: #121A2D;
  --bg-card-hover: #17223A;
  --bg-elevated: #151E33;
  --bg-input: #0A0F1D;

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(139, 92, 246, 0.35);
  --border-focus: rgba(124, 58, 237, 0.5);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-subtle: #475569;

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #06B6D4;
  --info-bg: rgba(6, 182, 212, 0.12);

  /* Bootstrap 5.3 Global Variable Overrides */
  --bs-primary: #7C3AED;
  --bs-primary-rgb: 124, 58, 237;
  --bs-secondary: #0E1424;
  --bs-secondary-rgb: 14, 20, 36;
  --bs-success: #10B981;
  --bs-warning: #F59E0B;
  --bs-danger: #EF4444;
  --bs-info: #06B6D4;
  --bs-light: #121A2D;
  --bs-dark: #070B14;
  --bs-body-bg: #070B14;
  --bs-body-color: #FFFFFF;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-link-color: #8B5CF6;
  --bs-link-hover-color: #FFFFFF;
  --bs-card-bg: #121A2D;
  --bs-card-border-color: rgba(255, 255, 255, 0.08);
  --bs-card-color: #FFFFFF;

  /* Backward Compatibility Aliases */
  --bv-bg-base: var(--bg-primary);
  --bv-bg-surface: var(--bg-secondary);
  --bv-bg-card: var(--bg-card);
  --bv-bg-card-hover: var(--bg-card-hover);
  --bv-bg-elevated: var(--bg-elevated);
  --bv-text-primary: var(--text-primary);
  --bv-text-secondary: var(--text-secondary);
  --bv-text-muted: var(--text-muted);
  --bv-border: var(--border);
  --bv-border-subtle: var(--border-subtle);
  --bv-border-focus: var(--border-focus);
  --bv-violet: var(--accent);
  --bv-violet-dark: var(--primary);
  --bv-cyan: var(--secondary);
  --bv-emerald: var(--success);
  --bv-rose: var(--danger);
  --bv-amber: var(--warning);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 68%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dimensions & Spacing System */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --bv-radius-sm: var(--radius-sm);
  --bv-radius-md: var(--radius-md);
  --bv-radius-lg: var(--radius-lg);
  --bv-radius-xl: var(--radius-xl);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 28px rgba(124, 58, 237, 0.2);

  /* Layout Specifics */
  --header-height: 72px;
  --sidebar-width: 260px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.4);
}

/* Headings */
h1, .h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}

h2, .h2 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}

h3, .h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h4, .h4 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

h5, .h5 {
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
}

h6, .h6 {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-primary);
}

/* Tabular figures for numbers, crypto assets, tables */
.tabular-nums, .font-mono, .badge-num, .crypto-val, .metric-val, table td {
  font-variant-numeric: tabular-nums;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

/* --------------------------------------------------------------------------
   3. SECTION SPACING & CONTAINER SYSTEM
   -------------------------------------------------------------------------- */
.container, .container-xl, .container-lg, .container-md, .container-sm {
  max-width: 1240px;
  padding-left: 24px;
  padding-right: 24px;
}

.section-py {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section-py-hero {
  padding-top: 110px;
  padding-bottom: 72px;
}

.section-py-sm {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-py-lg {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

/* Override .py-6 for balanced vertical rhythm */
.py-6 {
  padding-top: var(--space-8) !important;
  padding-bottom: var(--space-8) !important;
}

/* Text width control */
.max-w-prose {
  max-width: 640px;
}

.max-w-hero {
  max-width: 700px;
}

/* Background Utility Classes */
.bg-base, .bg-primary-app {
  background-color: var(--bg-primary) !important;
}

.bg-surface, .bg-secondary-app {
  background-color: var(--bg-secondary) !important;
}

.bg-card-bg {
  background-color: var(--bg-card) !important;
}

.bg-elevated {
  background-color: var(--bg-elevated) !important;
}

.border-white-10 {
  border-color: var(--border) !important;
}

/* Subtle glow overlay */
.glow-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 480px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-violet { color: var(--accent) !important; }
.text-cyan { color: var(--secondary) !important; }
.text-emerald { color: var(--success) !important; }
.text-rose { color: var(--danger) !important; }
.text-muted-bv { color: var(--text-secondary) !important; }
.text-subtle { color: var(--text-muted) !important; }

/* Eyebrow Label */
.eyebrow, .meta-unboxed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. BUTTONS DESIGN SYSTEM (Unified with Bootstrap Overrides)
   -------------------------------------------------------------------------- */
.btn-bv-primary, .btn-primary {
  height: 46px;
  background: var(--gradient-primary) !important;
  color: #FFFFFF !important;
  border: 1px solid transparent !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
  cursor: pointer;
}

.btn-bv-primary:hover, .btn-primary:hover {
  opacity: 0.96;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  color: #FFFFFF !important;
}

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

.btn-bv-outline, .btn-outline-primary, .btn-secondary, .btn-outline-secondary {
  height: 46px;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-bv-outline:hover, .btn-outline-primary:hover, .btn-secondary:hover, .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.btn-bv-outline:active, .btn-outline-primary:active, .btn-secondary:active {
  transform: translateY(0);
}

.btn-ghost {
  height: 46px;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

.btn-bv-sm, .btn-sm {
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
}

.btn-bv-lg, .btn-lg {
  height: 52px !important;
  padding: 0 28px !important;
  font-size: 15.5px !important;
}

.btn-bv-icon, .btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-bv-icon:hover, .btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   5. CARDS DESIGN SYSTEM (Unified with Bootstrap Card Override)
   -------------------------------------------------------------------------- */
.bg-card-custom, .card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-primary);
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 20px !important;
  color: var(--text-primary) !important;
}

.card-body {
  padding: 20px !important;
}

.card-footer {
  background-color: transparent !important;
  border-top: 1px solid var(--border) !important;
  padding: 16px 20px !important;
}

.bg-card-custom:hover, .card:hover {
  border-color: var(--border-hover) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.12) !important;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   6. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-control, .form-select, .form-control-bv, .form-select-bv {
  height: 46px;
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control, textarea.form-control-bv {
  height: auto !important;
  min-height: 120px;
}

.form-control:focus, .form-select:focus, .form-control-bv:focus, .form-select-bv:focus {
  background-color: var(--bg-input) !important;
  border-color: var(--primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
  outline: none;
}

.form-control::placeholder, .form-control-bv::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-label, .form-label-bv {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.form-check-input {
  background-color: var(--bg-input);
  border-color: var(--border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(120%);
}

/* --------------------------------------------------------------------------
   7. STATUS BADGES & TAGS
   -------------------------------------------------------------------------- */
.tag-status, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.tag-status-success, .badge.bg-success {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.tag-status-pending, .tag-status-warning, .badge.bg-warning {
  background: var(--warning-bg) !important;
  color: var(--warning) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.tag-status-danger, .badge.bg-danger {
  background: var(--danger-bg) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.tag-status-violet, .tag-status-primary, .badge.bg-primary {
  background: var(--primary-light) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.tag-status-info, .badge.bg-info {
  background: var(--info-bg) !important;
  color: var(--secondary) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

/* --------------------------------------------------------------------------
   8. COMMON HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.bv-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background-color: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bv-header.scrolled {
  background-color: rgba(7, 11, 20, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.bv-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bv-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.bv-nav-link, .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bv-nav-link:hover, .bv-nav-link.active, .nav-link:hover, .nav-link.active {
  color: #FFFFFF !important;
}

.bv-nav-item {
  position: relative;
}

/* Dropdown Menu (Desktop) */
@media (min-width: 992px) {
  .bv-dropdown-menu, .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 1050;
    animation: fadeInMenu 0.15s ease forwards;
  }

  .bv-nav-item:hover > .bv-dropdown-menu,
  .bv-nav-item.show > .bv-dropdown-menu,
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bv-dropdown-item, .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.bv-dropdown-item:hover, .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

.bv-dropdown-item i, .dropdown-item i {
  color: var(--accent);
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   9. COMMON FOOTER
   -------------------------------------------------------------------------- */
.bv-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: auto;
}

.bv-footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.bv-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bv-footer-links li {
  margin-bottom: 11px;
}

.bv-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.bv-footer-links a:hover {
  color: #FFFFFF;
}

.bv-footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. DASHBOARD LAYOUT & COMPONENTS
   -------------------------------------------------------------------------- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.25s ease;
}

.dashboard-sidebar-header {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-link i {
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

.sidebar-link:hover i {
  color: var(--accent);
}

.sidebar-link.active {
  background: var(--primary-light);
  color: #FFFFFF;
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.sidebar-link.active i {
  color: var(--accent);
}

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

/* Dashboard Main Viewport */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

.dashboard-topbar {
  height: var(--header-height);
  background-color: rgba(14, 20, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.dashboard-content {
  max-width: 1600px;
  padding: 32px 28px;
  flex: 1;
}

/* Tables */
.table-bv, .table {
  color: var(--text-primary) !important;
  vertical-align: middle;
  border-color: var(--border) !important;
  margin-bottom: 0;
  background-color: transparent !important;
}

.table-bv th, .table th {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-muted) !important;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border) !important;
}

.table-bv td, .table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: 14px;
  color: var(--text-primary) !important;
}

.table-bv tbody tr, .table tbody tr {
  transition: background-color 0.12s ease;
}

.table-bv tbody tr:hover td, .table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.035) !important;
}

/* Accordions */
.accordion-item {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 18px 22px;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(124, 58, 237, 0.08) !important;
  color: var(--text-primary) !important;
}

.accordion-button::after {
  filter: invert(1) brightness(0.85);
}

.accordion-body {
  background-color: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  padding: 0 22px 20px;
  line-height: 1.65;
}

/* Pagination */
.pagination {
  margin-bottom: 0;
  gap: 4px;
}

.page-link {
  background-color: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
  padding: 8px 16px;
  border-radius: 6px !important;
}

.page-link:hover {
  background-color: var(--bg-card-hover) !important;
  border-color: var(--border-hover) !important;
  color: #FFFFFF !important;
}

.page-item.active .page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}

/* Asset Icons */
.asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
}

.asset-icon-btc { background: #F7931A; }
.asset-icon-eth { background: #627EEA; }
.asset-icon-sol { background: linear-gradient(135deg, #00FFA3, #DC1FFF); color: #000; }
.asset-icon-usdt { background: #26A17B; }
.asset-icon-matic { background: #8247E5; }
.asset-icon-avax { background: #E84142; }

/* Modals */
.modal-content-bv, .modal-content {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--text-primary) !important;
}

.modal-header-bv, .modal-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 20px 24px !important;
}

.modal-footer-bv, .modal-footer {
  border-top: 1px solid var(--border) !important;
  padding: 18px 24px !important;
}

.modal-backdrop {
  background-color: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(4px);
}

/* Toast */
.bv-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bv-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Offcanvas Mobile Menu */
.bv-mobile-menu {
  background-color: var(--bg-secondary) !important;
  border-left: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINT REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .section-py {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .section-py-hero {
    padding-top: 80px;
    padding-bottom: 52px;
  }

  h1, .h1 {
    font-size: 2.2rem;
  }

  h2, .h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .section-py {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-py-hero {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .section-py-sm {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .container, .container-xl, .container-lg {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dashboard-content {
    padding: 20px 16px;
  }

  h1, .h1 {
    font-size: 1.85rem;
  }

  h2, .h2 {
    font-size: 1.5rem;
  }

  .bg-card-custom, .card {
    padding: 20px;
  }
}
