/* ============================================================
   FullHunt Console – Enterprise Design System
   Matches ASM app (blue-dark enterprise palette)
   ============================================================ */

/* ----- CSS Variables (ASM Enterprise Palette) ----- */
:root {
  /* Natural Colors */
  --natural-100: #0d1117;
  --natural-150: #0b111f;
  --natural-200: #131927;
  --natural-300: #1a2332;
  --natural-350: #1f2937;
  --natural-400: #374151;

  /* Brand Colors */
  --color-primary: #ffbc33;
  --color-primary-hover: #ffbc33a1;
  --color-primary-2: #392e00;
  --color-secondary: #39c0ed;
  --color-gray: #9ca3af;
  --color-dark-gray: #6b7280;

  /* Background Colors */
  --fh-bg-primary: var(--natural-100);
  --fh-bg-sidebar: var(--natural-150);
  --fh-bg-secondary: var(--natural-200);
  --fh-bg-tertiary: var(--natural-300);
  --fh-bg-accent: var(--natural-300);

  /* Accent Colors */
  --fh-yellow: var(--color-primary);
  --fh-yellow-hover: #e5a82e;
  --fh-cyan: #39c0ed;
  --fh-purple: #7f7aed;
  --fh-blue: #58a6ff;

  /* Semantic Colors */
  --fh-success: #00b74a;
  --fh-danger: #f93154;
  --fh-warning: #ffa900;

  /* Muted Colors */
  --fh-yellow-muted: rgba(255, 188, 51, 0.22);
  --fh-purple-muted: rgba(127, 122, 237, 0.22);
  --fh-cyan-muted: rgba(57, 192, 237, 0.22);

  /* Text Colors */
  --fh-text-primary: #c9d1d9;
  --fh-text-secondary: var(--color-gray);
  --fh-text-muted: #7a8290;

  /* Border Colors */
  --fh-border: rgba(255, 255, 255, 0.16);
  --fh-border-accent: #1f2b47;
  --fh-border-hover: #37466a;

  /* Layout */
  --fh-sidebar-width: 270px;

  /* Typography Scale */
  --fs-h1: 1.5rem;        /* 24px */
  --fs-h2: 1.25rem;       /* 20px */
  --fs-h3: 1.125rem;      /* 18px */
  --fs-body: 1rem;        /* 16px */
  --fs-small: 0.875rem;   /* 14px */
  --fs-xsmall: 0.75rem;   /* 12px */

  /* Spacing Scale */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */

  /* Border Radius Scale */
  --radius-sm: 0.375rem;  /* 6px - badges, pills */
  --radius-md: 0.5rem;    /* 8px - cards, buttons, inputs */
  --radius-lg: 0.75rem;   /* 12px - large cards */
}

/* ----- Reset & Base ----- */
* {
  box-sizing: border-box;
  font-family: "Urbanist", "Arial Narrow", Arial, sans-serif;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201, 209, 217, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 209, 217, 0.35);
}

body {
  background-color: var(--natural-100);
  color: #c9d1d9;
  min-height: 100vh;
  font-family: "Urbanist", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
}

/* Display font for headings */
h1, h2, h3, h4, h5, h6,
.page-title,
.card-title-text,
.console-search-hero-title,
.plan-name,
.error-code,
.fs-h5 {
  font-family: "Urbanist", "Arial Narrow", Arial, sans-serif;
}

/* Light weight for large display text, bold for small labels */
h1, h2, .error-code { font-weight: 700; }
h3, h4 { font-weight: 600; }
h5, h6, .card-title-text { font-weight: 600; }

/* ----- v3 Utility Classes ----- */
.bg-natural-100 { background-color: var(--natural-100) !important; }
.bg-natural-200 { background-color: var(--natural-200) !important; }
.bg-natural-300 { background-color: var(--natural-300) !important; }

.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-primary) !important; }
.text-green { color: var(--fh-success) !important; }

.new-badge {
  display: inline-block;
  max-width: max-content;
  font-size: clamp(0.75rem, 2vw, 1rem);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
}

.new-badge-secondary {
  color: var(--color-primary);
  background-color: var(--color-primary-2);
}

.new-badge-primary {
  color: var(--color-secondary);
  background-color: rgba(57, 192, 237, 0.1);
}

.new-badge-purple {
  color: #be47f4;
  background-color: #be47f41a;
}
.new-badge-purple a {
  color: #be47f4;
}
.new-badge-purple a:hover {
  color: #d175f9;
}

/* Search Input (v3 Style) */
.new-input-search {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap;
  width: 100%;
}
.new-input-search > input, .new-input-search > input:first-child {
  flex: 1 1 auto;
  width: 1% !important;
}

.new-input-search > input {
  display: block;
  background-color: var(--natural-300) !important;
  border-radius: var(--radius-md);
  color: white !important;
  font-size: var(--fs-body);
  line-height: 1.5rem;
  padding: 0.625rem 1rem;
  width: 1%;
  flex: 1 1 auto;
  border: 1px solid var(--natural-400) !important;
  min-height: 44px;
}

.new-input-search > input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 188, 51, 0.2);
}

.new-input-search > .la-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.3rem;
  background: none;
  border: none;
  padding: 0;
  z-index: 10;
  cursor: pointer;
}

/* New search button style - icon inside button */
.new-input-search button .la-search {
  position: static;
  transform: none;
  font-size: var(--fs-body);
  color: inherit;
}

/* Nav Pills (v3 Style) */
.nav-pills .nav-link {
  color: #fff !important;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  opacity: 0.75;
  text-transform: capitalize;
  border-radius: 0.375rem;
  margin-right: 0.5rem;
  background-color: var(--natural-200);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nav-pills .nav-link:hover {
  opacity: 1;
  background-color: var(--natural-300);
}

.nav-pills .nav-link.active {
  color: #fff !important;
  opacity: 1;
  font-weight: bold;
  background-color: var(--natural-300);
  border: 1px solid var(--fh-cyan);
}

/* Card overrides */
.card {
  background-color: var(--natural-200) !important;
  border: 1px solid var(--fh-border-accent) !important;
}

.card-header {
  border-bottom: 1px solid var(--fh-border-accent) !important;
}

.badge {
  font-size: 1em;
}

/* Filter Links */
.filter-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.filter-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Card Title (landing-site parity) */
.card-title {
  margin: 0;
  padding: 1.25rem;
}

.card-title .card-link:hover {
  color: #fff !important;
}

/* New Button (landing-site parity) */
.new-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.475rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.new-btn:hover {
  opacity: 0.85;
}

/* Font weight bold helper */
.font-weight-bold {
  font-weight: 600 !important;
}

.font-weight-light {
  font-weight: 300 !important;
}

/* List Group overrides */
.list-group-item {
  background-color: transparent !important;
  border-color: rgba(255,255,255,0.05) !important;
  color: var(--fh-text-secondary);
}

a { text-decoration: none; color: var(--fh-blue); transition: color 0.2s; }
a:hover { color: var(--fh-cyan); }

/* ----- Typography Helpers ----- */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.5rem !important; }
.fs-4 { font-size: 1.25rem !important; }
.fs-5 { font-size: 1rem !important; }
.fs-6 { font-size: 0.875rem !important; }
.fs-7 { font-size: 0.8rem !important; }
.fs-8 { font-size: 0.7rem !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 500 !important; }
.fw-medium { font-weight: 500 !important; }

