.code-section {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  margin-top: var(--spacing-xs);
  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.the-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  direction: rtl;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
} 

#theCode {
  padding-right: 12px;
}

.invite-text{
  margin-top: var(--spacing-md);
}

.code-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-tools img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.75;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.code-tools img:hover {
  opacity: 1;
  transform: scale(1.1);
}
.invite-stats-box {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  direction: rtl;
  flex-direction: column;
  gap: 15px;
}

.invite-stats-right,
.invite-stats-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.invite-stats-divider {
  background: #e0e0e0;
  flex-shrink: 0;
  width: 100%;
  height: 1px;
}

.stats-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.stats-value {
  font-size: 20px;
  color: #333;
  font-weight: 700;
}
.the-main-code {
  font-family: "sans";
}

.invite-friends-container {
  background-color: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: var(--radius-card);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-2xl);
}
.back-to-dashboard {
  cursor: pointer;
  width: 175px;
  align-self: last baseline;
}

/* موبایل */
@media (max-width: 578px) {
  .invite-stats-right,
  .invite-stats-left {
    width: 100%;
  }
}

/* ریسپانسیو */
@media (min-width: 579px) {
  .code-section {
    width: 35%;
    padding: var(--spacing-lg);
  }

  .the-code {
    font-size: 15px;
  }

  .code-tools img {
    width: 22px;
    height: 22px;
  }
  .invite-stats-divider {
    width: 1px;
    height: 60px;
  }
  .invite-stats-box {
    flex-direction: row;
    gap: 20px;
  }
}
