.profile-modal-card.profile-v2 {
  width: min(94vw, 560px) !important;
  max-width: 560px !important;
  padding: 24px !important;
}
.profile-v2-cover {
  position: relative;
  height: 92px;
  margin: -24px -24px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.32), transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(251, 113, 133, 0.26), transparent 46%),
    linear-gradient(135deg, #16100b, #0d1720);
}
.profile-v2-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.profile-v2-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: -44px;
  margin-bottom: 18px;
}
.profile-v2-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  padding: 5px;
  border-radius: 28px;
  background: rgba(10, 8, 5, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.profile-v2 .profile-avatar {
  width: 76px !important;
  height: 76px !important;
  margin: 0 !important;
  border-radius: 23px !important;
  font-size: 28px !important;
}
.profile-v2-identity {
  min-width: 0;
  padding-bottom: 5px;
}
.profile-v2-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-v2-name {
  color: #fff7ed;
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.profile-v2-badge {
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}
.profile-v2-signature {
  margin-top: 6px;
  color: #d6c7b8;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.profile-v2-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.profile-v2-action {
  min-height: 54px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: #d6c7b8;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.profile-v2-action:hover {
  color: #fff7ed;
  border-color: rgba(245, 158, 11, 0.24);
  transform: translateY(-2px);
}
.profile-v2-action .icon {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.profile-v2-section-title {
  margin: 16px 0 8px;
  color: #8a7e72;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-v2-local-card {
  padding: 13px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.035);
}
.profile-v2-local-line {
  color: #d6c7b8;
  font-size: 12px;
  line-height: 1.65;
}
.profile-v2-local-line strong {
  color: #fff7ed;
}

.profile-center-hub {
  margin-top: 14px;
}

.profile-center-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 14px;
  background: rgba(10, 8, 5, 0.46);
}

.profile-center-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: #8a7e72;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.profile-center-tabs button.is-active {
  color: #1a0d02;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.profile-center-panel {
  display: none;
  padding: 14px;
  margin-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-center-panel.is-active {
  display: block;
}

.profile-center-panel > p {
  margin: 12px 0 0;
  color: #8a7e72;
  font-size: 11px;
  line-height: 1.65;
}

.profile-center-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.profile-center-metrics div {
  padding: 12px 8px;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.035);
  text-align: center;
}

.profile-center-metrics strong,
.profile-center-metrics span {
  display: block;
}

.profile-center-metrics strong {
  color: #fff7ed;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.profile-center-metrics span {
  margin-top: 3px;
  color: #8a7e72;
  font-size: 9px;
}

.profile-center-list {
  display: grid;
  gap: 7px;
}

.profile-center-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.025);
}

.profile-center-list a:hover {
  border-color: rgba(245, 158, 11, 0.28);
}

.profile-center-list a > span {
  font-size: 17px;
}

.profile-center-list a > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-center-list a > b {
  color: #f59e0b;
  font-size: 10px;
}

.profile-center-empty {
  padding: 24px 14px;
  color: #8a7e72;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  font-size: 11px;
  text-align: center;
}

.profile-center-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-center-actions button,
.profile-center-signout {
  min-height: 42px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.06);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.profile-center-actions button:hover,
.profile-center-signout:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.11);
}

.profile-center-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.profile-center-facts div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-center-facts dt {
  color: #8a7e72;
  font-size: 9px;
}

.profile-center-facts dd {
  margin: 4px 0 0;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.profile-center-signout {
  width: 100%;
  margin-top: 12px;
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.2);
  background: rgba(251, 113, 133, 0.055);
}

.profile-center-signout:hover {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1);
}