.text-yellow { color: var(--fh-yellow) !important; }
.text-purple { color: var(--fh-purple) !important; }
.text-cyan { color: var(--fh-cyan) !important; }
.text-blue { color: var(--fh-blue) !important; }
.text-gray { color: #919396 !important; }
.text-light { color: var(--fh-text-primary) !important; }

.text-gradient {
  background: linear-gradient(to right, hsl(45.5, 100%, 52.9%), hsl(278.4, 100%, 62.4%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-2 {
  background: linear-gradient(to right, hsl(185.5, 100%, 52.9%), hsl(278.4, 100%, 62.4%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Background Helpers ----- */
.bg-accent { background-color: var(--fh-bg-accent) !important; }
.bg-dark { background-color: var(--fh-bg-primary) !important; }
.bg-gray { background-color: var(--fh-bg-secondary) !important; }
.bg-yellow-muted { background: var(--fh-yellow-muted); }
.bg-purple-muted { background: var(--fh-purple-muted); }
.bg-cyan-muted { background: var(--fh-cyan-muted); }

.bg-light-warning { background: rgba(255, 169, 0, 0.1) !important; }
.bg-light-info { background: rgba(57, 192, 237, 0.1) !important; }
.bg-light-success { background: rgba(0, 183, 74, 0.1) !important; }
.bg-light-danger { background: rgba(249, 49, 84, 0.1) !important; }

.bg-gradient-dark {
  background: linear-gradient(210deg, #0b0e13, #09111d);
}

/* ----- Border / Radius ----- */
.br-8 { border-radius: 8px !important; }
.br-12 { border-radius: 12px !important; }
.border-1 { border: 1px !important; border-style: solid !important; }
.border-gray { border-color: var(--fh-border) !important; }
.border-accent { border-color: var(--fh-border-accent) !important; }
.border-t-1 { border-top: 1px solid var(--fh-border); }

.cursor-pointer { cursor: pointer; }

.border-accent { border: 1px solid var(--fh-border-accent); }

.transparent-card,
.owl-card /* deprecated alias */ {
  background-color: transparent;
  border: 1px solid var(--fh-border-accent);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.transparent-card:hover,
.owl-card:hover {
  border-color: var(--fh-border-hover);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fh-text-muted);
  margin-bottom: 0.25rem;
}

/* ==========================
   Sidebar
   ========================== */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--fh-sidebar-width);
  background: var(--fh-bg-sidebar);
  border-right: none;
  z-index: 1040;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(201, 209, 217, 0.54);
  border-radius: 4px;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand-link {
  width: 100%;
  min-height: 24px;
}

.sidebar-logo {
  width: 124px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
}

.sidebar-logo-fallback {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  /* border-bottom: 1px solid var(--fh-border); */
}

.sidebar-user .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fh-yellow-muted);
  color: var(--fh-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-user .user-name {
  color: var(--fh-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.sidebar-user .user-email {
  font-size: 0.75rem;
  color: var(--fh-text-secondary);
  line-height: 1.2;
  margin-top: 2px;
}

.sidebar-user .user-plan {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.plan-free { background: rgba(139, 148, 158, 0.15); color: var(--fh-text-muted); }
.plan-builder { background: var(--fh-yellow-muted); color: var(--fh-yellow); }
.plan-scale { background: var(--fh-cyan-muted); color: var(--fh-cyan); }
.plan-enterprise { background: rgba(0, 96, 255, 0.15); color: var(--fh-blue); }
/* Legacy plan classes (grandfathered subscribers) */
.plan-professional { background: var(--fh-yellow-muted); color: var(--fh-yellow); }
.plan-consultant { background: var(--fh-cyan-muted); color: var(--fh-cyan); }

.sidebar-nav { padding: 0.75rem 0; }

.sidebar-nav .nav-section {
  padding: 0.75rem 1.5rem 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fh-text-secondary);
  font-weight: 700;
  opacity: 0.8;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.5rem;
  color: var(--fh-text-secondary);
  font-size: 0.95rem; /* Enterprise size */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-left: 3px solid transparent;
  min-height: 44px; /* Touch target minimum */
}

.sidebar-nav .nav-link:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}
.sidebar-nav .nav-link:hover i {
  color: var(--fh-yellow);
}

.sidebar-nav .nav-link.active {
  color: var(--fh-cyan);
  background: linear-gradient(
    90deg,
    rgba(57, 192, 237, 0.3) 0%,
    rgba(24, 65, 88, 0.17) 100%
  );
  border-left-color: var(--fh-cyan);
}

.sidebar-nav .nav-link.active i {
  color: var(--fh-cyan);
}

.sidebar-nav .nav-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Collapsible sidebar sub-nav */
.sidebar-nav .nav-sub .nav-link {
  padding-left: 3.8rem;
  font-size: 0.9rem;
  font-weight: 400;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.sidebar-nav .nav-collapse-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fh-border-accent);
  margin-top: 1.5rem;
}

/* ==========================
   Main Content
   ========================== */
#main-content {
  margin-left: var(--fh-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--fh-border-accent);
  background: var(--fh-bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 rgba(57, 192, 237, 0.04);
}

.topbar .page-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Content area */
.content-area {
  flex: 1;
  padding: 1.5rem;
}

/* ==========================
   Cards
   ========================== */
.card {
  background: var(--fh-bg-secondary) !important;
  border: 1px solid var(--fh-border-accent) !important;
  border-radius: var(--radius-md) !important;
  transition: border-color 0.2s ease;
}

.card {
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--fh-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(57, 192, 237, 0.04);
  transform: translateY(-1px);
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--fh-border-accent) !important;
  padding: 1rem 1.25rem;
}

.card-body { padding: 1.25rem; }

.card-title-text {
  font-weight: 600;
  color: var(--fh-text-primary);
  font-size: 1rem;
}

/* Danger card pattern (e.g. delete account, destructive actions) */
.card-danger {
  border-color: rgba(249, 49, 84, 0.35) !important;
}
.card-danger .card-header {
  border-bottom-color: rgba(249, 49, 84, 0.2) !important;
}
.card-danger .card-header .card-title-text,
.card-danger .card-header span {
  color: var(--fh-danger) !important;
}

/* Enterprise-style chart cards with gradient overlay */
.card-custom {
  background: linear-gradient(0deg, #00000000, rgba(7, 35, 70, 0.58)),
    #20252dbf !important;
  border: 1px solid var(--fh-border-accent) !important;
}

/* card-custom-2 defined in Org Profile section below */

/* Metric cards */
.metric-card {
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  border-color: var(--fh-border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--fh-text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ==========================
   Buttons
   ========================== */
.btn-fh-primary {
  background-color: var(--fh-yellow) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.btn-fh-primary:hover {
  background-color: var(--fh-yellow-hover) !important;
  box-shadow: 0 4px 16px rgba(255, 188, 51, 0.3), 0 0 40px rgba(255, 188, 51, 0.08);
}

.btn-fh-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(255, 188, 51, 0.2);
}

.btn-fh-outline {
  background: transparent !important;
  border: 1px solid var(--fh-yellow) !important;
  color: var(--fh-yellow) !important;
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.btn-fh-outline:hover {
  background: var(--fh-yellow-muted) !important;
}

.btn-fh-secondary {
  background: var(--fh-bg-tertiary) !important;
  border: 1px solid var(--fh-border-accent) !important;
  color: var(--fh-cyan) !important;
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-fh-secondary:hover {
  background: var(--fh-bg-sidebar) !important;
  border-color: var(--fh-bg-tertiary) !important;
}

.btn-fh-secondary:active,
.btn-fh-outline:active,
.btn-fh-danger:active,
.btn-google:active {
  transform: scale(0.97);
}

.btn-fh-danger {
  background: rgba(249, 49, 84, 0.15) !important;
  border: 1px solid rgba(249, 49, 84, 0.3) !important;
  color: var(--fh-danger) !important;
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.btn-fh-danger:hover {
  background: rgba(249, 49, 84, 0.25) !important;
}

/* ==========================
   Forms
   ========================== */
.form-control,
.form-select {
  background-color: var(--fh-bg-primary) !important;
  border: 1px solid var(--fh-border-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--fh-cyan) !important;
  box-shadow: 0 0 0 3px rgba(57, 192, 237, 0.12), 0 1px 8px rgba(57, 192, 237, 0.08) !important;
  background-color: rgba(13, 17, 23, 0.95) !important;
}

.form-control::placeholder { color: var(--fh-text-muted) !important; }

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fh-text-secondary);
  margin-bottom: 0.4rem;
}

/* Search input – enterprise style */
.search-input-lg {
  position: relative;
}

.search-input-lg .form-control {
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  background-color: var(--fh-bg-tertiary) !important;
  border: 1px solid var(--fh-text-muted) !important; /* Enterprise uses natural-400 */
  border-radius: 0.375rem !important;
}

.search-input-lg .form-control:focus {
  border-color: var(--fh-cyan) !important;
}

.search-input-lg .input-group-text {
  background: transparent !important;
  border: none !important;
  padding-right: 1rem;
}

/* New Enterprise Search Styles */
.input-group.new-input-search > .form-control {
  min-height: calc(2.08rem + 5px) !important;
}

.suggestions-list {
  z-index: 5;
  top: 3px;
  background-color: var(--natural-200) !important;
}

.bg-natural-300 {
  background-color: var(--fh-bg-tertiary) !important;
}

.shadow-3-strong {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) !important;
}

.text-gradient-2 {
  background: linear-gradient(
    to right,
    hsl(185.5, 100%, 52.9%),
    hsl(278.4, 100%, 62.4%)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Suggestions dropdown */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--fh-bg-accent);
  border: 1px solid var(--fh-border-accent);
  border-radius: 0.5rem;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.suggestions-list .suggestion-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--fh-text-secondary);
  cursor: pointer;
  transition: background 0.1s ease;
}

.suggestions-list .suggestion-item:hover {
  background: var(--fh-bg-tertiary);
  color: #fff;
}

.suggestions-list .suggestion-item.is-active {
  background: var(--fh-bg-tertiary);
  color: #fff;
  border-left: 2px solid var(--fh-yellow);
}

/* ==========================
   Tables
   ========================== */
.table { 
  color: #c9d1d9;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  background-color: transparent !important;
}

.table tbody tr {
  background-color: transparent !important;
  border-color: #070c17;
  font-weight: 500;
}

.table th {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  color: var(--fh-text-muted);
  border-bottom-color: var(--fh-border-accent);
  white-space: nowrap;
  background-color: #090e1a;
  border-bottom: none !important;
}

.table th:nth-child(1) {
  border-radius: 8px 0px 0px 8px;
}
.table th:nth-last-child(1) {
  border-radius: 0px 8px 8px 0px;
}

.table td, .table > :not(caption) > * > * {
  border-bottom-color: #070c17;
  font-size: 0.9rem;
  vertical-align: middle;
  padding: 0.75rem 1rem;
  background-color: transparent !important;
}

.table-hover tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  background-color: transparent !important;
}

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

.table-bordered th,
.table-bordered td {
  border-color: var(--fh-border-accent) !important;
}

/* Alternating row tint for dense data tables */
.table-striped-dark tbody tr:nth-child(even) {
  background-color: transparent;
}
.table-striped-dark tbody tr:nth-child(even):hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* ==========================
   Badges
   ========================== */
.badge-fh {
  font-size: var(--fs-xsmall);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.02em;
}

.badge-success { background: rgba(0, 183, 74, 0.08); color: var(--fh-success); border: 1px solid rgba(0, 183, 74, 0.3); }
.badge-danger { background: rgba(249, 49, 84, 0.08); color: var(--fh-danger); border: 1px solid rgba(249, 49, 84, 0.3); }
.badge-warning { background: rgba(255, 169, 0, 0.08); color: var(--fh-warning); border: 1px solid rgba(255, 169, 0, 0.3); }
.badge-info { background: rgba(57, 192, 237, 0.08); color: var(--fh-cyan); border: 1px solid rgba(57, 192, 237, 0.3); }
.badge-primary { background: rgba(88, 166, 255, 0.08); color: var(--fh-blue); border: 1px solid rgba(88, 166, 255, 0.3); }
.badge-purple { background: rgba(127, 122, 237, 0.08); color: var(--fh-purple); border: 1px solid rgba(127, 122, 237, 0.3); }

/* ==========================
   Pagination
   ========================== */
.pagination {
  gap: 0.25rem;
}

.pagination .page-link {
  background: var(--natural-200);
  border: 1px solid var(--fh-border-accent);
  color: var(--fh-text-secondary);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: var(--natural-300);
  border-color: var(--fh-border-hover);
  color: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--fh-border-accent);
  border-color: var(--fh-border-accent);
  color: #fff;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  color: var(--fh-text-muted);
  background: var(--natural-200);
  border-color: transparent;
  opacity: 0.5;
}

.pagination-sm .page-link {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

/* ==========================
   Alerts
   ========================== */
.alert {
  border-radius: 0.5rem;
  font-size: 0.9rem;
  border: none;
  font-weight: 500;
}

.alert-success { background: rgba(0, 183, 74, 0.15); color: var(--fh-success); }
.alert-danger { background: rgba(249, 49, 84, 0.15); color: var(--fh-danger); }
.alert-warning { background: rgba(255, 169, 0, 0.15); color: var(--fh-warning); }
.alert-info { background: rgba(57, 192, 237, 0.15); color: var(--fh-cyan); }

/* ==========================
   Credit Bar
   ========================== */
.credit-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.credit-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--fh-cyan);
  transition: width 0.3s ease;
}

.credit-bar-fill.low { background: var(--fh-danger); }
.credit-bar-fill.medium { background: var(--fh-warning); }

/* ==========================
   Search Result Host Cards
   ========================== */
.host-card {
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
  background-color: var(--fh-bg-accent) !important;
  border-left: 3px solid rgba(57, 192, 237, 0.3) !important;
}

.host-card:hover {
  border-color: var(--fh-border-hover) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(57, 192, 237, 0.12);
  border-left-color: var(--fh-cyan) !important;
  transform: translateY(-1px);
}

/* Score-colored left edge on host cards */
.host-card.score-edge-good { border-left-color: var(--fh-success) !important; }
.host-card.score-edge-medium { border-left-color: var(--fh-warning) !important; }
.host-card.score-edge-bad { border-left-color: var(--fh-danger) !important; }
.score-edge-good { border-left: 3px solid var(--fh-success) !important; }
.score-edge-medium { border-left: 3px solid var(--fh-warning) !important; }
.score-edge-bad { border-left: 3px solid var(--fh-danger) !important; }

.host-card .host-link {
  color: var(--fh-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.host-card .host-link:hover { text-decoration: underline; }

.port-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 0.25rem;
  background: rgba(57, 192, 237, 0.18);
  color: var(--fh-cyan);
  border: 1px solid rgba(57, 192, 237, 0.15);
  margin: 1px;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: default;
}
.port-badge:hover {
  transform: scale(1.08);
  background: rgba(57, 192, 237, 0.25);
}

.tech-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 0.25rem;
  background: var(--fh-purple-muted);
  color: var(--fh-purple);
  margin: 1px;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: default;
}
.tech-badge:hover {
  transform: scale(1.08);
  background: rgba(127, 122, 237, 0.25);
}

.tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 0.25rem;
  background: rgba(0, 183, 74, 0.1);
  color: var(--fh-success);
  margin: 1px;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: default;
}
.tag-badge:hover {
  transform: scale(1.08);
  background: rgba(0, 183, 74, 0.2);
}
.tag-badge a {
  color: inherit;
  text-decoration: none;
}
.tag-badge a:hover {
  color: inherit;
}

.badge-green {
  background-color: rgba(0, 183, 74, 0.2);
  color: var(--fh-success);
}

/* Uniform detail badge (Products, Services, Technologies, Categories) */
.detail-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2em 0.6em;
  border-radius: 0.25rem;
  background: rgba(57, 192, 237, 0.08);
  color: var(--fh-text-primary);
  border: 1px solid rgba(57, 192, 237, 0.12);
  margin: 2px;
  font-weight: 500;
}

.detail-badge a {
  color: inherit;
  text-decoration: none;
}

.detail-badge a:hover {
  color: var(--fh-cyan);
}

/* Asset score badge */
.asset-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.asset-score .score-value {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.asset-score .score-label {
  font-size: 0.65rem;
  color: var(--fh-text-muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.score-good { color: var(--fh-success); text-shadow: 0 0 12px rgba(0, 183, 74, 0.4); }
.score-medium { color: var(--fh-warning); text-shadow: 0 0 12px rgba(255, 169, 0, 0.4); }
.score-bad { color: var(--fh-danger); text-shadow: 0 0 12px rgba(249, 49, 84, 0.4); }

/* Host detail page */
.detail-table { width: 100%; font-size: 0.9rem; }
.detail-table tr td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--fh-border-accent);
}
.detail-table tr:last-child td { border-bottom: none; }
.detail-table .label-cell {
  color: #919396;
  font-weight: 600;
  width: 140px;
  vertical-align: top;
}
.detail-table .value-cell { color: #fff; }

.port-detail-badge {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.25em 0.6em;
  border-radius: 0.3rem;
  background: var(--fh-cyan-muted);
  color: var(--fh-cyan);
  font-weight: 600;
  text-decoration: none;
}
.port-detail-badge:hover { background: rgba(57, 192, 237, 0.25); color: var(--fh-cyan); }

/* Open Ports section labels and badges */
.port-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fh-cyan);
  margin-right: 0.75rem;
}
.port-info-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.18em 0.55em;
  border-radius: 0.25rem;
  background: rgba(57, 192, 237, 0.08);
  color: #c9d1d9;
  border: 1px solid rgba(57, 192, 237, 0.18);
  margin: 2px 1px;
  font-weight: 500;
}
.port-info-badge a {
  color: inherit;
  text-decoration: none;
}
.port-info-badge:hover {
  background: rgba(57, 192, 237, 0.16);
  color: var(--fh-cyan);
  border-color: rgba(57, 192, 237, 0.3);
}
.port-info-badge a:hover {
  color: inherit;
}
.port-info-badge-tech {
  background: rgba(255, 188, 51, 0.06);
  border-color: rgba(255, 188, 51, 0.15);
}
.port-info-badge-tech:hover {
  background: rgba(255, 188, 51, 0.14);
  color: var(--fh-gold);
  border-color: rgba(255, 188, 51, 0.3);
}

/* ---- Host Detail Page Color Accents ---- */

/* Main section titles (Open Ports, DNS, TLS, Discovered URLs) → gold */
.host-section-gold > .card-header .card-title-text,
.host-section-gold > .card-header .card-title-text i {
  color: var(--fh-yellow);
}

/* Sidebar card titles with cyan accent */
.host-card-cyan > .card-header .card-title-text i { color: var(--fh-cyan); }

/* Sidebar card titles with green accent */
.host-card-green > .card-header .card-title-text i { color: var(--fh-success); }

/* Sidebar card titles with purple accent */
.host-card-purple > .card-header .card-title-text i { color: var(--fh-purple); }

/* Sidebar card titles with warning/amber accent */
.host-card-warning > .card-header .card-title-text i { color: var(--fh-warning); }

/* Sidebar card titles with danger accent */
.host-card-danger > .card-header .card-title-text i { color: var(--fh-danger); }

/* Section labels inside host cards (Issuer, Subject, Validity, etc.) */
.host-detail .section-label {
  color: var(--fh-cyan);
  letter-spacing: 0.06em;
}

/* DNS record type labels */
.dns-type-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 0.35rem;
}

/* Hero header for host detail */
.host-hero {
  background: linear-gradient(180deg, var(--fh-bg-accent) 0%, var(--fh-bg-primary) 100%);
  padding: 2rem 0;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--fh-border-accent);
}

