* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #243044;
  --surface3: #2a3856;
  --border: rgba(99, 130, 175, 0.16);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.14);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.14);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    Helvetica, sans-serif;
  --r: 14px;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 48px 28px 80px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding: 56px 48px 100px;
  }
}

/* HEADER */
.hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 13px;
}
.hdr-badge {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.4);
  display: none;
}
.hdr-text h1 {
  font-size: clamp(17px, 3vw, 23px);
  font-weight: 800;
  letter-spacing: -0.4px;
}
.hdr-text p {
  font-size: 10.5px;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.hdr-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hbadge {
  font-family: var(--mono);
  padding: 5px 11px;
  border-radius: 20px;
}
.hb-live {
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  display: none;
}
.hb-live::before {
  content: "● ";
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.hb-ver {
  color: var(--text2);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* LAYER SYSTEM */
.layer-wrap {
  margin-bottom: 8px;
}
.layer-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.layer-lbl::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--text2);
}
.layer {
  border-radius: var(--r);
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border);
}
.l01 {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.16);
}
.l02 {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}
.l03 {
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.22);
}
.l04 {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}
.l05 {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}
.lhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.ltitle {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.l01 .ltitle {
  color: var(--blue);
}
.l02 .ltitle {
  color: var(--violet);
}
.l03 .ltitle {
  color: var(--violet);
}
.l04 .ltitle {
  color: var(--green);
}
.l05 .ltitle {
  color: var(--amber);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
.l01 .dot {
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.l02 .dot {
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.l03 .dot {
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.l04 .dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.l05 .dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.lsub {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* CONNECTOR */
.conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  gap: 0;
}
.cl {
  width: 2px;
  height: 26px;
  position: relative;
  overflow: hidden;
}
.cl::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  animation: sl 1.8s linear infinite;
}
@keyframes sl {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(350%);
  }
}
.cl.vi {
  background: linear-gradient(to bottom, var(--violet-dim), var(--violet));
}
.cl.vi::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}
.cl.gr {
  background: linear-gradient(to bottom, var(--green-dim), var(--green));
}
.cl.gr::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}
.cl.am {
  background: linear-gradient(to bottom, var(--amber-dim), var(--amber));
}
.cl.am::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}
.cbadge {
  font-family: var(--mono);
  font-size: 17px;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.cbadge.vi {
  color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.cbadge.gr {
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.cbadge.am {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.carrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.carrow.vi {
  border-top: 7px solid var(--violet);
}
.carrow.gr {
  border-top: 7px solid var(--green);
}
.carrow.am {
  border-top: 7px solid var(--amber);
}

/* ── LAYER 01 SERVICE CARDS ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
@media (min-width: 480px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 860px) {
  .svc-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 11px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: default;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.svc-card:hover::before {
  opacity: 1;
}
.sc-kl::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.sc-lx::before {
  background: linear-gradient(90deg, var(--amber), #fb923c);
}
.sc-dt::before {
  background: linear-gradient(90deg, var(--violet), var(--blue));
}
.sc-dk::before {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.sc-ig::before {
  background: linear-gradient(90deg, var(--rose), var(--amber));
}
.sc-ac::before {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.svc-card:hover.sc-kl {
  border-color: rgba(59, 130, 246, 0.4);
}
.svc-card:hover.sc-lx {
  border-color: rgba(245, 158, 11, 0.4);
}
.svc-card:hover.sc-dt {
  border-color: rgba(139, 92, 246, 0.4);
}
.svc-card:hover.sc-dk {
  border-color: rgba(16, 185, 129, 0.4);
}
.svc-card:hover.sc-ig {
  border-color: rgba(244, 63, 94, 0.4);
}
.svc-card:hover.sc-ac {
  border-color: rgba(6, 182, 212, 0.4);
}
.svc-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.si-kl {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.si-lx {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.si-dt {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.si-dk {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.si-ig {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.si-ac {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.svc-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.svc-type {
  font-size: 9.5px;
  color: var(--text2);
  font-family: var(--mono);
  text-align: center;
  line-height: 1.4;
}
.svc-meta {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 1px;
}
.smr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text2);
  margin-bottom: 4px;
}
.smr:last-child {
  margin-bottom: 0;
}
.smv {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}
.mv-bl {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
}
.mv-am {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}
.mv-vi {
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
}
.mv-gr {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
}
.mv-ro {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.12);
}
.mv-cy {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}
.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.fchip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text2);
}
.fdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── LAYER 02 INTEGRATION ── */
.int-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 580px) {
  .int-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .int-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.int-card {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 11px;
  padding: 18px;
}
.int-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.int-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.int-head h4 {
  font-size: 13px;
  font-weight: 700;
}
.int-head p {
  font-size: 10px;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 2px;
}
.int-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.int-list li {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.int-list li::before {
  content: "▸";
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 1px;
}
.int-foot {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.itag {
  font-family: var(--mono);
  font-size: 15px;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.matrix-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.m-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.mtable {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.mtable th {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}
.mtable td {
  font-family: var(--mono);
  font-size: 17.5px;
  color: var(--text2);
  padding: 7px 10px;
  border-bottom: 1px solid rgba(99, 130, 175, 0.09);
}
.mtable tr:hover td {
  background: rgba(59, 130, 246, 0.03);
}
.mc-s {
  color: var(--text);
  font-weight: 600;
}
.mc-f {
  color: var(--blue);
}
.mc-fmt {
  color: var(--violet);
}
.mc-ok {
  color: var(--green);
}
.mc-wa {
  color: var(--amber);
}

/* ── LAYER 03 DATABASE ── */
.db-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .db-layout {
    grid-template-columns: auto 1fr;
  }
}
.db-hero {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 11px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 155px;
}
.db-big {
  width: 62px;
  height: 62px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.28),
    rgba(59, 130, 246, 0.28)
  );
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.2);
}
.db-hero h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  text-align: center;
}
.db-hero p {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  text-align: center;
  line-height: 1.5;
}
.db-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}
.dbs {
  font-family: var(--mono);
  font-size: 8.5px;
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.db-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  align-content: start;
}
@media (min-width: 480px) {
  .db-detail {
    grid-template-columns: repeat(3, 1fr);
  }
}
.db-pc {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 9px;
  padding: 12px 13px;
}
.db-pi {
  font-size: 15px;
  margin-bottom: 5px;
}
.db-pt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.db-pd {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  line-height: 1.45;
}
.schema-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  overflow: visible;
}
.schema-tbls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.stbl {
  background: var(--surface2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}
.stbl-h {
  background: rgba(139, 92, 246, 0.2);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--violet);
}
.stbl-r {
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text2);
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.sft {
  color: var(--blue);
  font-size: 8px;
}
.spk {
  color: var(--amber);
}

/* ── LAYER 04 DASHBOARD ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
@media (min-width: 680px) {
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi-card {
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 11px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.kc-rv::after {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.kc-pr::after {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}
.kc-rt::after {
  background: linear-gradient(90deg, var(--violet), var(--rose));
}
.kc-sf::after {
  background: linear-gradient(90deg, var(--amber), #fb923c);
}
.kpi-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.kpi-val {
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.kc-rv .kpi-val {
  color: var(--green);
}
.kc-pr .kpi-val {
  color: var(--blue);
}
.kc-rt .kpi-val {
  color: var(--violet);
}
.kc-sf .kpi-val {
  color: var(--amber);
}
.kpi-tr {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.tu {
  color: var(--green);
}
.td {
  color: var(--rose);
}
.mbars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-top: 7px;
}
.mb {
  flex: 1;
  border-radius: 2px 2px 0 0;
}
.dash-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 680px) {
  .dash-lower {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .dash-lower {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.dash-card {
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 11px;
  padding: 17px;
}
.dc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-ico {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.obj-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
}
.obj-row:last-child {
  border-bottom: none;
}
.obj-n {
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obj-r {
  color: var(--green);
  flex-shrink: 0;
}
.obj-bw {
  flex: 0 0 50px;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
}
.obj-bf {
  height: 100%;
  border-radius: 2px;
}
.obj-m {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.m-ok {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
}
.m-wa {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
}
.staff-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.staff-row:last-child {
  border-bottom: none;
}
.sav {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.15);
}
.sn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}
.sr {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text2);
}
.sk {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.alert-item:last-child {
  border-bottom: none;
}
.adot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.ad-w {
  background: var(--amber);
  box-shadow: 0 0 5px var(--amber);
}
.ad-i {
  background: var(--blue);
  box-shadow: 0 0 5px var(--blue);
}
.ad-o {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
}
.at {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  line-height: 1.4;
}
.atime {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text2);
  margin-top: 2px;
  opacity: 0.6;
}
.tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tt {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── LAYER 05 MANAGEMENT ── */
.mgmt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .mgmt-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 940px) {
  .mgmt-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.mgmt-card {
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 11px;
  padding: 18px;
}
.ceo-h {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.ceo-av {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber), #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.28);
}
.ceo-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.ceo-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
}
.ceo-desc {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 13px;
}
.ceo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cbadge2 {
  font-family: var(--mono);
  font-size: 14.5px;
  padding: 4px 9px;
  border-radius: 5px;
}
.cb-ph {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.cb-rt {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.cb-dc {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.cb-rp {
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
}
.phone-outer {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.phone {
  background: #0d1424;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 22px;
  padding: 9px 7px 11px;
  box-shadow:
    0 0 28px rgba(245, 158, 11, 0.12),
    0 0 0 5px rgba(245, 158, 11, 0.04);
}
.ph-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  padding: 0 3px;
}
.ph-time {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text2);
}
.ph-notch {
  width: 28px;
  height: 5px;
  background: #1f2937;
  border-radius: 3px;
}
.ph-sig {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--green);
}
.ph-appbar {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 7px;
  padding: 4px 6px;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--amber);
  font-weight: 600;
  text-align: center;
}
.ph-row {
  background: var(--surface2);
  border-radius: 5px;
  padding: 4px 6px;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ph-lbl {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--text2);
}
.ph-val {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
}
.phv-gr {
  color: var(--green);
}
.phv-bl {
  color: var(--blue);
}
.phv-vi {
  color: var(--violet);
}
.phv-am {
  color: var(--amber);
}
.ph-bar-w {
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  margin: 4px 0 3px;
}
.ph-bar-f {
  height: 100%;
  border-radius: 2px;
}
.ph-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.ph-alert {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--text2);
}
.ph-adot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dec-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
}
.dec-n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}
.dec-t {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.dec-d {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  line-height: 1.4;
}

/* ROI */
.roi-sec {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.sec-title {
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 800;
  margin-bottom: 5px;
}
.sec-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text2);
  margin-bottom: 20px;
}
.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
@media (min-width: 480px) {
  .roi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 860px) {
  .roi-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.roi-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 11px;
  text-align: center;
}
.roi-n {
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}
.roi-d {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.4;
}
.rn1 {
  color: var(--green);
}
.rn2 {
  color: var(--blue);
}
.rn3 {
  color: var(--violet);
}
.rn4 {
  color: var(--amber);
}
.rn5 {
  color: var(--cyan);
}
.rn6 {
  color: var(--rose);
}

