section.relative.overflow-hidden {
  min-height: 80vh;
  position: relative;
  background: transparent !important;
}
/* ElonSpaceX Capital - Custom styles */

:root {
  --nova-bg: #05070d;
  --nova-surface: #0a0f1c;
  --nova-card: rgba(15, 23, 42, 0.6);
  --nova-border: rgba(148, 163, 184, 0.12);
  --nova-electric: #3b82f6;
  --nova-glow: #60a5fa;
}

html { scroll-behavior: smooth; }
body { background-color: var(--nova-bg); color: #e2e8f0; }

/* Subtle radial backdrop */

/* Hero section background container */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.32;
  pointer-events: none;
}

/* Updated overlay for better readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 16, 30, 0.85); /* Increased opacity for better contrast */
  z-index: 1;
}

.hero-overlay-top {
  bottom: auto;
  height: 100%;
}

/* Top live ticker scroll */
.ticker {
  animation: ticker-scroll 60s linear infinite;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Nav links */
.nav-link-nova {
  color: #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link-nova:hover { color: #fff; background: rgba(255,255,255,0.04); }

.nav-link-split {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  line-height: 1.05;
}
.nav-link-split span {
  display: block;
}
.nav-link-nova.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(59,130,246,0.18), rgba(59,130,246,0.05));
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.25);
}

/* Glassmorphism card */
.glass {
  background: var(--nova-card);
  border: 1px solid var(--nova-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
}
.glass-strong {
  background: #0d1220;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 1rem;
}

.dashboard-chart-card {
  min-height: 0;
}

.dashboard-chart-card canvas.dashboard-chart-canvas {
  display: block;
  width: 100%;
  height: 220px !important;
  max-height: 220px !important;
}

/* Hero gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glowing button */
.btn-nova {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff !important;
  padding: 0.85rem 1.5rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: 0;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(59,130,246,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-nova:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(59,130,246,0.7);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  color: #fff !important;
  padding: 0.85rem 1.5rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: all .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }

/* Sector badge */
.sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.table-nova td {
  vertical-align: middle;
}

.table-nova td > .flex {
  min-width: 0;
}

.table-nova td > .flex > div {
  min-width: 0;
}

.table-nova td .text-white.font-semibold,
.table-nova td .text-xs.text-slate-500.font-mono {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  min-width: 0;
}

/* Asset card */
.asset-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(2,6,23,0.85));
  border: 1px solid rgba(148,163,184,0.10);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.asset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 20px 50px -20px rgba(59,130,246,0.35);
}

/* Stat tile */
.stat-tile {
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(2,6,23,0));
  border: 1px solid rgba(148,163,184,0.10);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Form fields */
.form-nova {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-nova:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(255, 255, 255, 0.15);
}

/* Tables */
.table-nova {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-nova th, .table-nova td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148,163,184,0.10);
  text-align: left;
}
.table-nova th {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: .05em;
  background: rgba(2,6,23,0.6);
}

.table-responsive {
  width: 100%;
}

@media (max-width: 768px) {
  .table-responsive,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive tr {
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.9rem 0.85rem;
  }

  .table-responsive td {
    border: none;
    padding: 0.85rem 0;
    text-align: left !important;
    white-space: normal;
  }

  .table-responsive td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.45rem;
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .table-responsive td:nth-of-type(1)::before { content: 'Asset'; }
  .table-responsive td:nth-of-type(2)::before { content: 'Sector'; }
  .table-responsive td:nth-of-type(3)::before { content: 'Price'; }
  .table-responsive td:nth-of-type(4)::before { content: '24h'; }
  .table-responsive td:nth-of-type(5)::before { content: 'Action'; }

  .table-responsive td > .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }

  .table-responsive td > .flex > div {
    min-width: 0;
    flex: 1 1 100%;
  }

  .table-responsive td .sector-badge {
    display: inline-flex;
    margin-top: 0;
  }

  .table-responsive td .text-white.font-semibold,
  .table-responsive td .text-xs.text-slate-500.font-mono,
  .table-responsive td .text-sm,
  .table-responsive td a {
    display: block;
  }

  .table-responsive td.text-right,
  .table-responsive td.text-right * {
    text-align: left !important;
  }
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-pill.pending   { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.status-pill.approved,
.status-pill.completed { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.status-pill.rejected  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.status-pill.none      { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }

/* Tier ring */
.tier-ring {
  background: conic-gradient(from 180deg, #3b82f6, #22d3ee, #a855f7, #3b82f6);
  padding: 2px;
  border-radius: 999px;
}

/* Hover lift */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); }

/* Animation utilities */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.animate-float { animation: float-y 6s ease-in-out infinite; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  100% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
}
.pulse-dot { width: 10px; height: 10px; border-radius: 999px; background: #3b82f6; animation: pulse-ring 2s infinite; }

/* Section heading kicker */
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(30,41,59,0.92);
  border: 1px solid #334155;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.25em 0.85em;
  border-radius: 0.75em;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}

/* Override Bootstrap container default for dark theme */
.container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }

