/**
 * UHDS — Premium landing visuals (animations, mesh, accessibility)
 */

/* --- Motion preferences --- */
@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;
  }
}

/* --- Hero ambience (deep healthcare blue + mint / emerald glows) --- */
.khie-hero-mesh {
  background-image:
    radial-gradient(ellipse 85% 58% at 50% -18%, rgba(187, 247, 208, 0.22), transparent 56%),
    radial-gradient(circle at 82% 28%, rgba(6, 61, 110, 0.55), transparent 48%),
    radial-gradient(circle at 14% 72%, rgba(5, 150, 105, 0.18), transparent 42%);
}

.khie-grid-bg {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 35%, transparent 100%);
}

@keyframes khie-grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-48px, -48px, 0);
  }
}

.khie-grid-animate .khie-grid-bg {
  animation: khie-grid-drift 48s linear infinite;
}

@keyframes khie-shimmer-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.khie-orbit-ring {
  animation: khie-shimmer-orbit 28s linear infinite;
  transform-origin: center;
}

@keyframes khie-float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.khie-float {
  animation: khie-float-soft 6s ease-in-out infinite;
}

.khie-float-delay {
  animation-delay: -3s;
}

/* --- Pulse-arrow “bullet chain” flow (replaces ribbon streaks) --- */
@keyframes khie-chain-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
    box-shadow: 0 0 14px rgba(134, 239, 172, 0.55);
  }
}

@keyframes khie-chain-pulse-emerald {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
  }
}

@keyframes khie-chain-pulse-signal {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.55);
  }
}

@keyframes khie-arrow-pulse {
  0%,
  100% {
    opacity: 0.22;
    transform: translateX(-2px);
  }
  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

.khie-arrow-flow {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  padding: 1rem;
  pointer-events: none;
  opacity: 0.82;
}

.khie-flow-lane {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.khie-flow-bullet {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 999px;
  animation: khie-chain-pulse 2.6s ease-in-out infinite;
}

.khie-flow-bullet--mint {
  background: linear-gradient(145deg, var(--khie-accent-light, #bbf7d0), var(--khie-accent-mint, #86efac));
}

.khie-flow-bullet--emerald {
  background: linear-gradient(145deg, #34d399, var(--khie-accent, #059669));
  animation-name: khie-chain-pulse-emerald;
}

.khie-flow-bullet--signal {
  background: linear-gradient(145deg, #fca5a5, var(--khie-accent-signal, #dc2626));
  animation-name: khie-chain-pulse-signal;
}

.khie-flow-bullet-d0 {
  animation-delay: 0s;
}
.khie-flow-bullet-d1 {
  animation-delay: 0.35s;
}
.khie-flow-bullet-d2 {
  animation-delay: 0.7s;
}
.khie-flow-bullet-d3 {
  animation-delay: 1.05s;
}
.khie-flow-bullet-d4 {
  animation-delay: 1.4s;
}

.khie-flow-arrow {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: rgba(187, 247, 208, 0.92);
  filter: drop-shadow(0 0 6px rgba(134, 239, 172, 0.35));
  animation: khie-arrow-pulse 2.4s ease-in-out infinite;
}

.khie-flow-arrow-d0 {
  animation-delay: 0.15s;
}
.khie-flow-arrow-d1 {
  animation-delay: 0.5s;
}
.khie-flow-arrow-d2 {
  animation-delay: 0.85s;
}
.khie-flow-arrow-d3 {
  animation-delay: 1.2s;
}

/* --- Feature cards tilt on hover --- */
.khie-card-rise {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (hover: hover) {
  .khie-card-rise:hover {
    transform: translateY(-4px);
    box-shadow:
      0 24px 50px -20px rgba(15, 23, 42, 0.25),
      0 0 0 1px rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
  }

  html.dark .khie-card-rise:hover {
    box-shadow:
      0 24px 55px -18px rgba(0, 0, 0, 0.75),
      0 0 0 1px rgba(45, 212, 191, 0.2);
  }
}

/* --- Network SVG pulses --- */
@keyframes khie-dash {
  to {
    stroke-dashoffset: -420;
  }
}

.khie-network-lines {
  stroke-dasharray: 8 14;
  animation: khie-dash 14s linear infinite;
}

@keyframes khie-node-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.55));
  }
}

.khie-node-hot {
  animation: khie-node-pulse 3.2s ease-in-out infinite;
}

/* --- Mini chart sparklines --- */
@keyframes khie-spark-rise {
  0% {
    stroke-dashoffset: 120;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.khie-spark path.spark-stroke {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: khie-spark-rise 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s both;
}

/* --- Partners marquee subtle --- */
@keyframes khie-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.khie-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: khie-marquee 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .khie-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* --- Glass panels --- */
.khie-glass {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

html.dark .khie-glass {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.3)
  );
}

/* --- Enterprise mobile / tablet navigation (CSS motion ≈ cloud-console feel; no runtime Framer) --- */
.khie-mnav-shell {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 18px 50px -38px rgba(6, 61, 110, 0.18);
}

html.dark .khie-mnav-shell {
  background: rgba(15, 23, 42, 0.82);
}

#khie-nav-overlay.khie-mnav-overlay--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

#khie-mobile-search-panel {
  pointer-events: none;
}

#khie-mobile-search-panel.khie-mobile-search--open {
  max-height: 7rem;
  opacity: 1;
  pointer-events: auto;
}

#khie-nav-drawer {
  will-change: transform;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#khie-nav-drawer.khie-mnav-drawer--open {
  transform: translateX(0);
  pointer-events: auto;
}

#khie-nav-drawer:not(.khie-mnav-drawer--open) {
  transform: translateX(-100%);
  pointer-events: none;
}

