.profile-view,
.home-profile-panel {
  display: flex;
  flex-direction: column;
  color: var(--c-text, #fff);
}

.profile-shell {
  padding: 0 16px 0;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(8px, env(safe-area-inset-top)) 0 8px;
}

.profile-top-spacer {
  flex: 1;
}

.profile-settings-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--c-text, #fff);
  font-size: 20px;
  box-shadow: none;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 18px;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-hero .profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background-color: var(--c-bg-surface, #1e1b2e);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: none;
}

.profile-hero .profile-avatar::before,
.has-profile-avatar::before,
.profile-avatar-picker-preview::before {
  display: none;
  content: none;
}

.profile-hero .profile-avatar span,
.profile-hero .profile-avatar i {
  display: none;
}

.profile-hero-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.profile-hero-copy h2 {
  margin: 0;
  font: 700 24px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.03em;
  color: var(--c-text, #fff);
}

.profile-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b6cff, #6b4fe0);
  color: #fff;
  font: 700 11px var(--font-ui, 'Pretendard', sans-serif);
  box-shadow: 0 4px 14px rgba(107, 79, 224, 0.28);
}

.profile-trust-badge.is-traveler {
  background: linear-gradient(135deg, #5a5f8a, #3d4268);
  box-shadow: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.profile-stats > div {
  text-align: center;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-stats strong {
  display: block;
  margin-bottom: 4px;
  font: 700 22px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
  letter-spacing: -0.02em;
}

.profile-stats span {
  display: block;
  font: 600 10px var(--font-ui, 'Pretendard', sans-serif);
  line-height: 1.35;
  color: var(--c-text-muted, #6f6884);
}

.profile-stats button,
.profile-stat-btn {
  width: 100%;
  padding: 12px 6px;
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  background: var(--c-bg-surface, #1e1b2e);
  color: inherit;
  cursor: pointer;
}

.profile-level-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-cert-grades {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-cert-grade-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-cert-grade-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-cert-grade-head > div {
  flex: 1;
  min-width: 0;
}

.profile-cert-grade-head h3 {
  margin: 0 0 4px;
  font: 700 15px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
}

.profile-cert-grade-head small {
  font: 500 12px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}

.profile-cert-grade-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(123, 87, 255, 0.14);
  font-size: 18px;
}

.profile-cert-grade-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-secondary, #a9a3bc);
  font: 700 11px var(--font-ui, 'Pretendard', sans-serif);
  white-space: nowrap;
}

.profile-cert-grade-badge.is-verified {
  background: linear-gradient(135deg, #7b57ff, #9b7bff);
  color: #fff;
}

.profile-cert-grade-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-cert-grade-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b57ff, #9b7bff);
  width: 0;
  transition: width 0.25s ease;
}

.onboarding-field-hint {
  margin: -4px 0 12px;
  font: 500 12px var(--font-ui, 'Pretendard', sans-serif);
  line-height: 1.45;
  color: var(--c-text-muted, #6f6884);
  white-space: pre-line;
}

.profile-deferred-field {
  display: none !important;
}

.profile-custom-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.profile-custom-photo-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108,67,255,.95), rgba(178,55,255,.9));
  color: #fff;
  font: 900 13px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -.01em;
  box-shadow: 0 12px 30px rgba(119,73,255,.24);
  cursor: pointer;
}

.profile-custom-photo-preview {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px rgba(0,0,0,.24);
}

.profile-custom-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-upload-option {
  position: relative;
  display: grid !important;
  place-items: center;
  gap: 3px;
  color: #fff;
  background: linear-gradient(135deg, rgba(108,67,255,.95), rgba(178,55,255,.9)) !important;
  box-shadow: 0 12px 28px rgba(119,73,255,.26);
}

.profile-avatar-upload-plus {
  font: 900 30px/1 var(--font-ui, 'Pretendard', sans-serif);
  transform: translateY(-1px);
}

.profile-avatar-upload-option small {
  font: 900 10px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -.04em;
}

.profile-avatar-upload-option.has-custom-photo .profile-avatar-upload-plus,
.profile-avatar-upload-option.has-custom-photo small {
  opacity: 0;
}

.profile-avatar-upload-option .profile-custom-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

.profile-avatar-upload-option .profile-custom-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-level-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-level-head h3 {
  margin: 0 0 10px;
  font: 700 16px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
}

.profile-level-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.profile-level-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b57ff, #9b7bff);
  transition: width 0.25s ease;
}

.profile-level-head small {
  font: 500 12px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}

.profile-level-mood {
  flex-shrink: 0;
  text-align: center;
  max-width: 88px;
}

.profile-level-mood span {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.profile-level-mood b {
  display: block;
  font: 600 10px var(--font-ui, 'Pretendard', sans-serif);
  line-height: 1.35;
  color: var(--c-text-secondary, #a099b0);
}

.profile-section {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-credit-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  color: var(--c-text, #fff);
  text-align: left;
}

.profile-credit-main,
.profile-credit-right {
  display: inline-flex;
  align-items: center;
}

.profile-stat-button:active {
  opacity: .82;
}

.profile-activity-layer {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(123, 87, 255, .24), transparent 30%),
    linear-gradient(180deg, #100d20 0%, #090817 54%, #070711 100%);
  color: var(--c-text, #fff);
}

.profile-activity-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 14px 8px;
}

.profile-activity-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.profile-activity-head h2 {
  margin: 0;
  text-align: center;
  font: 900 18px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -.04em;
}

.profile-activity-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.profile-activity-scroll::-webkit-scrollbar {
  display: none;
}

.profile-activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 0 4px;
}

.profile-activity-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-activity-pagination button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  font: 800 14px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-activity-pagination button.is-active {
  background: linear-gradient(145deg, #6d2dd6, #49209e);
  color: #fff;
}

.profile-activity-pagination button:disabled {
  opacity: .25;
  cursor: default;
}

.profile-activity-pagination svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-credit-main {
  gap: 10px;
}

.profile-credit-main b {
  font: 800 14px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-credit-right {
  gap: 8px;
}

.profile-credit-right strong {
  font: 900 18px var(--font-ui, 'Pretendard', sans-serif);
  color: #fff;
}

.profile-credit-right em {
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  color: var(--c-text-secondary, #a099b0);
}

.profile-section > h3,
.profile-section-head h3 {
  margin: 0 0 12px;
  font: 700 14px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-section-head h3 {
  margin: 0;
}

.profile-area-grade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-area-grade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-area-grade-item.is-verified-local {
  border-color: rgba(123, 87, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(123, 87, 255, 0.12);
}

.profile-area-grade-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-area-grade-flag {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.profile-area-grade-copy {
  min-width: 0;
}

.profile-area-grade-copy b {
  display: block;
  margin-bottom: 3px;
  font: 700 14px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
  line-height: 1.3;
}

.profile-area-grade-copy small {
  font: 500 12px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}

.profile-area-grade-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(123, 87, 255, 0.16);
  color: #c4b5fd;
  font: 700 11px var(--font-ui, 'Pretendard', sans-serif);
  white-space: nowrap;
}

.profile-area-grade-item.is-verified-local .profile-area-grade-badge {
  background: linear-gradient(135deg, #7b57ff, #9b7bff);
  color: #fff;
}

.profile-area-grade-empty {
  margin: 0;
  padding: 8px 2px 4px;
  font: 500 13px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}

.profile-gps-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-gps-country-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--c-bg-surface, #1e1b2e);
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-gps-country-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-gps-country-flag {
  flex-shrink: 0;
  line-height: 0;
}

.profile-gps-country-copy {
  min-width: 0;
  flex: 1;
}

.profile-gps-country-copy b {
  display: block;
  margin-bottom: 8px;
  font: 700 14px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text, #fff);
  line-height: 1.3;
}

.profile-gps-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-gps-name-row b {
  margin-bottom: 0;
}

.profile-gps-level-info {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c4b5fd;
  cursor: pointer;
  padding: 0;
}

.profile-gps-level-info svg {
  width: 16px;
  height: 16px;
}

.profile-gps-country-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-gps-count {
  padding: 5px 10px;
  border-radius: 999px;
  font: 600 11px var(--font-ui, 'Pretendard', sans-serif);
  white-space: nowrap;
}

.profile-gps-count-local {
  background: rgba(123, 87, 255, 0.16);
  color: #c4b5fd;
}

.profile-gps-count-traveler {
  background: rgba(62, 207, 142, 0.14);
  color: #7eeab8;
}

.profile-gps-level-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 70);
  display: grid;
  place-items: center;
  padding: 20px;
}

.profile-gps-level-layer[hidden] {
  display: none;
}

.profile-gps-level-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 0, 16, 0.72);
  backdrop-filter: blur(12px);
}

.profile-gps-level-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(151, 119, 255, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 87, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #191329 0%, #0c0818 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.profile-gps-level-card .close-button {
  position: absolute;
  top: 32px;
  right: 16px;
}

.profile-gps-level-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7b57ff, #b932ff);
  color: #fff;
  font: 900 20px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-level-icon svg {
  width: 22px;
  height: 22px;
}

.profile-gps-level-card h3 {
  margin: 0 44px 8px 0;
  font: 900 22px/1.2 var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.03em;
}

.profile-gps-level-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font: 600 13px/1.6 var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-level-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-gps-level-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-gps-level-card li b {
  font: 900 13px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-level-card li span {
  color: rgba(255, 255, 255, 0.72);
  font: 700 12px var(--font-ui, 'Pretendard', sans-serif);
  text-align: right;
}

.profile-gps-level-manual-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  font: 600 12px/1.5 var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-empty {
  margin: 0;
  padding: 8px 2px 4px;
  font: 500 13px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}

.profile-badges-more {
  border: 0;
  background: transparent;
  color: var(--c-text-muted, #6f6884);
  font: 700 13px var(--font-ui, 'Pretendard', sans-serif);
  cursor: pointer;
}

.profile-gps-detail-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--c-text-secondary, #a099b0);
  font: 800 12px var(--font-ui, 'Pretendard', sans-serif);
  cursor: pointer;
}

.profile-gps-detail-button em {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

.profile-gps-detail {
  display: grid;
  gap: 12px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.profile-gps-nationality-card,
.profile-gps-detail-card {
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  background: var(--c-bg-surface, #1e1b2e);
}

.profile-gps-nationality-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(123, 87, 255, 0.24), rgba(62, 207, 142, 0.12));
  border-color: rgba(123, 87, 255, 0.35);
}

.profile-gps-detail-card {
  padding: 14px;
}

.profile-gps-detail-panel .profile-gps-detail-accordion {
  overflow: hidden;
}

.profile-gps-detail-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-gps-detail-panel .profile-gps-detail-accordion-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.profile-gps-detail-panel .profile-gps-detail-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-gps-detail-panel .profile-gps-detail-chevron {
  flex: 0 0 auto;
  color: rgba(246, 243, 255, .6);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.profile-gps-detail-panel .profile-gps-detail-accordion.collapsed .profile-gps-detail-chevron {
  transform: rotate(-90deg);
}

.profile-gps-detail-panel .profile-gps-detail-accordion.collapsed .profile-gps-detail-accordion-body {
  display: none;
}

.profile-gps-detail-flag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-gps-nationality-card b,
.profile-gps-detail-card-head b {
  display: block;
  margin-bottom: 4px;
  color: var(--c-text, #fff);
  font: 900 15px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-nationality-card small,
.profile-gps-detail-card-head small {
  color: var(--c-text-secondary, #a099b0);
  font: 700 12px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-detail-log {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
}

.profile-gps-detail-log li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-gps-detail-log span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-text, #fff);
  font: 700 13px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-detail-log em {
  flex-shrink: 0;
  font-style: normal;
  color: var(--c-text-muted, #6f6884);
  font: 700 11px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-gps-detail-panel .profile-gps-detail-more {
  width: 100%;
  margin: 10px 0 0;
  border: 0;
  border-radius: 14px;
  background: rgba(123, 87, 255, .16);
  color: #cdbdff;
  font: 900 12px var(--font-ui, 'Pretendard', sans-serif);
  padding: 10px 12px;
  cursor: pointer;
}

.profile-gps-detail-empty {
  margin: 0;
  padding: 18px 4px;
  color: var(--c-text-muted, #6f6884);
  font: 700 13px var(--font-ui, 'Pretendard', sans-serif);
  text-align: center;
}

.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-badges-row::-webkit-scrollbar {
  display: none;
}

.profile-badge-chip {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--c-border, rgba(255, 255, 255, 0.1));
  background: var(--c-bg-raised, #28243a);
  font-size: 22px;
}

.profile-badge-chip.is-empty {
  font-size: 11px;
  color: var(--c-text-muted, #6f6884);
}

.profile-collection-home {
  display: grid;
  gap: 10px;
}

.profile-collection-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  color: var(--c-text, #fff);
  text-align: left;
}

.profile-title-card {
  background:
    radial-gradient(circle at 18% 10%, rgba(215, 255, 47, .18), transparent 35%),
    linear-gradient(135deg, rgba(123, 87, 255, .18), rgba(30, 27, 46, 1));
}

.profile-representative-title-field {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.profile-representative-title-field > span {
  color: var(--c-text, #fff);
  font: 900 12px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-settings-title-card {
  margin: 0;
  width: 100%;
}

.profile-settings-title-card .profile-collection-card-copy small {
  display: none;
}

.profile-youtube-link-field {
  margin-bottom: 8px;
}

.profile-instagram-link-field {
  margin-bottom: 8px;
}

.profile-creator-settings {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 14px;
  border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(215, 255, 47, .12), transparent 32%),
    var(--c-bg-surface, #1e1b2e);
}

.profile-creator-settings[hidden] {
  display: none !important;
}

.profile-creator-settings-head {
  display: grid;
  gap: 4px;
}

.profile-creator-settings-head span {
  color: var(--c-text, #fff);
  font: 950 13px var(--font-ui, 'Pretendard', sans-serif);
}

.profile-creator-settings-head small {
  color: var(--c-text-muted, #6f6884);
  font: 750 11px/1.35 var(--font-ui, 'Pretendard', sans-serif);
}

.creator-banner-upload-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.creator-banner-upload-field > span {
  color: var(--c-text, #fff);
  font: 900 12px var(--font-ui, 'Pretendard', sans-serif);
}

.creator-banner-size-guide {
  display: block;
  margin-top: -2px;
  color: var(--c-text-muted, #8f88a3);
  font: 750 11px/1.4 var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: .01em;
}

.creator-banner-upload {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 96px;
  padding: 0;
  border: 1px dashed rgba(255, 255, 255, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(123, 87, 255, .24), transparent 36%),
    rgba(255, 255, 255, .055);
  color: var(--c-text, #fff);
  overflow: hidden;
  cursor: pointer;
}

.creator-banner-upload:hover {
  border-color: rgba(186, 111, 255, .72);
  background:
    radial-gradient(circle at 20% 10%, rgba(123, 87, 255, .34), transparent 36%),
    rgba(255, 255, 255, .08);
}

.creator-banner-preview,
.creator-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
}

.creator-banner-preview img {
  object-fit: cover;
}

.creator-banner-preview[hidden] {
  display: none !important;
}

.creator-banner-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(251, 248, 255, .78);
  font: 950 13px var(--font-ui, 'Pretendard', sans-serif);
}

.creator-banner-upload.has-image .creator-banner-empty {
  display: none;
}

.creator-banner-remove {
  position: absolute;
  top: 30px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #ff315b;
  color: #fff;
  font: 950 15px/1 var(--font-ui, 'Pretendard', sans-serif);
  box-shadow: 0 8px 18px rgba(255, 49, 91, .34);
  cursor: pointer;
}

.creator-banner-remove[hidden] {
  display: none !important;
}

.profile-collection-card-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  font-size: 21px;
}

.profile-collection-card-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-collection-card-copy small {
  color: var(--c-text-muted, #6f6884);
  font: 800 10px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-collection-card-copy b {
  color: var(--c-text, #fff);
  font: 900 16px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.02em;
}

.profile-collection-card em {
  flex: 0 0 auto;
  color: var(--c-text-secondary, #a099b0);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.profile-mini-collection {
  display: flex;
  gap: 6px;
  min-height: 26px;
}

.profile-mini-collection .collection-cell {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 16px;
}

.profile-mini-collection .collection-cell small,
.profile-mini-collection .collection-cell em {
  display: none;
}

.profile-mini-collection .collection-cell-empty {
  width: auto;
  min-width: 0;
  padding: 0 10px;
  color: var(--c-text-muted, #6f6884);
  font-size: 11px;
}

.profile-mini-collection .collection-cell-empty small {
  display: block;
}

.collection-grid .collection-cell {
  position: relative;
  border: 0;
  color: #201b31;
  text-align: center;
}

.collection-grid button.collection-cell {
  cursor: pointer;
}

.collection-grid .collection-cell.is-selected {
  outline: 3px solid #7b57ff;
  box-shadow: 0 0 0 5px rgba(123, 87, 255, .18);
}

.collection-grid .collection-cell span {
  font-size: 28px;
  line-height: 1;
}

.collection-grid .collection-cell em {
  display: block;
  max-width: 100%;
  color: #8f877c;
  font: 800 8px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -.02em;
}

.profile-collection-panel.currency-panel {
  z-index: var(--z-modal, 70);
  display: grid;
  place-items: center;
  padding: 22px;
}

.profile-collection-panel.currency-panel[hidden] {
  display: none !important;
}

.profile-collection-panel .currency-panel-backdrop {
  background: rgba(5, 4, 12, .68);
  backdrop-filter: blur(10px);
}

.profile-collection-panel .currency-panel-sheet {
  width: min(392px, 100%);
  max-height: min(78dvh, 640px);
  border-radius: 28px;
  background: #332d48;
  color: #f6f3ff;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .42);
}

.profile-collection-panel .currency-panel-head h3 {
  color: #fff;
}

.profile-collection-panel .currency-panel-head .eyebrow {
  color: rgba(246, 243, 255, .5);
}

.profile-collection-panel .close-button {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* Titles panel: vertical list for picking the equipped title */
#titlesPanel .collection-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 4px 16px 20px;
}

#titlesPanel .collection-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}

#titlesPanel button.collection-cell:hover {
  background: rgba(255, 255, 255, .09);
}

#titlesPanel .collection-cell span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  font-size: 19px;
}

#titlesPanel .collection-cell small {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #f6f3ff;
  font: 700 14px/1.3 var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#titlesPanel .collection-cell em {
  flex: 0 0 auto;
  max-width: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(246, 243, 255, .62);
  font: 700 10px/1 var(--font-ui, 'Pretendard', sans-serif);
  font-style: normal;
  letter-spacing: .02em;
}

#titlesPanel .collection-cell::after {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

#titlesPanel .collection-cell.is-selected {
  outline: none;
  border-color: #8b6cff;
  background: rgba(123, 87, 255, .16);
  box-shadow: none;
}

#titlesPanel .collection-cell.is-selected::after {
  content: '✓';
  display: grid;
  place-items: center;
  border-color: #8b6cff;
  background: #7b57ff;
  color: #fff;
  font: 800 12px/1 var(--font-ui, 'Pretendard', sans-serif);
}

#titlesPanel .collection-cell-empty {
  justify-content: center;
}

#titlesPanel .collection-cell-empty small {
  flex: 0 0 auto;
  color: rgba(246, 243, 255, .55);
}

#titlesPanel .collection-cell-empty::after {
  display: none;
}

.home-profile-panel .logout-button,
.profile-view .logout-button {
  width: 100%;
  height: auto;
  margin: 16px 0 calc(12px + env(safe-area-inset-bottom));
  padding: 10px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--c-text-muted, #6f6884);
  font: 600 14px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: 0.01em;
}

.home-profile-panel .logout-button:active,
.profile-view .logout-button:active {
  opacity: 0.72;
  color: var(--c-text-secondary, #a099b0);
}

/* GPS detail popup — centered layer, not bottom sheet */
.profile-gps-detail-panel.currency-panel {
  z-index: var(--z-modal, 70);
  display: grid;
  place-items: center;
  padding: 22px;
}

.profile-gps-detail-panel.currency-panel[hidden] {
  display: none !important;
}

.profile-gps-detail-panel .currency-panel-backdrop {
  background: rgba(5, 4, 12, .68);
  backdrop-filter: blur(10px);
}

.profile-gps-detail-panel .currency-panel-sheet {
  width: min(392px, 100%);
  max-height: min(78dvh, 640px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(30, 27, 46, .98), rgba(47, 43, 66, .98));
  color: #fff;
  box-shadow: 0 28px 76px rgba(0, 0, 0, .58), 0 0 34px rgba(123, 87, 255, .22);
  animation: gpsDetailModalIn .22s ease;
}

.profile-gps-detail-panel .currency-panel-sheet::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  transform: translateX(-50%);
}

.profile-gps-detail-panel .currency-panel-head {
  padding: 28px 18px 12px;
}

.profile-gps-detail-panel .currency-panel-head h3 {
  color: #fff;
  font: 950 21px/1.1 var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.04em;
}

.profile-gps-detail-panel .currency-panel-head .eyebrow {
  color: #a855f7;
}

.profile-gps-detail-panel .close-button {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(18, 15, 31, .38);
  color: #fff;
  font-size: 24px;
}

.profile-gps-detail-panel .profile-gps-detail {
  padding: 0 18px 20px;
  overflow-y: auto;
  scrollbar-width: none;
}

.profile-gps-detail-panel .profile-gps-detail::-webkit-scrollbar {
  display: none;
}

@keyframes gpsDetailModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}
