/* EarnPaste public profile page — page background/theme from startpaste.css (.sp-page) */

.profile-main {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.profile-back-own-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.625rem 0.75rem 0;
}

@media (min-width: 640px) {
  .profile-back-own-wrap {
    padding: 0.75rem 1.5rem 0;
  }
}

.profile-back-own-wrap.hidden {
  display: none;
}

.profile-back-own {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #86efac;
  text-decoration: none;
  transition: color 0.15s ease;
}

.profile-back-own:hover {
  color: #bbf7d0;
}

.profile-back-own__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .profile-main {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

.profile-hero-sticky-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .profile-hero-sticky-wrap {
    margin-bottom: 2rem;
  }
}

.profile-pastes-section {
  position: relative;
  z-index: 2;
}

.profile-hero {
  --profile-avatar-size: 5.75rem;
  /* ~50% of avatar sits on the cover (X-style; red-line reference) */
  --profile-avatar-overlap: calc(var(--profile-avatar-size) * 0.5);
  --profile-hero-bg: #000;
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--profile-hero-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

@media (min-width: 640px) {
  .profile-hero {
    --profile-avatar-size: 6.5rem;
    border-radius: 1.5rem;
  }
}

#profileApp .profile-hero {
  width: 100%;
  min-height: 0;
}

.profile-hero__banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: inherit inherit 0 0;
  background: linear-gradient(145deg, rgba(22, 22, 30, 0.98), rgba(10, 10, 15, 0.98));
}

.profile-hero--has-banner .profile-hero__banner-stage {
  background: transparent;
}

.profile-hero--has-banner {
  background: var(--profile-hero-bg);
}

.profile-hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background-color: #0a0a0f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.profile-hero--has-banner .profile-hero__banner {
  display: block;
}

.profile-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(10, 10, 15, 0.12);
}

.profile-hero--has-banner .profile-hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.08) 0%,
    rgba(10, 10, 15, 0.22) 100%
  );
}

.profile-hero__banner-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(229, 231, 235, 0.95);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.profile-hero__banner-btn:hover:not(:disabled):not([aria-disabled="true"]):not(.profile-upload-trigger--busy) {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(13, 13, 20, 0.9);
}

.profile-hero__banner-btn:disabled,
.profile-hero__banner-btn[aria-disabled="true"],
.profile-hero__banner-btn.profile-upload-trigger--busy {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.profile-hero__banner-btn.hidden {
  display: none;
}

@media (max-width: 639px) {
  .profile-hero__banner-btn:not(.hidden) {
    top: 0.35rem;
    right: 0.375rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.625rem;
  }
}

.profile-hero__body {
  position: relative;
  z-index: 2;
  padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.375rem) 0.75rem 0.875rem;
  background: var(--profile-hero-bg);
  border-radius: 0 0 inherit inherit;
}

@media (min-width: 640px) {
  .profile-hero__body {
    padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.4375rem) 1rem 1rem;
  }
}

.profile-hero__inner {
  display: none;
}

.profile-hero__avatar-upload {
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  border: 2px solid #0a0a0f;
  background: rgba(34, 197, 94, 0.95);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-hero__avatar-upload:hover:not(:disabled):not([aria-disabled="true"]):not(.profile-upload-trigger--busy) {
  background: rgb(34, 197, 94);
  transform: scale(1.05);
}

.profile-hero__avatar-upload:disabled,
.profile-hero__avatar-upload[aria-disabled="true"],
.profile-hero__avatar-upload.profile-upload-trigger--busy {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.profile-hero__avatar-upload.hidden {
  display: none;
}

.profile-hero__avatar-wrap {
  position: absolute;
  top: calc(-1 * var(--profile-avatar-overlap));
  left: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
}

@media (min-width: 640px) {
  .profile-hero__avatar-wrap {
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.profile-hero__avatar-frame {
  position: relative;
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  flex-shrink: 0;
}

.profile-hero__avatar {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 4px solid var(--profile-hero-bg);
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0d0d14;
  box-shadow: none;
}

.profile-hero__details {
  min-width: 0;
}

.profile-hero__display-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(74, 222, 128, 0.95);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .profile-hero__display-name {
    font-size: 1.375rem;
  }
}

.profile-hero__titles,
.profile-hero__eyebrow-row,
.profile-hero__eyebrow {
  display: none;
}

.profile-hero__photo-info-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.profile-hero__avatar-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 15, 0.72);
  color: rgba(156, 163, 175, 0.95);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-hero__avatar-info:hover,
.profile-hero__avatar-info[aria-expanded="true"] {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(13, 13, 20, 0.98);
}

.profile-hero__avatar-info.hidden {
  display: none;
}

.profile-hero__avatar-info-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.96);
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(209, 213, 219, 0.95);
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.profile-hero__avatar-info-popover.hidden {
  display: none;
}

.profile-hero__handle,
.profile-hero__username {
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: none;
}

@media (min-width: 640px) {
  .profile-hero__handle,
  .profile-hero__username {
    font-size: 1rem;
  }
}

.profile-hero__name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.profile-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 100%;
}

