.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #252525;
}

.dashboard-header p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}


/* Stats */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-stat-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #eee6e9;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.stat-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #f7eef1;
  color: #a96d7e;

  font-size: 16px;
  font-weight: 600;
}

.stat-value {
  margin-top: 18px;

  color: #252525;

  font-size: 25px;
  font-weight: 700;
}

.stat-description {
  display: block;
  margin-top: 5px;

  color: #9ca3af;
  font-size: 12px;
}


/* Secondary */

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.dashboard-card {
  padding: 24px;

  background: #ffffff;
  border: 1px solid #eee6e9;
  border-radius: 14px;

  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.dashboard-card-header h2 {
  margin: 0;

  color: #252525;

  font-size: 17px;
  font-weight: 600;
}

.dashboard-card-header p {
  margin: 5px 0 0;

  color: #9ca3af;

  font-size: 12px;
}


/* Tier */

.tier-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
}

.tier-percentage {
  color: #a96d7e;
  font-size: 32px;
  font-weight: 700;
}

.tier-details strong {
  display: block;
  color: #252525;
  font-size: 14px;
}

.tier-details span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.tier-progress {
  margin-top: 24px;
}

.tier-progress-bar {
  width: 100%;
  height: 7px;

  overflow: hidden;

  background: #f0e7ea;
  border-radius: 10px;
}

.tier-progress-value {
  height: 100%;
  background: #a96d7e;
  border-radius: 10px;
}

.tier-progress-text {
  display: flex;
  justify-content: space-between;

  margin-top: 7px;

  color: #9ca3af;
  font-size: 11px;
}


/* Referral */

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

.referral-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.referral-label {
  font-size: 13px;
  color: #7d7d7d;
}

.copy-code-btn {
  white-space: nowrap;
}

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

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

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

  box-sizing: border-box;
}

.dashboard-referral-box .referral-item {
  position: relative;

  display: flex;
  flex-direction: column;

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

  padding: 14px;
  padding-bottom: 52px;

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

  box-sizing: border-box;
}

.dashboard-referral-box .referral-label {
  display: block;

  margin-bottom: 8px;

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

.dashboard-referral-box .referral-item strong {
  display: block;

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

  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-referral-box .referral-copy-row {
  display: block;

  width: 100%;
  min-width: 0;
}

.dashboard-referral-box .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;
}

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

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

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

.referral-pending {
  margin-top: 25px;
  padding: 16px;

  background: #fafafa;
  border-radius: 9px;

  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

/* Recent Activity */

.recent-activity-list {
  display: flex;
  flex-direction: column;
}

.recent-activity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.recent-activity-row:last-child {
  border-bottom: none;
}

.recent-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8eef1;
  color: #a96d7e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}

.recent-activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-activity-content strong {
  font-size: 14px;
  color: #222;
}

.recent-activity-content span {
  font-size: 13px;
  color: #666;
}

.recent-activity-content small {
  font-size: 12px;
  color: #999;
}

.recent-activity-commission {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.recent-activity-commission strong {
  font-size: 15px;
  color: #2f8f5b;
}

.recent-activity-commission span {
  font-size: 12px;
  color: #999;
}


/* Activity */

.dashboard-activity-card {
  margin-top: 18px;
}

.empty-activity {
  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.empty-activity-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  border-radius: 50%;

  background: #f7eef1;
  color: #a96d7e;
}

.empty-activity strong {
  color: #4a3540;
  font-size: 14px;
}

.empty-activity span {
  max-width: 360px;

  margin-top: 5px;

  color: #9ca3af;
  font-size: 12px;
}

.withdrawal-history {
  display: flex;
  flex-direction: column;
}

.withdrawal-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 0;

  border-bottom: 1px solid #eeeeeb;
}

.withdrawal-history-row:last-child {
  border-bottom: 0;
}

.withdrawal-history-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.withdrawal-history-row strong {
  color: #252525;
  font-size: 15px;
}

.withdrawal-history-row span {
  color: #737373;
  font-size: 12px;
}

.withdrawal-history-row small {
  color: #858585;
  font-size: 11px;
}


.withdraw-minimum-text {
  font-size: 10px;
  color: #858585;
  margin-left: 4px;
}

/* Status */

.withdrawal-status {
  display: inline-block;

  padding: 5px 9px;

  border-radius: 20px;

  font-size: 11px !important;
  font-weight: 600;
}

.withdrawal-status.processing {
  background: #fff7ed;
  color: #9a3412;
}

.withdrawal-status.paid {
  background: #ecfdf3;
  color: #166534;
}

.withdrawal-status.failed {
  background: #fff1f2;
  color: #b42318;
}

.dashboard-withdraw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 12px;

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

  background: #a96d7e;
  color: #ffffff;

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

  text-decoration: none;

  cursor: pointer;

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

.dashboard-withdraw-btn:hover {
  background: #955d6e;
  border-color: #955d6e;
  color: #ffffff;
}


/* Disabled */

.dashboard-withdraw-btn.disabled {
  background: #eeeeee;
  border-color: #dddddd;
  color: #999999;

  cursor: not-allowed;
  opacity: 1;
}

.dashboard-withdraw-btn.disabled:hover {
  background: #eeeeee;
  border-color: #dddddd;
  color: #999999;
}


@media (max-width: 768px) {

  .withdrawal-history-row {
    gap: 12px;
  }

  .withdrawal-history-row > div:last-child {
    align-items: flex-end;
  }

}

@media (max-width: 1000px) {

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

}

@media (max-width: 768px) {

  .dashboard-header h1 {
    font-size: 22px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .dashboard-stat-card {
    padding: 20px;
  }

.dashboard-referral-box {
    grid-template-columns: 1fr;

    gap: 12px;
    padding: 14px;
  }

  .dashboard-referral-box .referral-item {
    width: 100%;
    min-height: 100px;

    padding: 14px;
    padding-bottom: 52px;

    box-sizing: border-box;
  }

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

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

    width: auto;
  }

}