/* Mobile quick dock + FAB (cloud-console affordances) */
.khie-mnav-fab {
  box-shadow:
    0 18px 44px -18px rgba(6, 61, 110, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

@keyframes khie-fab-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.khie-mnav-fab--float {
  animation: khie-fab-breathe 4.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .khie-mnav-fab--float {
    animation: none;
  }
}

.khie-quick-dock-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  box-shadow: 0 -12px 40px -18px rgba(15, 23, 42, 0.25);
}

html.dark .khie-quick-dock-shell {
  background: rgba(15, 23, 42, 0.9);
}

.khie-mnav-drawer-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.khie-mnav-mainlink {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.khie-mnav-mainlink:active {
  transform: scale(0.99);
}

@media (hover: hover) {
  .khie-mnav-mainlink:hover {
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(240, 253, 250, 0.9);
  }

  html.dark .khie-mnav-mainlink:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.25);
  }
}

.khie-mnav-mainlink.khie-mnav-mainlink--active {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(
    90deg,
    rgba(236, 253, 245, 0.95),
    rgba(239, 246, 255, 0.9)
  );
  box-shadow: 0 0 0 1px rgba(6, 61, 110, 0.06);
}

html.dark .khie-mnav-mainlink.khie-mnav-mainlink--active {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.85));
}

@media (prefers-reduced-motion: reduce) {
  #khie-nav-drawer {
    transition: none !important;
  }
}

