.btv-search-panel-v2 {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 9997;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 22px clamp(18px, 4vw, 58px) 34px;
  background: rgba(8, 11, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.btv-search-panel-v2:not(.is-open) {
  display: none;
}

.btv-search-section {
  margin-bottom: 28px;
}

.btv-search-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.btv-profile-search-grid,
.btv-search-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.btv-profile-search-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.btv-profile-search-card {
  position: relative;
  display: grid;
  min-height: 148px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #111827;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btv-profile-search-card:hover,
.btv-profile-search-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(45, 140, 255, 0.82);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  outline: none;
}

.btv-profile-search-banner {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  z-index: -2;
}

.btv-profile-search-card::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.12), rgba(4, 8, 15, 0.9));
}

.btv-profile-search-avatar-wrap {
  align-self: end;
  width: 72px;
  height: 72px;
  margin: 48px 0 0 16px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #2d8cff, #7dd3fc);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.btv-profile-search-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  background: #0b1120;
}

.btv-profile-search-card strong {
  align-self: end;
  padding: 8px 16px 14px;
  font-size: 1.05rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.btv-profile-search-card.is-compact {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.btv-profile-search-card.is-compact::after {
  display: none;
}

.btv-profile-search-card.is-compact .btv-profile-search-avatar-wrap {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 2px;
}

.btv-profile-search-card.is-compact strong {
  padding: 0;
  font-size: 1rem;
  text-shadow: none;
}

.btv-admin-dropdown-link {
  width: 100%;
  justify-content: flex-start;
  color: #fff !important;
  border: 0;
  background: linear-gradient(135deg, rgba(20, 121, 255, 0.22), rgba(125, 211, 252, 0.1)) !important;
  cursor: pointer;
}

.btv-admin-feedbacks-panel {
  width: 100%;
  color: #fff;
  padding: clamp(16px, 3vw, 28px);
}

.btv-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.btv-admin-section-head span {
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.btv-admin-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.btv-admin-refresh-feedbacks,
.btv-admin-delete-feedback,
.btv-admin-feedback-reply-form button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  background: #1479ff;
  cursor: pointer;
}

.btv-admin-delete-feedback {
  background: rgba(255, 80, 80, 0.9);
}

.btv-admin-feedbacks-list {
  display: grid;
  gap: 14px;
}

.btv-admin-feedback-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.btv-admin-feedback-card header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}

.btv-admin-feedback-card header img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.btv-admin-feedback-card header strong,
.btv-admin-feedback-card header span {
  display: block;
}

.btv-admin-feedback-card header span,
.btv-admin-muted {
  color: rgba(255, 255, 255, 0.66);
}

.btv-admin-feedback-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.btv-admin-feedback-replies {
  display: grid;
  gap: 8px;
}

.btv-admin-feedback-replies div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 121, 255, 0.12);
}

.btv-admin-feedback-reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.btv-admin-feedback-reply-form textarea {
  width: 100%;
  resize: vertical;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
}

@media (max-width: 680px) {
  .btv-admin-feedback-card header,
  .btv-admin-feedback-reply-form {
    grid-template-columns: 1fr;
  }

  .btv-admin-feedback-card header img {
    width: 56px;
    height: 56px;
  }
}

.btv-search-content-card {
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: #111827;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btv-search-content-card:hover,
.btv-search-content-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
  outline: none;
}

.btv-search-content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.btv-search-content-card strong {
  display: block;
  padding: 10px 12px 12px;
  font-size: 0.9rem;
}

.btv-search-loading,
.btv-search-empty {
  color: rgba(255, 255, 255, 0.72);
  padding: 22px 0;
}

.btv-profile-v2-ready {
  background: #05070d;
}

.btv-profile-hero-v2 {
  max-width: 1240px;
  margin: 86px auto 28px;
  padding: 0 clamp(16px, 4vw, 34px);
  color: #fff;
}

.btv-profile-cover {
  position: relative;
  min-height: clamp(210px, 28vw, 360px);
  overflow: hidden;
  border-radius: 18px;
  background: #101827 center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.btv-profile-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.04), rgba(5, 7, 13, 0.9));
}

.btv-profile-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: -58px clamp(14px, 3vw, 34px) 0;
  z-index: 2;
}

.btv-profile-avatar-action {
  position: relative;
  width: clamp(112px, 12vw, 148px);
  height: clamp(112px, 12vw, 148px);
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d8cff, #7dd3fc);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.btv-profile-avatar-action:disabled {
  cursor: default;
}

.btv-profile-avatar-v2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: #0b1120;
}

.btv-profile-avatar-action span,
.btv-profile-upload {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(12px);
  transition: opacity 0.18s ease;
}

.btv-profile-upload {
  z-index: 2;
  right: 16px;
  left: auto;
  bottom: 16px;
  transform: none;
  cursor: pointer;
}

.btv-profile-avatar-action:hover span,
.btv-profile-upload:hover,
.btv-profile-cover:hover .btv-profile-upload {
  opacity: 1;
}

.btv-profile-copy {
  min-width: 0;
  padding-bottom: 12px;
}

.btv-profile-copy strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.btv-profile-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.btv-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.btv-profile-meta span,
.btv-profile-config-link,
.btv-profile-follow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.btv-profile-config-link,
.btv-profile-follow {
  margin-bottom: 16px;
  background: #1479ff;
  border-color: #1479ff;
  cursor: pointer;
}

.btv-handle-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.btv-handle-hint[data-state="ok"] {
  color: #48e68b;
}

.btv-handle-hint[data-state="error"] {
  color: #ff6b6b;
}

body.btv-profile-v2-ready main,
body.btv-profile-v2-ready .profile-sections,
body.btv-profile-v2-ready .account-sections {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .btv-search-panel-v2 {
    top: 58px;
    padding: 16px;
  }

  .btv-profile-search-grid,
  .btv-search-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .btv-profile-search-card {
    min-height: 132px;
  }

  .btv-profile-search-avatar-wrap {
    width: 58px;
    height: 58px;
    margin-left: 12px;
  }

  .btv-profile-hero-v2 {
    margin-top: 68px;
    padding: 0 12px;
  }

  .btv-profile-cover {
    min-height: 210px;
    border-radius: 14px;
  }

  .btv-profile-main {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: -52px 12px 0;
    align-items: start;
  }

  .btv-profile-config-link,
  .btv-profile-follow {
    width: max-content;
    margin-bottom: 0;
  }
}
