/* IBM Carbon Design System v11 (g100 Dark Enterprise Theme) - Clean & Authentic */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap');

:root {
  /* Official IBM Carbon g100 Dark Tokens */
  --cds-background: #161616;
  --cds-layer-01: #262626;
  --cds-layer-02: #393939;
  --cds-layer-03: #525252;
  
  --cds-layer-hover-01: #333333;
  --cds-layer-hover-02: #4c4c4c;
  --cds-layer-selected-01: #353535;
  --cds-layer-selected-02: #474747;

  --cds-border-subtle: #393939;
  --cds-border-strong: #6f6f6f;
  --cds-border-interactive: #0f62fe;

  --cds-text-primary: #f4f4f4;
  --cds-text-secondary: #c6c6c6;
  --cds-text-helper: #8d8d8d;
  --cds-text-placeholder: #6f6f6f;
  --cds-text-on-color: #ffffff;

  --cds-interactive-01: #0f62fe;
  --cds-interactive-01-hover: #0353e9;
  --cds-interactive-01-active: #002d9c;

  --cds-support-error: #da1e28;
  --cds-support-error-inverse: #fa4d56;
  --cds-support-warning: #f1c21b;
  --cds-support-warning-inverse: #f1c21b;
  --cds-support-success: #24a148;
  --cds-support-success-inverse: #42be65;
  --cds-support-info: #4589ff;

  --cds-font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cds-font-family-mono: 'IBM Plex Mono', monospace;

  --cds-header-height: 48px;
  --cds-side-nav-width: 256px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--cds-background);
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family);
  font-size: 14px;
  line-height: 1.42857;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   IBM Carbon Design System v11 Core Component Styles
   ========================================================================== */

/* Buttons */
.cds--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cds-font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), border-color 70ms, color 70ms;
}

.cds--btn--primary {
  background-color: var(--cds-interactive-01);
  color: #ffffff;
  border-color: var(--cds-interactive-01);
}

.cds--btn--primary:hover {
  background-color: var(--cds-interactive-01-hover);
  border-color: var(--cds-interactive-01-hover);
}

.cds--btn--primary:active {
  background-color: var(--cds-interactive-01-active);
}

.cds--btn--secondary {
  background-color: var(--cds-layer-02);
  color: #ffffff;
  border-color: var(--cds-border-subtle);
}

.cds--btn--secondary:hover {
  background-color: var(--cds-layer-hover-02);
}

.cds--btn--ghost {
  background-color: transparent;
  color: #78a9ff;
  border-color: transparent;
}

.cds--btn--ghost:hover {
  background-color: var(--cds-layer-hover-01);
  color: #ffffff;
}

.cds--btn--danger {
  background-color: var(--cds-support-error);
  color: #ffffff;
  border-color: var(--cds-support-error);
}

.cds--btn--danger:hover {
  background-color: #b81921;
}

.cds--btn--sm {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* Tabs */
.cds--tabs {
  display: flex;
  border-bottom: 1px solid var(--cds-border-subtle);
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cds--tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--cds-text-secondary);
  font-family: var(--cds-font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  outline: none;
}

.cds--tab-btn:hover {
  color: var(--cds-text-primary);
  background-color: var(--cds-layer-hover-01);
}

.cds--tab-btn.is-active,
.cds--tab-btn.active {
  color: var(--cds-text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--cds-interactive-01);
  background-color: var(--cds-layer-02);
}

/* Tags */
.cds--tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--cds-font-family);
  font-size: 12px;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 12px;
  line-height: 1.25;
  background-color: var(--cds-layer-02);
  color: var(--cds-text-primary);
}

.cds--tag--blue {
  background-color: rgba(15, 98, 254, 0.2);
  color: #78a9ff;
  border: 1px solid rgba(15, 98, 254, 0.5);
}

.cds--tag--purple {
  background-color: rgba(165, 110, 255, 0.2);
  color: #d4bbff;
  border: 1px solid rgba(165, 110, 255, 0.5);
}

.cds--tag--magenta {
  background-color: rgba(238, 83, 150, 0.2);
  color: #ff7eb6;
  border: 1px solid rgba(238, 83, 150, 0.5);
}

.cds--tag--teal {
  background-color: rgba(0, 157, 154, 0.2);
  color: #3ddbd9;
  border: 1px solid rgba(0, 157, 154, 0.5);
}

.cds--tag--green {
  background-color: rgba(36, 161, 72, 0.2);
  color: #42be65;
  border: 1px solid rgba(36, 161, 72, 0.5);
}

.cds--tag--red {
  background-color: rgba(218, 30, 40, 0.2);
  color: #fa4d56;
  border: 1px solid rgba(218, 30, 40, 0.5);
}

.cds--tag--gray {
  background-color: rgba(141, 141, 141, 0.2);
  color: #c6c6c6;
  border: 1px solid rgba(141, 141, 141, 0.5);
}

/* UI Shell Layout */
.cds--ui-shell {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: var(--cds-background);
}

