/* static/css/profile/profile-hero.css */
/* ============================================
   KELIBATMU V2 - PROFILE HERO
   Namespace: kv2-profile-
   Refined mobile typography & scale - modern creator profile feel
   ============================================ */

.kv2-profile-hero {
  position: relative;
  z-index: var(--kv2-profile-z-hero);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #0b0b10;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.kv2-profile-banner {
  position: relative;
  height: clamp(136px, 21vw, 250px);
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(224, 148, 113, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(150, 48, 62, 0.34), rgba(160, 255, 170, 0.1)),
    #101017;
}

.kv2-profile-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.92) contrast(1.08);
}

.kv2-profile-banner-depth,
.kv2-profile-banner-shadow {
  position: absolute;
  inset: 0;
}

.kv2-profile-banner-depth {
  background:
    radial-gradient(circle at 22% 24%, rgba(224, 148, 113, 0.18), transparent 26%),
    linear-gradient(110deg, rgba(4, 4, 6, 0.34) 0%, rgba(5, 5, 8, 0.12) 48%, rgba(5, 5, 8, 0.48) 100%);
}

.kv2-profile-banner-shadow {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 70% 72%, rgba(160, 255, 170, 0.08), transparent 22%);
}

.kv2-profile-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}

.kv2-profile-identity-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: -34px;
}

.kv2-profile-avatar-wrap {
  position: relative;
}

.kv2-profile-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.48);
  filter: blur(10px);
}

.kv2-profile-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(11, 11, 16, 0.96);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(150, 48, 62, 0.52), rgba(160, 255, 170, 0.14)),
    #16161c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
}

.kv2-profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.kv2-profile-avatar-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--kv2-font-page-title);
  font-weight: 700;
}

.kv2-profile-hero-copy {
  min-width: 0;
  padding: 0 0 2px;
}

.kv2-profile-handle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
}

.kv2-profile-username {
  color: var(--kv2-profile-ember);
  font-size: var(--kv2-font-meta);
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.8;
}

.kv2-profile-display-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  max-width: 760px;
  color: var(--kv2-profile-ink);
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  font-weight: var(--kv2-weight-page-title);
  line-height: var(--kv2-line-page-title);
  letter-spacing: var(--kv2-track-page-title);
}

.kv2-profile-verified {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(160, 255, 170, 0.45);
  border-radius: 50%;
  color: #061009;
  background: linear-gradient(135deg, rgba(160, 255, 170, 0.96), rgba(224, 148, 113, 0.82));
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 10px rgba(160, 255, 170, 0.18);
  transform: translateY(1px);
}

.kv2-profile-tagline {
  max-width: 680px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--kv2-font-small);
  line-height: var(--kv2-line-small);
  font-weight: 400;
}

.kv2-profile-echo {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kv2-profile-echo__role,
.kv2-profile-echo__rank,
.kv2-profile-echo__item {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.22);
  font-size: var(--kv2-font-meta);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.kv2-profile-echo__role {
  border-color: rgba(212, 175, 55, 0.42);
  color: #0b0b0d;
  background: linear-gradient(135deg, rgba(230, 191, 73, 0.94), rgba(224, 148, 113, 0.82));
}

.kv2-profile-echo__rank {
  border-color: rgba(224, 148, 113, 0.24);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(150, 48, 62, 0.42);
}

.kv2-profile-echo__info {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
}

.kv2-profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  align-items: center;
  margin-top: -1px;
}

.kv2-profile-meta-item {
  display: inline;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  font-size: var(--kv2-font-caption);
  font-weight: 650;
}

.kv2-profile-meta-separator {
  color: var(--kv2-profile-faint);
  font-size: var(--kv2-font-caption);
}

.kv2-profile-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.kv2-profile-my-sound {
  display: grid;
  gap: 5px;
  align-items: start;
  justify-items: start;
  width: min(100%, 430px);
  max-width: 100%;
  margin-top: 3px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kv2-profile-my-sound__label {
  color: var(--kv2-profile-ember);
  font-size: var(--kv2-font-meta);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.kv2-profile-my-sound__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--kv2-font-caption);
  font-weight: 720;
  line-height: var(--kv2-line-caption);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kv2-profile-my-sound__title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv2-profile-my-sound__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--kv2-profile-mint);
}

.kv2-profile-view-as {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(224, 148, 113, 0.2);
  border-radius: 16px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(150, 48, 62, 0.18);
  font-size: var(--kv2-font-caption);
  font-weight: 750;
}

.kv2-profile-view-as__exit {
  color: var(--kv2-profile-mint);
  text-decoration: none;
}