/* Stat cards in results sidebar */
.stat-card {
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  border-top: 2px solid rgba(57, 192, 237, 0.25);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.stat-card-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fh-cyan);
  border-bottom: 1px solid rgba(57, 192, 237, 0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}

.stat-item a {
  color: var(--fh-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.stat-item a:hover { color: var(--fh-cyan); }

.stat-count {
  font-size: 0.75rem;
  color: var(--fh-text-muted);
  font-weight: 600;
}

/* Summary stat cards */
.summary-stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  border-radius: 0.5rem;
}

.summary-stat .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.summary-stat .stat-label {
  font-size: 0.75rem;
  color: var(--fh-text-muted);
  margin-top: 0.15rem;
}

.info {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fh-border);
}

/* ==========================
   Search Tabs (Results page)
   ========================== */
.search-tabs .nav-link {
  color: var(--fh-text-secondary) !important;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  opacity: 0.8;
  border-radius: 0.375rem 0.375rem 0 0;
  background: transparent;
  border: none;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-tabs .nav-link:hover {
  color: #fff !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.search-tabs .nav-link.active {
  color: #fff !important;
  opacity: 1;
  font-weight: 700;
  background: rgba(255, 188, 51, 0.06) !important;
  border-bottom: 2px solid var(--fh-yellow);
}

/* ==========================
   Pricing Cards
   ========================== */
.pricing-card {
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--fh-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--fh-yellow);
  box-shadow: 0 0 24px rgba(255, 188, 51, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
}
.pricing-card.popular:hover {
  box-shadow: 0 0 40px rgba(255, 188, 51, 0.15), 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fh-yellow);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pricing-card .plan-price .period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fh-text-muted);
}