/* Official IBM Carbon Header */
.cds--header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cds-header-height);
  background-color: var(--cds-background);
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 8000;
}

.cds--header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cds--header__name {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cds-text-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.cds--header__name strong {
  font-weight: 600;
}

.cds--header__global {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds--header__search {
  position: relative;
  width: 280px;
}

.cds--header__search input {
  width: 100%;
  height: 32px;
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  padding: 0 32px 0 12px;
  font-family: var(--cds-font-family);
  font-size: 13px;
  outline: none;
  transition: border-color 100ms;
}

.cds--header__search input:focus {
  border-color: var(--cds-interactive-01);
}

.cds--header__search svg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cds-text-secondary);
  pointer-events: none;
}

/* User Profile Trigger & Dropdown Menu */
.cds--user-profile-trigger {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 10px 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 120ms ease;
  outline: none;
}

.cds--user-profile-trigger:hover,
.cds--user-profile-trigger.is-open {
  background-color: var(--cds-layer-hover-01);
  border-color: var(--cds-border-subtle);
}

.cds--user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cds-interactive-01), #0043ce);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cds--user-meta-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds--user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--cds-text-primary);
}

.cds--user-chevron {
  color: var(--cds-text-secondary);
  transition: transform 150ms ease;
}

.cds--user-profile-trigger.is-open .cds--user-chevron {
  transform: rotate(180deg);
}

.cds--user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 9000;
  padding: 6px 0;
  animation: dropdownFadeIn 120ms ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cds--user-dropdown-header {
  padding: 10px 16px 8px 16px;
}

.cds--user-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cds-text-primary);
}

.cds--user-dropdown-email {
  font-size: 11.5px;
  color: var(--cds-text-helper);
  word-break: break-all;
}

.cds--user-dropdown-divider {
  height: 1px;
  background-color: var(--cds-border-subtle);
  margin: 6px 0;
}

.cds--user-dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 100ms ease;
  text-align: left;
}

.cds--user-dropdown-item:hover {
  background-color: var(--cds-layer-hover-01);
}

.cds--user-dropdown-item--danger {
  color: var(--cds-support-error);
}

.cds--user-dropdown-item--danger:hover {
  background-color: rgba(218, 30, 40, 0.15);
}

/* Official Carbon SideNav */
.cds--main-container {
  display: flex;
  margin-top: var(--cds-header-height);
  height: calc(100vh - var(--cds-header-height));
  overflow: hidden;
}

.cds--side-nav {
  width: var(--cds-side-nav-width);
  min-width: var(--cds-side-nav-width);
  height: 100%;
  background-color: var(--cds-background);
  border-right: 1px solid var(--cds-border-subtle);
  overflow-y: auto;
  user-select: none;
  z-index: 7000;
}

.cds--side-nav::-webkit-scrollbar {
  width: 4px;
}
.cds--side-nav::-webkit-scrollbar-thumb {
  background-color: var(--cds-layer-02);
}

.cds--side-nav__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Carbon SideNav Category / Group Header */
.cds--side-nav__group-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  color: var(--cds-text-helper);
  padding: 16px 16px 8px 16px;
  margin: 0;
}

/* Top-level Single Link */
.cds--side-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  color: var(--cds-text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background-color 70ms, color 70ms;
}

.cds--side-nav__link:hover {
  background-color: var(--cds-layer-01);
  color: var(--cds-text-primary);
}

.cds--side-nav__link.is-active {
  background-color: var(--cds-layer-01);
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--cds-interactive-01);
}

.cds--side-nav__link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds--side-nav__icon {
  width: 16px;
  height: 16px;
  color: var(--cds-text-secondary);
  flex-shrink: 0;
}

.cds--side-nav__link.is-active .cds--side-nav__icon {
  color: var(--cds-interactive-01);
}

/* Carbon Official SideNav Submenu Dropdown Accordion */
.cds--side-nav__submenu {
  display: flex;
  flex-direction: column;
}

.cds--side-nav__submenu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  border: none;
  color: var(--cds-text-secondary);
  font-family: var(--cds-font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-left: 4px solid transparent;
  transition: background-color 70ms, color 70ms;
}

.cds--side-nav__submenu-btn:hover {
  background-color: var(--cds-layer-01);
  color: var(--cds-text-primary);
}

.cds--side-nav__submenu.is-expanded .cds--side-nav__submenu-btn {
  color: var(--cds-text-primary);
}

.cds--side-nav__submenu-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds--side-nav__chevron {
  width: 14px;
  height: 14px;
  color: var(--cds-text-helper);
  transition: transform 120ms ease;
  transform: rotate(0deg);
}

.cds--side-nav__submenu.is-expanded .cds--side-nav__chevron {
  transform: rotate(90deg);
}

/* Nested Carbon Submenu List */
.cds--side-nav__menu {
  list-style: none;
  display: none;
  background-color: var(--cds-background);
  padding: 0;
  margin: 0;
}

.cds--side-nav__submenu.is-expanded .cds--side-nav__menu {
  display: block;
}

