body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 30rem),
    #08111f;
  color: #e5edf8;
}

.partner-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 20px 64px;
}

.partner-hero,
.income-calculator,
.commission-section,
.exclusive-program {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
}

.partner-hero {
  min-height: 420px;
  padding: 56px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72)),
    url("/images/tooplate-cloud-sync-bg03.webp") center/cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
}

.partner-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 38%;
  height: 240px;
  background: rgba(250, 204, 21, 0.13);
  filter: blur(52px);
  pointer-events: none;
}

.partner-hero__content,
.partner-hero__brand {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.32rem 0.72rem;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.partner-hero h1,
.section-heading h2,
.calculator-panel h2,
.commission-copy h2,
.program-copy h2 {
  margin: 14px 0 14px;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: 0;
}

.partner-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.partner-hero p,
.section-heading p,
.commission-copy p,
.program-copy p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.partner-hero__brand {
  justify-self: end;
  display: grid;
  place-items: center;
  gap: 18px;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(250, 204, 21, 0.26);
  border-radius: 24px;
  background: rgba(8, 17, 31, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.partner-hero__brand img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #071A1A;
}

.partner-hero__brand strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.income-calculator,
.loyalty-preview,
.how-it-works,
.commission-section,
.exclusive-program,
.reward-catalog {
  margin-top: 34px;
}

.calculator-panel,
.income-result,
.step-card,
.commission-cards article,
.program-benefits article,
.catalog-card,
.reward-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.calculator-panel,
.income-result {
  min-height: 360px;
  border-radius: 24px;
  padding: 32px;
}

.slider-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 18px;
}

.slider-value output {
  color: #facc15;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.slider-value span {
  color: #cbd5e1;
  font-weight: 700;
}

.referral-range {
  width: 100%;
  accent-color: #facc15;
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 10px;
}

.calculator-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.calculator-benefits span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
  font-weight: 800;
}

.income-result {
  display: grid;
  align-content: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.18), rgba(15, 23, 42, 0.9));
}

.income-result span {
  color: #fde68a;
  font-weight: 800;
}

.income-result strong {
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}

.income-result small {
  color: #cbd5e1;
  line-height: 1.6;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading h2,
.calculator-panel h2,
.commission-copy h2,
.program-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.reward-strip,
.catalog-grid,
.steps-grid,
.commission-cards,
.program-benefits {
  display: grid;
  gap: 16px;
}

.reward-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reward-chip,
.catalog-card,
.step-card,
.commission-cards article,
.program-benefits article {
  border-radius: 20px;
  padding: 18px;
}

.reward-chip {
  display: grid;
  gap: 12px;
  align-content: start;
}

.reward-chip span,
.catalog-card h3 {
  color: #ffffff;
  font-weight: 850;
  line-height: 1.35;
}

.reward-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(250, 204, 21, 0.14));
  position: relative;
}

.reward-art::before {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  font-weight: 900;
}

/* .reward-art.reward-art--phone img {
  content: "phone"; 
}
.reward-art--vacation img { 
  content: "Trip"; 
}
.reward-art--car img { 
  content: "Car"; 
}
.reward-art--watch img { 
  content: "Watch"; 
}
.reward-art--electronics img { 
  content: "Tech"; 
} */

.reward-art.reward-art--phone img {
  display: block;
  margin: auto;
  width: 50%;
  height: auto;
  object-fit: contain;
}

.reward-art.reward-art--vacation img {
  display: block;
  margin: auto;
  width: 63%;
  height: auto;
  object-fit: contain;
}

.reward-art.reward-art--car img {
  display: block;
  margin: auto;
  width: 60%;
  height: auto;
  object-fit: contain;
}

.reward-art.reward-art--watch img {
  display: block;
  margin: auto;
  width: 35%;
  height: auto;
  object-fit: contain;
}

.reward-art.reward-art--electronics img {
  display: block;
  margin: auto;
  width: 65%;
  height: auto;
  object-fit: contain;
}

