:root {
  --bg: #071321;
  --bg-2: #0d1b31;
  --card: rgba(9, 19, 35, 0.84);
  --card-solid: #0d1c31;
  --card-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f8ff;
  --text-soft: rgba(245, 248, 255, 0.8);
  --text-muted: rgba(245, 248, 255, 0.58);
  --blue: #4ab7ff;
  --blue-2: #6be5ff;
  --gold: #ffd35a;
  --pink: #ff77cf;
  --success: #4ade80;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(74, 183, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 119, 207, 0.13), transparent 20%),
    linear-gradient(180deg, #071321 0%, #0a1730 42%, #091624 100%);
}

a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.profile-page-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 14px auto;
  padding-bottom: 40px;
}

.profile-topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(6, 14, 28, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.profile-topbar-left,
.profile-topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.profile-brandmark img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.profile-topbar-pill,
.profile-topbar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-topbar-nav a:hover {
  color: #071321;
  background: #fff;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  min-height: 420px;
  background: linear-gradient(135deg, rgba(18,36,62,0.96), rgba(5,12,24,0.96));
  box-shadow: var(--shadow);
}

.profile-hero-backdrop,
.profile-hero-overlay {
  position: absolute;
  inset: 0;
}

.profile-hero-backdrop {
  background:
    linear-gradient(135deg, rgba(74, 183, 255, 0.18), rgba(107, 229, 255, 0.08) 30%, rgba(255, 119, 207, 0.08) 70%, rgba(255, 211, 90, 0.07)),
    url('/logo.png') center/180px no-repeat;
  opacity: 0.58;
}

.profile-hero-overlay {
  background:
    linear-gradient(180deg, rgba(3, 8, 17, 0.16), rgba(3, 8, 17, 0.48) 55%, rgba(3, 8, 17, 0.88) 100%),
    linear-gradient(90deg, rgba(3, 8, 17, 0.42), rgba(3, 8, 17, 0.06) 35%, rgba(3, 8, 17, 0.42));
}

.profile-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 420px;
  padding: 28px;
}

.profile-identity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.profile-avatar-ring {
  width: 126px;
  height: 126px;
  padding: 4px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(74,183,255,0.7), rgba(255,119,207,0.72));
  box-shadow: 0 20px 44px rgba(0,0,0,0.34);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  background: #10203a;
}

.profile-kicker-row,
.profile-social-bar,
.profile-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-chip,
.profile-inline-badge,
.profile-social-link,
.profile-brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-chip-soft { background: rgba(255, 211, 90, 0.12); color: #fff3c4; }
.profile-social-link { text-transform: none; letter-spacing: 0.01em; text-decoration: none; font-size: 13px; font-weight: 700; }
.profile-social-link:hover { background: #fff; color: #071321; }
.profile-brand-pill { justify-content: space-between; gap: 10px; font-size: 13px; text-transform: none; }
.profile-brand-pill strong { color: var(--text); font-size: 12px; }

.profile-display-name {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-wrap: balance;
}

.profile-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-2);
  letter-spacing: 0.02em;
}