.profile-hero__title-row .profile-hero__display-name {
  margin: 0;
  min-width: 0;
}

.profile-hero__stats-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.profile-hero__stat {
  font-size: 0.8125rem;
  color: rgba(212, 212, 216, 0.95);
}

.profile-hero__stat-num {
  color: #86efac;
  font-weight: 700;
}

.profile-hero__stat-link {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.profile-hero__stat-link:hover {
  color: #fff;
}

.profile-hero__stat-link:hover .profile-hero__stat-num {
  color: #bbf7d0;
}

.profile-hero__following-link .profile-hero__stat-num {
  color: #86efac;
}

.profile-hero__following-link:hover .profile-hero__stat-num {
  color: #bbf7d0;
}

.profile-hero__following-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(212, 212, 216, 0.95);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-hero__following-link:hover {
  color: #fff;
}

.profile-follow-btn {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #0a0a0f;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.profile-follow-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.profile-follow-btn--active,
.profile-follow-btn:disabled.profile-follow-btn--active {
  background: transparent;
  color: rgba(244, 244, 245, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.profile-follow-btn--active:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
}

.profile-follow-btn__hover {
  display: none;
}

.profile-follow-btn--active:hover:not(:disabled) .profile-follow-btn__default {
  display: none;
}

.profile-follow-btn--active:hover:not(:disabled) .profile-follow-btn__hover {
  display: inline;
  color: #f87171;
}

.profile-follow-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.profile-section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.profile-section-loading.hidden {
  display: none;
}

.profile-section-loading__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(74, 222, 128, 0.2);
  border-top-color: #86efac;
  border-radius: 9999px;
  animation: profile-pin-spin 0.7s linear infinite;
}

.profile-following-list__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.profile-following-list__loading.hidden {
  display: none;
}

.profile-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tabs__tab {
  flex: 1 1 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(161, 161, 170, 0.95);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-tabs__tab:hover {
  color: rgba(244, 244, 245, 0.95);
}

.profile-tabs__tab.is-active {
  color: rgba(244, 244, 245, 0.98);
  border-bottom-color: rgb(29, 155, 240);
}

.profile-tab-panel {
  padding-top: 1rem;
}

.profile-following-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-following-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.profile-following-modal.hidden {
  display: none;
}

body.profile-following-modal-open {
  overflow: hidden;
}

.profile-following-modal__panel {
  width: min(24rem, 100%);
  max-height: min(70vh, 32rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
}

.profile-following-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-following-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.profile-following-modal__close {
  border: 0;
  background: transparent;
  color: rgba(212, 212, 216, 0.95);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.profile-following-list {
  overflow-y: auto;
  padding: 0.5rem;
}

.profile-following-list__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.profile-following-list__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profile-following-list__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-following-list__name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.98);
}

.profile-following-list__empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 0.95);
}

.profile-follow-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 12060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.profile-follow-signin-modal.hidden {
  display: none;
}

body.profile-follow-signin-modal-open {
  overflow: hidden;
}

.profile-follow-signin-modal__panel {
  width: min(22rem, 100%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
}

.profile-follow-signin-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.profile-follow-signin-modal__text {
  margin: 0 0 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(156, 163, 175, 0.95);
}

.profile-follow-signin-modal__google {
  width: 100%;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #0a0a0f;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-follow-signin-modal__google:hover {
  background: rgba(255, 255, 255, 0.92);
}

.profile-follow-signin-modal__cancel {
  margin-top: 0.625rem;
  border: 0;
  background: transparent;
  color: rgba(156, 163, 175, 0.95);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.profile-follow-signin-modal__cancel:hover {
  color: rgba(244, 244, 245, 0.95);
}

.profile-hero__share-panel {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
  margin-top: 0.625rem;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 640px) {
  .profile-hero__share-panel {
    gap: 0.4375rem;
    margin-top: 0.75rem;
  }
}

.profile-hero__tagline {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgb(113, 118, 123);
  text-align: left;
  max-width: 100%;
  text-shadow: none;
}

@media (min-width: 640px) {
  .profile-hero__tagline {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

.profile-hero__share {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
}

.profile-hero__url {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(229, 231, 235, 1);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__copy {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.25rem;
  max-width: none;
  border-radius: 0.625rem;
  background: rgba(34, 197, 94, 0.9);
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.profile-hero__copy:hover {
  background: rgb(34, 197, 94);
}

.profile-hero__copy--copied {
  background: rgb(22, 163, 74) !important;
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.45), 0 0 18px rgba(16, 185, 129, 0.35);
}

@media (max-width: 639px) {
  .profile-hero {
    --profile-avatar-size: 5.25rem;
    border-radius: 1rem;
  }

  .profile-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .profile-hero__body {
    padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.3125rem) 0.625rem 0.75rem;
  }

  .profile-hero__avatar-wrap {
    left: 0.625rem;
    max-width: calc(100% - 1.25rem);
  }

  #profileApp .profile-hero__display-name {
    font-size: 1.125rem;
  }

  #profileApp .profile-hero__handle,
  #profileApp .profile-hero__username {
    font-size: 0.875rem;
  }

  #profileApp .profile-hero__share-panel {
    gap: 0.3125rem;
    margin-top: 0.5rem;
    min-width: 0;
  }

  #profileApp .profile-hero__tagline {
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  #profileApp .profile-hero__url {
    font-size: 0.625rem;
    padding: 0.3125rem 0.4375rem;
  }

  #profileApp .profile-hero__copy {
    min-width: 3.75rem;
    padding: 0.3125rem 0.5rem;
    font-size: 0.6875rem;
  }

  #profileApp .profile-display-name-editor {
    max-height: min(38vh, 6.5rem);
    overflow-y: auto;
  }
}