/* TIMELINE */
.tl-sec {
  margin-top: 20px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.tl-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.tl-wrap::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--violet),
    var(--green)
  );
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 22px;
  position: relative;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-dot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.td1 {
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid var(--blue);
}
.td2 {
  background: rgba(139, 92, 246, 0.2);
  border: 2px solid var(--violet);
}
.td3 {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--green);
}
.td4 {
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid var(--amber);
}
.tl-c {
  padding-top: 3px;
}
.tl-ph {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tl-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-d {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  line-height: 1.55;
}
.tl-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.tc {
  font-family: var(--mono);
  font-size: 14.5px;
  padding: 2px 7px;
  border-radius: 3px;
}
.tc-bl {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.tc-vi {
  color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.tc-gr {
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tc-am {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* PROPOSAL INTRO */
.intro-sec {
  margin-bottom: 28px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.intro-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px;
}
.intro-p {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.7;
}
.intro-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.intro-list li {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.intro-list li::before {
  content: "▸";
  color: var(--blue);
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  line-height: 1.7;
}
.fdots {
  display: flex;
  gap: 7px;
}
.fdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.footer-l a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.35);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer-l a:hover {
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.7);
}
.footer-l strong {
  color: var(--text);
  font-weight: 700;
}

/* ANIMATIONS */
.fi {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.15s;
}
.d3 {
  animation-delay: 0.25s;
}
.d4 {
  animation-delay: 0.35s;
}
.d5 {
  animation-delay: 0.45s;
}
.d6 {
  animation-delay: 0.55s;
}
.d7 {
  animation-delay: 0.65s;
}
.d8 {
  animation-delay: 0.75s;
}
.d9 {
  animation-delay: 0.85s;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: 0.2s;
}
.lang-btn:hover {
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text);
}
.lang-btn.active {
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.35);
}
.author-line {
  font-size: 10px;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 4px;
  text-transform: none !important;
  letter-spacing: 0.4px !important;
}

/* Readability + hosting-safe typography */
/* UX-oriented adaptive scale for laptops, portable PCs, desktops, and tablets */
html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base fluid typography */
.hdr-text h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.25rem) !important;
  line-height: 1.15;
}
.hdr-text p {
  font-size: clamp(0.82rem, 0.76rem + 0.18vw, 0.95rem) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.45;
}