.profile-tagline {
  margin: 8px 0 0;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

.profile-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-action-btn {
  min-width: 170px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.profile-action-btn:hover { background: #fff; color: #071321; }
.profile-action-btn-primary {
  background: linear-gradient(135deg, var(--gold), #fff0a8);
  color: #071321;
  border-color: transparent;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat-card,
.profile-panel {
  border: 1px solid var(--border);
  background: rgba(8, 18, 33, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.profile-stat-card {
  border-radius: 24px;
  padding: 18px;
}

.profile-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-stat-value {
  margin-top: 12px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.profile-stat-value-small { font-size: 18px; line-height: 1.25; }

.profile-user-exp-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(8, 18, 33, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.profile-user-exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.profile-user-exp-kicker,
.profile-user-exp-label {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.profile-user-exp-label {
  margin-top: 4px;
  color: var(--text);
  letter-spacing: 0.08em;
}
.profile-user-exp-level {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}
.ip-xp-bar.profile-user-exp-bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.28);
}
.ip-xp-bar-fill.profile-user-exp-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--gold));
  box-shadow: 0 0 18px rgba(107, 229, 255, 0.34);
  transition: width 0.35s ease;
}
.profile-user-exp-numbers {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 700px) {
  .profile-user-exp-panel { padding: 16px; }
}


.profile-layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: start;
}

.profile-left-column,
.profile-right-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-panel {
  border-radius: 28px;
  overflow: hidden;
}

.profile-panel-large { min-height: 520px; }

.profile-panel-head {
  padding: 22px 22px 0;
}

.profile-panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.profile-panel-kicker {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-panel h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.profile-panel-subcopy {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-panel-body {
  padding: 22px;
}

.profile-about-stack {
  display: grid;
  gap: 12px;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--border);
}

.profile-detail-row span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-detail-row strong {
  text-align: right;
  font-size: 14px;
}

.empty-state-box,
.profile-empty-box,
.profile-loading-box {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 140px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}

.profile-empty-box {
  margin: 0 22px 22px;
  min-height: 180px;
  padding: 22px;
}

.profile-loading-box {
  margin: 0 22px 22px;
  min-height: 160px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-card,
.media-card-video {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}

.media-card img,
.media-card-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-card-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 15px;
  font-weight: 900;
}

.closet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.closet-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.closet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
}

.closet-card-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.closet-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.closet-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.closet-card-brand {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.closet-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.closet-card-meta,
.closet-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.closet-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-error-banner {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 90, 90, 0.34);
  background: rgba(120, 16, 16, 0.3);
  color: #ffd8d8;
  font-weight: 700;
}

.loading-state .profile-display-name,
.loading-state .profile-username,
.loading-state .profile-tagline,
.loading-state .profile-stat-value {
  opacity: 0.82;
}

@media (max-width: 1180px) {
  .profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .profile-page-shell { width: min(100%, calc(100% - 18px)); }
  .profile-layout-grid,
  .profile-identity-row { grid-template-columns: 1fr; }
  .profile-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .profile-action-btn { min-width: 0; flex: 1 1 180px; }
  .profile-topbar { top: 6px; }
  .profile-panel-head-row { flex-direction: column; }
}

@media (max-width: 700px) {
  .profile-topbar { padding: 12px; border-radius: 20px; }
  .profile-hero-inner { padding: 18px; }
  .profile-avatar-ring { width: 96px; height: 96px; border-radius: 24px; }
  .profile-display-name { font-size: 34px; }
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid,
  .closet-grid { grid-template-columns: 1fr; }
  .profile-panel-head,
  .profile-panel-body,
  .profile-empty-box,
  .profile-loading-box,
  .closet-grid { padding-left: 16px; padding-right: 16px; }
}

.profile-inline-action {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}
.profile-bio-copy {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(12px);
}
.profile-modal-card {
  width: min(1320px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(10,22,39,0.98), rgba(8,18,32,0.98));
  box-shadow: 0 32px 100px rgba(0,0,0,0.48);
}
.profile-modal-head,
.profile-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.profile-modal-foot { border-bottom: 0; border-top: 1px solid var(--border); }
.profile-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}
.profile-modal-body { padding: 22px; }
.profile-editor-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.8fr); gap: 20px; }
.profile-editor-main, .profile-editor-side { display: grid; gap: 18px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-field-block { display: grid; gap: 8px; }
.profile-field-block-full { grid-column: 1 / -1; }
.profile-field-block span, .profile-editor-socials-title, .profile-editor-controls span {
  color: var(--text-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.profile-field-block input, .profile-field-block textarea {
  width: 100%; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); padding: 14px 15px; outline: none;
}
.profile-field-block textarea { resize: vertical; min-height: 150px; }
.profile-field-block input:focus, .profile-field-block textarea:focus { border-color: rgba(74,183,255,0.65); box-shadow: 0 0 0 1px rgba(74,183,255,0.35); }
.profile-editor-socials, .profile-upload-card { border-radius: 24px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); padding: 16px; }
.profile-social-edit-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-upload-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.profile-upload-card h3 { margin: 2px 0 0; font-size: 20px; }
.profile-upload-preview-wrap { display: flex; justify-content: center; }
.profile-upload-avatar-preview { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); }
.profile-upload-cover-preview { width: 100%; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 20px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); }
.profile-upload-avatar-preview canvas, .profile-upload-cover-preview canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.profile-upload-avatar-preview canvas.dragging, .profile-upload-cover-preview canvas.dragging { cursor: grabbing; }
.profile-editor-controls { margin-top: 14px; display: grid; gap: 10px; }
.profile-editor-controls label { display: grid; gap: 8px; }
.profile-editor-controls input[type="range"] { width: 100%; }
.profile-save-status { color: var(--text-muted); font-size: 13px; }
.profile-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1080px) { .profile-editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 740px) {
  .profile-form-grid, .profile-social-edit-grid { grid-template-columns: 1fr; }
  .profile-modal-head, .profile-modal-foot { align-items: flex-start; flex-direction: column; }
}


