/* ============================================================
   FORGE — forge_app_profile.css
   Profile panel — two-column layout like settings
   ============================================================ */

/* ── Overall layout ── */
.profile-panel-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  contain: layout style;
}

/* ── Left nav (fixed width) ── */
.profile-panel-nav {
  width: 220px;
  min-width: 220px;
  background: var(--bg-well);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  overflow-y: auto;
  flex-shrink: 0;
  height: 100vh;
  box-sizing: border-box;
}

/* Nav header hidden — avatar shown in hero area only */
.profile-nav-header { display: none; }
.profile-nav-avatar { display: none; }
.profile-nav-name   { display: none; }
.profile-nav-handle { display: none; }

/* Section labels */
.profile-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 8px 4px;
}

/* Nav items */
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-bottom: 2px;
}
.profile-nav-item:hover  { background: var(--bg-hover); color: var(--text-primary); }
.profile-nav-item.active { background: var(--bg-active); color: var(--text-primary); }

.profile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Pending friend badge */
.profile-notif-badge {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: auto;
}

/* ── Right content area ── */
.profile-panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg-main);
  height: 100vh;
  contain: layout style;
}

/* Close button — top right */


/* ── Pages ── */
.profile-page        { display: none; height: 0; }
.profile-page.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Padding wrapper for non-banner pages */
.profile-inner-pad { padding: 24px 32px; max-width: 560px; overflow-y: auto; flex: 1; }
#profile-page-games .profile-inner-pad { max-width: 100%; width: 100%; }

/* ── Profile page — banner + hero ── */
.profile-banner {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #7b68ee88 0%, #f5c40033 100%);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.profile-hero {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 32px 20px;
  border-bottom: 1px solid var(--border);
  margin-top: -50px;
  margin-bottom: 24px;
  position: relative;
}

.profile-hero-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(30,32,36,0.6);
  border: 3px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  /* Frosted glass effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.25), 0 4px 24px rgba(0,0,0,0.5);
}
.profile-hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.profile-hero-info  { flex: 1; padding-bottom: 4px; }

/* Name with grey pill background */
.profile-hero-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-block;
  background: rgba(30,32,36,0.82);
  backdrop-filter: blur(6px);
  padding: 2px 12px 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.profile-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
  background: rgba(30,32,36,0.72);
  backdrop-filter: blur(4px);
  padding: 1px 8px;
  border-radius: 4px;
}