.calculator-note {
  margin: 22px 0 0;
  padding: 18px;
  border-left: 4px solid #facc15;
  border-radius: 16px;
  background: rgba(250, 204, 21, 0.09);
  color: #dbe4ef;
  line-height: 1.7;
}

.steps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card span,
.catalog-card span,
.catalog-card strong {
  display: block;
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.step-card h3,
.commission-cards h3,
.program-benefits h3,
.catalog-card h3 {
  margin: 10px 0 8px;
  color: #ffffff;
}

.step-card p,
.commission-cards p,
.program-benefits p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.commission-cards {
  grid-template-columns: 1fr;
}

.commission-cards strong {
  display: block;
  margin-top: 14px;
  color: #facc15;
}

.exclusive-program {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: stretch;
  padding: 32px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
}

.program-media {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 320px;
  color: #fde68a;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.program-media span {
  font-size: 0.9rem;
  margin: 20px 0 0;
  margin-left: 18px;
  margin-right: 18px;
}

.program-media img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #071A1A;
}

.program-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.program-stat {
  display: block;
  color: #facc15;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 32px rgba(250, 204, 21, 0.55);
  margin: 0;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #facc15;
  color: #111827;
  font-weight: 900;
}

.program-icon--accent {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-card {
  display: grid;
  gap: 10px;
}

.catalog-card strong {
  color: #67e8f9;
}

/* === Loyalty Tier Ladder === */

.tier-tracker {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.tier-ladder {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  max-width: 760px;
}

.tier-ladder__banner {
  padding: 18px 28px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.22), rgba(250, 204, 21, 0.06));
  border-bottom: 1px solid rgba(250, 204, 21, 0.24);
  color: #fde68a;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.tier-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 12px;
}

.tier-status div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.56);
}

.tier-status span,
.tier-current span,
.tier-details summary {
  color: #cbd5e1;
  font-weight: 800;
}

.tier-status strong {
  display: block;
  margin-top: 8px;
  color: #facc15;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1;
}

.tier-progress {
  padding: 18px 24px 8px;
  overflow-x: auto;
  scrollbar-color: rgba(250, 204, 21, 0.7) rgba(148, 163, 184, 0.12);
}

.tier-progress__track {
  position: relative;
  min-width: 1080px;
  height: 250px;
}

.tier-progress__track::before,
.tier-progress__fill {
  content: "";
  position: absolute;
  left: 0;
  top: 112px;
  height: 12px;
  border-radius: 999px;
}