.pricing-card .plan-credits {
  font-size: 0.9rem;
  color: var(--fh-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex: 1;
}

.pricing-card .plan-features li {
  font-size: 0.85rem;
  color: var(--fh-text-secondary);
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card .plan-features li i {
  color: var(--fh-success);
  font-size: 1rem;
  margin-top: 1px;
}

/* ==========================
   Mobile Responsive
   ========================== */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
  opacity: 1;
}

/* Tablet and below */
@media (max-width: 991.98px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.show { transform: translateX(0); }
  #main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.show { display: block; }
  .host-hero { margin: -1.5rem -1.5rem 1rem -1.5rem; padding: 1.5rem 1rem; }
  .console-search-hero { padding: 3rem 1rem 2rem; min-height: calc(100vh - 64px); margin: -1rem -1rem 0; }
  .console-search-hero-logo { max-width: 220px; }
  .console-search-hero-title { font-size: 1.45rem; }
  .console-search-hero-lead { font-size: 0.98rem; }
  .console-search-card { padding: 1rem; }

  /* Tables: horizontal scroll on narrow screens */
  .table-responsive { -webkit-overflow-scrolling: touch; }

  /* Pricing cards: 2 per row instead of 4 */
  .pricing-card { margin-bottom: 1rem; }

  /* Org profile tabs: scroll horizontally */
  .org-profile-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .org-profile-tabs .nav-item { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .content-area { padding: 0.75rem; }
  .topbar { padding: 0.5rem 0.75rem; }
  .page-title { font-size: 1rem; }

  /* Stack topbar actions vertically */
  .topbar-actions { gap: 0.25rem; }
  .topbar-actions .btn-sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; }

  /* Stat cards: tighter padding */
  .card-custom-2 .card-body { padding: var(--space-3); }

  /* Quick action links: full width */
  .quick-action-link { padding: 0.5rem; }
  .quick-action-link .action-desc { display: none; }

  /* Stat rows: smaller text */
  .stat-row { padding: 0.35rem 0; }
  .stat-row .stat-row-label { font-size: 0.78rem; }
  .stat-row .stat-row-value { font-size: 0.85rem; }

  /* Badge sizes on mobile */
  .badge-fh { font-size: 0.65rem; padding: 0.15rem 0.4rem; }

  /* IP lookup: reduce section spacing */
  .ip-detail-block { margin-bottom: 0.75rem; }

  /* Host detail: tighter layout */
  .detail-table td { padding: 0.4rem 0.5rem; font-size: 0.8rem; }

  /* Filter forms: stack */
  .row.g-2.align-items-end > [class*="col-md"] { flex: 0 0 100%; max-width: 100%; }

  /* Org meta grid: single column */
  .org-meta-grid { grid-template-columns: 1fr; }

  /* Search tabs: scroll */
  .search-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .search-tabs .nav-item { flex-shrink: 0; }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .content-area { padding: 0.5rem; }
  .topbar { padding: 0.5rem; }

  /* Hide non-essential topbar elements */
  .topbar-actions .d-none.d-md-inline-flex { display: none !important; }

  /* Full-bleed cards */
  .card { border-radius: var(--radius-sm); }

  /* Compact log table cells */
  .ip-table td { padding: 0.4rem 0.5rem; font-size: 0.78rem; }

  /* Auth pages: tighter padding */
  .auth-container { padding: 1rem; }
  .auth-card { padding: 1.25rem; }
}

/* ==========================
   Auth Pages
   ========================== */
.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease 0.1s both;
}
.auth-logo img { height: 48px; }
.auth-logo-fallback { line-height: 1; }
.auth-logo h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.auth-card {
  background: linear-gradient(
    165deg,
    rgba(19, 25, 39, 0.95) 0%,
    rgba(13, 17, 23, 0.98) 100%
  );
  border: 1px solid var(--fh-border-accent);
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(57, 192, 237, 0.04);
  animation: fadeIn 0.5s ease 0.2s both;
}

