/* ============================================
   NDR & NPR Management — Page-Specific Styles
   Prefix: nn-  (ndr-npr)
   Extends proship.css (ps-*) base styles
   ============================================ */

/* ── Step container max-width ── */
.nn-steps-max {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   DASHBOARD TABS SECTION
   ============================================ */
.nn-dashboard {
  background: var(--ps-gray-50, #f8f9fc);
  padding: 72px 0;
}

.nn-dashboard--alt {
  background: #fff;
}

.nn-dashboard__heading {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ps-text, #1d1d1f);
  margin: 0 0 8px;
  text-align: center;
}

.nn-dashboard__sub {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 15px;
  color: var(--ps-text-muted, #6b7280);
  line-height: 1.65;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.nn-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nn-dashboard__grid--five {
  grid-template-columns: repeat(3, 1fr);
}

.nn-dashboard__card {
  background: #fff;
  border: 1px solid var(--ps-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nn-dashboard--alt .nn-dashboard__card {
  background: var(--ps-gray-50, #f8f9fc);
}

.nn-dashboard__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.nn-dashboard__card-tab {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ps-orange, #ea6425);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nn-dashboard__card-purpose {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-text, #1d1d1f);
  margin: 0 0 8px;
  line-height: 1.45;
}

.nn-dashboard__card-detail {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 13px;
  color: var(--ps-text-muted, #6b7280);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   NDR vs NPR COMPARISON TABLE
   ============================================ */
.nn-compare {
  background: #fff;
  padding: 80px 0;
}

.nn-compare__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nn-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ps-font, "Poppins", sans-serif);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  min-width: 680px;
}

.nn-compare__table thead {
  background: var(--ps-dark, #1a1a2e);
}

.nn-compare__table th {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 16px 20px;
  text-align: left;
}

.nn-compare__table th:first-child {
  min-width: 140px;
  color: rgba(255, 255, 255, 0.6);
}

.nn-compare__table th:nth-child(2) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ps-orange, #ea6425);
}

.nn-compare__table th:nth-child(3) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

.nn-compare__table td {
  font-size: 14px;
  color: var(--ps-text, #1d1d1f);
  padding: 16px 20px;
  border-bottom: 1px solid var(--ps-border, #e5e7eb);
  line-height: 1.55;
  vertical-align: top;
}

.nn-compare__table td:first-child {
  font-weight: 600;
  color: var(--ps-dark, #1a1a2e);
  background: var(--ps-gray-50, #f8f9fc);
}

.nn-compare__table td:nth-child(2) {
  border-left: 1px solid var(--ps-border, #e5e7eb);
}

.nn-compare__table td:nth-child(3) {
  border-left: 1px solid var(--ps-border, #e5e7eb);
}

.nn-compare__table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   COMMUNICATION CONFIGURATION
   ============================================ */
.nn-config {
  background: var(--ps-dark, #1a1a2e);
  padding: 80px 0;
}

.nn-config__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nn-config__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px 20px;
  transition: all 0.3s;
}

.nn-config__card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nn-config__card-name {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.nn-config__card-desc {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin: 0;
}

.nn-config__card-cost {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-orange, #ea6425);
  background: rgba(234, 100, 37, 0.15);
  border: 1px solid rgba(234, 100, 37, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ============================================
   ECOSYSTEM FLOW DIAGRAM
   ============================================ */
.nn-ecosystem {
  background: var(--ps-gray-50, #f8f9fc);
  padding: 80px 0;
}

.nn-ecosystem__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

/* Nodes */
.nn-eco__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 28px;
  border-radius: 12px;
  min-width: 200px;
}

.nn-eco__node--wide {
  width: 100%;
  background: var(--ps-dark, #1a1a2e);
}

.nn-eco__node--light {
  background: #fff;
  border: 1px solid var(--ps-border, #e5e7eb);
}

.nn-eco__node--highlight {
  background: var(--ps-orange, #ea6425);
  box-shadow: 0 8px 32px rgba(234, 100, 37, 0.25);
}

.nn-eco__node--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px 24px;
}

.nn-eco__node--fail {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 24px;
}

.nn-eco__label {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.nn-eco__node--light .nn-eco__label {
  color: var(--ps-text, #1d1d1f);
}

.nn-eco__node--success .nn-eco__label {
  color: #047857;
  font-size: 13px;
}

.nn-eco__node--fail .nn-eco__label {
  color: #b91c1c;
  font-size: 13px;
}

.nn-eco__sub {
  font-family: var(--ps-font, "Poppins", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-top: 4px;
}

.nn-eco__node--light .nn-eco__sub {
  color: var(--ps-text-muted, #6b7280);
}

.nn-eco__node--highlight .nn-eco__sub {
  color: rgba(255, 255, 255, 0.85);
}

/* Connectors */
.nn-eco__connector {
  width: 2px;
  height: 28px;
  background: var(--ps-border, #e5e7eb);
  position: relative;
}

.nn-eco__connector::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ps-border, #e5e7eb);
}

.nn-eco__connector--right {
  margin-left: 25%;
}

/* Branch (two side-by-side nodes) */
.nn-eco__branch {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nn-dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nn-config__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .nn-dashboard {
    padding: 56px 0;
  }

  .nn-dashboard__heading {
    font-size: 20px;
  }

  .nn-dashboard__grid,
  .nn-dashboard__grid--five {
    grid-template-columns: 1fr;
  }

  .nn-compare {
    padding: 56px 0;
  }

  .nn-config {
    padding: 56px 0;
  }

  .nn-config__grid {
    grid-template-columns: 1fr;
  }

  .nn-ecosystem {
    padding: 56px 0;
  }

  .nn-eco__branch {
    gap: 12px;
  }

  .nn-eco__node {
    padding: 14px 16px;
  }

  .nn-eco__label {
    font-size: 13px;
  }

  .nn-eco__sub {
    font-size: 11px;
  }

  .nn-eco__connector--right {
    margin-left: 0;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .nn-dashboard__heading {
    font-size: 18px;
  }

  .nn-eco__branch {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .nn-eco__node--success,
  .nn-eco__node--fail {
    width: 80%;
  }

  .nn-compare__table {
    min-width: 580px;
  }
}