.kv2-profile-echo-modal[hidden] {
  display: none;
}

.kv2-profile-echo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.kv2-profile-echo-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  cursor: pointer;
}

.kv2-profile-echo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(224, 148, 113, 0.14), transparent 34%),
    #08080d;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
}

.kv2-profile-echo-modal__header,
.kv2-profile-echo-modal__progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.kv2-profile-echo-modal__header {
  align-items: start;
}

.kv2-profile-echo-modal__title {
  margin: 0;
  color: var(--kv2-profile-ink);
  font-size: var(--kv2-font-section-title);
}

.kv2-profile-echo-modal__close {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: var(--kv2-font-button);
  font-weight: 800;
  cursor: pointer;
}

.kv2-profile-echo-modal__intro,
.kv2-profile-echo-modal__note {
  color: var(--kv2-profile-muted);
  font-size: var(--kv2-font-small);
  line-height: var(--kv2-line-small);
}

.kv2-profile-echo-modal__shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid rgba(160, 255, 170, 0.28);
  border-radius: 999px;
  padding: 0 13px;
  color: #071009;
  background: linear-gradient(135deg, rgba(160, 255, 170, 0.96), rgba(224, 148, 113, 0.78));
  font-size: var(--kv2-font-button);
  font-weight: 850;
  text-decoration: none;
}

.kv2-profile-echo-modal__stats,
.kv2-profile-echo-modal__grid {
  display: grid;
  gap: 10px;
}

.kv2-profile-echo-modal__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.kv2-profile-echo-modal__stat,
.kv2-profile-echo-modal__section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.kv2-profile-echo-modal__stat {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.kv2-profile-echo-modal__stat span,
.kv2-profile-echo-modal__progress-copy span {
  color: var(--kv2-profile-faint);
  font-size: var(--kv2-font-meta);
  font-weight: 750;
  text-transform: uppercase;
}

.kv2-profile-echo-modal__stat strong,
.kv2-profile-echo-modal__progress-copy strong {
  color: var(--kv2-profile-ink);
  font-size: var(--kv2-font-card-title);
}

.kv2-profile-echo-modal__stat--role strong {
  color: rgba(230, 191, 73, 0.95);
}

.kv2-profile-echo-modal__progress {
  margin-top: 14px;
}

.kv2-profile-echo-modal__progress-track {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.kv2-profile-echo-modal__progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(230, 191, 73, 0.92), rgba(160, 255, 170, 0.68));
}

.kv2-profile-echo-modal__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  margin-top: 16px;
}

.kv2-profile-echo-modal__section {
  padding: 14px;
}

.kv2-profile-echo-modal__section h3 {
  margin: 0 0 10px;
  color: var(--kv2-profile-ink);
  font-size: var(--kv2-font-card-title);
}

.kv2-profile-echo-modal__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kv2-profile-echo-modal__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--kv2-font-caption);
}

.kv2-profile-echo-modal__list strong {
  color: var(--kv2-profile-mint);
}

.kv2-profile-follow {
  display: contents;
}

.kv2-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 40px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: var(--kv2-font-button);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--transition-fast, 0.2s) var(--ease-premium, ease),
    border-color var(--transition-fast, 0.2s) var(--ease-premium, ease),
    background var(--transition-fast, 0.2s) var(--ease-premium, ease);
  backdrop-filter: blur(8px);
}

.kv2-profile-actions > .kv2-profile-action:only-child {
  grid-column: 1 / -1;
}

.kv2-profile-action__label--mobile {
  display: none;
}

.kv2-profile-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.kv2-profile-action-primary {
  border-color: rgba(224, 148, 113, 0.4);
  background: linear-gradient(135deg, rgba(150, 48, 62, 0.88), rgba(224, 148, 113, 0.38));
  color: #fff;
}

.kv2-profile-action-primary:hover {
  border-color: rgba(224, 148, 113, 0.7);
  background: linear-gradient(135deg, rgba(150, 48, 62, 1), rgba(224, 148, 113, 0.48));
}

/* ============================================
   MOBILE OPTIMIZATIONS
   More compact, modern creator profile feel
   ============================================ */

