/* =========================================================
   Amedox - Smart Hospital Asset Lifecycle Management
   ========================================================= */

:root {
  --bg-black: #05070c;
  --panel-bg: rgba(6, 10, 18, 0.72);
  --blue: #4f8ef7;
  --purple: #a78bfa;
  --green: #4ade80;
  --orange: #f5a623;
  --teal: #34d399;
  --text-main: #f5f7fa;
  --text-muted: #b7c0cc;
  --text-dim: #8a93a3;
  --border-soft: rgba(255, 255, 255, 0.08);
  --font:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page {
  position: relative;
  width: 100%;
  max-width: 100%;
  flex: 1 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 5, 10, 0.3) 0%,
      rgba(3, 5, 10, 0.5) 40%,
      rgba(2, 3, 6, 0.85) 100%
    ),
    url('../assets/background-image.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ---------------- Header ---------------- */
#header-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1000;
  flex: 0 0 auto;
  background: rgba(3, 4, 8, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

#footer-container {
  flex: 0 0 auto;
  margin-top: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 10px 16px;
  position: relative;
  z-index: 1000;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(79, 142, 247, 0.3));
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(79, 142, 247, 0.5));
}

.brand-tagline {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: none;
  font-weight: 600;
}

.main-nav {
  display: none;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a.active {
  color: #ffffff;
  font-weight: 500;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #3e7bff, #2f63e0);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59, 113, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(59, 113, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-wrap {
  position: relative;
  display: inline-flex;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-icon-wrap:hover .header-icon-btn {
  color: #3e7bff;
  border-color: rgba(62, 123, 255, 0.7);
  background: rgba(62, 123, 255, 0.12);
  box-shadow: 0 0 12px rgba(62, 123, 255, 0.4);
  transform: translateY(-1px);
}

.header-icon-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(10, 16, 30, 0.98) 100%
  );
  border: 1px solid rgba(79, 142, 247, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(79, 142, 247, 0.25);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

.header-icon-wrap:hover .header-icon-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-icon-tooltip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}

.header-icon-tooltip .tooltip-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.header-icon-tooltip .tooltip-value {
  font-size: 13px;
  font-weight: 600;
  color: #3e7bff;
  text-decoration: none;
  transition: color 0.15s ease;
  user-select: text;
}

.header-icon-tooltip .tooltip-value:hover {
  color: #4f8ef7;
  text-decoration: underline;
}

#location-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

#location-wrap:hover #location-btn {
  color: #3e7bff;
  border-color: rgba(62, 123, 255, 0.7);
  background: rgba(62, 123, 255, 0.12);
  box-shadow: 0 0 12px rgba(62, 123, 255, 0.4);
}

.header-location-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 280px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(10, 16, 30, 0.99) 100%
  );
  border: 1px solid rgba(79, 142, 247, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(79, 142, 247, 0.25);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
}

.header-location-popup.active,
#location-wrap.active .header-location-popup,
#location-wrap:hover .header-location-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-location-popup::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}

.header-location-popup .popup-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #3e7bff;
  text-transform: uppercase;
}

.header-location-popup .popup-address {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  user-select: text;
}

.header-location-popup .popup-web {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
}

.header-location-popup .web-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.header-location-popup .web-link {
  color: #4f8ef7;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.15s ease,
    text-decoration 0.15s ease;
}

.header-location-popup .web-link:hover {
  color: #3e7bff;
  text-decoration: underline;
}

.btn-demo img {
  width: 14px;
  height: 14px;
}

.header-menu-btn,
.header-menu {
  display: none;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 6px 40px 10px;
  text-align: center;
}

.hero-title {
  margin: 4px 0 0;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-wrap: balance;
  color: #ffffff;
}