/* Subtle top-edge glow on auth card */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(57, 192, 237, 0.4),
    rgba(255, 188, 51, 0.3),
    transparent
  );
}

/* Stagger form fields entrance */
.auth-card .mb-4,
.auth-card .mb-3 {
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-card .mb-4:nth-child(1),
.auth-card .mb-3:nth-child(1) { animation-delay: 0.15s; }
.auth-card .mb-4:nth-child(2),
.auth-card .mb-3:nth-child(2) { animation-delay: 0.22s; }
.auth-card .mb-4:nth-child(3),
.auth-card .mb-3:nth-child(3) { animation-delay: 0.29s; }
.auth-card .mb-4:nth-child(4),
.auth-card .mb-3:nth-child(4) { animation-delay: 0.36s; }
.auth-card .mb-4:nth-child(5),
.auth-card .mb-3:nth-child(5) { animation-delay: 0.43s; }

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--fh-text-muted);
  animation: fadeIn 0.5s ease 0.4s both;
}

.auth-footer a {
  color: var(--fh-yellow);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.btn-google {
  background: var(--fh-bg-tertiary) !important;
  border: 1px solid var(--fh-border-accent) !important;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-google:hover {
  background: var(--fh-bg-sidebar) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-google svg {
  transition: transform 0.2s ease;
}
.btn-google:hover svg {
  transform: scale(1.1);
}

.fullhunt-search-logo {
  width: 210px;
  max-width: 65%;
  height: auto;
  opacity: 0.95;
}

.fullhunt-search-logo-fallback {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.search-branding-logo {
  width: 170px;
  max-width: 65%;
  height: auto;
  opacity: 0.96;
}

.search-branding-fallback {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lookup-hero {
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.92), rgba(10, 18, 31, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
}

.lookup-hero-logo {
  width: 150px;
  max-width: 62%;
  height: auto;
  opacity: 0.95;
}

.lookup-hero-title {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fh-text-primary);
}

.lookup-hero-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fh-text-muted);
}

.lookup-search-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.org-result-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.org-result-card:hover {
  border-color: var(--fh-border-accent) !important;
  transform: translateY(-1px);
}

.console-search-hero {
  margin: -1.5rem -1.5rem 0;
  padding: 4rem 1.5rem 3rem;
  min-height: calc(100vh - 100px);
  background: linear-gradient(180deg, #050b18 0%, #081225 55%, #081020 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.console-search-pattern {
  position: absolute;
  inset: 0;
  background: url("https://dkh9ehwkisc4.cloudfront.net/static/theme/images/svg/bg_pattern_2.svg") no-repeat center top;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
}

.console-search-hero-logo {
  max-width: 280px;
  margin-bottom: 0.6rem;
}

.console-search-hero-title {
  margin: 0 0 0.55rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--fh-text-primary);
  letter-spacing: -0.02em;
}

.console-search-hero-lead {
  color: var(--fh-text-primary);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 640px;
}

.console-search-card {
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.94), rgba(11, 20, 36, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 80px rgba(57, 192, 237, 0.04);
  position: relative;
}
/* Top-edge glow on search card */
.console-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 188, 51, 0.3), rgba(57, 192, 237, 0.2), transparent);
  border-radius: 1px;
}

.helper-sm {
  font-size: 0.875rem !important;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--fh-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fh-border-accent), transparent);
}

.divider span { padding: 0 0.75rem; }

/* ==========================
   Error Pages
   ========================== */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page .error-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: fadeIn 0.5s ease both;
}

.error-page .error-code {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.error-page .error-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease 0.2s both;
}