.tier-progress__track::before {
  right: 0;
  background: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tier-progress__fill {
  width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, #facc15, #38bdf8);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.34);
  transition: width 0.2s ease;
}

.tier-scale {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* All items: full-height column, node absolutely placed on the bar */
.tier-scale__item {
  position: absolute;
  left: var(--tier-position);
  top: 0;
  width: 96px;
  height: 250px;
  text-align: center;
  transform: translateX(-50%);
}

.tier-scale__item:first-child {
  transform: translateX(0);
}

.tier-scale__item:last-child {
  transform: translateX(-100%);
}

/* Node sits on the bar for all items (bar top: 112px, node 14px → center at 119px) */
.tier-scale__item .tier-node {
  position: absolute;
  top: 111px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
}

/* ODD items (1st, 3rd, …): vol + reward BELOW the bar */
.tier-scale__item:nth-child(odd) .tier-vol {
  position: absolute;
  top: 134px;
  left: 0;
  right: 0;
  padding-top: 0;
  color: #94a3b8;
}

.tier-scale__item:nth-child(odd) .tier-reward {
  position: absolute;
  top: 156px;
  left: 0;
  right: 0;
  max-width: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
}

/* EVEN items (2nd, 4th, …): vol + reward ABOVE the bar */
.tier-scale__item:nth-child(even) .tier-vol {
  position: absolute;
  bottom: 141px;
  left: 0;
  right: 0;
  padding-top: 0;
  color: #94a3b8;
}

.tier-scale__item:nth-child(even) .tier-reward {
  position: absolute;
  bottom: 163px;
  left: 0;
  right: 0;
  max-width: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
}

.tier-scale__item.is-active .tier-node {
  background: linear-gradient(135deg, #facc15, #38bdf8);
  border-color: #08111f;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.62);
}

.tier-scale__item.is-active .tier-vol,
.tier-scale__item.is-active .tier-reward {
  color: #e5edf8;
}

.tier-scale__item.is-current .tier-vol,
.tier-scale__item.is-current .tier-reward,
.tier-scale__item--crown.is-active .tier-reward {
  color: #fde68a;
}

.tier-scale__item.is-current .tier-node {
  width: 22px;
  height: 22px;
  top: 107px;
  margin-top: 0;
}

.tier-current {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 24px 22px;
}

.tier-current span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.08);
  color: #f8fafc;
}

.tier-details {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.tier-details summary {
  cursor: pointer;
  padding: 18px 24px;
  color: #fde68a;
}

.tier-details[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tier-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #facc15 0%, rgba(250, 204, 21, 0.15) 100%);
  transform: translateX(-50%);
  z-index: 0;
}

.tier-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  padding: 12px 28px;
  gap: 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  position: relative;
  transition: background 0.18s;
}

.tier-item:last-child {
  border-bottom: none;
}

.tier-item:hover {
  background: rgba(250, 204, 21, 0.05);
}

.tier-vol {
  text-align: right;
  color: #facc15;
  font-weight: 900;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}

.tier-node {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #facc15;
  border: 2px solid #08111f;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
  position: relative;
  z-index: 1;
  justify-self: center;
}

.tier-reward {
  color: #e5edf8;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.45;
}

.tier-item--crown {
  background: rgba(250, 204, 21, 0.08);
  padding-top: 18px;
  padding-bottom: 18px;
}

.tier-item--crown .tier-vol {
  font-size: 1.2rem;
  color: #fbbf24;
}

.tier-item--crown .tier-node {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.7);
}

.tier-item--crown .tier-reward {
  color: #fde68a;
  font-size: 1.1rem;
  font-weight: 900;
}

.tier-item--entry .tier-node {
  background: rgba(250, 204, 21, 0.45);
  box-shadow: none;
}

.tier-item--entry .tier-vol,
.tier-item--entry .tier-reward {
  opacity: 0.72;
}

@media (max-width: 980px) {
  .partner-hero,
  .income-calculator,
  .commission-section,
  .exclusive-program {
    grid-template-columns: 1fr;
  }

  .partner-hero {
    padding: 34px;
  }

  .partner-hero__brand {
    justify-self: start;
    width: min(100%, 260px);
  }

  .reward-strip,
  .catalog-grid,
  .program-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .partner-page {
    padding: 92px 14px 42px;
  }

  .tier-ladder {
    max-width: 100%;
  }

  .tier-status {
    grid-template-columns: 1fr;
  }

  .tier-item {
    padding: 11px 16px;
    grid-template-columns: 1fr 18px 1fr;
    gap: 0 10px;
  }

  .tier-ladder__banner {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .tier-progress {
    padding: 12px 16px 6px;
  }

  .tier-progress__track {
    min-width: 920px;
  }

  .tier-current {
    padding: 10px 16px 18px;
  }

  .tier-current span {
    width: 100%;
  }

  .tier-vol,
  .tier-reward {
    font-size: 0.88rem;
  }

  .tier-item--crown .tier-vol {
    font-size: 1.05rem;
  }

  .tier-item--crown .tier-reward {
    font-size: 0.97rem;
  }

  .partner-hero,
  .calculator-panel,
  .income-result,
  .exclusive-program {
    border-radius: 20px;
    padding: 22px;
  }

  .partner-hero {
    min-height: auto;
  }

  .steps-grid,
  .reward-strip,
  .catalog-grid,
  .program-benefits {
    grid-template-columns: 1fr;
  }

  .calculator-panel,
  .income-result {
    min-height: auto;
  }
}