@media (max-width: 399px) {
  .profile-hero {
    --profile-avatar-size: 4.75rem;
  }

  .profile-hero__body {
    padding-inline: 0.5rem;
  }

  .profile-hero__avatar-wrap {
    left: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #profileApp .profile-hero__display-name {
    font-size: 1.0625rem;
  }

  #profileApp .profile-hero__handle,
  #profileApp .profile-hero__username {
    font-size: 0.8125rem;
  }

  #profileApp .profile-hero__tagline {
    font-size: 0.625rem;
  }

  #profileApp .profile-hero__copy {
    min-width: 3.5rem;
    font-size: 0.625rem;
    padding: 0.3125rem 0.4375rem;
  }
}

/* Banner crop modal */
.profile-file-input-offscreen {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.profile-upload-trigger--busy {
  pointer-events: none;
}

.profile-banner-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(8px);
}

.profile-banner-crop-modal.hidden {
  display: none;
}

.profile-banner-crop-modal__panel {
  width: min(100%, 40rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.96);
  padding: 1rem 1rem 1.125rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Standalone profile.html hero uses max-w-5xl (64rem) — match crop width to banner card */
.profile-banner-crop-modal:not(.profile-banner-crop-modal--embed) .profile-banner-crop-modal__panel {
  width: min(100%, 64rem);
  max-height: min(92vh, 52rem);
}

.profile-banner-crop-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.profile-banner-crop-modal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(156, 163, 175, 0.95);
}

.profile-banner-crop-stage {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  touch-action: none;
  cursor: grab;
  background: #0a0a0f;
}

.profile-banner-crop-stage.is-dragging {
  cursor: grabbing;
}

.profile-banner-crop-stage canvas {
  display: block;
  width: 100%;
  height: auto;
}

.profile-banner-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  opacity: 0.55;
}

.profile-banner-crop-zoom {
  width: 100%;
  margin: 0.75rem 0 0;
  accent-color: #22c55e;
}

.profile-banner-crop-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.profile-banner-crop-cancel,
.profile-banner-crop-upload {
  flex: 1 1 0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.profile-banner-crop-cancel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(209, 213, 219, 0.95);
}

.profile-banner-crop-upload {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.profile-banner-crop-upload:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Action loading overlay */
.profile-action-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(6px);
}

.profile-action-loading.hidden {
  display: none;
}