.sec-title {
  font-size: clamp(1.45rem, 1.1rem + 0.9vw, 2rem) !important;
  line-height: 1.18 !important;
}
.sec-sub,
.intro-p,
.tl-d,
.ceo-desc {
  font-size: clamp(0.98rem, 0.9rem + 0.2vw, 1.08rem) !important;
  line-height: 1.72 !important;
}

.intro-list li,
.int-list li,
.db-pd,
.dec-d,
.footer-l,
.at,
.obj-row,
.staff-row {
  font-size: clamp(0.92rem, 0.86rem + 0.16vw, 1rem) !important;
  line-height: 1.62 !important;
}

.ltitle,
.layer-lbl,
.m-title,
.kpi-lbl,
.ph-lbl,
.tl-ph {
  font-size: clamp(0.72rem, 0.68rem + 0.12vw, 0.82rem) !important;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.kpi-val {
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.35rem) !important;
  line-height: 1.05;
}
.svc-name,
.db-pt,
.dc-title,
.dec-t,
.tl-t,
.ceo-name {
  font-size: clamp(1rem, 0.92rem + 0.22vw, 1.12rem) !important;
  line-height: 1.35 !important;
}

.svc-type,
.svc-meta,
.smr,
.stbl-h,
.stbl-r,
.sn,
.sr,
.kpi-tr,
.ph-time,
.ph-sig,
.ph-appbar,
.ph-alert,
.tech-tags,
.tt,
.lang-btn,
button {
  font-size: clamp(0.82rem, 0.76rem + 0.15vw, 0.9rem) !important;
  line-height: 1.5 !important;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.96;
}
.logo-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1380px;
}