.error-page .error-message {
  font-size: 1.1rem;
  color: var(--fh-text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.6;
  animation: fadeIn 0.5s ease 0.3s both;
}

.error-page .btn {
  animation: fadeIn 0.5s ease 0.4s both;
}

/* 404 — Signal Lost / Cyan radar theme */
.error-page.error-404 .error-icon { color: var(--fh-cyan); }
.error-page.error-404 .error-code {
  color: var(--fh-cyan);
  text-shadow: 0 0 40px rgba(57, 192, 237, 0.3), 0 0 80px rgba(57, 192, 237, 0.1);
}
.error-page.error-404 .error-label { color: var(--fh-cyan); }
.error-page.error-404::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(57, 192, 237, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.error-page.error-404::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(57, 192, 237, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 403 — Access Denied / Purple shield theme */
.error-page.error-403 .error-icon { color: var(--fh-purple); }
.error-page.error-403 .error-code {
  color: var(--fh-purple);
  text-shadow: 0 0 40px rgba(127, 122, 237, 0.3), 0 0 80px rgba(127, 122, 237, 0.1);
}
.error-page.error-403 .error-label { color: var(--fh-purple); }

/* 429 — Throttled / Warning orange theme */
.error-page.error-429 .error-icon { color: var(--fh-warning); }
.error-page.error-429 .error-code {
  color: var(--fh-warning);
  text-shadow: 0 0 40px rgba(255, 169, 0, 0.3), 0 0 80px rgba(255, 169, 0, 0.1);
}
.error-page.error-429 .error-label { color: var(--fh-warning); }

/* 500 — System Fault / Red glitch theme */
.error-page.error-500 .error-icon { color: var(--fh-danger); }
.error-page.error-500 .error-code {
  color: var(--fh-danger);
  text-shadow: 0 0 40px rgba(249, 49, 84, 0.3), 0 0 80px rgba(249, 49, 84, 0.1);
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both,
             glitchShift 3s ease-in-out 1s infinite;
}
.error-page.error-500::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(249, 49, 84, 0.15);
  overflow: hidden;
}
.error-page.error-500::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fh-danger), transparent);
  animation: scanLine 4s linear infinite;
}

/* ==========================
   Animations & Transitions
   ========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(249, 49, 84, 0.2); }
  50% { box-shadow: 0 0 20px rgba(249, 49, 84, 0.45); }
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

@keyframes glitchShift {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--fh-border-accent); }
  50% { border-color: var(--fh-cyan); }
}

.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
  animation: fadeIn 0.5s ease both;
}

/* Stagger animation for dashboard stat cards */
.row .col-md-3:nth-child(1) .card-custom-2 { animation-delay: 0.1s; }
.row .col-md-3:nth-child(2) .card-custom-2 { animation-delay: 0.2s; }
.row .col-md-3:nth-child(3) .card-custom-2 { animation-delay: 0.3s; }
.row .col-md-3:nth-child(4) .card-custom-2 { animation-delay: 0.4s; }

.card-custom-2 {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger utility classes */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* Reduced motion: respect user OS preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================
   Accessibility: Focus States
   ========================== */
:focus-visible {
  outline: 2px solid var(--fh-cyan);
  outline-offset: 2px;
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Specific focus overrides for interactive elements */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.nav-link:focus-visible,
.page-link:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--fh-cyan);
  outline-offset: 2px;
  box-shadow: none;
}

/* Skip link visible on focus */
.visually-hidden-focusable:focus {
  z-index: 2000;
}

/* Screen-reader only text helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================
   Charts container
   ========================== */
.chart-container {
  position: relative;
  min-height: 200px;
}

/* Apexcharts theme overrides */
.apexcharts-tooltip {
  background: var(--fh-bg-secondary) !important;
  border: 1px solid var(--fh-border-accent) !important;
  color: var(--fh-text-secondary) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.apexcharts-tooltip-title {
  background: var(--fh-bg-accent) !important;
  border-bottom: 1px solid var(--fh-border-accent) !important;
  color: #fff !important;
}

/* ==========================
   Loading Skeletons
   ========================== */
.skeleton {
  background: linear-gradient(90deg, var(--fh-bg-secondary) 25%, var(--fh-bg-tertiary) 50%, var(--fh-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-card {
  height: 200px;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================
   amCharts Logo Hide (Console-Wide)
   ========================== */
[class*="amcharts"] a[title="JavaScript charts"],
[class*="amcharts"] a[href*="amcharts.com"],
a[href*="amcharts.com"],
g[aria-labelledby*="title"] > g > a {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ==========================
   Focus States (Accessibility)
   ========================== */
*:focus-visible {
  outline: 2px solid var(--fh-cyan);
  outline-offset: 2px;
}

/* ==========================
   Toast Notifications
   ========================== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  color: var(--fh-text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: toast-slide-in 0.3s ease-out;
}

.toast.fade-out {
  animation: toast-slide-out 0.3s ease-in forwards;
}

.toast-header {
  background: var(--fh-bg-accent);
  border-bottom: 1px solid var(--fh-border-accent);
  color: var(--fh-text-primary);
}

.toast-body {
  color: var(--fh-text-secondary);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ==========================
   Form Validation
   ========================== */
.form-control.is-invalid {
  border-color: var(--fh-danger) !important;
  background-image: none;
}

.form-control.is-valid {
  border-color: var(--fh-success) !important;
  background-image: none;
}

.invalid-feedback {
  color: var(--fh-danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  color: var(--fh-success);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ==========================
   Misc Utilities
   ========================== */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monospace {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.banner-pre {
  font-family: monospace;
  font-size: var(--fs-xsmall);
  color: var(--fh-text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================
   Organization Cards
   ========================== */
.org-card {
  background: var(--fh-bg-secondary);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: var(--space-4);
}

.org-card:hover {
  border-color: var(--fh-border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.org-card .card-body {
  padding: var(--space-5);
}

/* Card Custom 2 Enhancement */
.card-custom-2 {
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  background: var(--fh-bg-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-custom-2:hover {
  border-color: var(--fh-border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-custom-2 .card-body {
  padding: var(--space-5);
}

.card-custom-2 .card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--fh-border-accent);
  background: rgba(255, 255, 255, 0.02);
}

.card-custom-2.border-start {
  border-left-width: 3px !important;
}

.org-card-header {
  margin-bottom: var(--space-3);
}

.org-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--fh-text-primary);
  margin-bottom: var(--space-2);
}

.org-card-title a {
  color: var(--fh-text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.org-card-title a:hover {
  color: var(--fh-yellow);
}

.org-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.org-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.org-meta-item .meta-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--fh-yellow-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-meta-item .meta-icon i {
  color: var(--fh-yellow);
  font-size: var(--fs-body);
}

.org-meta-item .meta-label {
  font-size: var(--fs-xsmall);
  color: var(--fh-text-muted);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.org-meta-item .meta-value {
  font-size: var(--fs-small);
  color: var(--fh-text-primary);
  font-weight: 500;
}

.org-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.org-logo-img-sm {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.org-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fh-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-small);
  padding: var(--space-1) var(--space-2);
  border-radius: 20px;
  background: var(--fh-cyan-muted);
  color: var(--fh-cyan);
  border: 1px solid rgba(57, 192, 237, 0.3);
  text-decoration: none;
  margin: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.domain-pill:hover {
  background: rgba(57, 192, 237, 0.25);
  color: var(--fh-cyan);
  text-decoration: none;
}

.explore-details-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--natural-300);
  color: var(--fh-text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.explore-details-btn:hover {
  background: var(--natural-350);
  color: #fff;
  text-decoration: none;
}

/* Organization Profile Styles */
.org-profile-header {
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.95), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.org-profile-header h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--fh-text-primary);
  margin-bottom: var(--space-3);
}

.org-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--fh-border-accent);
}

.org-profile-tabs .nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--fh-text-secondary);
  background: var(--fh-bg-tertiary);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.org-profile-tabs .nav-link:hover {
  background: var(--natural-350);
  color: var(--fh-text-primary);
}

.org-profile-tabs .nav-link.active {
  background: var(--fh-cyan-muted) !important;
  color: var(--fh-cyan) !important;
  border-color: var(--fh-cyan);
}

.section-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--fh-text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid rgba(255, 208, 18, 0.15);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--fh-border);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.meta-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--fh-border-accent);
}

.meta-item i {
  font-size: var(--fs-body);
  color: var(--fh-yellow);
  margin-top: 2px;
}

.meta-item label {
  display: block;
  font-size: var(--fs-xsmall);
  color: var(--fh-text-muted);
  margin-bottom: var(--space-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.meta-item p,
.meta-item .meta-val {
  color: var(--fh-text-primary);
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 500;
}

.leadership-grid {
  display: grid;
  gap: var(--space-3);
}

.executive-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--fh-border);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.executive-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--fh-border-accent);
}

.executive-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fh-yellow-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.executive-icon i {
  color: var(--fh-yellow);
  font-size: var(--fs-body);
}

.executive-name {
  color: var(--fh-text-primary);
  font-weight: 600;
  font-size: var(--fs-small);
}

.executive-title {
  color: var(--fh-text-muted);
  font-size: var(--fs-xsmall);
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--fh-border-accent);
  font-size: var(--fs-small);
}

.insight-row:last-child {
  border-bottom: none;
}

.insight-label {
  color: var(--fh-text-secondary);
}

.insight-value {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--fh-yellow);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
}

.stat-label {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--fh-text-secondary);
}

.stat-value {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--fh-yellow);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: rgba(255, 208, 18, 0.08);
  color: var(--fh-text-muted);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--fs-xsmall);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.modern-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--fh-border-accent);
  font-size: var(--fs-small);
  color: var(--fh-text-secondary);
}

.modern-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 0.15s ease;
}

