.profile-layout {
  max-width: 1152px;
  width: 100%;
  margin: 24px auto 64px;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 1280px) {
  .profile-layout {
    width: 1152px;
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
  }
}

.profile-sidebar {
  width: 300px;
  flex: 0 0 300px;
}

.profile-main {
  flex: 0 1 820px;
  min-width: 0;
  max-width: 820px;
  width: 100%;
}

.profile-menu-card {
  background: var(--surface-primary);
  border-radius: 24px;
  padding: 8px 16px;
  box-shadow: none;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.profile-menu-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;                 /* расстояние между иконкой и текстом */
  padding: 8px 0px;         /* 8 сверху/снизу, 16 слева/справа */
  min-height: 40px;          /* кликаемая высота 40 */
  border-radius: 12px;
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  letter-spacing: var(--ls-16);
  font-weight: var(--fw-regular);
  color: var(--text-muted);  /* неактивный пункт — серый */
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-menu-link:hover {
  background: transparent;   /* без подложки при ховере */
}

.profile-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;            /* серый цвет иконки */
}

.profile-menu-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.profile-menu-link.active {
  background: transparent;   /* без подложки у активного */
  color: var(--accent-color);
  font-weight: var(--fw-regular);
}

.profile-menu-link.active .profile-menu-icon {
  color: var(--accent-color); /* зелёная иконка у активного */
}

.profile-card {
  background: var(--surface-primary);
  border-radius: 24px;
  padding: 20px;
  gap: 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.profile-card-1 {
  background: var(--surface-primary);
  border-radius: 24px;
  padding: 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card-title {
  margin: 0;
  font-size: var(--fs-20);
  line-height: var(--lh-20);
  letter-spacing: var(--ls-20);
  font-weight: var(--fw-medium);
  color: var(--text-color);
}

.profile-card-header-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  position: relative;
}

.resume-create-link {
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  letter-spacing: var(--ls-16);
  font-weight: var(--fw-regular);
  color: var(--accent-color);
  cursor: pointer;
  height: 24px;
  white-space: nowrap;
}

.resume-create-link:hover {
  opacity: 0.9;
}

.resume-create-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resume-analytics-link {
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  letter-spacing: var(--ls-16);
  font-weight: var(--fw-regular);
  color: var(--text-color);
  cursor: pointer;
  height: 24px;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
}

.resume-analytics-link:hover {
  color: var(--accent-color);
}

.resume-analytics-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resume-upload-status {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  letter-spacing: var(--ls-14);
  color: var(--text-muted);
  margin-bottom: 12px;
}

@media (min-width: 1280px) {
  .resume-upload-status {
    margin-bottom: 0;
  }
}

/* Дропдаун для кнопки "Новое" в резюме */
.resume-create-dropdown {
  top: 32px;
  right: 0;
}

.profile-card-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Список резюме на странице /profile/cv */
#resumeListContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 16px;
  border-radius: 22px;
  border: none;
  background-color: var(--surface-primary);
}

.resume-card-shell {
  background: var(--surface-secondary);
  border-radius: 24px;
  padding: 0 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resume-card-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 18px 8px 16px;
  background: var(--surface-secondary);
  border-radius: 22px 22px 0 0;
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  letter-spacing: var(--ls-12);
  color: var(--text-color);
}

.resume-card-shell-title {
  font-weight: var(--fw-regular);
}

.resume-card-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.resume-card-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.resume-card-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.resume-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-card-lang-flag {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--surface-primary);
  border-radius: 50%;
}

.resume-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-card-info-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resume-card-name {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  letter-spacing: var(--ls-14);
  color: var(--text-color);
}

.resume-card-position {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  letter-spacing: var(--ls-16);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.resume-card-salary {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  letter-spacing: var(--ls-14);
  color: var(--text-muted);
}

.resume-card-updated {
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  letter-spacing: var(--ls-12);
  color: var(--text-muted);
}

.resume-card-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.resume-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-card-stats-btn,
.resume-card-eye-btn,
.resume-card-edit-btn,
.resume-card-menu-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-card-stats-btn svg,
.resume-card-eye-btn svg,
.resume-card-edit-btn svg,
.resume-card-menu-btn svg {
  display: block;
}

html.dark-theme .resume-card-stats-btn svg path,
html.dark-theme .resume-card-eye-btn svg path,
html.dark-theme .resume-card-edit-btn svg path,
html.dark-theme .resume-card-menu-btn svg circle {
  fill: #ffffff;
}

html.dark-theme .resume-card-stats-btn svg path {
  stroke: #ffffff;
  fill: none;
}

/* Wrapper для меню с dropdown */
.resume-card-menu-wrapper {
  position: relative;
}

.resume-card-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 160px;
  width: auto;
  z-index: 100;
}