.cds--side-nav__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 16px 0 44px;
  color: var(--cds-text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background-color 70ms, color 70ms;
}

.cds--side-nav__menu-item:hover {
  background-color: var(--cds-layer-01);
  color: var(--cds-text-primary);
}

.cds--side-nav__menu-item.is-active {
  background-color: var(--cds-layer-01);
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--cds-interactive-01);
}

/* Minimal Numeric Pill */
.cds--code {
  font-family: var(--cds-font-family-mono);
  font-size: 12.5px;
  background: var(--cds-layer-02);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--cds-text-primary);
}

.cds--country-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1;
}

.cds--count-badge {
  font-family: var(--cds-font-family-mono);
  font-size: 11px;
  color: var(--cds-text-helper);
  background-color: var(--cds-layer-02);
  padding: 0 6px;
  border-radius: 2px;
}

.cds--side-nav__menu-item.is-active .cds--count-badge,
.cds--side-nav__link.is-active .cds--count-badge {
  color: var(--cds-text-primary);
}

/* Carbon Content Body */
.cds--content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px;
  background-color: var(--cds-background);
}

.cds--content::-webkit-scrollbar {
  width: 6px;
}
.cds--content::-webkit-scrollbar-thumb {
  background-color: var(--cds-layer-02);
}

/* Tab Switching Panes */
.tab-pane {
  display: none;
}
.tab-pane.is-active {
  display: block !important;
}

/* IP Reconnaissance & Dark Geolocation Map */
.cds--geo-recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

@media (max-width: 1024px) {
  .cds--geo-recon-grid {
    grid-template-columns: 1fr;
  }
}

.cds--map-wrapper {
  position: relative;
  background: #161616;
  min-height: 340px;
  border-right: 1px solid var(--cds-border-subtle);
}

@media (max-width: 1024px) {
  .cds--map-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--cds-border-subtle);
  }
}

#details-map-container {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #121212;
}

#details-map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 500;
  background: rgba(22, 22, 22, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--cds-border-subtle);
  padding: 6px 12px;
  font-size: 11.5px;
  font-family: var(--cds-font-family-mono);
  color: var(--cds-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds--recon-panel {
  background-color: var(--cds-layer-01);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.cds--recon-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  margin: 0;
}

.cds--recon-table tr {
  border-bottom: 1px solid var(--cds-border-subtle);
}

.cds--recon-table tr:last-child {
  border-bottom: none;
}

.cds--recon-label {
  width: 36%;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cds-text-secondary);
  padding: 8px 14px;
  background-color: var(--cds-layer-02);
  vertical-align: middle;
  border-right: 1px solid var(--cds-border-subtle);
}

.cds--recon-val {
  font-size: 12px;
  color: var(--cds-text-primary);
  padding: 8px 14px;
  vertical-align: middle;
  word-break: break-word;
}

/* Custom Pulsing Radar Map Marker */
.cds--map-radar-pin {
  position: relative;
  width: 24px;
  height: 24px;
}

.cds--map-radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #da1e28;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(218, 30, 40, 0.8);
  z-index: 2;
}

.cds--map-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(218, 30, 40, 0.35);
  border: 1px solid rgba(218, 30, 40, 0.8);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

@keyframes radar-ping {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* Leaflet Dark Popup & Control Overrides */
.leaflet-popup-content-wrapper {
  background: #262626 !important;
  color: #f4f4f4 !important;
  border: 1px solid var(--cds-border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  font-family: var(--cds-font-family) !important;
  padding: 2px !important;
}

.leaflet-popup-tip {
  background: #262626 !important;
}

.leaflet-container {
  background: #161616 !important;
  font-family: var(--cds-font-family) !important;
}

.leaflet-bar a {
  background-color: #262626 !important;
  border-bottom: 1px solid #393939 !important;
  color: #f4f4f4 !important;
}

.leaflet-bar a:hover {
  background-color: #393939 !important;
  color: #ffffff !important;
}

/* Clean Page Header */
.cds--page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cds--page-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin-bottom: 4px;
}

.cds--page-header p {
  font-size: 13px;
  color: var(--cds-text-secondary);
}

/* Clean Carbon Metric Tiles */
.cds--grid-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .cds--grid-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cds--grid-tiles {
    grid-template-columns: 1fr;
  }
}

.cds--tile {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
}

.cds--kpi-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px 20px;
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cds--kpi-card:hover {
  border-color: var(--cds-border-strong);
  background-color: var(--cds-layer-02);
}

.cds--tile__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.cds--kpi-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 4px 0;
  min-height: 34px;
}

.cds--kpi-number {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--cds-font-family-mono);
  color: var(--cds-text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.cds--kpi-scale {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--cds-font-family-mono);
  color: var(--cds-text-helper);
  margin-right: 4px;
}

.cds--kpi-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cds-text-secondary);
  background: var(--cds-layer-02);
  padding: 2px 8px;
  border: 1px solid var(--cds-border-subtle);
  border-radius: 2px;
}

.cds--status-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cds--tile__subtext {
  font-size: 12px;
  color: var(--cds-text-helper);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds--status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 2px;
}

