.partner-status-page {
  width: 100%;
}

.partner-status-card {
  width: 100%;
  padding: 28px 40px 36px;
  background: #ffffff;
  border: 1px solid #e1e1dc;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
}


/* =========================
   PAGE HEADER
========================= */

.status-page-header h1 {
  margin: 0;
}

.status-page-header p {
  margin: 4px 0 0;
}


/* =========================
   TOP STEPPER
========================= */

.application-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 42px;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.stepper-circle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eeeeee;
  color: #999999;
  font-size: 13px;
  font-weight: 600;
}

.stepper-step.completed .stepper-circle {
  background: #a96d7e;
  color: #ffffff;
}

.stepper-step.current .stepper-circle {
  background: #f9eef2;
  border: 1px solid #ead1d9;
  color: #a96d7e;
}

.stepper-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper-content strong {
  color: #252525;
  font-size: 13px;
  font-weight: 600;
}

.stepper-content span {
  color: #999999;
  font-size: 11px;
}

.stepper-step.completed .stepper-content span {
  color: #737373;
}

.stepper-line {
  width: 130px;
  height: 2px;
  margin: 0 12px;
  background: #e5e5e5;
}

.stepper-line.completed {
  background: #a96d7e;
}


/* =========================
   MAIN STATUS
========================= */

.status-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.status-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f9eef2;
  color: #a96d7e;
  font-size: 28px;
}

.status-icon.pending {
  background: #fff7ed;
}

.status-icon.review {
  background: #f9eef2;
}

.status-icon.resubmission {
  background: #fff7ed;
  color: #9a3412;
}

.status-icon.rejected {
  background: #fff1f2;
  color: #b42318;
}

.status-icon.approved {
  background: #ecfdf3;
  color: #166534;
}

.status-main h2 {
  margin: 0 0 7px;
  color: #252525;
  font-size: 22px;
  font-weight: 600;
}

.status-description {
  max-width: 800px;
  margin: 0;
  color: #737373;
  font-size: 14px;
  line-height: 1.6;
}


/* =========================
   HIGHLIGHT
========================= */

.status-highlight {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 32px;
  padding: 18px 20px;
  background: #faf4f6;
  border: 1px solid #eadce1;
  border-radius: 10px;
}

.status-highlight strong {
  color: #252525;
  font-size: 13px;
  font-weight: 600;
}

.status-highlight span {
  color: #737373;
  font-size: 12px;
  line-height: 1.6;
}

.resubmission-highlight {
  background: #fff7ed;
  border-color: #fed7aa;
}

.resubmission-highlight strong {
  color: #9a3412;
}

.resubmission-highlight span {
  color: #7c2d12;
}

.rejected-highlight {
  background: #fff1f2;
  border-color: #fecdd3;
}

.rejected-highlight strong {
  color: #b42318;
}

.rejected-highlight span {
  color: #7f1d1d;
}


/* =========================
   STEP DETAILS
========================= */

.step-details {
  padding-top: 28px;
  border-top: 1px solid #eeeeeb;
}

.step-details h3 {
  margin: 0 0 5px;
  color: #252525;
  font-size: 17px;
  font-weight: 600;
}

.step-details > p {
  margin: 0 0 25px;
  color: #858585;
  font-size: 12px;
}

.detail-timeline {
  max-width: 700px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eeeeee;
  color: #999999;
  font-size: 12px;
  font-weight: 600;
}

.detail-item.completed .detail-dot {
  background: #a96d7e;
  color: #ffffff;
}

.detail-item.current .detail-dot {
  background: #f9eef2;
  border: 1px solid #ead1d9;
  color: #a96d7e;
}

.detail-item > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}

.detail-item strong {
  color: #252525;
  font-size: 13px;
  font-weight: 600;
}

.detail-item span {
  color: #737373;
  font-size: 12px;
  line-height: 1.5;
}

.detail-item small {
  color: #999999;
  font-size: 11px;
}

.detail-line {
  width: 1px;
  height: 28px;
  margin: 3px 0 3px 17px;
  background: #e5e5e5;
}

.detail-line.completed {
  background: #a96d7e;
}


/* =========================
   ACTIONS
========================= */

