:root {
  --blue-primary: #4362ef;
  --green-primary: #22c55e;
  --yellow-primary: #ecab42;

  --title-color: #172437;
  --subtitle-color: #172437;

  --background-light: #ffffff;
  --background-soft: #f1f3f6;
  --sidebar-dark: #020409;
  --bg-gray-main: #f3f4f6;

  --red-primary: #dc3545;
  --border-soft: rgba(255, 255, 255, 0.14);
  --shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.25);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}

body {
  background: var(--bg-gray-main);
  color: var(--title-color);
  font-family: var(--font-sans);
}

.domainTele {
  display: none;
}

@media (min-width: 500px) {
  .domainTele {
    display: block;
  }
}

#landingView .autocomplete-wrapper {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 1050;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

#autocompleteList button {
  background-color: white;
  font-size: 1rem;
  padding-top: 15px;
  padding-bottom: 15px;
}

#autocompleteList div {
  background: white;
  font-size: 1rem;
  padding-top: 15px;
  padding-bottom: 15px;
  color: var(--red-primary);
  border-color: var(--red-primary);
  box-shadow: 0 16px 40px rgba(220, 53, 69, 0.12),
    inset 0 1px 0 rgba(220, 53, 69, 0.03);
}

#autocompleteList button:not(:last-child) {
  border-bottom: 1px solid var(--border-gray, rgba(0, 0, 0, 0.08));
}

#autocompleteList button:hover {
  background-color: var(--bg-gray-main);
}

#historyList {
  margin-top: 1vh;
  gap: 0.7rem;
}

#historyList button {
  padding-top: 7px;
  padding-bottom: 7px;
  max-width: -webkit-fill-available;
  background: white;
  border: 0px;
  font-size: 1rem;
  padding-right: 15px;
  padding-left: 15px;
  border-radius: 10px;
}

#historyList button:hover {
  background-color: var(--blue-primary);
}
#historyList button.active {
  background-color: var(--blue-primary);
}

#explorerView {
  padding-top: 1.5vh;
  padding-left: 2vw;
  padding-right: 2vw;
}

.logo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-avatar img,
#logoImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#logoImg {
  display: block;
}

#companyName {
  font-size: 3rem;
  color: var(--title-color);
}

#landingTitle {
  font-size: 1.5rem;
  color: var(--subtitle-color);
}

.explorerTitle {
  display: flex;
  gap: 1.5vw;
  align-items: center;
  padding-bottom: 4vh;
  width: 100%;
  justify-content: space-between;
}

.openButton {
  height: fit-content;
  padding-top: 10px;
  padding-bottom: 10px;
}

.explorerButtons {
  display: flex;
  gap: 0.75vw;
  align-items: center;
}

.explorerGraphCard {
  min-width: 30%;
  height: 30vh;
  border: 1px solid var(--border-soft);
}

.metric-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--title-color);
  background: var(--background-light);
  box-shadow: var(--shadow-strong);
  padding-top: 3vh;
  padding-bottom: 3vh;
  padding-right: 5vw;
  padding-left: 1vw;
  height: fit-content;
}

.metric-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-label {
  font-size: 1rem;
  color: var(--subtitle-color);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1;
  color: var(--title-color);
}

@media (min-width: 1400px) {
  .logo-avatar {
    width: 55px;
    height: 55px;
    border-radius: 0px;
    overflow: hidden;
    display: grid;
    place-items: center;
  }
}

/* ===== Landing page spacing ===== */

#landingView.landing-hero {
  display: flex;
  justify-content: center;
  padding-top: 6%;
}

#landingView .landing-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.badge.bg-primary {
  background-color: var(--blue-primary) !important;
}

#landingView .landing-title {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--title-color);
  padding-bottom: 1vh;
}

#landingView .landing-subtitle {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 3vh;
  padding-bottom: 2vh;
  /* color: var(--subtitle-color); */
  color: #020409;
}

.cards-wrap {
  margin-top: 2rem;
  /* padding-right: 20%;
  padding-left: 20%; */
}