.profile-hero-sub[data-status="online"]  { color: var(--green); }
.profile-hero-sub[data-status="idle"]    { color: #faa61a; }
.profile-hero-sub[data-status="dnd"],
.profile-hero-sub[data-status="offline"] { color: var(--red); }

.profile-hero-tag:empty { display: none; }
.profile-hero-tag { margin-top: 6px; }

/* Profile body sections */
.profile-body {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 680px;
}

.profile-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.profile-section-content { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Server cards ── */
.profile-server-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.profile-server-card:hover { border-color: var(--yellow); }

.profile-server-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-server-icon img { width: 100%; height: 100%; object-fit: cover; }

.profile-server-name    { font-size: 14px; font-weight: 600; }
.profile-server-members { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Friend rows ── */
.profile-friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: background var(--transition-fast);
}
.profile-friend-row:hover { background: var(--bg-hover); }

.profile-friend-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.profile-friend-name   { font-size: 14px; font-weight: 500; }
.profile-friend-status { font-size: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════
   PROFILE HOME — Games + Feed two-col
══════════════════════════════════════ */

.profile-two-col {
  display: grid;
  align-items: start; /* each box is only as tall as its own content */
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 32px 32px;
}

.profile-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.profile-col-arrow {
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.profile-col-arrow:hover { color: var(--yellow); }

.profile-games-col { padding: 12px 16px; }

/* Game row inside profile */
.profile-game-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.profile-game-row:last-child { border-bottom: none; }
.profile-game-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.profile-game-icon img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
.profile-game-name { font-weight: 500; flex: 1; }
.profile-game-fav-star { color: var(--yellow); font-size: 14px; }
.profile-game-row.favorite { background: rgba(var(--accent-rgb),0.04); margin: 0 -16px; padding: 8px 16px; }

/* Feed compose row */
.profile-feed-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.profile-feed-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #1a1b1e;
  flex-shrink: 0;
}

.profile-feed-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.profile-feed-input::placeholder { color: var(--text-muted); }

.profile-feed-list { padding: 12px 16px; min-height: 60px; contain: layout style; }

/* ══════════════════════════════════════
   SETTINGS — Profile page editor
══════════════════════════════════════ */

.profile-banner-editor {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7b68ee88, #f5c40033);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px dashed var(--border-strong);
  transition: border-color var(--transition-fast);
}
.profile-banner-editor:hover { border-color: var(--yellow); }
.profile-banner-editor:hover .profile-banner-overlay { opacity: 1; }

.profile-banner-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

/* ══════════════════════════════════════
   PROFILE HERO — status row
══════════════════════════════════════ */
.profile-hero-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.profile-hero-status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}
.profile-hero-status-dot.online  { background: #4caf7d; }
.profile-hero-status-dot.idle    { background: #f5c400; }
.profile-hero-status-dot.dnd     { background: #e05252; }
.profile-hero-status-dot.offline { background: #747f8d; }

.profile-hero-status-text {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-block;
  background: rgba(30,32,36,0.72);
  backdrop-filter: blur(4px);
  padding: 1px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ══════════════════════════════════════
   FRIENDS PANEL
══════════════════════════════════════ */
.friends-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.friends-tabs {
  display: flex;
  gap: 0;
}

.friends-panel-tab {
  position: relative;
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
}
.friends-panel-tab:hover  { color: var(--text-secondary); }
.friends-panel-tab.active { color: var(--text-primary); border-bottom-color: var(--yellow); }

.friends-tab-badge {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}

.friends-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  flex-shrink: 0;
}

.friends-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  width: 220px;
  transition: border-color var(--transition-base);
}
.friends-search-wrap:focus-within { border-color: var(--border-strong); }
.friends-search-wrap svg   { color: var(--text-muted); flex-shrink: 0; }
.friends-search-wrap input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--text-primary);
  padding: 7px 0; width: 100%;
  font-family: var(--font-body);
}
.friends-search-wrap input::placeholder { color: var(--text-muted); }

.friends-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Table header row */
.friends-table-header {
  display: grid;
  grid-template-columns: 1fr 120px 120px 100px;
  padding: 6px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.friends-table-header.requests-mode {
  grid-template-columns: 1fr 160px;
}
.friends-table-header span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  user-select: none;
}
.friends-table-header span:hover { color: var(--text-secondary); }

/* Scrollable list */
.friends-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  min-height: 0;
  contain: layout style;
}

/* Friend row */
.friend-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px 100px;
  align-items: center;
  padding: 10px 24px;
  transition: background var(--transition-fast);
  contain: layout style;
}
.friend-row.requests-mode {
  grid-template-columns: 1fr 160px;
}
.friend-row:hover { background: var(--bg-hover); }
.friend-row:hover .friend-row-actions { opacity: 1; }

.friend-row-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.friend-row-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.friend-row-avatar img { width: 100%; height: 100%; object-fit: cover; }

.friend-row-name   { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.friend-row-handle { font-size: 12px; color: var(--text-muted); }

.friend-row-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.friend-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.friend-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
  font-size: 15px;
}
.friend-action-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Add friend form */
.friends-add-form {
  padding: 32px;
  max-width: 480px;
}
.friends-add-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.friends-add-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.friends-add-row   { display: flex; gap: 10px; }

/* ── Yellow Close button at bottom of nav ── */
.profile-close-yellow-btn {
  margin: 8px 0 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: #1a1b1e;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: filter var(--transition-fast);
}
.profile-close-yellow-btn:hover { filter: brightness(1.1); }

/* ── Feed posts ── */
.feed-post {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.feed-post:last-child { border-bottom: none; }

.feed-post-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.feed-post-time {
  font-size: 11px;
  color: var(--text-muted);
}

.feed-post-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.feed-post:hover .feed-post-delete { opacity: 1; }
.feed-post-delete:hover { color: var(--red); }

/* Feed compose row with Post button */
.profile-feed-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

/* ══════════════════════════════════════
   GAMES
   ══════════════════════════════════════ */
.settings-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

#fav-games-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  width: 100%;
}
.fav-game-slot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.fav-game-slot:hover { border-color: var(--yellow); }
.fav-game-slot.empty {
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--text-muted);
  font-size: 16px;
}
.fav-game-slot .fav-game-name {
  font-size: 8px;
  color: var(--text-primary);
  text-align: center;
  padding: 1px 2px;
  background: rgba(0,0,0,0.7);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}