.status-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.status-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 11px 22px;
  border: 1px solid #a96d7e;
  border-radius: 8px;
  background: #a96d7e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.status-primary-btn:hover {
  background: #955d6e;
  border-color: #955d6e;
  color: #ffffff;
  text-decoration: none;
}


/* =========================
   REFERRAL CODE
========================= */

.referral-code-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  margin-top: 25px;
  padding: 16px;

  background: #f7eef1;
  border: 1px solid #e3cbd2;
  border-radius: 9px;
}

.referral-label {
  display: block;
  margin-bottom: 8px;
  color: #737373;
  font-size: 12px;
}

.referral-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.referral-code-row strong {
  color: #252525;
  font-size: 20px;
  letter-spacing: 1px;
}

.copy-code-btn {
  padding: 7px 12px;
  border: 1px solid #a96d7e;
  border-radius: 6px;
  background: #ffffff;
  color: #a96d7e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: #a96d7e;
  color: #ffffff;
}

.referral-hidden-value {
  display: none;
}

.referral-item {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 100px;

  padding: 14px;
  padding-bottom: 55px;

  background: #ffffff;
  border: 1px solid #ead9de;
  border-radius: 8px;
}

.referral-label {
  display: block;

  margin-bottom: 8px;

  color: #858585;
  font-size: 12px;
}

.referral-item strong {
  display: block;

  color: #4a3540;
  font-size: 18px;
  letter-spacing: 1px;

  overflow-wrap: anywhere;
}

.copy-code-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;

  padding: 7px 14px;

  border: 1px solid #a96d7e;
  border-radius: 6px;

  background: #ffffff;
  color: #a96d7e;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
  cursor: pointer;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.copy-code-btn:hover {
  background: #a96d7e;
  color: #ffffff;
}

.copy-code-btn.copying {
  opacity: 0.7;
}

.referral-hidden-value {
  display: none;
}


/* =========================
   MOBILE
========================= */

/*
@media (max-width: 768px) {

  .partner-status-card {
    padding: 24px 20px 28px;
  }

  .application-stepper {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .stepper-step {
    min-width: 105px;
  }

  .stepper-line {
    width: 45px;
    margin: 0 8px;
  }

  .stepper-content strong {
    font-size: 12px;
  }

  .stepper-content span {
    font-size: 10px;
  }

  .status-main {
    align-items: flex-start;
    gap: 14px;
  }

  .status-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 13px;
    font-size: 23px;
  }

  .status-main h2 {
    font-size: 19px;
  }

  .status-description {
    font-size: 13px;
  }

  .status-actions {
    justify-content: stretch;
  }

  .status-primary-btn {
    width: 100%;
  }

  .referral-code-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-code-btn {
    width: 100%;
  }
}

*/
@media (max-width: 768px) {

  .partner-status-card {
    padding: 24px 20px 28px;
    overflow: hidden;
  }

  /* =========================
     MOBILE STEPPER
  ========================== */

  .application-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin-bottom: 36px;
    overflow: visible;
    padding: 0;
  }

  .stepper-step {
    min-width: 0;
    flex: 0 1 auto;
    gap: 7px;
  }

  .stepper-circle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 12px;
  }

  .stepper-content {
    gap: 1px;
  }

  .stepper-content strong {
    font-size: 11px;
    white-space: nowrap;
  }

  .stepper-content span {
    font-size: 9px;
    white-space: nowrap;
  }

  .stepper-line {
    flex: 1 1 auto;
    width: auto;
    min-width: 15px;
    height: 2px;
    margin: 15px 7px 0;
  }


  /* =========================
     STATUS CONTENT
  ========================== */

  .status-main {
    align-items: flex-start;
    gap: 14px;
  }

  .status-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 13px;
    font-size: 23px;
  }

  .status-main h2 {
    font-size: 19px;
  }

  .status-description {
    font-size: 13px;
  }


  /* =========================
     ACTION BUTTON
  ========================== */

  .status-actions {
    justify-content: stretch;
  }

  .status-primary-btn {
    width: 100%;
  }


  /* =========================
     REFERRAL CODE
  ========================== */

  .referral-code-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .referral-code-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .referral-item {
    min-height: 100px;
    padding: 14px;
    padding-bottom: 55px;
  }

  .referral-item strong {
    font-size: 16px;
  }

  .copy-code-btn {
    right: 14px;
    bottom: 14px;

    width: auto;
  }
}