
/* EleotLink â€” Approved referral journey visuals
   Added to preserve the existing site's visual language while replacing
   the old generic 1-9-90 tree with the approved Double X â†’ Tetra X journey. */

.approved-journey {
  margin-top: 18px;
}
.approved-stage {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-sm);
}
.approved-stage + .approved-stage { margin-top: 28px; }
.approved-stage.next {
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,1));
}
.approved-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.approved-stage-head h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.7px;
  margin: 0;
}
.approved-stage-head h2 .accent {
  background: linear-gradient(135deg, var(--indigo-soft), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.approved-stage-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.approved-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,.09);
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.approved-stage-tag.next-tag {
  background: rgba(67,56,202,.09);
  color: var(--indigo-soft);
}
.approved-stage-tag .dot {
  width: 7px;
  height: 7px;
}
.approved-diagram {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.88));
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.approved-diagram svg {
  width: 100%;
  height: auto;
}
.approved-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.approved-action {
  border: 1px solid var(--line-light);
  background: var(--soft);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.approved-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(67,56,202,.10), rgba(99,102,241,.04));
  color: var(--indigo-soft);
  margin-bottom: 13px;
}
.approved-action-icon.success {
  background: rgba(16,185,129,.12);
  color: var(--emerald-dark);
}
.approved-action h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.approved-action p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.approved-progress {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(124,58,237,.10), rgba(16,185,129,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--indigo);
  font-weight: 800;
}
.approved-progress .check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--indigo-soft), #4f46e5);
  color: #fff;
  flex: 0 0 auto;
}
.approved-progress .arrow { font-size: 20px; color: var(--indigo-soft); }
.approved-progress .next-label { color: var(--emerald-dark); }
.approved-note {
  margin: 22px auto 0;
  max-width: 820px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.approved-note strong { color: var(--ink-secondary); }

.approved-earning-map {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.approved-earning-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: stretch;
}
.approved-earning-label {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  padding: 20px;
}
.approved-earning-label strong {
  display: block;
  color: var(--indigo);
  font-size: 15px;
  margin-bottom: 5px;
}
.approved-earning-label span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.approved-earning-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg);
}
.approved-earning-copy h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.approved-earning-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.approved-disclaimer {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245,158,11,.20);
  background: rgba(245,158,11,.07);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.approved-disclaimer strong { color: var(--ink-secondary); }

@media (max-width: 767px) {
  .approved-stage { padding: 24px 16px 18px; }
  .approved-stage-head { display: block; }
  .approved-stage-tag { margin-bottom: 14px; }
  .approved-stage-head h2 { font-size: 25px; }
  .approved-actions { grid-template-columns: 1fr; }
  .approved-earning-row { grid-template-columns: 1fr; gap: 10px; }
  .approved-progress { text-align: center; flex-wrap: wrap; }
}

/* Prevent the new diagrams from becoming too small on narrow screens. */
/* =========================================================
   ELEOTLINK FINAL MOBILE STRUCTURE DIAGRAM
   ========================================================= */

@media (max-width: 767px) {

  .approved-diagram {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding-bottom: 8px;
  }

  .approved-diagram svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .structure-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
}
/* =========================================================
   MOBILE SVG TEXT READABILITY — SAFE OVERRIDE
   Preserves approved diagram geometry and aesthetics.
   ========================================================= */

@media (max-width: 767px) {

  .approved-diagram svg {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
  }

  .approved-diagram svg text[font-size="9"] {
    font-size: 11px;
  }

  .approved-diagram svg text[font-size="10"] {
    font-size: 12px;
  }

  .approved-diagram svg text[font-size="11"] {
    font-size: 12px;
  }
}

/* =========================================================
   MOBILE STRUCTURE DIAGRAM - TARGETED SCALE CORRECTION
   Preserves the approved SVG artwork and desktop presentation.
   Gives the existing composition modest additional physical
   width on narrow screens so its internal typography remains
   readable without forcing a fixed 1000px canvas.
   ========================================================= */

@media (max-width: 767px) {
  .approved-diagram {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding-bottom: 6px;
  }

  .approved-diagram svg {
    display: block;
    width: 118%;
    max-width: none;
    height: auto;
    margin-left: -9%;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
  }

  .structure-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
}



/* Reward journey renderings */
.approved-earning-copy .earning-visual {
  margin: -2px -2px 18px;
  padding: 10px 8px 4px;
  background: var(--soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
}

.approved-earning-copy .earning-visual svg {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .approved-earning-copy .earning-visual {
    margin: -2px -2px 16px;
  }
}


/* Qualification diagram fills - fixes rects/text rendering as solid black */
.earning-visual text.cap {
  fill: var(--muted);
}
.qualification-visual rect.step {
  fill: var(--soft);
  stroke: var(--line);
  stroke-width: 1;
}
.qualification-visual text.step-label {
  fill: var(--ink);
}
.qualification-visual rect.step.done {
  fill: rgba(16,185,129,.12);
  stroke: rgba(16,185,129,.35);
}
.qualification-visual text.step-label.done {
  fill: var(--emerald-dark);
}
.qualification-visual text.arrow {
  fill: var(--muted-light);
}