.hero-subtitle {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.hospital-tag {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  transform: rotate(-1deg);
  pointer-events: none;
  user-select: none;
}

.hospital-tag .cross-badge {
  width: 26px;
  height: 26px;
  background: #3b71ff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  font-weight: 800;
}

.hospital-tag .hospital-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------------- Layout grid ---------------- */
.grid-wrap {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 20px;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns:
    minmax(220px, 340px) minmax(260px, min(370px, 52dvh)) minmax(220px, 340px);
  justify-content: center;
  align-content: center;
  column-gap: 28px;
  row-gap: 14px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-left {
  grid-column: 1;
}

.col-right {
  grid-column: 3;
}

.wheel-col {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.bottom-card {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 290px;
  align-self: start;
  margin-top: 0px;
}

.card {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px 11px 9px;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.card:hover {
  transform: scale(1.02);
}

.card.active {
  transform: scale(1.05);
  z-index: 10;
}

.card.blue {
  border-color: rgba(79, 142, 247, 0.7);
  box-shadow:
    0 0 20px rgba(79, 142, 247, 0.25),
    inset 0 0 15px rgba(79, 142, 247, 0.08);
}

.card.purple {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow:
    0 0 20px rgba(167, 139, 250, 0.25),
    inset 0 0 15px rgba(167, 139, 250, 0.08);
}

.card.green {
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow:
    0 0 20px rgba(74, 222, 128, 0.25),
    inset 0 0 15px rgba(74, 222, 128, 0.08);
}

.card.orange {
  border-color: rgba(245, 166, 35, 0.7);
  box-shadow:
    0 0 20px rgba(245, 166, 35, 0.25),
    inset 0 0 15px rgba(245, 166, 35, 0.08);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.icon-box img {
  width: 22px;
  height: 22px;
}

.card.blue .icon-box {
  border-color: #4f8ef7;
  background: rgba(79, 142, 247, 0.12);
  /*box-shadow: 0 0 14px rgba(79, 142, 247, 0.5), inset 0 0 10px rgba(79, 142, 247, 0.2);*/
  /* filter: drop-shadow(0 0 5px rgba(79, 142, 247, 0.6)); */
}

.card.purple .icon-box {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  /*box-shadow: 0 0 14px rgba(167, 139, 250, 0.5), inset 0 0 10px rgba(167, 139, 250, 0.2);*/
  /* filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.6)); */
}

.card.green .icon-box {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  /*box-shadow: 0 0 14px rgba(74, 222, 128, 0.5), inset 0 0 10px rgba(74, 222, 128, 0.2);*/
  /* filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.6)); */
}

.card.orange .icon-box {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
  /*box-shadow: 0 0 14px rgba(245, 166, 35, 0.5), inset 0 0 10px rgba(245, 166, 35, 0.2);*/
  /* filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.6)); */
}

.card-head-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.card.blue .card-num {
  color: var(--blue);
}

.card.purple .card-num {
  color: var(--purple);
}

.card.green .card-num {
  color: var(--green);
}

.card.orange .card-num {
  color: var(--orange);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.2;
}

.card-title {
  margin: 3px 0 6px;
  font-size: 11px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.3;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* padding-right: 65px; */
}

.card-list li {
  position: relative;
  padding-left: 12px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--text-muted);
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Extra space under the header only on a large display. */
@media (min-width: 1600px) {
  .hero {
    padding-top: clamp(28px, 3.6dvh, 44px);
  }
}

/* Side cards grow into the slack beside the wheel.
   Short viewports stay at the original size so the page still fits. */
@media (min-width: 1100px) {
  .col .card {
    padding: clamp(8px, 1.15dvh, 12px) clamp(12px, 1.4dvh, 16px)
      clamp(9px, 1.25dvh, 13px);
  }

  .col .icon-box {
    width: clamp(36px, 4.4dvh, 44px);
    height: clamp(36px, 4.4dvh, 44px);
  }

  .col .icon-box img {
    width: clamp(22px, 2.6dvh, 26px);
    height: clamp(22px, 2.6dvh, 26px);
  }

  .col .card-num {
    font-size: clamp(13px, 1.55dvh, 15px);
  }

  .col .card-label {
    font-size: clamp(11px, 1.35dvh, 12.5px);
  }

  .col .card-title {
    font-size: clamp(11px, 1.5dvh, 13.5px);
  }

  .col .card-list {
    gap: clamp(3px, 0.4dvh, 5px);
  }

  .col .card-list li {
    font-size: clamp(10.5px, 1.4dvh, 12.5px);
  }
}

.card-chart {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 72px;
  height: 50px;
  background: rgba(3, 7, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 15px 2px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.card.blue .card-chart {
  border-color: rgba(79, 142, 247, 0.35);
  box-shadow:
    0 0 8px rgba(79, 142, 247, 0.15),
    inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.card.purple .card-chart {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow:
    0 0 8px rgba(167, 139, 250, 0.15),
    inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.card.green .card-chart {
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow:
    0 0 8px rgba(74, 222, 128, 0.15),
    inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.card.orange .card-chart {
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow:
    0 0 8px rgba(245, 166, 35, 0.15),
    inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Bottom wide card (07) */
.bottom-card .card {
  position: relative;
  display: block;
}

.bottom-card .card-body {
  width: 100%;
}

.bottom-card .card-content-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bottom-card .card-title {
  margin-bottom: 8px;
}

.bottom-card .card-extra {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 6px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(79, 142, 247, 0.35);
  background-color: rgba(4, 6, 12, 0.75);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.bottom-card .pie-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-card .pie-icon svg {
  width: 28px;
  height: 28px;
}

.bottom-card .menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.bottom-card .menu-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------------- Lifecycle Wheel (440px) ---------------- */
.wheel {
  position: relative;
  width: min(370px, 100%, 52dvh);
  aspect-ratio: 1;
  height: auto;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0c101b 0%, #05060b 70%);
  padding: 4px;
}

.wheel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3.5px;
  background: conic-gradient(
    from 180deg,
    #00e5ff 0deg,
    #a78bfa 60deg,
    #f43f5e 120deg,
    #f5a623 200deg,
    #10b981 280deg,
    #00e5ff 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow:
    0 0 25px rgba(0, 229, 255, 0.65),
    0 0 50px rgba(167, 139, 250, 0.4),
    inset 0 0 20px rgba(0, 229, 255, 0.35);
}

.wheel-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #06080e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wheel-center {
  text-align: center;
  z-index: 5;
}

.wheel-logo-img {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  margin: 0 auto 4px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(79, 142, 247, 0.4));
}

.wheel-tagline-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.wheel-rainbow-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(
    90deg,
    #4f8ef7,
    #a78bfa,
    #ec4899,
    #f5a623,
    #4ade80
  );
  margin: 8px auto 8px;
  border-radius: 2px;
}

.wheel-sub {
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-weight: 700;
}

.wheel-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: clamp(58px, 22%, 76px);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 6;
}

.wheel-node img {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.85));
}

.wheel-node span {
  font-size: clamp(8px, 0.7vw, 10px);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* node positions around 540x540 wheel using exact polar math (R=218px) */
.node-requirement {
  left: 50%;
  top: 9.6%;
}

.node-purchase {
  left: 71.8%;
  top: 16%;
}

.node-delivery {
  left: 86.7%;
  top: 33.2%;
}

.node-installation {
  left: 90%;
  top: 55.7%;
}

.node-registration {
  left: 80.5%;
  top: 76.4%;
}

.node-pm {
  left: 61.4%;
  top: 88.7%;
}

.node-calibration {
  left: 38.6%;
  top: 88.7%;
}

.node-cmc {
  left: 19.5%;
  top: 76.4%;
}

.node-breakdown {
  left: 10%;
  top: 55.7%;
}

.node-depreciation {
  left: 13.3%;
  top: 33.2%;
}

.node-disposal {
  left: 28.2%;
  top: 16%;
}

/* connector dots on the wheel ring */
.wheel-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Left connector dots (300deg, 270deg, 240deg) */
.dot-blue {
  background: var(--blue);
  left: 6.7%;
  top: 25%;
  box-shadow:
    0 0 10px #4f8ef7,
    0 0 18px #4f8ef7;
}

.dot-purple {
  background: var(--purple);
  left: 0%;
  top: 50%;
  box-shadow:
    0 0 10px #a78bfa,
    0 0 18px #a78bfa;
}

.dot-green {
  background: var(--green);
  left: 6.7%;
  top: 75%;
  box-shadow:
    0 0 10px #4ade80,
    0 0 18px #4ade80;
}

/* Right connector dots (60deg, 90deg, 120deg) */
.dot-right-green {
  background: var(--green);
  left: 93.3%;
  top: 25%;
  box-shadow:
    0 0 10px #4ade80,
    0 0 18px #4ade80;
}

.dot-right-orange {
  background: var(--orange);
  left: 100%;
  top: 50%;
  box-shadow:
    0 0 10px #f5a623,
    0 0 18px #f5a623;
}

.dot-right-purple {
  background: var(--purple);
  left: 93.3%;
  top: 75%;
  box-shadow:
    0 0 10px #a78bfa,
    0 0 18px #a78bfa;
}

/* Bottom connector dot (180deg) for Card 07 */
.dot-bottom-blue {
  background: var(--blue);
  left: 50%;
  top: 100%;
  box-shadow:
    0 0 10px #4f8ef7,
    0 0 18px #4f8ef7;
}

/* ---------------- Connector lines (card -> wheel) ---------------- */
.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connectors polyline {
  filter: drop-shadow(0 0 3px currentColor);
}

/* ---------------- Feature Strip (Full-width bar below grid) ---------------- */
.feature-strip-wrap {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.feature-strip {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.feature-text strong {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.feature-text span {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 400;
}

/* ---------------- Footer strip ---------------- */
.footer-strip {
  background: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-col-brand {
  max-width: 380px;
}

.footer-col-brand .footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-subsidiary {
  font-size: 11.5px;
  font-weight: 600;
  color: #4f8ef7;
  letter-spacing: 0.5px;
  margin-top: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.footer-col-brand .footer-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-col-corporate {
  flex: 1;
  max-width: 350px;
}

.footer-corporate {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.corporate-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.corporate-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.corporate-address svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-col-contact {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-card:hover {
  background: rgba(79, 142, 247, 0.08);
  border-color: rgba(79, 142, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.contact-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon.blue {
  background: rgba(79, 142, 247, 0.12);
  color: #4f8ef7;
}

.contact-card-icon.green {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.contact-card-icon.purple {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.contact-card-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.contact-card-text .card-label {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.contact-card-text .card-label::after {
  content: ':';
}

.contact-card-text .card-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.footer-bottom-wrap {
  width: 100%;
  max-width: 1400px;
  padding-top: 20px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: left;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  justify-self: center;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.footer-powered-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.footer-powered-link:hover {
  color: #ffffff;
}

.footer-powered-logo {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.footer-powered-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.4);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.footer-powered-link:hover .footer-powered-logo::after,
.footer-powered-link:focus-visible .footer-powered-logo::after {
  opacity: 0;
}

.footer-powered img {
  height: 16px;
  width: auto;
  display: block;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #4f8ef7;
}

/* ---------------- Free Consultation Modal (Amedox Dark Theme) ---------------- */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(2, 4, 8, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
  padding: max(16px, env(safe-area-inset-top)) 16px
    max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.demo-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal {
  background:
    linear-gradient(
      180deg,
      rgba(11, 15, 25, 0.88) 0%,
      rgba(11, 15, 25, 0.94) 100%
    ),
    url('../assets/background-image.jpg') center/cover no-repeat;
  border: 1px solid rgba(79, 142, 247, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  padding: 32px 36px;
  position: relative;
  overflow: visible;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(79, 142, 247, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.demo-modal-overlay.open .demo-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(79, 142, 247, 0.15);
  border-color: rgba(79, 142, 247, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(79, 142, 247, 0.3);
}

.modal-heading {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.modal-subheading {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status.is-success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.form-status.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group:has(.country-picker-dropdown.show) {
  position: relative;
  z-index: 5;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group label .optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
}

.field-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #fca5a5;
}

.form-group.is-invalid .form-input,
.form-group.is-invalid .form-textarea,
.form-group.is-invalid .phone-input-wrap {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.45);
}

.form-group.is-invalid .phone-input-wrap:focus-within,
.form-group.is-invalid .form-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.form-input,
.phone-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-input::placeholder,
.phone-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.phone-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: #4f8ef7;
  box-shadow: 0 0 14px rgba(79, 142, 247, 0.35);
}

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: visible;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.phone-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: #4f8ef7;
  box-shadow: 0 0 14px rgba(79, 142, 247, 0.35);
}

.country-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.country-prefix:hover,
.country-prefix:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.country-prefix .flag-icon {
  font-size: 16px;
}

.country-prefix .dropdown-arrow {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.country-prefix.active .dropdown-arrow {
  transform: rotate(180deg);
}

.country-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 90vw;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 30;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.country-picker-dropdown.show {
  display: flex;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-search-wrap {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.country-search-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.country-search-input:focus {
  border-color: #4f8ef7;
  background: rgba(255, 255, 255, 0.09);
}

.country-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.country-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: min(220px, 40dvh);
  overflow-y: auto;
}

.country-list::-webkit-scrollbar {
  width: 6px;
}

.country-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.15s ease;
}

.country-option:hover,
.country-option.highlighted {
  background: rgba(79, 142, 247, 0.2);
  color: #ffffff;
}

.country-option.selected {
  background: rgba(79, 142, 247, 0.3);
  font-weight: 600;
}

.country-option .country-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.country-option .country-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-option .country-dial-code {
  font-weight: 500;
  color: #4f8ef7;
  margin-left: 8px;
  flex-shrink: 0;
}

.no-country-found {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.phone-input-wrap .phone-input {
  border: none;
  background: transparent;
  border-radius: 0 10px 10px 0;
}

.phone-input-wrap .phone-input:focus {
  box-shadow: none;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-consultation-submit {
  width: 100%;
  background: linear-gradient(135deg, #3e7bff 0%, #2f63e0 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(59, 113, 255, 0.45);
  transition: all 0.2s ease;
}

.btn-consultation-submit:hover {
  background: linear-gradient(135deg, #4f8ef7 0%, #3b71ff 100%);
  box-shadow: 0 10px 30px rgba(59, 113, 255, 0.65);
  transform: translateY(-1px);
}

.btn-consultation-submit:active {
  transform: translateY(1px);
}

/* ---------------- Right Slide-over Drawer (Legal / Policies) ---------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2100;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 540px;
  height: 100vh;
  height: 100dvh;
  background:
    linear-gradient(
      180deg,
      rgba(11, 15, 25, 0.98) 0%,
      rgba(11, 15, 25, 0.96) 100%
    ),
    url('../assets/background-image.jpg') center/cover no-repeat;
  border-left: 1px solid rgba(79, 142, 247, 0.35);
  box-shadow:
    -20px 0 60px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(79, 142, 247, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2110;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.drawer-overlay.open .slide-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(8px);
}

.drawer-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.drawer-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #4f8ef7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.drawer-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.35);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  padding: 28px 32px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.drawer-body h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.drawer-body h3:first-child {
  margin-top: 0;
}

.drawer-body p {
  margin: 0 0 14px;
  color: var(--text-dim);
}

.drawer-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.drawer-body li {
  margin-bottom: 6px;
  color: var(--text-dim);
}

.drawer-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 25, 0.6);
  display: flex;
  justify-content: flex-end;
}

.btn-drawer-done {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-done:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: rgba(79, 142, 247, 0.5);
  color: #ffffff;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1099px) {
  .hero {
    padding: 12px 16px 12px;
  }

  .grid-wrap {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    max-width: 720px;
  }

  .wheel-col {
    order: 1;
    margin: 8px 0 16px;
  }

  .col-left,
  .col-right {
    width: 100%;
  }

  .col-left {
    order: 2;
  }

  .col-right {
    order: 3;
  }

  .bottom-card {
    order: 4;
    width: 100%;
    max-width: none;
  }

  .feature-strip-wrap {
    order: 5;
  }

  .wheel {
    width: min(420px, 78vw, 62dvh);
    margin: 0 auto;
  }

  .connectors {
    display: none;
  }

  .hospital-tag {
    display: none;
  }

  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .site-header {
    max-width: 720px;
  }

  .footer-bottom {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 14px;
  }

  .wheel-logo {
    font-size: 28px;
  }

  .header-icon-tooltip {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo-img {
    height: 22px;
    max-width: 100%;
  }

  .header-actions {
    position: relative;
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-icon-wrap {
    display: none;
  }

  .header-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .header-menu-btn:hover,
  .header-menu-btn[aria-expanded='true'] {
    color: #3e7bff;
    border-color: rgba(62, 123, 255, 0.7);
    background: rgba(62, 123, 255, 0.12);
    box-shadow: 0 0 12px rgba(62, 123, 255, 0.4);
  }

  .header-menu-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .header-menu-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
  }

  .header-menu-btn[aria-expanded='true'] .header-menu-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }

  .header-menu-btn[aria-expanded='true'] .header-menu-icon-close {
    opacity: 1;
    transform: none;
  }

  .header-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(79, 142, 247, 0.4);
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.98) 0%,
      rgba(10, 16, 30, 0.99) 100%
    );
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(79, 142, 247, 0.25);
    backdrop-filter: blur(14px);
    z-index: 1100;
  }

  .header-menu-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }

  .header-menu-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .header-menu-address,
  .header-menu-detail {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    color: #ffffff;
  }

  .header-menu-site,
  .header-menu-link {
    color: #3e7bff;
    text-decoration: none;
  }

  .header-menu-site {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
  }

  .header-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .header-menu-link svg,
  .header-menu-location svg {
    flex: 0 0 auto;
    color: #3e7bff;
  }

  .header-menu-link:hover,
  .header-menu-site:hover {
    background: rgba(62, 123, 255, 0.12);
  }

  .header-icon-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .btn-demo {
    padding: 7px 8px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 8px 16px 12px;
  }

  .hero-title {
    font-size: clamp(17px, 4.8vw, 22px);
    letter-spacing: 0.04em;
  }

  .hero-subtitle {
    font-size: 13.5px;
  }

  .grid-wrap {
    padding: 0 14px 24px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .wheel {
    width: min(340px, 76vw, 58dvh);
  }

  .wheel-node {
    width: clamp(54px, 24%, 70px);
  }

  .wheel-center {
    max-width: 46%;
  }

  .wheel-logo-img {
    height: 28px;
    max-width: 120px;
  }

  .wheel-tagline-sub {
    font-size: 10px;
  }

  .wheel-sub {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .card {
    padding: 12px 12px 12px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-list li {
    font-size: 12px;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    padding: 8px 12px;
    gap: 0;
  }

  .feature-item {
    padding: 10px 4px;
  }

  .feature-item + .feature-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bottom-card .card-body {
    display: flex;
    flex-direction: column;
  }

  .bottom-card .card-content-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .footer-strip {
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.45;
  }

  .header-location-popup {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 56px);
    left: 14px;
    right: 14px;
    width: auto;
  }

  .demo-modal {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .details-modal-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .details-modal-close {
    top: 8px;
    right: 8px;
  }

  .ps-white-box {
    border-radius: 14px;
  }
}

/* ---------------- Responsive Footer ---------------- */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .footer-col-brand,
  .footer-col-corporate,
  .footer-col-contact {
    max-width: 100%;
    width: 100%;
  }

  .contact-cards {
    width: 100%;
  }

  .contact-card {
    width: 100%;
    border-radius: 12px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    max-width: none;
    padding-inline: 0;
  }

  .footer-bottom p {
    text-align: center;
  }

  .footer-powered {
    align-self: center;
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .footer-strip {
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .contact-card-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .contact-card-text .card-label::after {
    content: '';
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------------- Card Popover Modal (Empty Popup Mode) ---------------- */
/* Backdrop blur when card popover is active */
body.popover-open main,
body.popover-open header,
body.popover-open footer {
  filter: blur(5px);
  transition: filter 0.25s ease;
}

body.popover-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1040;
  pointer-events: auto;
}

/* Ensure clicked active card stays clear, elevated above backdrop overlay */
.card.active {
  position: relative;
  z-index: 1045 !important;
  transform: scale(1.05);
  filter: none !important;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(37, 99, 235, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card-popover.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.card-popover-dialog {
  width: 850px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 25px 65px -10px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #1e293b;
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Close Button */
.popover-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1055;
  transition: all 0.2s ease;
}

.popover-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: scale(1.05);
}

/* Popover Arrow Pointer */
.card-popover-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  z-index: 1051;
}

.card-popover.arrow-left .card-popover-arrow {
  left: -8px;
  top: 50%;
  margin-top: -8px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-popover.arrow-right .card-popover-arrow {
  right: -8px;
  top: 50%;
  margin-top: -8px;
  transform: rotate(45deg);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-popover.arrow-bottom .card-popover-arrow {
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  transform: rotate(45deg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header */
.popover-header {
  margin-bottom: 14px;
}

.popover-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popover-header-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  flex-shrink: 0;
}

.popover-card-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-right: 4px;
}

.popover-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
  text-transform: uppercase;
  display: inline;
}

.popover-card-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

/* Main 2-Column Body */
.popover-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.popover-col {
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.popover-problems-col {
  background: #fff8f8;
  border: 1px solid #fee2e2;
  display: flex;
  flex-direction: column;
}

.popover-benefits-col {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Badges */
.popover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

.badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

.badge-success {
  background: #dcfce7;
  color: #16a34a;
}

/* Bullet list for problems */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.35;
  font-weight: 500;
}

.problem-list li .icon {
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Callout box */
.popover-callout {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
}

.callout-danger {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
}

/* 4 Top KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.kpi-label {
  font-size: 0.58rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #16a34a;
  margin: 2px 0;
  line-height: 1.1;
}

.kpi-change {
  font-size: 0.58rem;
  color: #16a34a;
  font-weight: 600;
  white-space: nowrap;
}

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.chart-box-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

/* Donut Chart Styling */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donut-svg-box {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.donut-svg-box svg {
  transform: rotate(-90deg);
  width: 58px;
  height: 58px;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
  width: 100%;
}

.donut-center-text strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f172a;
}

.donut-center-text span {
  font-size: 0.45rem;
  color: #64748b;
  display: block;
  white-space: nowrap;
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.6rem;
  color: #475569;
  flex-grow: 1;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  white-space: nowrap;
}

.donut-legend li strong {
  font-weight: 700;
  margin-left: 2px;
}

.donut-legend .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-blue {
  background: #2563eb;
}

.dot-cyan {
  background: #06b6d4;
}

.dot-gray {
  background: #cbd5e1;
}

/* Bar Chart Styling */
.bar-chart-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 54px;
  padding-top: 3px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 18%;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #16a34a, #22c55e);
  border-radius: 3px 3px 0 0;
}

.bar-col span {
  font-size: 0.52rem;
  color: #64748b;
  white-space: nowrap;
}

/* Bottom Trend Chart + Checklist Row */
.bottom-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.month-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: #64748b;
  margin-top: 3px;
}

.ensures-box {
  background: #f8fafc;
}

.ensures-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #16a34a;
  margin-bottom: 5px;
}

.ensures-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.58rem;
  color: #334155;
}

.ensures-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.check-icon {
  color: #16a34a;
  font-weight: bold;
}

/* Footer Banner */
.popover-footer {
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.walkthrough-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-icon {
  font-size: 1.1rem;
  background: #ffffff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.walkthrough-text {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
}

.walkthrough-text strong {
  color: #1e293b;
  font-weight: 700;
}

.walkthrough-text span {
  color: #64748b;
}

.btn-popover-demo {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-popover-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.trusted-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  color: #475569;
  line-height: 1.2;
}

.trusted-tag .avatars {
  display: flex;
}

.trusted-tag .avatars span {
  margin-right: -4px;
  background: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card {
  cursor: pointer;
}

/* ---------------- Responsive Popover Styles ---------------- */
@media (max-width: 992px) {
  .card-popover-dialog {
    width: 90vw;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 16px;
  }

  .popover-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .popover-card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .card-popover-dialog {
    width: 94vw;
    padding: 14px;
    border-radius: 16px;
  }

  .popover-header-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .popover-card-num {
    font-size: 1.1rem;
  }

  .popover-card-title {
    font-size: 1rem;
  }

  .popover-card-subtitle {
    font-size: 0.78rem;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .charts-row,
  .bottom-widgets-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .popover-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }

  .walkthrough-tag,
  .trusted-tag {
    justify-content: center;
  }

  .btn-popover-demo {
    width: 100%;
  }

  .card-popover-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .card-popover-dialog {
    width: 96vw;
    max-height: calc(100dvh - 24px);
    padding: 12px;
  }

  .problem-list li {
    font-size: 0.72rem;
  }

  .kpi-value {
    font-size: 0.95rem;
  }
}

/* =========================================================
   DETAILS UI MODAL OVERLAY STYLES
   ========================================================= */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 5, 12, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.details-modal-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: transparent;
  transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeInModalContent 0.25s ease forwards;
}

.details-modal-container *,
.details-white-card,
.details-main-card {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
}

@keyframes fadeInModalContent {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.details-modal-close {
  position: absolute;
  top: -14px;
  right: -12px;
  background: #0f172a;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #ffffff;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 100;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(0, 229, 255, 0.3);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.details-modal-close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.details-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.6);
  transform: rotate(90deg) scale(1.08);
}

@keyframes fadeInDetails {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-back-landing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-back-landing:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
}

.details-module-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(3, 7, 18, 0.65);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.module-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.module-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.module-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* 3-Column Layout Grid matching reference */
.details-grid-layout {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 580px) 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------------- WHITE CARD STYLING (EXACT MATCH TO DETAILS.JPEG) ---------------- */
.details-white-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #0f172a;
}

/*
.asset-overview-card,
.asset-purchases-card,
.serviced-card {
  display: none !important;
}
*/

.white-card-title {
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

/* Donut Body Inside White Cards */
.donut-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.donut-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut-center-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.donut-center-info .center-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 500;
}

.donut-center-info .center-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.donut-meta-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.donut-meta-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
}

.legend-row-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 500;
}

.legend-val {
  color: #1e293b;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-blue {
  background: #3b82f6;
}

.dot-orange {
  background: #f97316;
}

.dot-gray {
  background: #94a3b8;
}

.dot-green {
  background: #10b981;
}

.dot-purple {
  background: #8b5cf6;
}

/* Asset Purchases List (White Card) */
.purchases-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.purchase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.purchase-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.purchase-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.purchase-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.purchase-bar {
  height: 4px;
  border-radius: 2px;
  width: 50px;
}

.purchase-bar.blue {
  background: #3b82f6;
}

.purchase-bar.orange {
  background: #f97316;
}

.purchase-bar.green {
  background: #10b981;
}

.purchase-bar.purple {
  background: #8b5cf6;
}

.purchase-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.purchase-right .currency {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 600;
}

.purchase-right .amount {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
}

/* ---------------- CENTER COLUMN: RECTANGULAR WHITE BOX CONTAINER ---------------- */
.ps-white-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  color: #0f172a;
}

.ps-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 16px;
  align-items: center;
}

.ps-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.red-icon-bg {
  background: #ef4444;
  color: #ffffff;
}

.green-icon-bg {
  background: #10b981;
  color: #ffffff;
}

.badge-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.red-text {
  color: #dc2626;
}

.green-text {
  color: #059669;
}

.ps-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ps-items-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.item-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.red-light-bg {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.green-light-bg {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #6ee7b7;
}

.ps-text-col {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

/* Arrows Column */
.ps-arrows-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  align-items: center;
  gap: 28px;
  color: #94a3b8;
  font-size: 1rem;
}

.arrow-connector {
  opacity: 0.6;
}

/* Bottom Dark Executive Panel */
.details-bottom-panel-card {
  margin-top: 16px;
  width: 100%;
}

/* ---------------- RESPONSIVE STYLES ---------------- */
@media (max-width: 1150px) {
  .details-grid-layout {
    grid-template-columns: 1fr;
  }

  .details-left-col,
  .details-right-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .ps-columns-wrapper {
    grid-template-columns: 1fr;
  }

  .ps-arrows-col {
    display: none;
  }
}

@media (max-width: 640px) {
  .details-view-screen {
    padding: 10px 12px 30px 12px;
  }

  .details-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .details-module-tabs {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .ps-white-box {
    padding: 18px 16px;
  }
}