.feature-card {
  height: -webkit-fill-available;
  background: var(--background-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 4vh 4vw 6vh 6vw;
  box-shadow: 0 10px 26px rgba(67, 98, 239, 0.1);
}

@media (min-width: 750px) {
  .feature-card {
    padding: 4vh 2vw 5vh 4vw;
  }
}

@media (min-width: 1000px) {
  .feature-card {
    padding: 3vh 2vw 4vh 2vw;
  }
}

@media (min-width: 1700px) {
  .cards-wrap {
    padding-right: 15%;
    padding-left: 15%;
  }
}

.feature-card.featured {
  background: var(--blue-primary);
  color: var(--background-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.icon-badge {
  border-radius: 1200px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--blue-primary);
  box-shadow: 0 0 10px rgba(67, 98, 239, 0.1);
  color: var(--blue-primary);
  margin-bottom: 2vh;
}

.card-title-custom {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1vh;
}

.text-muted-custom {
  font-size: 1.1rem;
}

/* Landing background consistency */
#landingView.landing-hero {
  padding: 5%;
  padding-top: 8vh;
  background: var(--bg-gray-main);
}

#landingView .landing-card {
  width: 100%;
  max-width: 860px;
  background-color: transparent;
}

#landingView .landing-card .card-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  #landingView .landing-card .card-body {
    padding: 2rem;
  }
}

@media (min-width: 1400px) {
  #landingView .landing-title {
    font-size: 4.2rem;
  }
  #landingView .landing-card .card-body {
    padding: 2rem;
  }
  #landingView .landing-card {
    margin-bottom: 10vh;
  }
}

#landingView .input-group.input-group-lg .form-control,
#landingView .input-group.input-group-lg .input-group-text,
#landingView .input-group.input-group-lg .btn {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* ======= TOP NAVBAR ======= */

.di-navbar {
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--background-light);
  padding-left: 1%;
  padding-right: 1%;
}

.di-navbar .navbar-inner {
  min-height: 56px;
}

.card {
  --bs-card-border-color: transparent !important;
}

.di-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--title-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.di-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

/* ===== Pill search bar styling ===== */

.idea-search {
  width: 100%;
  border-width: 0cap;
}

.idea-search .input-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 18px;
  padding: 8px;
  padding-right: 15px;
  padding-bottom: 2vh;
  gap: 0;
  background: var(--background-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
}

@media (min-width: 700px) {
  .idea-search .input-group {
    flex-direction: row;
    padding-bottom: 8px;
  }
}

.idea-search .form-control {
  height: 56px;
  width: auto;
  border-radius: 14px 0 0 14px;
  background-color: transparent;
  color: var(--title-color);
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  padding: 0 18px;
  background-clip: padding-box;
}

.idea-search #searchBtn {
  height: 56px;
  border-radius: 12px;
  margin-left: 8px;
  padding: 0 20px;
  font-weight: 600;
  border: 0;
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.idea-search #searchBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.idea-search #searchBtn:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.idea-search #searchBtn i {
  margin-right: 8px;
  transform: translateY(-0.5px);
}

.idea-search .input-group:focus-within {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16), 0 6px 18px rgba(0, 0, 0, 0.08),
    0 2px 0 rgba(0, 0, 0, 0.03) inset, 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.input-btn,
.input-btn:hover,
.input-btn:focus,
.input-btn:active,
.input-btn:focus-visible {
  border: 0 !important;
  outline: none !important;
}

.di-search-icon {
  padding-right: 7px;
}

.domain-parens,
#domainName {
  font-size: 1.5rem;
  color: var(--title-color);
}