/* Large laptops / portable PCs 1280-1600px */
@media (min-width: 1280px) and (max-width: 1600px) {
  html {
    font-size: 17px;
  }
  .wrap {
    padding: 42px 36px 84px;
  }
  .svc-card,
  .int-card,
  .dash-card,
  .mgmt-card,
  .db-pc {
    padding: 18px 16px;
  }
}

/* Standard laptops 1024-1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  html {
    font-size: 16.5px;
  }
  .wrap {
    padding: 36px 24px 72px;
  }
  .sec-title {
    font-size: clamp(1.5rem, 1.05rem + 1vw, 1.9rem) !important;
  }
  .sec-sub,
  .intro-p,
  .tl-d,
  .ceo-desc {
    font-size: clamp(1rem, 0.92rem + 0.2vw, 1.06rem) !important;
  }
}

/* Small laptops / tablets landscape */
@media (min-width: 768px) and (max-width: 1023px) {
  html {
    font-size: 16px;
  }
  .wrap {
    padding: 28px 18px 64px;
  }
  .hdr {
    margin-bottom: 32px;
    padding-bottom: 18px;
  }
  .sec-title {
    font-size: clamp(1.38rem, 1.08rem + 0.8vw, 1.7rem) !important;
  }
  .sec-sub,
  .intro-p,
  .tl-d,
  .ceo-desc {
    font-size: 0.98rem !important;
  }
  .intro-list li,
  .int-list li,
  .db-pd,
  .dec-d,
  .footer-l,
  .at,
  .obj-row,
  .staff-row {
    font-size: 0.92rem !important;
  }
  .svc-grid {
    gap: 12px;
  }
  .kpi-row {
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  html {
    font-size: 15.5px;
  }
  body {
    font-size: 0.98rem;
  }
  .wrap {
    padding: 22px 14px 56px;
  }
  .hdr {
    margin-bottom: 26px;
    padding-bottom: 16px;
  }
  .hdr-text h1 {
    font-size: 1.55rem !important;
  }
  .hdr-text p {
    font-size: 0.8rem !important;
  }
  .sec-title {
    font-size: 1.34rem !important;
  }
  .sec-sub,
  .intro-p,
  .tl-d,
  .ceo-desc {
    font-size: 0.95rem !important;
    line-height: 1.68 !important;
  }
  .intro-list li,
  .int-list li,
  .db-pd,
  .dec-d,
  .footer-l,
  .at,
  .obj-row,
  .staff-row {
    font-size: 0.9rem !important;
  }
  .kpi-val {
    font-size: 1.55rem !important;
  }
}

/* Better spacing for text-heavy cards */
.intro-card,
.int-card,
.dash-card,
.mgmt-card,
.db-pc {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 1200px) {
  .schema-tbls {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .schema-tbls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 480px) and (max-width: 767px) {
  .schema-tbls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .schema-tbls {
    grid-template-columns: 1fr;
  }
}

/* Adaptive dashboard preview card */
.adaptive-dashboard-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 18px 10px 10px;
}
.adaptive-preview-badge {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
}
.adaptive-preview-title {
  max-width: 420px;
  font-size: clamp(1.05rem, 0.95rem + 0.25vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.adaptive-preview-text {
  max-width: 460px;
  font-family: var(--mono);
  font-size: clamp(0.9rem, 0.84rem + 0.16vw, 0.98rem);
  line-height: 1.75;
  color: var(--text2);
}
.adaptive-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.18),
    rgba(251, 146, 60, 0.14)
  );
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.06),
    0 10px 30px rgba(245, 158, 11, 0.12);
}
.adaptive-preview-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.08),
    0 14px 34px rgba(245, 158, 11, 0.18);
}
.adaptive-preview-btn:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.45);
  outline-offset: 3px;
}