.resume-card-dropdown.open-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.resume-card-dropdown .sort-option-text {
  white-space: nowrap;
}

.resume-card-dropdown .sort-option-danger .sort-option-text {
  color: var(--danger-color, #E23D3E);
}

html.dark-theme .resume-card-eye-btn svg path,
html.dark-theme .resume-card-edit-btn svg path {
  fill: #ffffff;
}

.resume-card-delete-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-secondary);
  color: var(--danger);
}

.resume-card-delete-btn svg path {
  fill: var(--danger);
}

html.dark-theme .resume-card-delete-btn {
  background: #1f1f29;
}

html.dark-theme .resume-card {
  border-color: #32323E;
}

/* Спиннер для списка резюме */
.resume-list-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.resume-list-spinner.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--surface-secondary);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 1279px) {
  .resume-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 14px !important;
  }

  .resume-card-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .resume-card-actions-wrapper {
    width: 100%;
    align-items: stretch;
  }

  .resume-card-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .resume-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .resume-card-stats-btn,
  .resume-card-eye-btn,
  .resume-card-edit-btn,
  .resume-card-menu-btn {
    flex: 1;
    justify-content: center;
  }

  .resume-card-menu-wrapper {
    flex: 1;
    display: flex;
  }

  .resume-card-menu-wrapper .resume-card-menu-btn {
    width: 100%;
  }

  .resume-card-shell {
    padding: 0 2px 2px;
    border-radius: 16px;
  }

  .resume-card-shell-header {
    padding: 8px 14px;
    border-radius: 14px 14px 0 0;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile-pro-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Перестановка кнопки Выйти на мобилке */
#profileLogoutMobile { display: none; }
@media (max-width: 1279px) {
  #profileLogoutDesktop { display: none; }
  #profileLogoutMobile { display: block; width: 100%; padding-left: 0; margin-left: 0; }
}

.profile-tabs-chips {
  display: none;
  margin-bottom: 8px;   /* чипы -> блок 8px */
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* desktop всегда 1152 (контейнер ограничивает), минимум 1280px */

@media (max-width: 1279px) {
  .profile-layout {
    flex-direction: column;
    gap: 0;
    margin: 0 auto 32px;        /* убираем верхний отступ — чипы -> карточка = 8px */
    max-width: 600px;              /* как в хедере */
    width: 100%;
  }

  .profile-sidebar {
    display: none;
  }

  .profile-main {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .profile-tabs-chips {
    display: block;
  }

  .profile-card,
  .profile-menu-card {
    padding: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    gap: 0px;
  }

  .profile-card-1 {
    padding: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    gap: 16px;
  }
  /* на мобилке заголовок внутри карточки скрываем, кроме блока партнёрской программы */
  .profile-card-title { display: none; }
  .profile-card-2 .profile-card-title { display: block; }

  .resume-card {
    border-radius: 16px;
  }
}

/* Переключение CV-блока: на десктопе показываем Desktop, на мобилке — Mobile */
.cv-block-desktop { display: block; }
.cv-block-mobile { display: none; }
@media (max-width: 1279px) {
  .cv-block-desktop { display: none; }
  .cv-block-mobile { display: block; }
}

/* Чипы: используем существующие .filter-chip, но убираем подчёркивание ссылок
   и убеждаемся, что неактивный фон белый, как на главной */
.profile-tabs-chips .filter-chips a.filter-chip { text-decoration: none; }
.profile-tabs-chips .filter-chip { background: #FFFFFF; }
.profile-tabs-chips .filter-chip.active { background: var(--accent-color); color: var(--surface-primary); }

/* Мобильный заголовок вне карточки (показывается только <1280px) */
.profile-mobile-title { display: none; }
@media (max-width: 1279px) {
  .profile-mobile-title {
    display: block;
    margin: 24px auto 16px; /* от хедера 24; между заголовком и чипами 12 */
    max-width: 600px;
    width: 100%;
    font-size: var(--fs-32);
    line-height: var(--lh-32);
    letter-spacing: var(--ls-32);
    font-weight: var(--fw-semibold);
    color: var(--text-color);
  }
}

/* Кнопка создания резюме для мобилки */
.resume-mobile-actions {
  display: none;
}

.resume-analytics-btn-mobile {
  gap: 6px;
  white-space: nowrap;
}

.resume-create-btn-mobile {
  display: none;
}

@media (max-width: 1279px) {
  .resume-create-link,
  .resume-analytics-link {
    display: none;
  }

  .resume-mobile-actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .resume-mobile-actions .btn {
    flex: 1 1 0;
  }

  .resume-create-btn-mobile {
    display: block;
    width: 100%;
  }
}

/* ===== Toggle "Основное резюме" ===== */

.resume-card-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Базовые стили (mobile-first) */
.resume-card-primary-desktop {
  display: none;
}

.resume-card-primary-mobile {
  display: flex;
}

.resume-card-avatar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* Desktop версия (только на больших экранах) */
@media (min-width: 1280px) {
  .resume-card-primary-desktop {
    display: flex;
  }

  .resume-card-primary-mobile {
    display: none;
  }

  .resume-card-avatar-header {
    display: flex;
    gap: 16px;
    width: auto;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.resume-card-primary-label {
  color: var(--text-color);
  font-size: 14px;
  font-weight: var(--fw-regular, 400);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 20px;
  background: #E5E5E5;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

html.dark-theme .toggle:not(.active) {
  background: var(--dark-switcher-active);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 17px;
  background: white;
  border-radius: 999px;
  top: 1.5px;
  left: 1.5px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle.active {
  background: var(--accent-color);
}

.toggle.active::after {
  transform: translateX(17px);
}

.toggle.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Пустое состояние резюме */
.resume-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 12px;
  gap: 16px;
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
}

.resume-empty-illustration {
  color: var(--text-color);
}

.resume-empty-text {
  color: var(--text-color);
  text-align: center;
  font-size: 16px;
  line-height: var(--lh-16);
  margin: 0;
}

.resume-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.resume-empty-actions .btn {
  width: 100%;
}

.resume-empty-create-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.resume-empty-create-row .btn {
  flex: 1;
}

.resume-empty-actions .btn:disabled,
.resume-create-btn-mobile:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.resume-empty-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* Скрываем кнопки "Новое резюме" когда резюме нет */
.profile-card.no-resumes .resume-create-link,
.profile-card.no-resumes .resume-create-btn-mobile {
  display: none;
}

.profile-card.no-resumes .resume-mobile-actions {
  display: none;
}

@media (max-width: 1279px) {
  .resume-empty-state {
    padding: 0 12px 16px;
    width: 100%;
    margin: 0;
  }
  .profile-card.no-resumes {
    gap: 0;
  }
}

/* Тень для тостов на страницах профиля (светлая тема) */
html:not(.dark-theme) .toast {
  box-shadow: 0px 4px 12px 6px #0000000F;
}

@media (min-width: 1280px) {
  .resume-create-btn-mobile {
    display: none !important;
  }
}

/* Партнёрская программа */
.profile-card-2 {
  background: var(--surface-primary);
  border-radius: 24px;
  padding: 20px;
  margin-top: 16px;
}

.referral-benefits {
  margin-bottom: 16px;
}

.referral-link-section {
  width: 100%;
}

.referral-input-wrap {
  position: relative;
}

.referral-link-input {
  padding-right: 44px;
  pointer-events: none;
  user-select: none;
  margin-bottom: 4px;
}

@media (min-width: 1280px) {
  .referral-link-input {
    max-width: none;
  }
}

.referral-copy-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  transform: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.referral-copy-btn:hover {
  color: var(--accent-color);
}

.referral-copy-btn:focus {
  outline: none;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.referral-stat-item {
  background: var(--surface-secondary);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.referral-stat-value {
  display: block;
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-20);
  color: var(--text-color);
}

.referral-stat-label {
  display: block;
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  color: var(--text-muted);
}



.applications-table-container {
  background: var(--surface-primary);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--filter-divider);
  width: 100%;
}

.applications-table-container .applications-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  table-layout: fixed;
}

.applications-table-container .applications-table thead {
  background: var(--surface-secondary);
}

.applications-table-container .applications-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border: none;
  border-bottom: 1px solid var(--filter-divider);
}

.applications-table-container .applications-table th:nth-child(1),
.applications-table-container .applications-table td:nth-child(1) { width: 40%; }
.applications-table-container .applications-table th:nth-child(2),
.applications-table-container .applications-table td:nth-child(2) { width: 20%; }
.applications-table-container .applications-table th:nth-child(3),
.applications-table-container .applications-table td:nth-child(3) { width: 20%; }

.applications-table-container .applications-table th:first-child {
  border-top-left-radius: 20px;
}

.applications-table-container .applications-table th:last-child {
  border-top-right-radius: 20px;
}

.applications-table-container .applications-table td {
  padding: 16px;
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: var(--lh-14);
  letter-spacing: var(--ls-14);
  color: var(--text-color);
  border: none;
  border-bottom: 1px solid var(--filter-divider);
  vertical-align: middle;
}

.applications-table-container .applications-table tbody tr:last-child td {
  border-bottom: none;
}

.applications-table-container .applications-table tbody tr:hover {
  background: var(--hover-light);
}

html.dark-theme .applications-table-container {
  background: var(--surface-primary);
  border-color: var(--filter-divider);
}

html.dark-theme .applications-table-container .applications-table thead {
  background: var(--surface-secondary);
}

/* Выравнивание колонок таблицы рефералов по правому краю */
.referral-invited-section .applications-table th:nth-child(2),
.referral-invited-section .applications-table th:nth-child(3),
.referral-invited-section .applications-table td:nth-child(2),
.referral-invited-section .applications-table td:nth-child(3) {
  text-align: right;
}

.referral-invited-table {
  width: 100%;
  border-collapse: collapse;
}

.referral-invited-table th,
.referral-invited-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--filter-divider);
}

.referral-invited-table th {
  font-weight: var(--fw-medium);
  color: var(--text-color);
  background: var(--surface-secondary);
  border-radius: 8px 8px 0 0;
}

.referral-invited-table td {
  color: var(--text-color);
}

.referral-invited-table tr:last-child td {
  border-bottom: none;
}

.referral-invited-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--surface-secondary);
  border-radius: 12px;
}

.referral-invited-date {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  color: var(--text-color);
}

.referral-invited-status {
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  padding: 4px 8px;
  border-radius: 6px;
}

.referral-invited-status.paid {
  background: rgba(58, 194, 113, 0.15);
  color: var(--success-color);
}

.referral-invited-status.pending {
  background: var(--surface-secondary);
  color: var(--text-muted);
  border: 1px solid var(--filter-divider);
}

.referral-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 0 0;
  text-align: center;
  gap: 12px;
  margin-bottom: 8px;
}