.port-group {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.port-pill {
  display: inline-block;
  font-size: var(--fs-xsmall);
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  background: var(--natural-300);
  color: var(--fh-text-secondary);
}

.domain-pill-sm {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-small);
  padding: var(--space-1) var(--space-2);
  border-radius: 20px;
  background: var(--fh-cyan-muted);
  color: var(--fh-cyan);
  border: 1px solid rgba(57, 192, 237, 0.3);
  text-decoration: none;
  margin: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.domain-pill-sm:hover {
  background: rgba(57, 192, 237, 0.25);
  color: var(--fh-cyan);
  text-decoration: none;
}

.dns-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
  background: rgba(214, 51, 132, 0.1);
  color: #d63384;
  margin: 2px;
  font-family: "SF Mono", "Fira Code", "Roboto Mono", monospace;
  font-weight: 500;
}
a.dns-badge {
  text-decoration: none;
  color: #d63384;
}
a.dns-badge:hover {
  text-decoration: underline;
  color: #ff4da6;
}

/* Utility Classes */
.bg-fh-tertiary {
  background: var(--fh-bg-tertiary);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.text-fh-cyan {
  color: var(--fh-cyan);
}

.text-fh-success {
  color: var(--fh-success);
}

.text-fh-warning {
  color: var(--fh-warning);
}

.text-fh-danger {
  color: var(--fh-danger);
}

.text-fh-primary {
  color: var(--fh-text-primary);
}

.text-fh-secondary {
  color: var(--fh-text-secondary);
}

.text-fh-muted {
  color: var(--fh-text-muted);
}

.border-fh-accent {
  border-color: var(--fh-border-accent) !important;
}

.border-fh-danger {
  border-color: var(--fh-danger) !important;
}

.fs-small {
  font-size: var(--fs-small);
}

.fs-xsmall {
  font-size: var(--fs-xsmall);
}

.fs-body {
  font-size: var(--fs-body);
}

.fs-h5 {
  font-size: var(--fs-h5);
}

.btn-search-lg {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-body);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Input Improvements */
.search-input-lg {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-body);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--natural-300);
  color: var(--fh-text-primary);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-input-lg:focus {
  border-color: var(--fh-yellow);
  box-shadow: 0 0 0 2px rgba(255, 188, 51, 0.15);
  outline: none;
}

.search-input-lg::placeholder {
  color: var(--fh-text-muted);
}

/* ==========================
   Inline Style Replacements
   ========================== */

/* Icon box: centered flex container for action/nav icons */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box-lg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quick action link (dashboard, etc.) */
.quick-action-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--fh-bg-tertiary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.quick-action-link::after {
  content: '\F285';  /* bi-arrow-right */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 0.75rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--fh-text-muted);
  font-size: 0.85rem;
}
.quick-action-link:hover {
  border-color: var(--fh-border-accent);
  background: rgba(26, 35, 50, 0.8);
  transform: translateX(2px);
}
.quick-action-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.quick-action-link:hover .icon-box {
  transform: scale(1.08);
}
.quick-action-link .icon-box {
  transition: transform 0.2s ease;
}
.quick-action-link .action-title {
  color: var(--fh-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.quick-action-link .action-desc {
  color: var(--fh-text-muted);
  font-size: 0.75rem;
}

/* Stat row: key-value pair with border separator + inline bar */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--fh-border-accent);
  position: relative;
  overflow: hidden;
  transition: background-color 0.15s ease;
}
.stat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
/* Inline bar behind stat value — set width via inline style */
.stat-row .stat-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.08;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-row .stat-row-label {
  color: var(--fh-text-secondary);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.stat-row .stat-row-value {
  color: var(--fh-text-primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

/* Credit gauge low-credit pulsing */
.credit-low {
  animation: pulseGlow 2s ease-in-out infinite;
  border-color: rgba(249, 49, 84, 0.3) !important;
}

/* Recent searches — type-colored left edge on table rows */
.table-hover tbody tr.search-type-search:hover { box-shadow: none; }
.table-hover tbody tr.search-type-ip:hover { box-shadow: none; }
.table-hover tbody tr.search-type-org:hover { box-shadow: none; }
.table-hover tbody tr.search-type-host:hover { box-shadow: none; }

/* Themed dropdown (topbar, exports, etc.) */
.dropdown-menu-fh {
  background: var(--natural-200);
  border: 1px solid var(--fh-border-accent);
}
.dropdown-menu-fh .dropdown-item {
  color: var(--fh-text-secondary);
  font-size: 0.85rem;
}
.dropdown-menu-fh .dropdown-item:hover {
  background: var(--fh-bg-tertiary);
  color: var(--fh-text-primary);
}
.dropdown-menu-fh .dropdown-item-text {
  font-size: 0.85rem;
}
.dropdown-menu-fh .dropdown-divider {
  border-color: var(--fh-border-accent);
}

/* User avatar circle */
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fh-cyan-muted);
  color: var(--fh-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Enterprise company icon */
.company-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Copy button focus styling */
.copy-btn {
  cursor: pointer;
  color: var(--fh-text-muted);
  transition: color 0.15s ease;
}
.copy-btn:hover { color: var(--fh-text-primary); }
.copy-btn:focus-visible {
  outline: 2px solid var(--fh-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Chart accessibility wrapper */
.chart-accessible {
  position: relative;
  min-height: 200px;
}

/* Empty state component */
.empty-state {
  animation: fadeIn 0.5s ease both;
}

/* ==========================
   CONSOLE SEARCH UI MODERNIZATION
   Improved visual design for search results
   ========================== */

/* ----- Modern Badges (replacing purple sad badges) ----- */
.badge-fh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.badge-fh:hover {
  transform: translateY(-1px);
}

/* Category badges - Gold/Yellow theme */
.badge-fh-category {
  background: linear-gradient(135deg, rgba(255, 188, 51, 0.12) 0%, rgba(255, 188, 51, 0.06) 100%);
  border-color: rgba(255, 188, 51, 0.25);
  color: var(--fh-yellow);
}

.badge-fh-category:hover {
  background: linear-gradient(135deg, rgba(255, 188, 51, 0.2) 0%, rgba(255, 188, 51, 0.1) 100%);
  border-color: rgba(255, 188, 51, 0.4);
}

/* Technology badges - Cyan theme */
.badge-fh-tech {
  background: linear-gradient(135deg, rgba(57, 192, 237, 0.12) 0%, rgba(57, 192, 237, 0.06) 100%);
  border-color: rgba(57, 192, 237, 0.25);
  color: var(--fh-cyan);
}

.badge-fh-tech:hover {
  background: linear-gradient(135deg, rgba(57, 192, 237, 0.2) 0%, rgba(57, 192, 237, 0.1) 100%);
  border-color: rgba(57, 192, 237, 0.4);
}

/* Product badges - Purple theme (but nicer) */
.badge-fh-product {
  background: linear-gradient(135deg, rgba(127, 122, 237, 0.12) 0%, rgba(127, 122, 237, 0.06) 100%);
  border-color: rgba(127, 122, 237, 0.25);
  color: var(--fh-purple);
}

.badge-fh-product:hover {
  background: linear-gradient(135deg, rgba(127, 122, 237, 0.2) 0%, rgba(127, 122, 237, 0.1) 100%);
  border-color: rgba(127, 122, 237, 0.4);
}

/* Port badges - Improved styling */
.badge-fh-port {
  background: var(--natural-300);
  border-color: var(--natural-400);
  color: var(--fh-text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 700;
}

.badge-fh-port:hover {
  background: var(--natural-350);
  border-color: var(--fh-yellow);
  color: var(--fh-yellow);
}

/* Tag badges - Neutral with hover effect */
.badge-fh-tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--fh-text-secondary);
}

.badge-fh-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--fh-text-primary);
}

/* CNAME badge chain styling */
.badge-fh-cname {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(88, 166, 255, 0.05) 100%);
  border-color: rgba(88, 166, 255, 0.2);
  color: var(--fh-blue);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.7rem;
}

/* ----- Modern Cards with Shadows ----- */
.card-fh {
  background: var(--natural-200);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-fh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: var(--fh-border-hover);
}

.card-fh-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--fh-border-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.card-fh-body {
  padding: 1.5rem;
}

.card-fh-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--fh-border-accent);
  background: rgba(0, 0, 0, 0.15);
}