.profile-action-loading__panel {
  width: min(100%, 18rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.92);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.profile-action-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 2px solid rgba(74, 222, 128, 0.2);
  border-top-color: #86efac;
  border-radius: 9999px;
  animation: profile-pin-spin 0.7s linear infinite;
}

.profile-action-loading__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(229, 231, 235, 0.95);
}

body.profile-action-loading-open {
  overflow: hidden;
}

@keyframes profile-pin-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-display-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.72);
  color: rgba(209, 213, 219, 0.95);
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-display-name-edit:hover {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.18);
}

.profile-display-name-edit.hidden,
.profile-display-name-editor.hidden {
  display: none;
}

.profile-display-name-editor {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 20rem;
}

.profile-display-name-editor__hint {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(156, 163, 175, 0.95);
  text-align: left;
}

.profile-display-name-editor__hint-warn {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f87171;
  text-align: left;
}

.profile-display-name-editor__row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.profile-display-name-editor__prefix {
  font-size: 0.875rem;
  color: rgba(156, 163, 175, 0.95);
  flex-shrink: 0;
}

.profile-display-name-editor__input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 20, 0.72);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
}

.profile-display-name-editor__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.profile-display-name-editor__input--invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.profile-display-name-editor__input--invalid:focus {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.profile-display-name-editor__validation {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #f87171;
  text-align: left;
}

.profile-display-name-editor__validation--error {
  color: #f87171;
}

.profile-display-name-editor__validation.hidden {
  display: none;
}

.profile-display-name-editor__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.profile-display-name-editor__save,
.profile-display-name-editor__cancel {
  border-radius: 0.75rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-display-name-editor__save {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(156, 163, 175, 0.95);
}

.profile-display-name-editor__save:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.profile-display-name-editor__save:hover:not(:disabled) {
  background: rgb(34, 197, 94);
}

.profile-display-name-editor__save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-display-name-editor__save--saving:disabled {
  cursor: wait;
}

.profile-display-name-editor__cancel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(209, 213, 219, 0.95);
}

.profile-display-name-editor__cancel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.profile-post-composer {
  margin: 0.625rem 0 0.875rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
}

.profile-post-composer__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.9);
}

.profile-post-composer__input {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 20, 0.85);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #fff;
}

.profile-post-composer__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.profile-post-composer__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-post-composer__counter {
  font-size: 0.6875rem;
  color: rgba(156, 163, 175, 0.95);
}

.profile-post-composer__error {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.6875rem;
  color: #f87171;
}

.profile-post-composer__submit {
  margin-left: auto;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-post-composer__submit:hover:not(:disabled) {
  background: rgb(34, 197, 94);
}

.profile-post-composer__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.profile-posts-section {
  margin-bottom: 1rem;
}

.profile-post-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.profile-feed-grid--timeline {
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-post-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
  padding: 0.75rem 0.875rem;
}

.profile-post-card--pinned {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2), 0 8px 24px rgba(34, 197, 94, 0.14);
}

.profile-post-card__top {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
}

.profile-content-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.profile-content-meta__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 27, 0.8);
}

.profile-content-meta__username {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.95);
}

.profile-post-card .profile-content-meta,
.profile-paste-card .profile-content-meta {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.625rem;
  align-items: center;
}

.profile-post-card .profile-content-meta__avatar,
.profile-paste-card .profile-content-meta__avatar {
  grid-column: 1;
  grid-row: 1;
}

.profile-post-card .profile-content-meta__username,
.profile-paste-card .profile-content-meta__username {
  grid-column: 2;
  min-width: 0;
}

.profile-post-card .profile-content-meta ~ .profile-post-card__top,
.profile-post-card .profile-content-meta ~ .profile-post-card__text,
.profile-post-card .profile-content-meta ~ .profile-post-card__time,
.profile-post-card .profile-content-meta ~ .profile-reactions,
.profile-paste-card .profile-content-meta ~ .profile-paste-card__link,
.profile-paste-card .profile-content-meta ~ .profile-reactions {
  margin-left: calc(2.25rem + 0.625rem);
}