.fav-game-slot .fav-game-remove {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  color: var(--red);
  font-size: 9px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fav-game-slot:hover .fav-game-remove { display: flex; }

#all-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
  width: 100%;
}
.forge-game-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  padding: 6px 8px !important;
  min-height: auto !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 0;
  overflow: visible !important;
}
.forge-game-card:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.forge-game-card.added { border-color: var(--yellow); background: rgba(var(--accent-rgb),0.05); }
.forge-game-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 4px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1;
}
.forge-game-info { flex: 1; min-width: 0; }
.forge-game-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forge-game-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.forge-game-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.forge-game-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.forge-game-btn.starred { color: var(--yellow); }
.forge-game-btn.added-game { color: var(--green); }

/* Profile home favorite games */
.profile-game-card {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-size: 28px;
}
.profile-game-card .profile-game-icon {
  font-size: 28px;
  line-height: 1;
}
.profile-game-card.favorite { border-color: var(--yellow); }
.profile-game-fav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  color: var(--yellow);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   PROFILE SHOWCASES (Forge V3.0 beta)
══════════════════════════════════════ */
#profile-page-profile { overflow-y: auto; }
.showcases-on .profile-two-col { display: none; }

.showcases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  padding: 0 32px 32px;
  container-type: inline-size;
}
/* Two showcases in a row sit side by side, until the profile is too narrow for them */
.showcase-row { display: grid; gap: 16px; align-items: start; min-width: 0; }
.showcase-row.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@container (max-width: 640px) {
  .showcase-row.pair { grid-template-columns: minmax(0, 1fr); }
}
.showcase-body { padding: 14px 16px; }
.showcase-muted { color: var(--text-muted); font-size: 13px; }
.showcase-empty {
  padding: 28px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.showcase-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.showcase-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.showcase-server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
}
button.showcase-server { cursor: pointer; }
button.showcase-server:hover { border-color: var(--yellow); }
.showcase-server-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.showcase-server-icon img { width: 100%; height: 100%; object-fit: cover; }
.showcase-server-info { min-width: 0; }
.showcase-server-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Settings > User Profile, Showcases tab ── */
.showcase-editor-count { font-size: 12px; color: var(--text-muted); }
.showcase-editor-intro { margin: 4px 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.showcase-editor-list { display: flex; flex-direction: column; gap: 10px; }
.showcase-editor-row { display: grid; gap: 10px; align-items: start; }
.showcase-editor-row.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.showcase-editor-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: opacity var(--transition-fast);
}
.showcase-editor-item.dragging { opacity: 0.45; }
.showcase-editor-item.drop-above { box-shadow: 0 -3px 0 var(--yellow); }
.showcase-editor-item.drop-below { box-shadow: 0 3px 0 var(--yellow); }
.showcase-editor-item.drop-left  { box-shadow: -4px 0 0 var(--yellow); }
.showcase-editor-item.drop-right { box-shadow: 4px 0 0 var(--yellow); }
.showcase-editor-item-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.showcase-editor-grip { cursor: grab; padding: 0 2px; font-size: 16px; color: var(--text-muted); user-select: none; }
.showcase-editor-grip:active { cursor: grabbing; }
.showcase-editor-icon { width: 22px; text-align: center; }
.showcase-editor-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-editor-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.showcase-editor-btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); }
.showcase-editor-btn:disabled { opacity: 0.35; cursor: default; }
.showcase-editor-fields { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px 62px; }
.showcase-editor-row.pair .showcase-editor-fields { padding-left: 12px; }
.showcase-editor-fields textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.showcase-game-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.showcase-game-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}
.showcase-game-pick .game-cover { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; flex-shrink: 0; }
.showcase-game-pick.on { border-color: var(--yellow); color: var(--text-primary); }
.showcase-game-pick:disabled { opacity: 0.4; cursor: default; }
.showcase-game-star { color: var(--yellow); }
.showcase-game-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-server-picks { display: flex; flex-direction: column; gap: 6px; }
.showcase-server-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.showcase-editor-add-title { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); }
.showcase-editor-add { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}
.showcase-add-btn:hover:not(:disabled) { border-color: var(--yellow); color: var(--text-primary); }
.showcase-add-btn:disabled { opacity: 0.4; cursor: default; }
.showcase-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.showcase-editor-status { flex: 1; font-size: 12px; color: var(--yellow); }