.cds--status-dot--red { background-color: #da1e28; box-shadow: 0 0 6px rgba(218, 30, 40, 0.4); }
.cds--status-dot--yellow { background-color: #f1c21b; box-shadow: 0 0 6px rgba(241, 194, 27, 0.4); }
.cds--status-dot--blue { background-color: #0f62fe; }
.cds--status-dot--green { background-color: #24a148; box-shadow: 0 0 6px rgba(36, 161, 72, 0.4); }
.cds--status-dot--gray { background-color: #8d8d8d; }

.cds--status-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--cds-text-primary);
  line-height: 1.2;
}

.cds--tile__value {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--cds-font-family-mono);
  color: var(--cds-text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.cds--tile__subtext {
  font-size: 11.5px;
  color: var(--cds-text-helper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Charts Grid */
.cds--charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .cds--charts-grid {
    grid-template-columns: 1fr;
  }
}

.cds--chart-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 20px;
}

.cds--chart-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin-bottom: 16px;
}

.cds--chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

/* Carbon Data Tables */
.cds--data-table-container {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 24px;
}

.cds--table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  background-color: var(--cds-layer-01);
  gap: 12px;
}

.cds--toolbar-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.cds--toolbar-search input {
  width: 100%;
  height: 32px;
  background-color: var(--cds-background);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family);
  font-size: 13px;
  padding: 0 12px 0 32px;
  outline: none;
}

.cds--toolbar-search input:focus {
  border-color: var(--cds-interactive-01);
}

.cds--toolbar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cds-text-helper);
  pointer-events: none;
}

.cds--select {
  height: 32px;
  background-color: var(--cds-background);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family);
  font-size: 13px;
  padding: 0 28px 0 12px;
  outline: none;
  cursor: pointer;
}

.cds--table-responsive {
  width: 100%;
  overflow-x: auto;
}

.cds--data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.cds--data-table th {
  background-color: var(--cds-layer-02);
  color: var(--cds-text-primary);
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  white-space: nowrap;
}

.cds--data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  vertical-align: middle;
}

.cds--data-table tbody tr:hover {
  background-color: var(--cds-layer-hover-01);
}

/* Clean Carbon Tags (Severity & Type) */
.cds--tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--cds-font-family-mono);
  letter-spacing: 0.2px;
}

.cds--tag--red {
  background-color: rgba(218, 30, 40, 0.2);
  color: #fa4d56;
}

.cds--tag--yellow {
  background-color: rgba(241, 194, 27, 0.2);
  color: #f1c21b;
}

.cds--tag--blue {
  background-color: rgba(15, 98, 254, 0.2);
  color: #78a9ff;
}

.cds--tag--green {
  background-color: rgba(36, 161, 72, 0.2);
  color: #42be65;
}

.cds--tag--gray {
  background-color: rgba(141, 141, 141, 0.2);
  color: #c6c6c6;
}

.cds--tag--purple {
  background-color: rgba(165, 110, 255, 0.2);
  color: #d4bbff;
}

.cds--tag--teal {
  background-color: rgba(0, 157, 154, 0.2);
  color: #3ddbd9;
}

.cds--tag--magenta {
  background-color: rgba(238, 83, 150, 0.2);
  color: #ff7eb6;
}

.cds--tag--cyan {
  background-color: rgba(17, 150, 219, 0.2);
  color: #82cfff;
}

.cds--code {
  font-family: var(--cds-font-family-mono);
  font-size: 12px;
  color: #78a9ff;
}

/* Carbon Buttons */
.cds--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  font-family: var(--cds-font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cds--btn--primary {
  background-color: var(--cds-interactive-01);
  color: #ffffff;
}

.cds--btn--primary:hover {
  background-color: var(--cds-interactive-01-hover);
}

.cds--btn--secondary {
  background-color: var(--cds-layer-02);
  border-color: var(--cds-border-subtle);
  color: var(--cds-text-primary);
}

.cds--btn--secondary:hover {
  background-color: var(--cds-layer-hover-02);
}

.cds--btn--danger {
  background-color: var(--cds-support-error, #da1e28);
  color: #ffffff;
}

.cds--btn--danger:hover {
  background-color: #ba1b23;
}

.cds--btn--danger:active {
  background-color: #750e13;
}

.cds--btn--ghost {
  background: transparent;
  color: var(--cds-text-secondary);
}

.cds--btn--ghost:hover {
  background-color: var(--cds-layer-01);
  color: var(--cds-text-primary);
}

.cds--btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* Pagination Bar */
.cds--pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--cds-layer-01);
  border-top: 1px solid var(--cds-border-subtle);
  font-size: 12px;
  color: var(--cds-text-secondary);
}

.cds--pagination__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Clean Cards Grid for Actors, MITRE, Sources */
.cds--card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cds--card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cds--card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cds--card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cds-text-primary);
}

.cds--card__subtitle {
  font-size: 12px;
  color: var(--cds-text-helper);
}