/* Keep desktop nav items on one row */
nav .container-fluid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.75rem;
}

nav .container-fluid > ul {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .container-fluid > ul li {
  flex-shrink: 1;
}

nav .container-fluid > div.ml-auto {
  flex-shrink: 0;
}

nav .container-fluid > ul li a {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  nav .container-fluid {
    flex-wrap: wrap !important;
  }

  nav .container-fluid > ul,
  nav .container-fluid > .ml-auto {
    display: none !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05070d; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Adjust spacing between search form and asset table */
form.glass {
  margin-bottom: 0.5rem; /* Minimized spacing */
}

.table-nova {
  margin-top: -0.5rem; /* Negative margin to bring it closer */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Hero section adjustments */
  .hero-grid {
    background-size: cover;
    background-position: center;
  }

  /* Navigation adjustments */
  nav .container-fluid {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  nav .container-fluid > div:first-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  nav .container-fluid > div:first-child a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
  }

  nav .container-fluid > div:first-child .font-display {
    display: inline-block;
    min-width: 0;
    max-width: calc(100% - 64px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @media (max-width: 640px) {
    nav .container-fluid > div:first-child .brand-text {
      flex: 1 1 auto;
      min-width: 0;
      max-width: none;
      font-size: 1.4rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    nav .container-fluid > div:first-child .brand-secondary {
      display: none;
    }

    nav .container-fluid > div:first-child a {
      gap: 0.5rem;
    }

    nav .container-fluid > div:first-child .w-9 {
      width: 2.75rem;
      height: 2.75rem;
    }
  }

  nav ul {
    width: 100%;
    margin-top: 0.5rem;
  }

  .ml-auto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: auto;
  }

  .ml-auto > * {
    flex-shrink: 0;
  }

  .offcanvas {
    max-width: 340px;
    background: rgba(10, 16, 30, 0.96);
    backdrop-filter: blur(18px);
  }

  .offcanvas-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .offcanvas-header .offcanvas-title {
    color: #ffffff;
    font-weight: 700;
  }

  .offcanvas-link {
    display: block;
    color: #cbd5e1;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .offcanvas-link:hover,
  .offcanvas-link.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
  }

  .offcanvas-link.active {
    position: relative;
  }

  .offcanvas-link.active::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #38bdf8;
  }

  nav button[data-bs-target="#mobileNav"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav button[data-bs-target="#mobileNav"]:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* Button sizes for touch */
  .btn-nova, .btn-ghost {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Form fields */
  .form-nova {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.875rem;
  }

  /* Table responsiveness */
  .table-nova {
    font-size: 0.85rem;
  }

  .table-nova th, .table-nova td {
    padding: 0.75rem 0.5rem;
  }

  /* Stat tiles */
  .stat-tile {
    padding: 1rem;
  }

  .stat-tile .text-3xl {
    font-size: 1.5rem;
  }

  /* Glass cards */
  .glass, .glass-strong {
    padding: 1rem;
  }

  /* Sector cards */
  .glass p {
    font-size: 0.85rem;
  }

  /* Footer adjustments */
  footer .grid {
    gap: 2rem;
  }

  footer ul {
    text-align: center;
  }

  /* Ticker adjustments */
  .ticker {
    font-size: 0.75rem;
    gap: 8px;
  }

  /* Dashboard mobile chart height fix */
  .dashboard-top-grid > .dashboard-chart-card {
    min-height: 260px;
  }

  .dashboard-top-grid > .dashboard-chart-card canvas.dashboard-chart-canvas {
    display: block;
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
  }

  .dashboard-profile-card .btn-ghost.w-full {
    display: none !important;
  }

  /* Offcanvas menu */
  .offcanvas-body ul li {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  section.relative.overflow-hidden h1,
  .relative.max-w-7xl h1,
  .relative.max-w-7xl .font-display.text-5xl,
  .relative.max-w-7xl .text-5xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  nav .container-fluid > div:first-child .brand-text {
    font-size: 1.7rem;
    max-width: calc(100% - 90px);
  }

  nav .container-fluid > div:first-child a {
    gap: 0.5rem;
  }

  section.relative.overflow-hidden p,
  .relative.max-w-7xl p {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Grid adjustments */
  .grid.grid-cols-2.md\\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: 1fr 1fr;
  }

  /* KPI strip */
  .grid.grid-cols-2.md\\:grid-cols-4 {
    gap: 0.5rem;
  }

  /* Navigation logo */
  nav a.flex.items-center.gap-2 {
    font-size: 1rem;
  }

  nav a span.w-9.h-9 {
    width: 2rem;
    height: 2rem;
  }

  nav a i.text-lg {
    font-size: 1.25rem;
  }

  /* Hide some elements on very small screens */
  .hidden.md\\:inline-flex {
    display: none !important;
  }
}

html, body {
  overflow-x: hidden;
}