@media (max-width: 560px) {
  .profile-center-metrics,
  .profile-center-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bantan-avatar-applied {
  position: relative;
  overflow: visible !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.bantan-avatar-applied[data-gradient="sunset"] { background-image: linear-gradient(135deg, #fbbf24, #fb7185); }
.bantan-avatar-applied[data-gradient="aurora"] { background-image: linear-gradient(135deg, #38bdf8, #34d399 48%, #fbbf24); }
.bantan-avatar-applied[data-gradient="cosmos"] { background-image: linear-gradient(135deg, #0ea5e9, #1e293b 50%, #fb7185); }
.bantan-avatar-applied[data-gradient="ember"] { background-image: linear-gradient(135deg, #ef4444, #f59e0b); }
.bantan-avatar-applied[data-gradient="mono"] { background-image: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.bantan-avatar-applied[data-avatar-border="gold"] { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.85), 0 0 22px rgba(245, 158, 11, 0.22); }
.bantan-avatar-applied[data-avatar-border="coral"] { box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.85), 0 0 22px rgba(251, 113, 133, 0.22); }
.bantan-avatar-applied[data-avatar-border="cyan"] { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.85), 0 0 22px rgba(56, 189, 248, 0.22); }
.bantan-avatar-applied[data-avatar-border="none"] { box-shadow: none; }
.bantan-avatar-applied[data-pendant]:not([data-pendant=""])::after {
  content: attr(data-pendant);
  position: absolute;
  right: -6px;
  bottom: -7px;
  min-width: 23px;
  height: 23px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #0a0805;
  border-radius: 999px;
  color: #0a0805;
  background: #fbbf24;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.avatar-studio-overlay {
  z-index: 10040 !important;
}
.avatar-studio-card {
  width: min(96vw, 820px) !important;
  max-width: 820px !important;
  max-height: min(92vh, 820px) !important;
  padding: 22px !important;
  overflow-y: auto !important;
}
.avatar-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-studio-title {
  color: #fff7ed;
  font-size: 19px;
  font-weight: 900;
}
.avatar-studio-subtitle {
  margin-top: 3px;
  color: #8a7e72;
  font-size: 11px;
}
.avatar-studio-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.avatar-studio-preview-card {
  position: sticky;
  top: 0;
  padding: 22px 18px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}
.avatar-studio-avatar-shell {
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  padding: 6px;
  border-radius: 40px;
  background: rgba(8, 7, 5, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar-studio-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 34px;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}
.avatar-studio-name {
  color: #fff7ed;
  font-size: 17px;
  font-weight: 900;
}
.avatar-studio-signature {
  min-height: 19px;
  margin-top: 5px;
  color: #d6c7b8;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.avatar-studio-hint {
  margin-top: 14px;
  color: #8a7e72;
  font-size: 10px;
  line-height: 1.6;
}
.avatar-studio-controls {
  min-width: 0;
}
.avatar-control-section {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.avatar-control-section:first-child {
  padding-top: 0;
}
.avatar-control-section:last-child {
  border-bottom: 0;
}
.avatar-control-label {
  margin-bottom: 8px;
  color: #d6c7b8;
  font-size: 11px;
  font-weight: 800;
}
.avatar-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.avatar-source-btn {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.avatar-source-btn.primary {
  color: #0a0805;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  border: 0;
}
.avatar-source-btn input {
  display: none;
}
.avatar-range-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: #8a7e72;
  font-size: 10px;
}
.avatar-range-row input[type="range"] {
  width: 100%;
  accent-color: #f59e0b;
}
.avatar-swatch-list,
.avatar-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.avatar-swatch {
  width: 38px;
  height: 38px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.avatar-swatch:hover,
.avatar-swatch.active {
  transform: translateY(-2px);
  border-color: #fff7ed;
}
.avatar-option {
  min-width: 50px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #d6c7b8;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.avatar-option.active {
  color: #fff7ed;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}
.avatar-text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.avatar-text-input:focus {
  border-color: rgba(245, 158, 11, 0.45);
}
.avatar-studio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.avatar-studio-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.avatar-studio-actions .cancel {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar-studio-actions .save {
  color: #0a0805;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}
@media (max-width: 720px) {
  .profile-v2-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .avatar-studio-grid {
    grid-template-columns: 1fr;
  }
  .avatar-studio-preview-card {
    position: static;
  }
}
@media (max-width: 460px) {
  .profile-v2-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-v2-avatar-wrap {
    margin: 0 auto;
  }
  .profile-v2-name-row {
    justify-content: center;
  }
  .avatar-studio-card {
    padding: 18px !important;
  }
  .avatar-source-actions,
  .avatar-studio-actions {
    grid-template-columns: 1fr;
  }
}