.cds--card__body {
  font-size: 12.5px;
  color: var(--cds-text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.cds--card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cds-border-subtle);
  padding-top: 10px;
  font-size: 12px;
}

/* Threat Dossier Modal */
.cds--modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cds--modal-container {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-strong);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.cds--modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cds--modal-header__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cds-text-primary);
}

.cds--modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   IBM Carbon Design System - Threat Observable Dossier (Full-Width Layout)
   ========================================================================== */

/* Hero Banner */
.cds--dossier-hero {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.cds--dossier-hero__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.cds--dossier-hero__target {
  font-family: var(--cds-font-family-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--cds-text-primary);
  letter-spacing: 0.3px;
  word-break: break-all;
}

.cds--dossier-hero__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cds--hero-badge {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds--hero-badge__label {
  font-size: 11px;
  color: var(--cds-text-helper);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cds--hero-badge__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family-mono);
}

/* Full-width Structured Card */
.cds--structured-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.cds--structured-card:last-child {
  margin-bottom: 0;
}

.cds--structured-card__header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--cds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--cds-layer-02);
}

.cds--structured-card__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cds--structured-card__body {
  padding: 18px;
}

/* 4-Column Attribute Grid */
.cds--attr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cds--attr-item {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cds--attr-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--cds-text-helper);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.cds--attr-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cds-text-primary);
  word-break: break-word;
}

/* Horizontal Split Grid */
.cds--split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* OSINT Station Grid */
.cds--osint-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.cds--osint-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  font-size: 12.5px;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.2, 0, 0.38, 0.9);
  cursor: pointer;
}

.cds--osint-btn:hover {
  background: var(--cds-layer-hover-02);
  border-color: var(--cds-interactive-01);
  color: #ffffff;
  transform: translateY(-1px);
}

.cds--osint-logo {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.cds--osint-logo svg {
  width: 18px;
  height: 18px;
}

.cds--osint-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.cds--osint-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--cds-text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cds--osint-desc {
  font-size: 10.5px;
  color: var(--cds-text-helper);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carbon Rule Tabs */
.cds--carbon-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2px;
  background-color: var(--cds-layer-02);
  padding: 2px;
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 14px;
}

.details-rule-tab {
  flex: 1;
  min-width: 105px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--cds-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.details-rule-tab:hover {
  color: var(--cds-text-primary);
  background: var(--cds-layer-hover-02);
}

.details-rule-tab.active {
  background-color: var(--cds-interactive-01) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.cds--code-snippet {
  background-color: #0b0f14;
  border: 1px solid var(--cds-border-subtle);
  padding: 16px;
  font-family: var(--cds-font-family-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #c9d1d9;
  overflow-x: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 0;
}

@media (max-width: 1024px) {
  .cds--attr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cds--split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cds--attr-grid {
    grid-template-columns: 1fr;
  }
  .cds--dossier-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   IBM Carbon Design System - Enterprise Authentication & Portal Styles
   ========================================================================== */

/* Auth Initialization Splash Loader */
.cds--auth-loader {
  position: fixed;
  inset: 0;
  background: var(--cds-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  gap: 16px;
  color: var(--cds-text-secondary);
}

.cds--auth-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--cds-border-subtle);
  border-top-color: var(--cds-interactive-01);
  border-radius: 50%;
  animation: cds--spin 0.8s linear infinite;
}

@keyframes cds--spin {
  to { transform: rotate(360deg); }
}





/* Left Hero & Platform Telemetry Panel */
.cds--auth-hero {
  background: radial-gradient(circle at 10% 10%, #1f232b 0%, #161616 70%);
  border-right: 1px solid var(--cds-border-subtle);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cds--auth-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--cds-border-subtle) 1px, transparent 1px),
                    linear-gradient(90deg, var(--cds-border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  opacity: 0.25;
  pointer-events: none;
}

.cds--auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.cds--auth-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--cds-interactive-01);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.cds--auth-brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--cds-text-primary);
}

.cds--auth-hero-title {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--cds-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cds--auth-hero-title strong {
  font-weight: 600;
  color: var(--cds-text-primary);
}

.cds--auth-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cds-text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
}

.cds--auth-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.cds--auth-stat-card {
  background-color: rgba(38, 38, 38, 0.85);
  border: 1px solid var(--cds-border-subtle);
  border-left: 3px solid var(--cds-interactive-01);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.cds--auth-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family-mono);
  margin-bottom: 4px;
}

.cds--auth-stat-label {
  font-size: 12px;
  color: var(--cds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.cds--auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cds--auth-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cds-border-subtle);
  padding-top: 20px;
  font-size: 12px;
  color: var(--cds-text-helper);
}

/* Right Form Panel */
.cds--auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background-color: var(--cds-background);
}



.cds--auth-card .cds--text-input {
  background-color: #161616;
  border: 1px solid #393939;
  color: #f4f4f4;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.cds--auth-card .cds--text-input:focus {
  outline: none;
  border-color: #0f62fe;
}