.explorerHeading {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.industry-panel {
  min-width: 30vw;
}

.explorer-metrics-row {
  height: -webkit-fill-available;
}

.metric-col {
  align-content: center;
}

.metric-icon {
  font-size: 2rem;
}

.icon-blue {
  color: var(--blue-primary);
}
.icon-green {
  color: var(--green-primary);
}
.icon-red {
  color: var(--red-primary);
}
.icon-yellow {
  color: var(--yellow-primary);
}

.di-toast-wrap {
  z-index: 2000;
}
/* =========================================================
   DI Explorer (scoped, deduped)
   Replace your current DI section (from .di-explorer-page onward)
========================================================= */

:root {
  /* shared DI surfaces */
  --di-surface: rgba(255, 255, 255, 0.86);
  --di-surface-soft: rgba(255, 255, 255, 0.82);
  --di-border: 1px solid rgba(23, 36, 55, 0.08);
  --di-border-strong: 1px solid rgba(23, 36, 55, 0.1);
  --di-radius-lg: 22px;
  --di-radius-md: 18px;
  --di-shadow: 0 18px 52px rgba(0, 0, 0, 0.1);
  --di-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Explorer page background */
.di-explorer-page {
  background: radial-gradient(
      900px 500px at 25% 0%,
      rgba(67, 98, 239, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 15%,
      rgba(74, 113, 121, 0.1),
      transparent 60%
    ),
    var(--bg-gray-main);
}

/* Header look */
.di-explorer-header {
  align-items: flex-start;
  padding-bottom: 18px;
}

/* Shared button chrome (pill buttons + icon chips share most) */
.di-explorer .di-pill-btn,
.di-explorer .di-icon-chip {
  border-radius: 999px;
  border: var(--di-border-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--di-shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.di-explorer .di-pill-btn:hover,
.di-explorer .di-icon-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

.di-explorer .di-pill-btn {
  padding: 10px 14px;
}

.openWeb.di-cta {
  height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px 0 18px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  font-weight: 700;
  background: var(--green-primary);
  color: #fff;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.openWeb.di-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.openWeb.di-cta .di-cta-icon {
  padding: 10px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--sidebar-dark);
}

.openWeb.di-cta .di-cta-icon i {
  font-size: 1.05rem;
  line-height: 1;
}
.openWeb:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.openWeb:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

/* Icon chip specifics */
.di-explorer .di-icon-chip {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
}

/* Section (optional wrapper style, distinct from tiles if you still use it) */
.di-explorer .di-section {
  background: var(--di-surface-soft);
  border: var(--di-border);
  border-radius: var(--di-radius-md);
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  margin-top: 14px;
}

.di-explorer .di-section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--title-color);
  margin-bottom: 10px;
}

/* Lists */
.di-explorer .di-list {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

.di-explorer .di-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(23, 36, 55, 0.06);
}

.di-explorer .di-list-item:first-child {
  border-top: 0;
}

.di-explorer .di-list-item:hover {
  background: rgba(67, 98, 239, 0.06);
}

/* Score pill */
.di-explorer .di-score {
  background: rgba(23, 36, 55, 0.08);
  color: var(--title-color);
  border: 1px solid rgba(23, 36, 55, 0.1);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Chips */
.di-explorer .di-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.di-explorer .di-chip {
  background: rgba(67, 98, 239, 0.08);
  color: var(--title-color);
  border: 1px solid rgba(67, 98, 239, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Tile chrome (single definition) */
.di-tile {
  border-radius: var(--di-radius-lg);
  padding: 16px;
  background: var(--di-surface-soft);
  border: var(--di-border);
  box-shadow: var(--di-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Tall/featured tiles */
.di-tile.di-hero {
  padding: 18px;
  min-height: 260px;
}

/* Chart tile */
.di-chart-tile {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.di-chart-tile canvas {
  max-height: 320px;
}

/* Fillable form pill */
.di-explorer .di-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 113, 121, 0.1);
  border: 1px solid rgba(74, 113, 121, 0.18);
}

/* Magazine grid */
.di-mag-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.di-span-12 {
  grid-column: span 12;
}

@media (min-width: 992px) {
  .di-span-lg-8 {
    grid-column: span 8;
  }
  .di-span-lg-4 {
    grid-column: span 4;
  }
}

/* Metric stack column */
.di-stack {
  display: grid;
  gap: 18px;
}

/* Compact tiles inside metric stack */
.di-stack > .di-tile {
  padding: 14px;
}

/* Optional: consistent spacing inside tiles */
.di-tile .di-section-title {
  margin-bottom: 10px;
}
