.affiliate-account-warning {
  text-align: center;
  color: #ff9900;
  font-size: 13px;
  width: 100%;
}

.copy-btn {
  padding: 10px;
  display: inline-block;
  position: absolute;
  margin-left: -1px;
  border: 1px solid #999;
}

.html-referral-page .page-title h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.referral-page .page-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.referral-empty {
  padding: 30px 25px;
  background: #fff;
  border: 1px solid #e3e3e3;
  color: #555;
  text-align: center;
}

.referral-empty h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.referral-empty--inline {
  text-align: left;
  border: none;
  padding: 0;
}

.referral-empty--inline p {
  margin: 0;
}

.referral-hero {
  background: linear-gradient(140deg, #b11217, #da4c1f);
  border-radius: 16px;
  color: #fff;
  padding: 22px;
  box-shadow: 0 12px 26px rgba(177, 18, 23, 0.24);
}

.referral-hero__top {
  margin-bottom: 16px;
}

.referral-hero__label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.referral-hero__link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.referral-hero__link {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  word-break: break-all;
  text-decoration: underline;
}

.referral-copy {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.referral-copy:hover,
.referral-copy:focus,
.referral-copy.copied {
  background: rgba(255, 255, 255, 0.28);
}

.referral-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.referral-stat {
  border: 1px dashed #76d0a4;
  background: #eaf8f0;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.referral-stat__value {
  font-size: 28px;
  font-weight: 700;
  color: #1c7d51;
}

.referral-stat__label {
  margin-top: 4px;
  font-size: 13px;
  color: #1c7d51;
}

.referral-tabs {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 15, 15, 0.06);
  padding: 16px;
}

.referral-tabs__header {
  display: flex;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 16px;
}

.referral-tab-button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  position: relative;
}

.referral-tab-button.active {
  color: #df3a17;
}

.referral-tab-button.active:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #df3a17;
  border-radius: 2px;
}

.referral-tab-pane[hidden] {
  display: none;
}

.referral-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.referral-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.referral-card--pending {
  background: #fff6ef;
  border-style: dashed;
  border-color: #f7ba86;
}

.referral-card--progress {
  background: #ecf9f1;
  border: 1px dashed #8cd9ac;
  text-align: center;
}

.referral-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #252525;
  margin-bottom: 12px;
}

.referral-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-pending-badge {
  background: #fbe9da;
  color: #df6d1a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.referral-how-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-how-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.referral-how-item__number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dff5e8;
  color: #27895a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.referral-how-item__title {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
}

.referral-how-item__desc {
  font-size: 14px;
  color: #5f5f5f;
}

.referral-transactions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-transaction-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 10px 12px;
}

.referral-transaction-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f8ee;
  color: #2a8d5f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-transaction-item__name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.referral-transaction-item__meta {
  font-size: 13px;
  color: #6b6b6b;
}

.referral-transaction-item__amount-wrap {
  text-align: right;
}

.referral-transaction-item__amount {
  font-size: 18px;
  font-weight: 700;
  color: #212121;
}

.referral-transaction-item__status {
  font-size: 13px;
  font-weight: 700;
}

.referral-transaction-item__status.completed {
  color: #198754;
}

.referral-transaction-item__status.pending {
  color: #f57c00;
}

.referral-pending-reward__amount {
  font-size: 22px;
  font-weight: 700;
  color: #df6d1a;
  margin-bottom: 2px;
}

.referral-pending-reward__note {
  font-size: 13px;
  color: #7a5f42;
}

.referral-tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-tier-item {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.referral-tier-item.current {
  border: 1px dashed #f2ba52;
  background: #fff8ea;
}

.referral-tier-item__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-tier-item__name {
  font-size: 17px;
  font-weight: 700;
  color: #242424;
}

.referral-tier-item__current {
  background: #f2ba52;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.referral-tier-item__meta {
  color: #5f5f5f;
  font-size: 13px;
}

.referral-tier-item__reward-wrap {
  text-align: right;
}

.referral-tier-item__reward {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
}

.referral-tier-item__reward-note {
  font-size: 12px;
  color: #666;
}

.referral-progress__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #1f8a5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.referral-progress__title {
  font-size: 24px;
  font-weight: 700;
  color: #1e6244;
}

.referral-progress__note {
  margin-top: 4px;
  color: #335f4d;
  font-size: 14px;
}

@media (max-width: 768px) {
  .referral-hero {
    padding: 16px;
  }

  .referral-hero__link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .referral-copy {
    width: 100%;
  }

  .referral-hero__stats {
    grid-template-columns: 1fr;
  }

  .referral-tab-button {
    font-size: 14px;
    padding: 10px 8px;
  }

  .referral-transaction-item {
    grid-template-columns: auto 1fr;
  }

  .referral-transaction-item__amount-wrap {
    grid-column: 1 / span 2;
    text-align: left;
    padding-left: 52px;
  }

  .referral-tier-item {
    grid-template-columns: 1fr;
  }

  .referral-tier-item__reward-wrap {
    text-align: left;
  }

  .referral-progress__title {
    font-size: 18px;
  }
}

.deal-details-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.deal-header {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.deal-image {
  flex-shrink: 0;
}

.deal-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.deal-info {
  flex: 1;
}

.deal-title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.deal-short-description {
  font-size: 18px;
  color: #666;
  margin: 0 0 20px 0;
}

.deal-discount {
  display: inline-block;
  padding: 10px 20px;
  background: #4ab2f1;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 15px;
}

.deal-minimum-order {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

.deal-description,
.deal-terms {
  margin-bottom: 30px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.deal-description h2,
.deal-terms h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.deal-description div,
.deal-terms div {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.deal-merchants-section {
  margin-top: 30px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.deal-merchants-container {
  margin-top: 20px;
}

.deal-merchants-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.deal-merchants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.deal-warehouses-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.deal-warehouses-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.deal-warehouses-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.deal-warehouse-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  font-size: 15px;
  color: #555;
}

.deal-warehouse-item i {
  color: #4ab2f1;
  font-size: 16px;
}

@media (max-width: 768px) {
  .deal-header {
    flex-direction: column;
  }

  .deal-image img {
    max-width: 100%;
  }

  .deal-title {
    font-size: 24px;
  }

  .deal-merchants-list {
    grid-template-columns: 1fr;
  }

  .deal-warehouses-list {
    grid-template-columns: 1fr;
  }
}