@keyframes khie-mnav-item-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > * {
  animation: khie-mnav-item-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(1) {
  animation-delay: 0.02s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(2) {
  animation-delay: 0.05s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(3) {
  animation-delay: 0.08s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(4) {
  animation-delay: 0.11s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(5) {
  animation-delay: 0.14s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(6) {
  animation-delay: 0.17s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(7) {
  animation-delay: 0.2s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(8) {
  animation-delay: 0.23s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(9) {
  animation-delay: 0.26s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(10) {
  animation-delay: 0.29s;
}
#khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > *:nth-child(11) {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  #khie-nav-drawer.khie-mnav-drawer--open .khie-mnav-anim > * {
    animation: none !important;
  }
}

.khie-mnav-tap {
  -webkit-tap-highlight-color: rgba(45, 212, 191, 0.12);
}

.khie-mnav-tap:active {
  transform: scale(0.98);
}

.khie-portal-tile {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Homepage — Integrated Digital Health Portals */
.khie-portals-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f4f7fb 100%);
}

html.dark .khie-portals-section {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 38%, #071422 100%);
}

.khie-portals-section__accent {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(15, 23, 42, 0.08), transparent 58%),
    radial-gradient(ellipse 60% 45% at 88% 8%, rgba(18, 53, 91, 0.07), transparent 55%);
}

.khie-portals-section__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-size: 56px 56px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 53, 91, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 15%, transparent 100%);
  opacity: 0.65;
}

html.dark .khie-portals-section__mesh {
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

.khie-portals-section__network {
  pointer-events: none;
  position: absolute;
  right: -2%;
  top: 12%;
  width: min(42vw, 28rem);
  opacity: 0.18;
  color: #0f172a;
}

html.dark .khie-portals-section__network {
  color: #60a5fa;
  opacity: 0.12;
}

.khie-portals-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .khie-portals-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .khie-portals-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.khie-portal-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 16.5rem;
  overflow: hidden;
  border-radius: 1.125rem;
  border: 1px solid #e8edf3;
  background: #fff;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px -22px rgba(6, 61, 110, 0.16);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

html.dark .khie-portal-feature-card {
  border-color: #334155;
  background: #111827;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 18px 44px -24px rgba(0, 0, 0, 0.45);
}

.khie-portal-feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #0f172a, #12355b, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

.khie-portal-feature-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 0.875rem;
  transition: transform 0.32s ease;
}

.khie-portal-feature-card__title {
  padding-right: 5rem;
  font-family: var(--khie-font-display, inherit);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #042c4f;
  letter-spacing: -0.02em;
}

html.dark .khie-portal-feature-card__title {
  color: #f1f5f9;
}

.khie-portal-feature-card__desc {
  flex: 1 1 auto;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

html.dark .khie-portal-feature-card__desc {
  color: #94a3b8;
}

.khie-portal-feature-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  align-self: flex-start;
  border-radius: 0.65rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #12355b 55%, #2563eb 100%);
  box-shadow: 0 10px 28px -14px rgba(6, 61, 110, 0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    gap 0.25s ease;
}

.khie-portal-feature-card__btn:hover {
  filter: brightness(1.06);
  gap: 0.55rem;
}

@media (hover: hover) {
  .khie-portal-feature-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--khie-primary), transparent 72%);
    box-shadow:
      0 4px 8px rgba(15, 23, 42, 0.05),
      0 26px 52px -20px rgba(6, 61, 110, 0.24);
  }

  .khie-portal-feature-card:hover::after {
    transform: scaleX(1);
  }

  .khie-portal-feature-card:hover .khie-portal-feature-card__icon {
    transform: scale(1.07);
  }
}

.khie-portal-tile:active {
  transform: scale(0.99);
}

@media (hover: hover) {
  .khie-portal-tile:hover {
    transform: translateY(-3px);
    box-shadow:
      0 16px 40px -20px rgba(6, 61, 110, 0.35),
      0 0 0 1px rgba(45, 212, 191, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
  }
}

/* --- Enterprise navbar mega dropdowns --- */
.khie-mega-panel-lg {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.14s ease,
    visibility 0.14s ease;
}

.khie-mega-parent:focus-within .khie-mega-panel-lg,
.khie-mega-parent:hover .khie-mega-panel-lg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.khie-mega-panel-inner {
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.khie-mega-parent:not(:focus-within):not(:hover) .khie-mega-panel-inner {
  transform: translateY(8px);
}

.khie-mega-parent:focus-within .khie-mega-panel-inner,
.khie-mega-parent:hover .khie-mega-panel-inner {
  transform: translateY(0);
}

/* Mega menu triggers + panels (premium console shell) */
.khie-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgb(71 85 105);
  background: transparent;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.khie-mega-trigger:focus {
  outline: none;
}

.khie-mega-trigger:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 1),
    0 0 0 4px rgba(13, 148, 136, 0.45);
}

html.dark .khie-mega-trigger {
  color: rgb(226 232 240);
}

.khie-mega-parent:hover > .khie-mega-trigger,
.khie-mega-parent:focus-within > .khie-mega-trigger {
  color: rgb(15 118 110);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(13, 148, 136, 0.32);
  box-shadow:
    0 12px 32px -20px rgba(6, 61, 110, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

html.dark .khie-mega-parent:hover > .khie-mega-trigger,
html.dark .khie-mega-parent:focus-within > .khie-mega-trigger {
  color: rgb(153 246 228);
  background: rgba(30, 41, 59, 0.94);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, 0.55);
}

.khie-mega-chevron {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.khie-mega-parent:hover .khie-mega-chevron,
.khie-mega-parent:focus-within .khie-mega-chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .khie-mega-chevron {
    transition: none;
  }
}

.khie-mega-col-title {
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.22);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

html.dark .khie-mega-col-title {
  color: rgb(148 163 184);
  border-bottom-color: rgba(45, 212, 191, 0.2);
}

.khie-mega-surface {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 45%, rgba(241, 245, 249, 0.94) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 26px 64px -36px rgba(6, 61, 110, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

html.dark .khie-mega-surface:not(.khie-mega-surface--accent) {
  border-color: rgba(71, 85, 105, 0.6);
  background: linear-gradient(168deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.94));
  box-shadow:
    0 28px 70px -32px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(148, 163, 184, 0.08) inset;
}

.khie-mega-surface:not(.khie-mega-surface--accent)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #042c4f, #063d6e, #0f766e, #14b8a6);
}

.khie-mega-surface--accent {
  border: none;
  background-image: linear-gradient(135deg, rgba(22, 36, 70, 0.95), rgba(6, 61, 110, 0.85), rgba(15, 118, 110, 0.55));
}

.khie-mega-surface .space-y-1 > a:not([class*='inline-flex']) {
  transition:
    background 0.14s ease,
    color 0.14s ease,
    transform 0.14s ease;
}

@media (hover: hover) {
  .khie-mega-surface .space-y-1 > a:not([class*='inline-flex']):hover {
    background: rgba(13, 148, 136, 0.08);
  }

  html.dark .khie-mega-surface .space-y-1 > a:not([class*='inline-flex']):hover {
    background: rgba(45, 212, 191, 0.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .khie-mega-panel-inner {
    transition: none;
    transform: none !important;
  }
}

.khie-nav-summary::-webkit-details-marker {
  display: none;
}

.khie-details-border > summary.khie-nav-summary {
  list-style: none;
}

/* --- Premium homepage (landing) --- */
.khie-section-premium {
  scroll-margin-top: 5.5rem;
}

.khie-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.khie-eyebrow--hero {
  color: var(--khie-accent-mint, #86efac);
}

.khie-eyebrow--light {
  color: rgba(187, 247, 208, 0.92);
}

.khie-hero-premium {
  background: #021526;
}

.khie-hero-parallax {
  overflow: hidden;
}

.khie-hero-parallax__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform-origin: center center;
}

.khie-hero-parallax__bg {
  top: -14%;
  height: 128%;
  width: 100%;
}

.khie-hero-parallax__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.khie-hero-parallax__veil {
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(15, 118, 110, 0.28), transparent 58%),
    radial-gradient(ellipse 75% 55% at 12% 82%, rgba(6, 61, 110, 0.42), transparent 52%),
    linear-gradient(118deg, rgba(2, 21, 38, 0.82) 0%, rgba(4, 44, 79, 0.68) 38%, rgba(6, 61, 110, 0.52) 68%, rgba(15, 118, 110, 0.38) 100%);
}

.khie-hero-parallax__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 21, 38, 0.35) 0%, rgba(2, 21, 38, 0.48) 42%, rgba(2, 21, 38, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 21, 38, 0.72) 0%, rgba(2, 21, 38, 0.28) 48%, rgba(2, 21, 38, 0.55) 100%);
}

.khie-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  animation: khie-float-soft 8s ease-in-out infinite;
}

.khie-hero-orb--1 {
  width: 12rem;
  height: 12rem;
  top: 18%;
  right: 12%;
  background: rgba(134, 239, 172, 0.35);
}

.khie-hero-orb--2 {
  width: 9rem;
  height: 9rem;
  bottom: 22%;
  left: 8%;
  background: rgba(56, 189, 248, 0.28);
  animation-delay: -4s;
}

.khie-btn-primary {
  background: #fff;
  color: #021526;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) {
  .khie-btn-primary:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
    box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.55);
  }
}