@media (max-width: 768px) {
  .kv2-profile-hero {
    border-radius: 16px;
  }

  .kv2-profile-banner {
    height: 126px;
  }

  .kv2-profile-hero-content {
    gap: 9px;
    padding: 0 11px 12px;
  }

  .kv2-profile-identity-strip {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    justify-items: stretch;
    align-items: end;
    margin-top: -30px;
  }

  .kv2-profile-avatar-wrap {
    margin: 0;
  }

  .kv2-profile-avatar-wrap::before {
    inset: -6px;
  }

  .kv2-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .kv2-profile-avatar-initial {
    font-size: var(--kv2-font-section-title);
  }

  .kv2-profile-hero-copy {
    text-align: left;
    padding-bottom: 0;
  }

  .kv2-profile-username {
    font-size: var(--kv2-font-meta);
    opacity: 0.78;
  }

  .kv2-profile-display-name {
    justify-content: flex-start;
    font-size: clamp(1.18rem, 5vw, 1.48rem);
    line-height: var(--kv2-line-page-title);
    font-weight: var(--kv2-weight-page-title);
    letter-spacing: var(--kv2-track-page-title);
  }

  .kv2-profile-tagline {
    margin-top: 4px;
    font-size: var(--kv2-font-caption);
    line-height: var(--kv2-line-caption);
    color: rgba(255, 255, 255, 0.66);
  }

  .kv2-profile-meta-row {
    gap: 3px 6px;
    margin-top: -1px;
  }

  .kv2-profile-echo {
    justify-content: flex-start;
  }

  .kv2-profile-echo__item {
    max-width: 100%;
  }

  .kv2-profile-meta-item {
    padding: 0;
    text-align: left;
    border-radius: 0;
    font-size: var(--kv2-font-meta);
  }

  .kv2-profile-actions {
    justify-content: stretch;
    margin-top: 1px;
    padding-bottom: 0;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .kv2-profile-action {
    min-height: 34px;
    flex: 1 1 0;
    padding: 0 11px;
    font-size: var(--kv2-font-button);
    font-weight: 600;
  }

  .kv2-profile-action__label--desktop {
    display: none;
  }

  .kv2-profile-action__label--mobile {
    display: inline;
  }

  .kv2-profile-view-as {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .kv2-profile-echo-modal__stats,
  .kv2-profile-echo-modal__grid {
    grid-template-columns: 1fr;
  }

  .kv2-profile-echo-modal__header,
  .kv2-profile-echo-modal__progress-copy {
    align-items: start;
    flex-direction: column;
  }
}

/* ============================================
   SMALL MOBILE DEVICES
   ============================================ */

@media (max-width: 480px) {
  .kv2-profile-banner {
    height: 116px;
  }

  .kv2-profile-hero-content {
    padding: 0 10px 11px;
    gap: 8px;
  }
  
  .kv2-profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }
  
  .kv2-profile-avatar-initial {
    font-size: var(--kv2-font-section-title);
  }
  
  .kv2-profile-display-name {
    font-size: clamp(1.12rem, 5vw, 1.34rem);
    line-height: var(--kv2-line-page-title);
    font-weight: var(--kv2-weight-page-title);
}
  
  .kv2-profile-tagline {
    font-size: var(--kv2-font-caption);
    margin-top: 3px;
  }
  
  .kv2-profile-meta-item {
    padding: 0;
    font-size: var(--kv2-font-caption);
  }
  
  .kv2-profile-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: var(--kv2-font-button);
  }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .kv2-profile-hero-content {
    gap: 12px;
    padding: 16px;
  }
  
  .kv2-profile-avatar {
    width: 72px;
    height: 72px;
  }
  
  .kv2-profile-display-name {
    font-size: var(--kv2-font-page-title);
  }
  
  .kv2-profile-tagline {
    font-size: var(--kv2-font-caption);
    margin-top: 6px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .kv2-profile-action {
    transition: none;
  }
  
  .kv2-profile-action:hover {
    transform: none;
  }
}

/* Mobile profile redesign layer: premium charcoal + restrained moss accents. */
.kv2-profile-hero {
  border-color: var(--kv2-profile-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(6, 7, 8, 0.94);
}

.kv2-profile-banner {
  height: clamp(168px, 26vw, 280px);
}

.kv2-profile-banner-image {
  opacity: 0.72;
  filter: saturate(0.94) contrast(1.08) brightness(0.88);
}

.kv2-profile-banner-depth {
  background:
    radial-gradient(circle at 22% 24%, rgba(148, 209, 138, 0.12), transparent 26%),
    linear-gradient(110deg, rgba(4, 6, 5, 0.42) 0%, rgba(5, 7, 6, 0.14) 48%, rgba(3, 5, 4, 0.58) 100%);
}

.kv2-profile-banner-shadow {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(circle at 70% 72%, rgba(148, 209, 138, 0.08), transparent 22%);
}

.kv2-profile-hero-content {
  gap: 13px;
  padding: 0 20px 18px;
}

.kv2-profile-identity-strip {
  gap: 16px;
  margin-top: -54px;
}

.kv2-profile-avatar-wrap::before {
  inset: -6px;
  border-radius: 50%;
}

.kv2-profile-avatar {
  width: 116px;
  height: 116px;
  border-color: rgba(135, 177, 103, 0.86);
  border-radius: 50%;
}

.kv2-profile-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(5, 7, 6, 0.96);
  border-radius: 50%;
  color: var(--kv2-profile-ink);
  background: rgba(18, 20, 22, 0.94);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
  text-decoration: none;
}

.kv2-profile-avatar-edit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kv2-profile-display-name {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 650;
}

.kv2-profile-verified {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--kv2-profile-accent), color-mix(in srgb, var(--kv2-profile-accent) 76%, white 18%));
  font-size: 12px;
}

