:root {
  --od-cx-bg: #071117;
  --od-cx-bg-2: #0b141b;
  --od-cx-surface: #101c24;
  --od-cx-surface-2: #13222b;
  --od-cx-text: #eaf3f7;
  --od-cx-muted: rgba(222, 236, 242, 0.68);
  --od-cx-line: rgba(222, 236, 242, 0.12);
  --od-cx-glass: rgba(255, 255, 255, 0.055);
  --od-cx-accent: #72e3f1;
  --od-cx-accent-strong: #9cf4ff;
  --od-cx-accent-soft: rgba(114, 227, 241, 0.18);
}

.od-customer-section {
  position: relative;
  isolation: isolate;
}

.od-customer-section__surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--od-cx-line) !important;
  background:
    linear-gradient(118deg, rgba(114, 227, 241, 0.09), transparent 28%),
    repeating-linear-gradient(90deg, rgba(114, 227, 241, 0.025) 0 1px, transparent 1px 72px),
    linear-gradient(160deg, var(--od-cx-surface), var(--od-cx-bg)) !important;
}

.od-customer-section__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(114, 227, 241, 0.13), transparent) 0 0 / 34% 1px no-repeat,
    linear-gradient(180deg, transparent 58%, rgba(7, 17, 23, 0.78));
}

.od-customer-section__head,
.od-customer-section__body {
  position: relative;
  z-index: 1;
}

.od-customer-section__head {
  padding: 28px 28px 22px !important;
  align-items: end !important;
  background: transparent !important;
}

.od-customer-section__kicker {
  margin-bottom: 10px;
  color: var(--od-cx-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.od-customer-section__head .card-title {
  color: var(--od-cx-text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.od-customer-section__head .card-sub {
  margin-top: 10px;
  color: var(--od-cx-muted);
}

.od-customer-section__create {
  border-color: rgba(114, 227, 241, 0.35) !important;
  background: rgba(114, 227, 241, 0.14) !important;
  color: var(--od-cx-text) !important;
  box-shadow: 0 12px 30px rgba(114, 227, 241, 0.1);
}

.od-customer-section__body {
  padding: 0 28px 28px !important;
}

.od-customer-filters {
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--od-cx-line);
  border-radius: 8px;
  background: rgba(7, 17, 23, 0.48);
}

.od-customer-filters__label {
  color: var(--od-cx-accent) !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.od-customer-filters input,
.od-customer-filters select {
  border-color: var(--od-cx-line) !important;
  background: rgba(16, 28, 36, 0.85) !important;
}

.od-customer-filters input:focus,
.od-customer-filters select:focus {
  border-color: rgba(114, 227, 241, 0.46) !important;
  box-shadow: 0 0 0 3px rgba(114, 227, 241, 0.1);
}

.od-customer-results {
  min-height: 210px;
}

.od-customer-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.od-customer-stat {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--od-cx-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.od-customer-stat span,
.od-customer-stat small {
  color: var(--od-cx-muted);
  font-size: 12px;
}

.od-customer-stat span {
  letter-spacing: 0;
  text-transform: uppercase;
}

.od-customer-stat strong {
  color: var(--od-cx-text);
  font-size: 28px;
  line-height: 1;
}

.od-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.od-customer-card {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--od-cx-line);
  border-radius: 8px;
  background:
    linear-gradient(138deg, rgba(114, 227, 241, 0.05), transparent 42%),
    rgba(11, 20, 27, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.od-customer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 227, 241, 0.3);
  box-shadow: 0 18px 36px rgba(3, 11, 16, 0.28);
}

.od-customer-card__route {
  position: absolute;
  right: -2px;
  top: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--od-cx-accent), transparent);
  opacity: 0.72;
}

.od-customer-card__head {
  display: flex;
  gap: 12px;
  align-items: start;
}

.od-customer-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 227, 241, 0.28);
  border-radius: 8px;
  background: var(--od-cx-accent-soft);
  color: var(--od-cx-accent-strong);
  font-size: 18px;
  font-weight: 700;
}