.profile-follow-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-follow-stat {
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
}
.profile-follow-stat strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.profile-follow-stat span {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.profile-follow-stat:hover {
  background: rgba(255,255,255,0.09);
}
.profile-follow-list {
  display: grid;
  gap: 12px;
}
.profile-follow-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.profile-follow-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.profile-follow-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.profile-follow-name {
  font-size: 16px;
  font-weight: 800;
}
.profile-follow-handle {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 700;
}
.profile-follow-bio {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.profile-follow-open {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}
.profile-modal-card-narrow {
  width: min(760px, 100%);
}
@media (max-width: 920px) {
  .profile-follow-summary { width: 100%; }
}


.profile-empty-cta {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.2);
  text-align: center;
  background: rgba(255,255,255,0.04);
}
.profile-empty-cta strong {
  display:block;
  font-size:16px;
  margin-bottom:6px;
}
.profile-empty-cta span {
  display:block;
  font-size:13px;
  color: rgba(255,255,255,0.66);
  margin-bottom: 12px;
}
.profile-topic-pill {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:38px;
  padding: 0 14px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration:none;
  font-weight:700;
}
.profile-topic-pill:hover {
  background:#fff;
  color:#071321;
}
.profile-topic-pill em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-topic-pill:hover em { color:#32445e; }


/* Market Shop panel on profile */

.profile-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.profile-market-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.profile-market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 229, 255, 0.46);
  background: rgba(255,255,255,0.075);
}

.profile-market-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.profile-market-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-market-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 19, 33, 0.72);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.profile-market-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.profile-market-card-brand {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-market-card-title {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.12;
}

.profile-market-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-market-card-bottom strong {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.profile-market-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

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

@media (max-width: 700px) {
  .profile-market-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
}


.profile-identity-editor {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-identity-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}
.profile-identity-input {
  min-height: 42px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-weight: 800;
}
.profile-identity-input::placeholder { color: var(--text-muted); }
.profile-identity-input:focus {
  border-color: rgba(107,229,255,0.58);
  box-shadow: 0 0 0 4px rgba(107,229,255,0.10);
}
.profile-identity-add-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #071321;
  font-weight: 900;
  cursor: pointer;
}
.profile-identity-add-btn:disabled,
.profile-identity-remove-btn:disabled { opacity: 0.55; cursor: wait; }
.profile-identity-helper {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding-left: 4px;
}
.profile-identity-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.profile-identity-empty {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 86px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}
.profile-topic-pill .profile-identity-remove-btn {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  font-weight: 900;
}
.profile-topic-pill .profile-identity-remove-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
@media (max-width: 700px) {
  .profile-identity-input-wrap { grid-template-columns: 1fr; }
  .profile-identity-add-btn { width: 100%; }
}

.profile-identity-show-more-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(107, 229, 255, 0.26);
  background: rgba(107, 229, 255, 0.08);
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.profile-identity-show-more-btn:hover {
  background: rgba(107, 229, 255, 0.16);
}