/* ── Display name style (Forge V3.0 beta) ── */
.styled-name { color: var(--name-color, inherit); padding: 0 1px; }
.name-fx-glow    { text-shadow: 0 0 6px, 0 0 16px; }
.name-fx-shadow  { text-shadow: 2px 2px 0 rgba(0,0,0,0.7), 4px 4px 10px rgba(0,0,0,0.45); }
.name-fx-outline { -webkit-text-stroke: 1.5px rgba(0,0,0,0.9); paint-order: stroke fill; }
.name-fx-gradient,
.name-fx-rainbow {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-fx-gradient {
  background-image: linear-gradient(90deg, var(--name-color, #f5c400), var(--name-color2, color-mix(in srgb, var(--name-color, #f5c400) 35%, #ffffff)));
}
.name-fx-rainbow {
  background-image: linear-gradient(90deg, #ff5c5c, #ff8a3d, #f5c400, #4caf7d, #3ddbd9, #5b8cff, #a970ff, #ff5c5c);
  background-size: 200% 100%;
  animation: name-rainbow 4s linear infinite;
}
.name-fx-pulse { animation: name-pulse 2s ease-in-out infinite; }
@keyframes name-rainbow { to { background-position: 200% 0; } }
@keyframes name-pulse {
  0%, 100% { text-shadow: 0 0 2px; }
  50%      { text-shadow: 0 0 10px, 0 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .name-fx-rainbow, .name-fx-pulse { animation: none; }
}

.name-style-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
}
.name-style-preview { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-primary); }
.name-style-label { margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); }
.name-style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.name-style-chip {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.name-style-chip:hover { border-color: var(--border-strong); }
.name-style-chip.active { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.name-style-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.name-style-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.name-style-swatch.active { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--yellow); }
.name-style-custom { background: conic-gradient(#ff5c5c, #f5c400, #4caf7d, #3ddbd9, #5b8cff, #a970ff, #ff5c5c); overflow: hidden; }
.name-style-custom span { color: #fff; text-shadow: 0 0 3px #000; font-size: 16px; }
.name-style-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* Gradient: a bar from the start color to the end color, a picker at each end */
.name-style-colors.gradient { display: block; }
.name-gradient-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 420px;
  height: 44px;
  padding: 0 7px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.name-gradient-stop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  cursor: pointer;
}
.name-gradient-stop:hover { transform: scale(1.06); }
.name-gradient-stop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ── Looks: avatar decorations, nameplates, server tags, pronouns (Forge V3.0 beta) ── */
.has-deco { overflow: visible !important; }
.has-deco > img.avatar-deco {
  position: absolute !important;
  inset: -12.5% !important;
  width: 125% !important;
  height: 125% !important;
  max-width: none;
  border-radius: 0 !important;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}
.has-deco .member-status,
.has-deco .status-dot,
.has-deco .sf-avatar-status,
.has-deco .profile-avatar-overlay { z-index: 3; }

.has-nameplate { position: relative; isolation: isolate; overflow: hidden; }
/* The whole nameplate shows, nothing cut off; a blurred copy fills any space around it */
.has-nameplate > img.nameplate-img,
.has-nameplate > img.nameplate-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.has-nameplate > img.nameplate-img { object-fit: contain; }
.has-nameplate > img.nameplate-fill {
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(8px) brightness(0.75);
  z-index: -2;
}
/* Keeps the name readable over a busy nameplate */
.has-nameplate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.1) 70%);
  pointer-events: none;
}

.server-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
.server-tag-pill img { width: 12px; height: 12px; border-radius: 3px; object-fit: cover; }

.profile-hero-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 2px; }
.profile-hero-extras:empty { display: none; }
.profile-hero-extras .server-tag-pill { margin-left: 0; font-size: 11px; }
.profile-hero-pronouns { font-size: 13px; color: var(--text-secondary); }

.looks-hint { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.looks-avatar-hint { width: 0; min-width: 100%; margin: 0; }
.looks-sub { border-top: 1px solid var(--border); }
.looks-sub-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.looks-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.looks-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.looks-pack { margin-top: 12px; }
.looks-pack[hidden] { display: none; }
.looks-pack-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.looks-pack select { max-width: 100%; }
.looks-plate-preview-box { max-width: 260px; padding: 8px 0; border-radius: var(--radius-md); background: var(--bg-members, var(--bg-sidebar)); }
.looks-plate-preview { cursor: default; }