/* Score indicator edge on cards */
.card-fh.score-edge-good {
  border-left: 3px solid var(--fh-success);
}

.card-fh.score-edge-medium {
  border-left: 3px solid var(--fh-warning);
}

.card-fh.score-edge-bad {
  border-left: 3px solid var(--fh-danger);
}

/* ----- Improved Stats Row (for search results header) ----- */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--natural-200);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--fh-border-accent);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 188, 51, 0.15) 0%, rgba(255, 188, 51, 0.05) 100%);
  color: var(--fh-yellow);
  font-size: 0.9rem;
}

.stat-item-icon.ports { background: linear-gradient(135deg, rgba(127, 122, 237, 0.15) 0%, rgba(127, 122, 237, 0.05) 100%); color: var(--fh-purple); }
.stat-item-icon.cloud { background: linear-gradient(135deg, rgba(57, 192, 237, 0.15) 0%, rgba(57, 192, 237, 0.05) 100%); color: var(--fh-cyan); }
.stat-item-icon.cdn { background: linear-gradient(135deg, rgba(0, 183, 74, 0.15) 0%, rgba(0, 183, 74, 0.05) 100%); color: var(--fh-success); }

.stat-item-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fh-text-primary);
  line-height: 1;
}

.stat-item-value.text-gradient {
  background: linear-gradient(135deg, var(--fh-yellow) 0%, var(--fh-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item-label {
  font-size: 0.7rem;
  color: var(--fh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ----- Host Card Redesign ----- */
.host-card-modern {
  margin-bottom: 1.25rem;
}

.host-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--fh-border-accent);
}

.host-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.host-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.host-card-favicon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.host-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fh-text-primary);
  margin: 0;
  line-height: 1.3;
}

.host-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.host-card-title a:hover {
  color: var(--fh-cyan);
}

.host-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--fh-text-secondary);
}

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

.host-card-body {
  padding: 1.25rem 1.5rem;
}

.host-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--fh-border-accent);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.host-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.host-card-detail-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.host-card-detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fh-text-muted);
  font-weight: 600;
}

/* ----- Section Labels (improved) ----- */
.section-label-fh {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fh-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-label-fh::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--fh-border-accent) 0%, transparent 100%);
  margin-left: 0.5rem;
}

/* ----- Search Hero Improvements ----- */
.console-search-hero {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.console-search-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2339c0ed' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 1;
}

.console-search-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--fh-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.console-search-hero-lead {
  font-size: 1.1rem;
  color: var(--fh-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.console-search-hero-logo {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 188, 51, 0.25));
}

.console-search-card {
  background: var(--natural-200);
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ----- Port Badges Row ----- */
.ports-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.ports-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ----- Explore More Button (improved) ----- */
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--fh-border-accent);
  border-radius: var(--radius-md);
  color: var(--fh-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.btn-explore:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--fh-cyan);
  color: var(--fh-cyan);
  transform: translateX(2px);
}

.btn-explore i {
  transition: transform 0.2s ease;
}

.btn-explore:hover i {
  transform: translateX(3px);
}

/* ----- Detail Badges Grid ----- */
.detail-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.empty-state-icon {
  font-size: 3rem;
  opacity: 0.7;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.empty-state-icon i {
  filter: drop-shadow(0 0 20px rgba(57, 192, 237, 0.2));
}

/* Info hint box */
.info-hint {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(57, 192, 237, 0.08);
  font-size: var(--fs-xsmall);
  color: var(--fh-text-muted);
}

/* Button Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Enterprise-style Host Detail Overrides
   Matches enterprise-webapp-v3 look & feel
   ============================================================ */

/* Port card: enterprise bg-accent + port-active highlight */
.host-port-card {
  background-color: #0d1526 !important;
  border: 1px solid #1f2b47;
  border-radius: 8px;
  transition: all 1s ease-in;
}
.host-port-card.port-active {
  background-color: #072347 !important;
}

/* Banner/HTTP header styling: enterprise uses white keys + red values */
.banner-line-key {
  color: #c9d1d9;
  font-weight: 600;
}
.banner-line-value {
  color: #f93154;
  margin-left: 0.5rem;
}
.banner-status-line {
  color: greenyellow;
  font-weight: 500;
}

/* Enterprise text-gray for labels */
.text-gray { color: #919396 !important; }
.text-lighter { color: #9db2cc !important; }

/* Enterprise-style bg-accent for cards */
.bg-accent { background-color: #0d1526 !important; }

/* Enterprise-style code color (pink/magenta for URLs) */
.url-code {
  color: #d63384;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
}

/* Enterprise-style border utilities */
.border-b-1 { border-bottom: 1px solid; border-bottom-style: solid; }
.border-t-1-accent { border-top: 1px solid #30363d; }

/* Enterprise badge styles */
.badge-primary-ent {
  background-color: #0060ff38;
  color: #009fff;
}
.badge-green-ent {
  background-color: #5e92542e;
  color: #00b74a;
}
.badge-danger-ent {
  background-color: #f9315238;
  color: #f93154;
}

/* Enterprise-style card-custom for port details */
.card-custom-port {
  background: linear-gradient(0deg, #00000000, rgb(7 35 70 / 58%));
  background-color: #20252dbf;
}