.cds--auth-card .cds--btn--primary {
  background-color: #0f62fe;
  color: #ffffff;
  border: none;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cds--auth-card .cds--btn--primary:hover {
  background-color: #0353e9;
}

.cds--auth-header {
  margin-bottom: 24px;
}

.cds--auth-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin-bottom: 6px;
}

.cds--auth-header p {
  font-size: 13px;
  color: var(--cds-text-secondary);
}

/* Carbon Form Group & Input Controls */
.cds--form-item {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.cds--label {
  font-size: 12px;
  font-weight: 500;
  color: var(--cds-text-secondary);
  margin-bottom: 6px;
  display: block;
}

.cds--text-input-wrapper {
  position: relative;
  width: 100%;
}

.cds--text-input {
  width: 100%;
  height: 48px;
  background-color: var(--cds-layer-02);
  border: none;
  border-bottom: 1px solid var(--cds-border-strong);
  color: var(--cds-text-primary);
  font-family: var(--cds-font-family);
  font-size: 14px;
  padding: 0 16px;
  outline: none;
  border-radius: 0;
  transition: all 0.15s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.cds--text-input:focus {
  outline: 2px solid var(--cds-interactive-01);
  outline-offset: -2px;
  border-bottom: 2px solid var(--cds-interactive-01);
  background-color: var(--cds-layer-hover-02);
}

.cds--text-input::placeholder {
  color: var(--cds-text-placeholder);
}

.cds--text-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--cds-text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cds--text-input-toggle:hover {
  color: var(--cds-text-primary);
}

/* Carbon Inline Notification */
.cds--inline-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  background-color: var(--cds-layer-02);
  border-left: 3px solid var(--cds-interactive-01);
  font-size: 12.5px;
  line-height: 1.4;
}

.cds--inline-notification--error {
  border-left-color: var(--cds-support-error);
  background-color: rgba(218, 30, 40, 0.15);
  color: var(--cds-support-error-inverse);
}

.cds--inline-notification--success {
  border-left-color: var(--cds-support-success);
  background-color: rgba(36, 161, 72, 0.15);
  color: var(--cds-support-success-inverse);
}

/* Carbon Primary Button with Arrow */
.cds--btn--auth {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 16px;
  cursor: pointer;
}

.cds--btn--auth svg {
  transition: transform 0.15s ease;
}

.cds--btn--auth:hover svg {
  transform: translateX(4px);
}



/* ==========================================================================
   API Keys & Integration Hub Styles (IBM Carbon v11 Design System)
   ========================================================================== */

.cds--sub-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--cds-border-subtle);
  margin-bottom: 24px;
  background-color: var(--cds-layer-01);
}

.cds--sub-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--cds-text-secondary);
  font-family: var(--cds-font-family);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms ease;
  border-radius: 0;
}

.cds--sub-nav-btn:hover {
  color: var(--cds-text-primary);
  background-color: var(--cds-layer-hover-01);
}

.cds--sub-nav-btn.is-active {
  color: var(--cds-interactive-01);
  font-weight: 600;
  border-bottom: 2px solid var(--cds-interactive-01);
  background-color: var(--cds-layer-02);
}

.cds--integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.cds--integration-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.cds--integration-card:hover {
  border-color: var(--cds-border-strong);
}

.cds--integration-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cds--integration-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds--integration-card__desc {
  font-size: 12.5px;
  color: var(--cds-text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.cds--url-box {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 8px 12px;
  font-family: var(--cds-font-family-mono);
  font-size: 11.5px;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  word-break: break-all;
}

.cds--api-playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .cds--api-playground-grid {
    grid-template-columns: 1fr;
  }
}

.cds--db-export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .cds--db-export-grid {
    grid-template-columns: 1fr;
  }
}

.cds--db-export-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  border-top: 2px solid var(--cds-interactive-01);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cds--db-format-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 8px;
}

/* Carbon Disclosure Panel (Folder Style) */
.cds--disclosure-panel {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.cds--disclosure-panel:hover {
  border-color: var(--cds-border-strong);
}

.cds--disclosure-header {
  padding: 14px 18px;
  background-color: var(--cds-layer-01);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease;
}

.cds--disclosure-header:hover {
  background-color: var(--cds-layer-hover-01);
}

.cds--disclosure-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cds--disclosure-title svg {
  color: var(--cds-interactive-01);
  flex-shrink: 0;
}

.cds--disclosure-title h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin: 0;
}

.cds--disclosure-title p {
  font-size: 12px;
  color: var(--cds-text-secondary);
  margin: 2px 0 0 0;
}

.cds--disclosure-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cds-text-secondary);
  font-size: 12px;
}

.cds--disclosure-chevron {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
  color: var(--cds-text-secondary);
}

.cds--disclosure-panel.is-open .cds--disclosure-chevron {
  transform: rotate(180deg);
}

.cds--disclosure-body {
  display: none;
  border-top: 1px solid var(--cds-border-subtle);
  background-color: var(--cds-layer-01);
}

.cds--disclosure-panel.is-open .cds--disclosure-body {
  display: block;
}

