.profiles {
  padding: 1.25rem 0 3.5rem 0;
}

.tops-section {
  padding: 0.1rem 0 0.45rem 0;
}

.tops-title-wrap {
  margin-bottom: 0.65rem;
}

.tops-title-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.64rem;
  border-radius: 0;
  background: linear-gradient(180deg, #f08a38, #e8731a);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  box-shadow: 0 10px 22px rgba(232, 115, 26, 0.28);
}

.tops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.top-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  min-height: 250px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  background: #dfe7f3;
  isolation: isolate;
}

.top-card-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.top-card-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(8, 12, 20, 0.88) 60%, rgba(6, 10, 17, 0.94) 100%);
  pointer-events: none;
}

.top-card-caption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.top-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 30px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(244, 145, 50, 0.95);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.top-card-caption h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.42rem, 2.4vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.top-card-vip:hover,
.top-card-month:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.2);
}

.profiles-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.profiles-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

/* List-style profile row (like the reference layout) */
.profile-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr 230px;
  gap: 0.85rem;
  align-items: start;
  min-height: 320px;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(110% 90% at 50% 50%, rgba(251, 146, 60, 0.14), rgba(251, 146, 60, 0) 68%),
    linear-gradient(180deg, rgba(251, 146, 60, 0.08), rgba(251, 146, 60, 0.02));
  transition: opacity 180ms ease;
  z-index: 0;
}

.profile-row > * {
  position: relative;
  z-index: 1;
}

.profile-row:not(.is-vip):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(251, 146, 60, 0.25) inset;
  border-color: rgba(251, 146, 60, 0.5);
}

.profile-row:not(.is-vip):hover::after {
  opacity: 1;
}

.vip-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 204, 128, 0.92);
  border: 1px solid rgba(255, 204, 128, 0.65);
  color: rgba(2, 6, 23, 0.92);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
}

.vip-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(255, 204, 128, 0.65);
  background: rgba(255, 204, 128, 0.92);
}

.profile-row.is-vip {
  border-color: rgba(255, 204, 128, 0.35);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.42);
}

.profile-row.is-vip:hover {
  border-color: rgba(255, 204, 128, 0.55);
  box-shadow: 0 34px 86px rgba(2, 6, 23, 0.55);
  transform: translateY(-2px);
}

.profile-row.is-vip .profile-row-title a {
  color: rgba(255, 255, 255, 0.96);
}

.profile-row.is-vip .profile-row-title a:hover {
  color: rgba(255, 204, 128, 0.96);
}

.profile-row.is-vip .profile-row-about {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 204, 128, 0.20);
  background: rgba(255, 255, 255, 0.06);
}

.profile-row.is-vip .profile-row-headline {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 204, 128, 0.35);
  background: rgba(255, 204, 128, 0.10);
}

.profile-row.is-vip .meta-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.70);
}

.profile-row.is-vip .meta-ico {
  color: rgba(255, 255, 255, 0.55);
}

.profile-row.is-vip .meta-item.meta-views {
  border-color: rgba(255, 204, 128, 0.34);
  background: rgba(255, 204, 128, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.profile-row.is-vip .meta-item.meta-views .meta-ico {
  color: rgba(255, 204, 128, 0.92);
}

.profile-row.is-vip .tag {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.profile-row.is-vip .tag[data-tone="accent"] {
  color: rgba(2, 6, 23, 0.92);
  background: rgba(255, 204, 128, 0.92);
  border-color: rgba(255, 204, 128, 0.65);
}

.profile-row.is-vip .profile-row-side {
  border-left-color: rgba(255, 255, 255, 0.10);
}

.profile-row.is-vip .side-phone,
.profile-row.is-vip .side-phone-link {
  color: rgba(255, 255, 255, 0.92);
}

.profile-row.is-vip .side-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.profile-row.is-vip .side-key {
  color: rgba(255, 255, 255, 0.55);
}

.profile-row.is-vip .side-val {
  color: rgba(255, 255, 255, 0.80);
}

.profile-row.is-vip .profile-row-actions .btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.profile-row.is-vip .profile-row-actions .btn-primary {
  color: rgba(2, 6, 23, 0.92);
  border-color: rgba(255, 204, 128, 0.65);
  background: rgba(255, 204, 128, 0.92);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.40);
}

.profile-row.is-vip .profile-row-actions .btn-primary:hover {
  background: rgba(255, 204, 128, 0.98);
}

.profile-row-media {
  position: relative;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border-2);
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  align-self: start;
  display: block;
}

.profile-row-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.profile-row-photo.placeholder {
  display: grid;
  place-items: center;
}

.profile-row-photo.placeholder span {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-2);
  opacity: 0.6;
}