.profile-content-meta--link {
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.profile-content-meta--link:hover .profile-content-meta__username {
  color: #86efac;
}

.profile-post-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(229, 231, 235, 0.95);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-post-card__text .profile-post__link {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-post-card__time {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(156, 163, 175, 0.9);
}

.profile-paste-card .profile-content-meta {
  margin-bottom: 0.625rem;
}

.profile-paste-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.profile-paste-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.profile-paste-card__title-row--pinned {
  padding-right: 2.25rem;
}

.profile-paste-card__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #86efac;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-paste-card__link:hover .profile-paste-card__title {
  color: #bbf7d0;
}

.profile-paste-card__views {
  flex-shrink: 0;
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(156, 163, 175, 0.95);
  white-space: nowrap;
}

.profile-paste-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
}

.profile-paste-card__date {
  margin: 0;
  font-size: 0.6875rem;
  color: rgba(107, 114, 128, 0.95);
}

.profile-paste-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(74, 222, 128);
  white-space: nowrap;
}

.profile-paste-card__view-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.profile-paste-card .profile-reactions {
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-post-empty {
  padding: 1.25rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.45);
}

.profile-post-empty p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 0.95);
}

.profile-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3125rem;
  margin-top: 0.625rem;
}

.profile-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.72);
  padding: 0.25rem 0.4375rem 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: rgba(229, 231, 235, 0.95);
  line-height: 1.15;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-reaction-pill__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.15;
  max-width: 5.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.profile-reaction-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: rgba(212, 212, 216, 0.95);
}

.profile-reaction-pill:hover {
  border-color: rgba(161, 161, 170, 0.35);
  background: rgba(24, 24, 27, 0.88);
}

.profile-reaction-pill:active {
  transform: scale(0.97);
}

.profile-reaction-pill.is-active {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(34, 197, 94, 0.16);
}

.profile-reaction-pill.is-active .profile-reaction-pill__count {
  background: rgba(74, 222, 128, 0.24);
  border-color: rgba(74, 222, 128, 0.34);
  color: #dcfce7;
}

.profile-reaction-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  margin: 0;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(113, 113, 122, 0.35);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(113, 113, 122, 0.95);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-reaction-add__icon {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  pointer-events: none;
}

.profile-reaction-add:hover {
  color: rgba(161, 161, 170, 1);
  border-color: rgba(161, 161, 170, 0.45);
  background: rgba(24, 24, 27, 0.75);
}

.profile-reaction-add:active {
  transform: scale(0.94);
}

.profile-reaction-picker {
  position: fixed;
  z-index: 12002;
  width: min(16.5rem, calc(100vw - 1rem));
  max-height: min(14rem, calc(100vh - 1rem));
  overflow-y: auto;
  padding: 0.625rem 0.75rem 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.profile-reaction-picker__close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(212, 212, 216, 0.9);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.profile-reaction-picker__close:hover {
  background: rgba(63, 63, 70, 0.35);
  color: rgba(244, 244, 245, 0.98);
}

.profile-reaction-picker__close:active {
  transform: scale(0.94);
}

.profile-reaction-picker__title {
  margin: 0 1.5rem 0.125rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.98);
}

.profile-reaction-picker__hint {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(161, 161, 170, 0.95);
}

.profile-reaction-picker__input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 13, 20, 0.9);
  padding: 0.5rem 0.625rem;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: #fff;
}

.profile-reaction-picker__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.profile-reaction-inline-toast {
  position: fixed;
  z-index: 12020;
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.4375rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(8, 10, 12, 0.95);
  color: rgba(220, 252, 231, 0.98);
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(74, 222, 128, 0.15);
  pointer-events: none;
}

@media (min-width: 640px) {
  .profile-reactions {
    gap: 0.4375rem;
    margin-top: 0.6875rem;
  }

  .profile-reaction-pill {
    gap: 0.375rem;
    min-height: 1.875rem;
    padding: 0.3125rem 0.5rem 0.3125rem 0.5625rem;
    font-size: 0.875rem;
  }

  .profile-reaction-pill__emoji {
    min-height: 1.25rem;
    font-size: 1rem;
    line-height: 1.2;
    max-width: 6rem;
  }

  .profile-reaction-pill__count {
    min-width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }

  .profile-reaction-add {
    width: 1.75rem;
    height: 1.75rem;
  }

  .profile-reaction-add__icon {
    width: 0.9375rem;
    height: 0.9375rem;
  }

  .profile-reaction-picker {
    width: 17.5rem;
    padding: 0.75rem 0.875rem 0.875rem;
  }

  .profile-reaction-picker__title {
    font-size: 0.875rem;
  }

  .profile-reaction-picker__hint {
    font-size: 0.75rem;
  }
}