.od-customer-card__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.od-customer-card__id {
  margin-bottom: 4px;
  color: var(--od-cx-accent);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.od-customer-card h3 {
  margin: 0 0 4px;
  color: var(--od-cx-text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.od-customer-card__identity span,
.od-customer-card__company {
  color: var(--od-cx-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.od-customer-region {
  max-width: 108px;
  padding: 6px 8px;
  border: 1px solid rgba(114, 227, 241, 0.18);
  border-radius: 999px;
  color: var(--od-cx-accent-strong);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.od-customer-card__metrics {
  display: grid;
  grid-template-columns: 72px 72px minmax(0, 1fr);
  gap: 9px;
}

.od-customer-card__metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(222, 236, 242, 0.08);
  border-radius: 8px;
  background: rgba(7, 17, 23, 0.58);
}

.od-customer-card__metrics strong {
  display: block;
  overflow: hidden;
  color: var(--od-cx-text);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-customer-card__metrics span {
  display: block;
  margin-top: 5px;
  color: var(--od-cx-muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.od-customer-card__foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.od-customer-card__foot time {
  color: var(--od-cx-muted);
  font-size: 12px;
}

.od-customer-empty {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 210px;
  padding: 36px 28px;
  overflow: hidden;
  border: 1px dashed rgba(114, 227, 241, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 23, 0.46);
}

.od-customer-empty strong {
  color: var(--od-cx-text);
  font-size: 22px;
}

.od-customer-empty span {
  color: var(--od-cx-muted);
}

.od-customer-empty__route {
  position: absolute;
  inset: auto -20px 32px 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--od-cx-accent), transparent);
}

#custBackdrop .od-profile-modal[data-profile-kind="customer"] {
  border-color: rgba(114, 227, 241, 0.2);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(114, 227, 241, 0.018) 0 1px, transparent 1px 68px),
    linear-gradient(165deg, var(--od-cx-surface), var(--od-cx-bg));
}

#custBackdrop .od-profile-head {
  border-color: var(--od-cx-line);
}

#custBackdrop .od-profile-head .modal-sub {
  color: var(--od-cx-muted);
}

#custBackdrop .od-profile-shell {
  position: relative;
  gap: 16px;
}

.od-customer-profile-fx {
  position: absolute;
  inset: 0 0 auto;
  height: 210px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.62;
}

.od-customer-profile-fx__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, var(--od-cx-bg)),
    repeating-linear-gradient(90deg, rgba(114, 227, 241, 0.05) 0 1px, transparent 1px 62px);
}

.od-customer-profile-fx svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.od-customer-profile-fx__route,
.od-customer-profile-fx__pulse {
  fill: none;
  stroke: rgba(114, 227, 241, 0.28);
  stroke-width: 1.5;
}

.od-customer-profile-fx__pulse {
  stroke: var(--od-cx-accent-strong);
  stroke-dasharray: 26 180;
  animation: odCustomerRoute 5s linear infinite;
}

#custBackdrop .od-profile-hero,
#custBackdrop .od-profile-alerts,
#custBackdrop .od-profile-tabs,
#custBackdrop .od-profile-panels {
  position: relative;
  z-index: 1;
}

#custBackdrop .od-profile-hero {
  border-color: rgba(114, 227, 241, 0.2);
  border-radius: 8px;
  background: rgba(7, 17, 23, 0.66);
  backdrop-filter: blur(4px);
}

#custBackdrop .od-profile-hero::after {
  display: none;
}

#custBackdrop .od-profile-kicker,
#custBackdrop .od-panel-kicker {
  color: var(--od-cx-accent);
}

#custBackdrop .od-profile-avatar,
#custBackdrop .od-meta-chip,
#custBackdrop .od-spotlight,
#custBackdrop .od-panel-card,
#custBackdrop .od-info-card,
#custBackdrop .od-kpi-card,
#custBackdrop .od-table-wrap,
#custBackdrop .od-timeline-item__body,
#custBackdrop .od-empty {
  border-radius: 8px;
  border-color: var(--od-cx-line);
  background-color: rgba(7, 17, 23, 0.62);
}

#custBackdrop .od-profile-tab {
  border-radius: 8px;
}

#custBackdrop .od-profile-tab.is-active,
#custBackdrop .btn.primary {
  border-color: rgba(114, 227, 241, 0.32);
  background: rgba(114, 227, 241, 0.14);
  color: var(--od-cx-text);
}

#custBackdrop .od-profile-modal input:focus,
#custBackdrop .od-profile-modal select:focus,
#custBackdrop .od-profile-modal textarea:focus {
  border-color: rgba(114, 227, 241, 0.42);
  box-shadow: 0 0 0 3px rgba(114, 227, 241, 0.11);
}

@keyframes odCustomerRoute {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -412; }
}

@media (max-width: 1080px) {
  .od-customer-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .od-customer-section__head,
  .od-customer-section__body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .od-customer-section__head {
    align-items: start !important;
  }

  .od-customer-telemetry,
  .od-customer-grid {
    grid-template-columns: 1fr;
  }

  .od-customer-card {
    padding: 14px;
  }

  .od-customer-card__head,
  .od-customer-card__foot {
    flex-wrap: wrap;
  }

  .od-customer-region {
    order: 3;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .od-customer-card,
  .od-customer-profile-fx__pulse {
    transition: none;
    animation: none;
  }
}