/* ── NAVIGATION ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text2);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.nav-link.active {
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

/* ── PLAN-PRICE PLACEHOLDER ── */
.plan-price-placeholder {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px dashed rgba(99, 130, 175, 0.3);
  border-radius: var(--r);
  padding: 56px 48px;
  text-align: center;
  max-width: 460px;
  width: 100%;
}
.ph-icon {
  font-size: 42px;
  line-height: 1;
}
.ph-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
}
.ph-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── PLAN PRICE COMPACT STAGES ── */
.stage-compact {
  padding-top: 22px;
  padding-bottom: 22px;
}

.compact-stage-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.stage-title-gap {
  margin-top: 14px;
}

.stage-meta-chips {
  margin-top: 12px;
}

.compact-list {
  gap: 6px;
  margin-top: 8px;
}

.compact-list li {
  font-size: 0.9rem !important;
  line-height: 1.48 !important;
}

.compact-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.compact-check-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text2);
}

.compact-check-item span {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 1px;
}

@media (min-width: 1100px) {
  .compact-check-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .compact-check-item {
    min-height: 64px;
  }
}

@media (max-width: 1099px) {
  .compact-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .stage-compact .sec-title {
    margin-bottom: 4px;
  }

  .stage-compact .sec-sub {
    margin-bottom: 14px !important;
  }

  .stage-compact .intro-card {
    padding: 16px !important;
  }

  .stage-compact .intro-p {
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
  }

  .stage-compact .dc-title {
    margin-bottom: 9px !important;
  }
}