.khie-btn-ghost {
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) {
  .khie-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

.khie-btn-outline {
  border: 1px solid color-mix(in srgb, #063d6e, transparent 55%);
  background: white;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

html.dark .khie-btn-outline {
  background: #0f172a;
  border-color: color-mix(in srgb, #2dd4bf, transparent 65%);
}

@media (hover: hover) {
  .khie-btn-outline:hover {
    transform: translateY(-2px);
    border-color: #0f766e;
    box-shadow: 0 16px 36px -24px rgba(6, 61, 110, 0.35);
  }
}

.khie-scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.khie-scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Featured workspace categories — dark navy glowing-corner cards */
.khie-workspace-section {
  background:
    linear-gradient(180deg, #f0f4f8 0%, #f8fafc 35%, #eef2f7 100%);
}

html.dark .khie-workspace-section {
  background:
    linear-gradient(180deg, #020617 0%, #0b1220 40%, #021526 100%);
}

.khie-workspace-section__accent {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(6, 61, 110, 0.08), transparent 62%),
    radial-gradient(ellipse 45% 35% at 95% 50%, rgba(14, 165, 233, 0.06), transparent 58%);
}

html.dark .khie-workspace-section__accent {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(14, 165, 233, 0.12), transparent 62%),
    radial-gradient(ellipse 45% 35% at 95% 50%, rgba(15, 118, 110, 0.1), transparent 58%);
}

.khie-workspace-section__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(6, 61, 110, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 61, 110, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 12%, transparent 100%);
  opacity: 0.55;
}

html.dark .khie-workspace-section__mesh {
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 212, 191, 0.025) 1px, transparent 1px);
}

.khie-workspace-section__network {
  pointer-events: none;
  position: absolute;
  left: -1%;
  bottom: 8%;
  width: min(36vw, 22rem);
  color: #063d6e;
  opacity: 0.12;
}

html.dark .khie-workspace-section__network {
  color: #38bdf8;
  opacity: 0.08;
}

.khie-workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .khie-workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .khie-workspace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.65rem;
  }
}

.khie-workspace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 18rem;
  overflow: hidden;
  padding: 1.65rem 1.5rem 1.35rem;
  border-radius: 1.125rem;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: #021526;
  text-decoration: none;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(4, 44, 79, 0.8) inset,
    0 14px 36px -18px rgba(2, 21, 38, 0.55),
    0 0 40px -20px rgba(6, 61, 110, 0.35);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease,
    border-color 0.34s ease;
}

.khie-workspace-card__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.9;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.55) 0%, transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.42) 0%, transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.38) 0%, transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.48) 0%, transparent 38%);
  transition: opacity 0.34s ease;
}