.profile-row-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-row-main {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 0.05rem;
  min-width: 0;
}

.profile-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.profile-row-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.profile-row-title a {
  color: var(--text);
}

.profile-row-title a:hover {
  color: var(--accent-2);
}

.profile-row-headline {
  margin: 0;
  padding: 0.62rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.10);
  color: rgba(17, 24, 39, 0.94);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.profile-row-about {
  margin: 0;
  color: rgba(17, 24, 39, 0.82);
  line-height: 1.4;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.82);
  white-space: normal;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: rgba(17, 24, 39, 0.60);
  font-size: 0.88rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.meta-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}

.meta-ico svg {
  width: 18px;
  height: 18px;
}

.meta-item.meta-views {
  border-color: rgba(37, 99, 235, 0.30);
  background: rgba(37, 99, 235, 0.10);
  color: rgba(17, 24, 39, 0.90);
  font-weight: 850;
}

.meta-item.meta-views .meta-ico {
  color: rgba(37, 99, 235, 0.78);
}

.profile-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.profile-row-actions .btn {
  padding: 0.5rem 0.72rem;
}

.profile-row .tags {
  gap: 0.45rem;
}

.profile-row .tag {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: rgba(17, 24, 39, 0.78);
}

.profile-row-side {
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
}

.side-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.side-phone-link {
  color: var(--text);
  text-decoration: none;
}

.side-list {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.12rem;
}

.side-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: rgba(17, 24, 39, 0.02);
}

.side-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.38rem 0.52rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(37, 99, 235, 0.2);
}

.side-key {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  font-weight: 800;
}

.side-item-link .side-key {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(17, 24, 39, 0.62);
}

.side-net-ico {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #36a3f7, #1c79cd);
  color: #fff;
  box-shadow: 0 5px 12px rgba(28, 121, 205, 0.32);
}

.side-net-ico svg {
  width: 12px;
  height: 12px;
  display: block;
}

.side-net-ico-max {
  background: linear-gradient(180deg, #64748b, #334155);
  box-shadow: 0 5px 12px rgba(51, 65, 85, 0.32);
  font-size: 0.7rem;
  font-weight: 900;
}

.side-net-ico-imo {
  background: linear-gradient(180deg, #34d399, #059669);
  box-shadow: 0 5px 12px rgba(5, 150, 105, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
}

.side-val {
  color: var(--text-secondary);
  font-weight: 700;
  word-break: break-word;
}

.side-item-link .side-val {
  color: var(--text);
  font-weight: 780;
  font-size: 0.86rem;
  min-width: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-item-link a.side-val {
  text-decoration: none;
  transition: color 160ms ease;
}

.side-item-link:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(240, 248, 255, 0.9);
}

.side-item-link:hover a.side-val {
  color: var(--accent-2);
}

.side-item-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 133, 230, 0.56);
  background: linear-gradient(180deg, #35a8ff, #1d84de);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(29, 132, 222, 0.32);
  animation: tgBtnPulse 2.2s ease-in-out infinite;
}

.side-item-tg-btn .side-net-ico {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.side-item-tg-btn .side-net-ico svg {
  width: 11px;
  height: 11px;
}

.side-tg-label {
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.side-item-tg-btn.is-static {
  cursor: default;
}

.side-item-tg-btn:not(.is-static):hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(29, 132, 222, 0.4);
}

@keyframes tgBtnPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 7px 16px rgba(29, 132, 222, 0.32);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 20px rgba(29, 132, 222, 0.4);
  }
}

@media (max-width: 980px) {
  .tops-grid {
    grid-template-columns: 1fr;
  }

  .top-card,
  .top-card-image {
    min-height: 220px;
  }

  .top-card-caption h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .top-card-mark {
    min-width: 44px;
    height: 26px;
    font-size: 0.66rem;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }
  .profile-row-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }
  .profile-row-media {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    background: rgba(11, 18, 32, 0.95);
  }
  .profile-row-photo {
    object-fit: contain;
    transform: none;
  }
  .profile-row-about {
    display: block;
  }

  .side-item-link .side-val {
    max-width: 170px;
  }
}

.pager {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-top: 1rem;
}

.empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), rgba(124, 92, 252, 0.06));
  border: 2px dashed var(--accent-border);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.7;
}

.empty-state h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats row styles removed (block not used) */