/* Carbon Code Snippet & Tab Box */
.cds--code-snippet-box {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  overflow: hidden;
}

.cds--code-snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--cds-layer-02);
  border-bottom: 1px solid var(--cds-border-subtle);
  padding: 0 4px;
}

.cds--code-snippet-tabs {
  display: flex;
  gap: 0;
}

.cds--code-snippet-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--cds-text-secondary);
  font-family: var(--cds-font-family);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 120ms ease;
  border-radius: 0;
}

.cds--code-snippet-tab:hover {
  color: var(--cds-text-primary);
  background-color: var(--cds-layer-hover-01);
}

.cds--code-snippet-tab.is-active {
  color: var(--cds-interactive-01);
  font-weight: 600;
  border-bottom: 2px solid var(--cds-interactive-01);
  background-color: var(--cds-layer-01);
}

.cds--code-block {
  background-color: #121212;
  border: none;
  font-family: var(--cds-font-family-mono);
  font-size: 12.5px;
  color: #e0e0e0;
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
  margin: 0;
}

/* Status Indicators */
.cds--status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cds-text-secondary);
}

.cds--status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cds-text-helper);
}

.cds--status-dot--active {
  background-color: #42be65;
}

.cds--status-dot--revoked {
  background-color: #fa4d56;
}

/* Subtle Danger Ghost Button for Data Tables */
.cds--btn--danger-ghost {
  background: transparent;
  color: var(--cds-text-secondary);
  border: 1px solid transparent;
  font-size: 12px;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  cursor: pointer;
  transition: all 120ms ease;
  border-radius: 0;
}

.cds--btn--danger-ghost:hover {
  background-color: rgba(218, 30, 40, 0.15);
  color: #ff8389;
  border-color: rgba(218, 30, 40, 0.3);
}

.cds--mono-prefix {
  font-family: var(--cds-font-family-mono);
  font-size: 12px;
  color: var(--cds-text-primary);
  background: transparent;
}

/* ==========================================================================
   IBM Carbon Design System v11 - Feeds & Integrations
   ========================================================================== */

/* Sub-Navigation Content Switcher */
.cds--content-switcher {
  display: flex;
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 20px;
  padding: 0;
  overflow-x: auto;
  border-radius: 0;
}

.cds--content-switcher-btn {
  background: transparent;
  color: var(--cds-text-secondary);
  border: none;
  border-right: 1px solid var(--cds-border-subtle);
  font-family: var(--cds-font-family);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  outline: none;
}

.cds--content-switcher-btn:last-child {
  border-right: none;
}

.cds--content-switcher-btn:hover {
  color: var(--cds-text-primary);
  background-color: var(--cds-layer-hover-01);
}

.cds--content-switcher-btn.is-active {
  color: var(--cds-interactive-01);
  font-weight: 600;
  background-color: var(--cds-layer-02);
  border-bottom: 2px solid var(--cds-interactive-01);
}

/* Pill Filter Group */
.cds--pill-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cds--pill-filter {
  background-color: var(--cds-layer-01);
  color: var(--cds-text-secondary);
  border: 1px solid var(--cds-border-subtle);
  font-family: var(--cds-font-family);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 14px;
  transition: all 120ms ease;
  outline: none;
}

.cds--pill-filter:hover {
  background-color: var(--cds-layer-hover-01);
  color: var(--cds-text-primary);
  border-color: var(--cds-border-strong);
}

.cds--pill-filter.is-active {
  background-color: var(--cds-interactive-01);
  color: #ffffff;
  border-color: var(--cds-interactive-01);
  font-weight: 600;
}