.referral-empty-illustration {
  display: none;
}

.referral-empty-text {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  color: var(--text-color);
  margin: 0;
}

@media (min-width: 1280px) {
  .referral-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 12px 16px;
  }

  .referral-stat-value {
    order: 2;
  }

  .referral-stat-label {
    order: 1;
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 1279px) {
  .profile-card-2 {
    padding: 16px;
  }
  .referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 4px;
  }

  .applications-table-container .applications-table th {
    padding: 12px 16px;
  }

  .referral-stats .referral-stat-item:nth-child(1),
  .referral-stats .referral-stat-item:nth-child(2) {
    grid-row: 1;
  }

  .referral-stats .referral-stat-item:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .referral-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 10px 12px;
  }

  .referral-stat-value {
    font-size: var(--fs-16);
    order: 2;
  }

  .referral-stat-label {
    margin-top: 0;
    order: 1;
  }
}

/* Отступ для заголовка партнёрской программы */
.profile-card-2 .profile-card-title {
  margin-bottom: 16px;
}

/* Блок "Тебя пригласил" */
.referrer-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.referrer-block .profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referrer-block .profile-name {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.referrer-block .profile-email {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  color: var(--text-color);
  font-weight: var(--fw-medium);
}

.referrer-divider {
  height: 1px;
  background: var(--filter-divider);
  margin: 16px 0;
}