.khie-workspace-card__surface {
  pointer-events: none;
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(1.125rem - 1px);
  background: linear-gradient(155deg, #063d6e 0%, #042c4f 38%, #021526 72%, #031a30 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.khie-workspace-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 1.15rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 20px -4px rgba(56, 189, 248, 0.45);
  transition: transform 0.34s ease, box-shadow 0.34s ease;
}

.khie-workspace-card--hospital .khie-workspace-card__icon { background: linear-gradient(135deg, #0ea5e9, #063d6e); }
.khie-workspace-card--doctor .khie-workspace-card__icon { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.khie-workspace-card--laboratory .khie-workspace-card__icon { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.khie-workspace-card--pharmacy .khie-workspace-card__icon { background: linear-gradient(135deg, #10b981, #0f766e); }
.khie-workspace-card--citizen .khie-workspace-card__icon { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.khie-workspace-card--payer .khie-workspace-card__icon { background: linear-gradient(135deg, #059669, #042c4f); }

.khie-workspace-card__label {
  position: relative;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.75);
}

.khie-workspace-card__title {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  font-family: var(--khie-font-display, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.khie-workspace-card__desc {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.khie-workspace-card__more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.14);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
  transition: gap 0.25s ease, color 0.25s ease;
}

.khie-workspace-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #f8fafc,
    0 0 0 4px rgba(56, 189, 248, 0.55),
    0 14px 36px -18px rgba(2, 21, 38, 0.55);
}

@media (hover: hover) {
  .khie-workspace-card:hover {
    transform: translateY(-7px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.2) inset,
      0 22px 48px -16px rgba(2, 21, 38, 0.65),
      0 0 56px -12px rgba(14, 165, 233, 0.35);
  }

  .khie-workspace-card:hover .khie-workspace-card__glow {
    opacity: 1;
  }

  .khie-workspace-card:hover .khie-workspace-card__icon {
    transform: scale(1.07) translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 0 28px -2px rgba(56, 189, 248, 0.65);
  }

  .khie-workspace-card:hover .khie-workspace-card__more {
    gap: 0.55rem;
    color: #bae6fd;
  }
}

@media (prefers-reduced-motion: reduce) {
  .khie-workspace-card,
  .khie-workspace-card__icon,
  .khie-workspace-card__glow {
    transition: none;
  }
}

.khie-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  text-decoration: none;
  box-shadow: 0 22px 50px -36px rgba(6, 61, 110, 0.28);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

html.dark .khie-category-card {
  border-color: rgba(71, 85, 105, 0.55);
  background: #0f172a;
}

.khie-category-card__visual {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  transition: transform 0.45s ease;
}

.khie-category-card__visual--navy {
  background: linear-gradient(135deg, #042c4f, #063d6e);
}
.khie-category-card__visual--teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.khie-category-card__visual--emerald {
  background: linear-gradient(135deg, #059669, #34d399);
}
.khie-category-card__visual--cyan {
  background: linear-gradient(135deg, #0e7490, #22d3ee);
}
.khie-category-card__visual--indigo {
  background: linear-gradient(135deg, #3730a3, #6366f1);
}
.khie-category-card__visual--mint {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
}

.khie-category-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.5rem;
}

.khie-category-card__title {
  font-family: var(--khie-font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

html.dark .khie-category-card__title {
  color: #f8fafc;
}

.khie-category-card__hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

html.dark .khie-category-card__hint {
  color: #94a3b8;
}

.khie-category-card__cta {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
}

@media (hover: hover) {
  .khie-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 28px 60px -28px rgba(6, 61, 110, 0.38);
  }

  .khie-category-card:hover .khie-category-card__visual {
    transform: scale(1.04);
  }
}

.khie-premium-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  padding: 1.75rem;
  box-shadow: 0 18px 44px -32px rgba(15, 23, 42, 0.22);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

html.dark .khie-premium-card {
  border-color: rgba(71, 85, 105, 0.55);
  background: #0f172a;
}

.khie-premium-card__icon {
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 1rem;
  background: color-mix(in srgb, #ecfeff, transparent 35%);
}

html.dark .khie-premium-card__icon {
  background: color-mix(in srgb, #042f2e, transparent 55%);
}

@media (hover: hover) {
  .khie-premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 24px 50px -28px rgba(6, 61, 110, 0.3);
  }
}

.khie-value-tile {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, #f8fafc, #ffffff);
  padding: 1.25rem 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html.dark .khie-value-tile {
  border-color: rgba(71, 85, 105, 0.5);
  background: linear-gradient(160deg, #0f172a, #111827);
}

@media (hover: hover) {
  .khie-value-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -24px rgba(6, 61, 110, 0.25);
  }
}

.khie-split-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  padding: 2rem;
  box-shadow: 0 24px 56px -36px rgba(6, 61, 110, 0.28);
}

.khie-split-panel--alt {
  background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 55%);
}

html.dark .khie-split-panel {
  border-color: rgba(71, 85, 105, 0.55);
  background: #0f172a;
}

html.dark .khie-split-panel--alt {
  background: linear-gradient(160deg, #042c4f 0%, #0f172a 60%);
}

.khie-service-chip {
  display: block;
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

html.dark .khie-service-chip {
  border-color: rgba(71, 85, 105, 0.55);
  background: #111827;
}

@media (hover: hover) {
  .khie-service-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.45);
    background: white;
  }

  html.dark .khie-service-chip:hover {
    background: #0f172a;
  }
}

.khie-compat-tile {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem 1.15rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

@media (hover: hover) {
  .khie-compat-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
  }
}

.khie-about-panel {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .khie-about-panel:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .khie-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .khie-hero-parallax__layer {
    transform: none !important;
  }
}

/* Hero overlapping feature cards (reference layout) */
.khie-hero-float-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0.35rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  box-shadow: 0 22px 50px -32px rgba(15, 23, 42, 0.28);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

html.dark .khie-hero-float-card {
  border-color: #334155;
  background: #0f172a;
}

.khie-hero-float-card__icon {
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.khie-hero-float-card__title {
  font-family: var(--khie-font-display, inherit);
  font-size: 1rem;
  font-weight: 800;
  color: #042c4f;
}

html.dark .khie-hero-float-card__title {
  color: #e2e8f0;
}

.khie-hero-float-card__hint {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
}

html.dark .khie-hero-float-card__hint {
  color: #94a3b8;
}

@media (hover: hover) {
  .khie-hero-float-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px -28px rgba(6, 61, 110, 0.35);
  }
}

/* ═══════════════════════════════════════════════════════════════
   Clinical Exchange — executive feature section
   ═══════════════════════════════════════════════════════════════ */
.khie-clinical-exchange {
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 42%, #eef2f7 100%);
}

html.dark .khie-clinical-exchange {
  background: linear-gradient(165deg, #0b1220 0%, #0f172a 45%, #071422 100%);
}

.khie-clinical-exchange__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.khie-clinical-exchange__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 8% 20%, rgba(6, 61, 110, 0.08), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 75%, rgba(15, 118, 110, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(14, 165, 233, 0.06), transparent 50%);
}

.khie-clinical-exchange__grid {
  position: absolute;
  inset: 0;
  background-size: 52px 52px;
  background-image:
    linear-gradient(to right, rgba(6, 61, 110, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 118, 110, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 10%, transparent 100%);
  opacity: 0.7;
}

.khie-clinical-exchange__hex {
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(40vw, 22rem);
  height: min(40vw, 22rem);
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' fill='none' stroke='%23063d6e' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

.khie-clinical-exchange__network {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 52rem);
  transform: translate(-50%, -50%);
  color: #0f766e;
  opacity: 0.12;
}

html.dark .khie-clinical-exchange__network {
  color: #5eead4;
  opacity: 0.08;
}

.khie-clinical-exchange__line {
  animation: khie-ce-line-flow 18s linear infinite;
}

.khie-clinical-exchange__line--delay {
  animation-delay: -6s;
}

@keyframes khie-ce-line-flow {
  to { stroke-dashoffset: -120; }
}

.khie-clinical-exchange__node {
  fill: #0ea5e9;
  animation: khie-ce-node-pulse 3.5s ease-in-out infinite;
}

.khie-clinical-exchange__node--delay { animation-delay: -0.8s; }
.khie-clinical-exchange__node--delay2 { animation-delay: -1.6s; fill: #0f766e; }
.khie-clinical-exchange__node--delay3 { animation-delay: -2.4s; fill: #14b8a6; }

@keyframes khie-ce-node-pulse {
  0%, 100% { opacity: 0.5; r: 7; }
  50% { opacity: 1; r: 10; }
}

.khie-clinical-exchange__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  animation: khie-float-soft 9s ease-in-out infinite;
}

.khie-clinical-exchange__orb--1 {
  width: 14rem;
  height: 14rem;
  top: 8%;
  left: -4%;
  background: rgba(14, 165, 233, 0.14);
}

.khie-clinical-exchange__orb--2 {
  width: 11rem;
  height: 11rem;
  bottom: 12%;
  right: 5%;
  background: rgba(15, 118, 110, 0.12);
  animation-delay: -4.5s;
}

.khie-clinical-exchange__cta {
  background: linear-gradient(135deg, #0f172a 0%, #12355b 55%, #2563eb 100%);
  box-shadow: 0 14px 36px -14px rgba(6, 61, 110, 0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

@media (hover: hover) {
  .khie-clinical-exchange__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 44px -16px rgba(6, 61, 110, 0.6);
  }
}

.khie-clinical-exchange__illus-svg {
  width: 100%;
  max-width: 26rem;
  height: auto;
  filter: drop-shadow(0 24px 48px -24px rgba(6, 61, 110, 0.25));
}

.khie-clinical-exchange__illus-node {
  animation: khie-ce-node-pulse 4s ease-in-out infinite;
}

.khie-clinical-exchange__illus-link {
  animation: khie-ce-line-flow 14s linear infinite;
}

.khie-clinical-ex-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.khie-clinical-ex-card--offset {
  margin-left: 0;
}

@media (min-width: 1024px) {
  .khie-clinical-ex-card--offset {
    margin-left: 1.5rem;
  }
}

.khie-clinical-ex-card__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(15, 118, 110, 0.35), rgba(6, 61, 110, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
  transition: opacity 0.35s ease;
}

.khie-clinical-ex-card__inner {
  position: relative;
  height: 100%;
  padding: 1.65rem 1.5rem;
  border-radius: calc(1.25rem - 1px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 48px -28px rgba(6, 61, 110, 0.18);
}

html.dark .khie-clinical-ex-card__inner {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.88) 100%);
  border-color: rgba(51, 65, 85, 0.65);
}

.khie-clinical-ex-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.khie-clinical-ex-card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(6, 61, 110, 0.45);
  transition: transform 0.35s ease;
}

.khie-clinical-ex-card__icon--teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.khie-clinical-ex-card__icon--sky { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.khie-clinical-ex-card__icon--emerald { background: linear-gradient(135deg, #059669, #34d399); }

.khie-clinical-ex-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.95);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.khie-clinical-ex-card__status--sky { color: #0369a1; background: rgba(240, 249, 255, 0.95); border-color: rgba(14, 165, 233, 0.25); }
.khie-clinical-ex-card__status--emerald { color: #047857; background: rgba(236, 253, 245, 0.95); border-color: rgba(16, 185, 129, 0.25); }

html.dark .khie-clinical-ex-card__status {
  background: rgba(15, 118, 110, 0.15);
  color: #5eead4;
}

.khie-clinical-ex-card__status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  animation: khie-ce-status-blink 2.2s ease-in-out infinite;
}

@keyframes khie-ce-status-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.khie-clinical-ex-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #042c4f;
  letter-spacing: -0.02em;
}

html.dark .khie-clinical-ex-card__title {
  color: #f1f5f9;
}

.khie-clinical-ex-card__desc {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #64748b;
}

html.dark .khie-clinical-ex-card__desc {
  color: #94a3b8;
}

.khie-clinical-ex-card__learn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

html.dark .khie-clinical-ex-card__learn {
  color: #5eead4;
}

@media (hover: hover) {
  .khie-clinical-ex-card:hover {
    transform: translateY(-6px);
  }

  .khie-clinical-ex-card:hover .khie-clinical-ex-card__glow {
    opacity: 1;
  }

  .khie-clinical-ex-card:hover .khie-clinical-ex-card__icon {
    transform: scale(1.08) translateY(-2px);
  }

  .khie-clinical-ex-card__learn:hover {
    gap: 0.55rem;
    color: #063d6e;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Enterprise Digital Health Ecosystem — portal showcase
   ═══════════════════════════════════════════════════════════════ */
.khie-portals-section--exec {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 32%, #f0f4f8 100%);
}

html.dark .khie-portals-section--exec {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 32%, #071422 100%);
}

.khie-portals-section__hex {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='84' viewBox='0 0 48 84'%3E%3Cpath d='M24 0 L48 12 L48 36 L24 48 L0 36 L0 12 Z' fill='none' stroke='%23063d6e' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 48px 84px;
}

html.dark .khie-portals-section__hex {
  opacity: 0.04;
}

.khie-portals-stats-ribbon__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(6, 61, 110, 0.12);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #063d6e;
  box-shadow: 0 8px 24px -16px rgba(6, 61, 110, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

html.dark .khie-portals-stats-ribbon__chip {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

@media (hover: hover) {
  .khie-portals-stats-ribbon__chip:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.35);
  }
}

.khie-portals-home-grid--exec {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .khie-portals-home-grid--exec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .khie-portals-home-grid--exec {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .khie-portals-home-grid--exec {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.khie-portal-exec-card {
  display: flex;
  flex-direction: column;
  min-height: 18.5rem;
  border-radius: 1.25rem !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.khie-portal-exec-card::after {
  display: none;
}

.khie-portal-exec-card__glass {
  pointer-events: none;
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(1.25rem - 1px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

html.dark .khie-portal-exec-card__glass {
  background: linear-gradient(155deg, rgba(17, 24, 39, 0.94) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.khie-portal-exec-card__border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(18, 53, 91, 0.3), rgba(15, 23, 42, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.khie-portal-exec-card > .khie-portal-feature-card__badge,
.khie-portal-exec-card > .khie-portal-exec-card__icon,
.khie-portal-exec-card > .khie-portal-feature-card__title,
.khie-portal-exec-card > .khie-portal-feature-card__desc,
.khie-portal-exec-card__actions .khie-portal-feature-card__btn {
  position: relative;
  z-index: 1;
}

.khie-portal-exec-card > .khie-portal-feature-card__badge {
  top: 1.15rem;
  right: 1.15rem;
}

.khie-portal-exec-card > .khie-portal-exec-card__icon {
  margin: 1.35rem 1.35rem 0;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.125rem;
  box-shadow: 0 12px 32px -14px rgba(6, 61, 110, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.khie-portal-exec-card > .khie-portal-feature-card__title {
  margin: 1rem 1.35rem 0;
  padding-right: 5.5rem;
  font-size: 1.0625rem;
}

.khie-portal-exec-card > .khie-portal-feature-card__desc {
  margin: 0.55rem 1.35rem 0;
  flex: 1;
}

.khie-portal-exec-card__badge {
  font-size: 0.5625rem !important;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.khie-portal-exec-card__arrow {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Homepage portal accent colours (executive spec) */
.khie-portal-exec-card--hospital .khie-portal-exec-card__icon { background: linear-gradient(135deg, #2563eb, #063d6e) !important; }
.khie-portal-exec-card--doctor .khie-portal-exec-card__icon { background: linear-gradient(135deg, #6366f1, #4338ca) !important; }
.khie-portal-exec-card--pharmacy .khie-portal-exec-card__icon { background: linear-gradient(135deg, #10b981, #059669) !important; }
.khie-portal-exec-card--laboratory .khie-portal-exec-card__icon { background: linear-gradient(135deg, #a855f7, #7c3aed) !important; }
.khie-portal-exec-card--ministry .khie-portal-exec-card__icon { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; }
.khie-portal-exec-card--patient .khie-portal-exec-card__icon { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; }
.khie-portal-exec-card--insurance .khie-portal-exec-card__icon { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.khie-portal-exec-card--emergency .khie-portal-exec-card__icon { background: linear-gradient(135deg, #f97316, #ea580c) !important; }
.khie-portal-exec-card--telemedicine .khie-portal-exec-card__icon { background: linear-gradient(135deg, #22d3ee, #0891b2) !important; }
.khie-portal-exec-card--admin .khie-portal-exec-card__icon { background: linear-gradient(135deg, #64748b, #334155) !important; }

@media (hover: hover) {
  .khie-portal-exec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px -24px rgba(6, 61, 110, 0.28) !important;
  }

  .khie-portal-exec-card:hover .khie-portal-exec-card__border {
    opacity: 1;
  }

  .khie-portal-exec-card:hover .khie-portal-exec-card__icon {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(6, 61, 110, 0.5);
  }

  .khie-portal-exec-card:hover .khie-portal-exec-card__arrow {
    transform: translateX(4px);
  }
}

.khie-portal-exec-card:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.45) !important;
}

@media (prefers-reduced-motion: reduce) {
  .khie-clinical-exchange__line,
  .khie-clinical-exchange__node,
  .khie-clinical-exchange__illus-node,
  .khie-clinical-exchange__illus-link,
  .khie-clinical-ex-card__status-dot,
  .khie-clinical-exchange__orb,
  .khie-portals-section__particles,
  .khie-portal-exec-card__badge-dot {
    animation: none !important;
  }
}

/* Enterprise ecosystem — capability ribbon, portal infobox, exec strip */
.khie-eyebrow--navy {
  color: #12355b;
  letter-spacing: 0.22em;
}

html.dark .khie-eyebrow--navy {
  color: #93c5fd;
}

.khie-portals-section__particles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.5;
}

.khie-portals-section__particles::before,
.khie-portals-section__particles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  animation: khieEcoParticle 18s ease-in-out infinite;
}

.khie-portals-section__particles::before {
  width: 6px;
  height: 6px;
  left: 18%;
  top: 22%;
}

.khie-portals-section__particles::after {
  width: 4px;
  height: 4px;
  right: 24%;
  top: 38%;
  animation-delay: -6s;
  background: radial-gradient(circle, rgba(18, 53, 91, 0.4), transparent 70%);
}

@keyframes khieEcoParticle {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(12px, -18px); opacity: 0.85; }
}

.khie-eco-capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .khie-eco-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .khie-eco-capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.khie-eco-capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -24px rgba(15, 23, 42, 0.18);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

html.dark .khie-eco-capability-card {
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.45);
}

.khie-eco-capability-card__border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.25), rgba(37, 99, 235, 0.35), rgba(18, 53, 91, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  transition: opacity 0.35s ease;
}

.khie-eco-capability-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #12355b);
  box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.55);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.khie-eco-capability-card__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.khie-eco-capability-card__title {
  font-family: var(--khie-font-display, inherit);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .khie-eco-capability-card__title {
  color: #f1f5f9;
}

.khie-eco-capability-card__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

html.dark .khie-eco-capability-card__desc {
  color: #94a3b8;
}

@media (hover: hover) {
  .khie-eco-capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.22);
  }

  .khie-eco-capability-card:hover .khie-eco-capability-card__border {
    opacity: 1;
  }

  .khie-eco-capability-card:hover .khie-eco-capability-card__icon {
    transform: scale(1.08) translateY(-2px);
  }
}

.khie-portal-exec-card {
  min-height: 22.5rem;
}

.khie-portal-exec-card__border {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(37, 99, 235, 0.3), rgba(18, 53, 91, 0.25));
}

.khie-portal-exec-card > .khie-portal-feature-card__desc,
.khie-portal-exec-card > .khie-portal-exec-card__desc {
  margin: 0.55rem 1.35rem 0;
  flex: 0 1 auto;
}

.khie-portal-exec-card > .khie-portal-exec-card__infobox {
  position: relative;
  z-index: 1;
  margin: 0.85rem 1.35rem 0;
}

.khie-portal-exec-card > .khie-portal-exec-card__actions {
  position: relative;
  z-index: 1;
  margin: auto 1.35rem 1.35rem;
  padding-top: 0.5rem;
}

.khie-portal-exec-card__infobox {
  border-radius: 0.875rem;
  padding: 0.75rem 0.85rem;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html.dark .khie-portal-exec-card__infobox {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.15);
}

.khie-portal-exec-card__info-list {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.khie-portal-exec-card__info-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #475569;
}

html.dark .khie-portal-exec-card__info-item {
  color: #cbd5e1;
}

.khie-portal-exec-card__info-icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.khie-portal-exec-card__infobox--hospital .khie-portal-exec-card__info-icon { color: #2563eb; }
.khie-portal-exec-card__infobox--doctor .khie-portal-exec-card__info-icon { color: #6366f1; }
.khie-portal-exec-card__infobox--pharmacy .khie-portal-exec-card__info-icon { color: #10b981; }
.khie-portal-exec-card__infobox--laboratory .khie-portal-exec-card__info-icon { color: #a855f7; }
.khie-portal-exec-card__infobox--ministry .khie-portal-exec-card__info-icon { color: #dc2626; }
.khie-portal-exec-card__infobox--patient .khie-portal-exec-card__info-icon { color: #06b6d4; }
.khie-portal-exec-card__infobox--insurance .khie-portal-exec-card__info-icon { color: #f59e0b; }
.khie-portal-exec-card__infobox--emergency .khie-portal-exec-card__info-icon { color: #f97316; }
.khie-portal-exec-card__infobox--telemedicine .khie-portal-exec-card__info-icon { color: #0ea5e9; }
.khie-portal-exec-card__infobox--admin .khie-portal-exec-card__info-icon { color: #64748b; }

.khie-portal-exec-card__badge-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  animation: khieBadgePulse 2.4s ease-in-out infinite;
}

@keyframes khieBadgePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.khie-portal-exec-card__badge--hospital { color: #2563eb; background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.25); }
.khie-portal-exec-card__badge--doctor { color: #6366f1; background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.25); }
.khie-portal-exec-card__badge--pharmacy { color: #059669; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); }
.khie-portal-exec-card__badge--laboratory { color: #9333ea; background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.25); }
.khie-portal-exec-card__badge--ministry { color: #dc2626; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.25); }
.khie-portal-exec-card__badge--patient { color: #0891b2; background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.25); }
.khie-portal-exec-card__badge--insurance { color: #d97706; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); }
.khie-portal-exec-card__badge--emergency { color: #ea580c; background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.25); }
.khie-portal-exec-card__badge--telemedicine { color: #0284c7; background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.25); }
.khie-portal-exec-card__badge--admin { color: #475569; background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.25); }

.khie-portal-exec-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.khie-portal-exec-card > .khie-portal-feature-card__btn,
.khie-portal-exec-card__actions .khie-portal-feature-card__btn {
  margin: 0;
}

.khie-portal-exec-card__btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.65rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #12355b 55%, #2563eb 100%);
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, gap 0.25s ease;
}

.khie-portal-exec-card__btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #12355b;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, gap 0.25s ease, background 0.25s ease;
}

html.dark .khie-portal-exec-card__btn--secondary {
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

@media (hover: hover) {
  .khie-portal-exec-card__btn--primary:hover {
    filter: brightness(1.08);
    gap: 0.55rem;
  }

  .khie-portal-exec-card__btn--secondary:hover {
    border-color: rgba(37, 99, 235, 0.35);
    gap: 0.5rem;
  }

  .khie-portal-exec-card__btn--secondary:hover .khie-portal-exec-card__arrow {
    transform: translateX(3px);
  }
}

.khie-eco-exec-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(18, 53, 91, 0.06));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html.dark .khie-eco-exec-strip {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(18, 53, 91, 0.45));
  border-color: rgba(148, 163, 184, 0.12);
}

@media (min-width: 640px) {
  .khie-eco-exec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .khie-eco-exec-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.75rem 2rem;
  }
}

.khie-eco-exec-strip__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
}

.khie-eco-exec-strip__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #12355b);
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.5);
}

.khie-eco-exec-strip__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.khie-eco-exec-strip__title {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

html.dark .khie-eco-exec-strip__title {
  color: #f1f5f9;
}

.khie-eco-exec-strip__desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
}

html.dark .khie-eco-exec-strip__desc {
  color: #94a3b8;
}