/* Key Toolbar */
.cds--hub-toolbar {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cds--hub-toolbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cds--hub-toolbar__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cds-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Integration Grid & Cards */
.cds--integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cds--integration-card {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cds--integration-card:hover {
  border-color: var(--cds-border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cds--integration-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cds--integration-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cds--integration-card__title svg {
  color: var(--cds-interactive-01);
  flex-shrink: 0;
}

.cds--integration-card__desc {
  font-size: 12px;
  color: var(--cds-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cds--url-box {
  background-color: #121212;
  border: 1px solid var(--cds-border-subtle);
  padding: 8px 12px;
  font-family: var(--cds-font-family-mono);
  font-size: 11.5px;
  color: #78a9ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  word-break: break-all;
  border-radius: 0;
}

.cds--url-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.cds--url-box .btn-copy-feed {
  background: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--cds-font-family);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 120ms ease;
}

.cds--url-box .btn-copy-feed:hover {
  background-color: var(--cds-interactive-01);
  border-color: var(--cds-interactive-01);
  color: #ffffff;
}

.cds--integration-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--cds-text-helper);
  border-top: 1px solid var(--cds-border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

/* Database Export Grid & Cards */
.cds--db-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cds--db-export-card {
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cds--db-export-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cds--db-export-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cds-text-primary);
  margin-bottom: 6px;
}

.cds--db-export-card__desc {
  font-size: 12.5px;
  color: var(--cds-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cds--db-format-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #181818;
  border: 1px solid var(--cds-border-subtle);
  margin-bottom: 12px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.cds--db-format-item:hover {
  background-color: #222222;
  border-color: var(--cds-border-strong);
}

.cds--db-format-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cds--db-format-item__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cds-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cds--db-format-item__spec {
  font-size: 11px;
  color: var(--cds-text-helper);
  font-family: var(--cds-font-family-mono);
}

/* API Playground Grid */
.cds--api-playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .cds--api-playground-grid {
    grid-template-columns: 1fr;
  }
  .cds--studio-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Carbon Table Select and Tab Modifiers */
.cds--select-input {
  background-color: var(--cds-field-01);
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-text-primary);
  border-radius: 0;
  outline: none;
  font-family: var(--cds-font-family);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cds--select-input:focus {
  border-color: var(--cds-focus);
}

.actor-table-row {
  cursor: pointer;
  transition: background-color 0.15s;
}

.actor-table-row:hover {
  background-color: var(--cds-layer-hover-01) !important;
}

.actor-tab-pane {
  animation: fadeIn 0.15s ease-in-out;
}

/* ==========================================================================
   Admin Console & Carbon System Component Styles
   ========================================================================== */

.cds--tabs__nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--cds-border-subtle);
  background-color: var(--cds-layer-01);
}

.cds--tabs__nav-item {
  margin: 0;
  padding: 0;
}

.cds--tabs__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--cds-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  font-family: var(--cds-font-family);
}

.cds--tabs__nav-link:hover {
  color: var(--cds-text-primary);
  background-color: var(--cds-layer-hover-01);
}

.cds--tabs__nav-link.is-active,
.cds--tabs__nav-item.cds--tabs__nav-item--selected .cds--tabs__nav-link {
  color: var(--cds-text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--cds-interactive-01);
  background-color: var(--cds-layer-02);
}

.cds--kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--cds-border-subtle);
  font-size: 13px;
}

.cds--kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cds--kv-label {
  color: var(--cds-text-secondary);
}

.cds--kv-value {
  font-family: var(--cds-font-family-mono);
  font-weight: 500;
  color: var(--cds-text-primary);
}

/* Carbon Style Toggle Switch */
.cds--toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  user-select: none;
}

.cds--toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.cds--toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #393939;
  border: 1px solid var(--cds-border-subtle);
  transition: 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
  border-radius: 20px;
}

.cds--toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
  border-radius: 50%;
}

.cds--toggle-switch input:checked + .cds--toggle-slider {
  background-color: var(--cds-interactive-01);
  border-color: var(--cds-interactive-01);
}

.cds--toggle-switch input:focus + .cds--toggle-slider {
  box-shadow: 0 0 0 2px var(--cds-focus);
}

.cds--toggle-switch input:checked + .cds--toggle-slider:before {
  transform: translateX(18px);
}

/* Range sliders styling */
input[type="range"].cds--slider {
  -webkit-appearance: none;
  appearance: none;
  background: #393939;
  height: 4px;
  outline: none;
  border-radius: 2px;
}

input[type="range"].cds--slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cds-interactive-01);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(15, 98, 254, 0.5);
  transition: transform 0.1s;
}

input[type="range"].cds--slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}






.cds--auth-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  background-color: #121212;
  color: var(--cds-text-primary, #f4f4f4);
  padding: 2rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
  z-index: 1000;
}

.cds--auth-portal.is-hidden,
#auth-screen.is-hidden,
#auth-screen[style*="display: none"],
#auth-screen[style*="display:none"] {
  display: none !important;
}

.cds--auth-container {
  width: 100%;
  max-width: 420px;
  margin: auto;
}

.cds--auth-card {
  width: 100%;
  background-color: var(--cds-layer-01, #262626);
  border: 1px solid var(--cds-border-subtle, #393939);
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.cds--auth-card .cds--text-input {
  background-color: #161616 !important;
  border: 1px solid #393939 !important;
  color: #f4f4f4 !important;
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  transition: border-color 0.15s ease !important;
}

.cds--auth-card .cds--text-input:focus {
  outline: none !important;
  border-color: #0f62fe !important;
}

.cds--auth-card .cds--btn--primary {
  background-color: #0f62fe !important;
  color: #ffffff !important;
  border: none !important;
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

.cds--auth-card .cds--btn--primary:hover {
  background-color: #0353e9 !important;
}


/* ============================================================================
   AUTHENTICATION PORTAL - EXACT DIVINELAB DASHBOARD MATCH
   ============================================================================ */
.cds--auth-portal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #161616;
  color: #f4f4f4;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
}

.cds--auth-portal.is-hidden,
#auth-screen.is-hidden,
#auth-screen[style*="display: none"],
#auth-screen[style*="display:none"] {
  display: none !important;
}

.cds--auth-input-focus:focus {
  outline: 2px solid #0f62fe !important;
  outline-offset: -2px !important;
  border-bottom: 2px solid #0f62fe !important;
}

.cds--auth-btn-hover:hover {
  background-color: #0353e9 !important;
}