.kv2-profile-username {
  color: var(--kv2-profile-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.kv2-profile-echo {
  width: fit-content;
  max-width: 100%;
  margin-top: -2px;
}

.kv2-profile-echo__role,
.kv2-profile-echo__rank,
.kv2-profile-echo__item {
  min-height: 24px;
  color: var(--kv2-profile-muted);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
  font-weight: 560;
}

.kv2-profile-echo__rank {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--kv2-profile-muted);
  background: rgba(0, 0, 0, 0.24);
}

.kv2-profile-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2px;
}

.kv2-profile-meta-row:has(.kv2-profile-meta-item--points) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kv2-profile-meta-separator {
  display: none;
}

.kv2-profile-meta-item {
  position: relative;
  display: grid;
  gap: 3px;
  color: var(--kv2-profile-muted);
  font: inherit;
  text-align: center;
}

.kv2-profile-meta-item + .kv2-profile-meta-item::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: var(--kv2-profile-line);
  content: "";
}

.kv2-profile-meta-item strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.kv2-profile-meta-item span {
  font-size: 0.72rem;
  line-height: 1.2;
}

.kv2-profile-meta-item--points {
  cursor: pointer;
}

.kv2-profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kv2-profile-actions:has(.kv2-safety-menu) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px 54px;
}

.kv2-profile-follow {
  display: contents;
}

.kv2-profile-action {
  gap: 8px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  font-weight: 600;
}

.kv2-profile-action svg,
.kv2-safety-menu summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kv2-profile-action-primary {
  border-color: var(--kv2-profile-accent-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--kv2-profile-accent) 70%, white 10%), color-mix(in srgb, var(--kv2-profile-accent) 50%, #050705 25%));
  color: #071009;
}

.kv2-profile-action-primary:hover {
  border-color: color-mix(in srgb, var(--kv2-profile-accent) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--kv2-profile-accent) 78%, white 10%), color-mix(in srgb, var(--kv2-profile-accent) 56%, #050705 20%));
}

.kv2-profile-action-compact,
.kv2-safety-menu summary {
  display: inline-grid;
  place-items: center;
  width: 54px;
  min-width: 54px;
  padding: 0;
}

.kv2-safety-menu {
  position: relative;
  display: block;
}

.kv2-safety-menu summary {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
}

.kv2-safety-menu summary::-webkit-details-marker {
  display: none;
}

.kv2-safety-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 170px;
  border: 1px solid var(--kv2-profile-line);
  border-radius: 12px;
  padding: 8px;
  background: rgba(9, 10, 12, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.kv2-safety-menu__panel button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--kv2-profile-ink);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.kv2-safety-menu__panel button:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .kv2-profile-banner {
    height: 176px;
  }

  .kv2-profile-hero-content {
    gap: 12px;
    padding: 0 14px 14px;
  }

  .kv2-profile-identity-strip {
    gap: 14px;
    margin-top: -48px;
  }

  .kv2-profile-avatar {
    width: 102px;
    height: 102px;
    border-radius: 50%;
  }

  .kv2-profile-display-name {
    font-size: clamp(1.7rem, 7vw, 2rem);
    font-weight: 760;
  }

  .kv2-profile-meta-row {
    margin-top: 0;
  }

  .kv2-profile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .kv2-profile-actions:has(.kv2-safety-menu) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px 44px;
  }

  .kv2-profile-action-compact,
  .kv2-safety-menu summary {
    width: 44px;
    min-width: 44px;
  }

  .kv2-profile-action {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .kv2-profile-banner {
    height: 166px;
  }

  .kv2-profile-hero-content {
    gap: 11px;
    padding: 0 12px 13px;
  }

  .kv2-profile-avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
  }

  .kv2-profile-display-name {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .kv2-profile-action {
    min-height: 41px;
    padding: 0 8px;
    font-size: 0.88rem;
  }
}
