/* ── PROFILE MODAL ───────────────────────────── */
#profile-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
#profile-modal.open { display: flex; }

.profile-sheet {
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 0 0 24px;
  animation: slideUp 0.3s ease;
  border: 1px solid var(--border);
  border-bottom: none;
  max-height: 90vh;
  overflow-y: auto;
}

.profile-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 12px auto 0;
}

.profile-header {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #19c37d, #1a5b46);
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.profile-avatar-big img { width: 100%; height: 100%; object-fit: cover; }

.profile-display-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.02em;
}
.profile-username { font-size: 14px; color: var(--text-muted); text-align: center; }

/* ── PROFILE BODY ────────────────────────────── */
.profile-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.profile-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 8px;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: 12px;
}
.profile-row-label { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.profile-row-value { font-size: 14px; color: var(--text-muted); }

/* ── STATS ───────────────────────────────────── */
.profile-stats {
  display: flex;
  padding: 16px;
  background: var(--bg-input);
  border-radius: 12px;
  gap: 12px;
}
.profile-stats .divider { width: 1px; background: var(--border); }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.profile-stat-val { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.profile-stat-label { font-size: 12px; color: var(--text-muted); }

/* ── LANGUAGE TOGGLE ─────────────────────────── */
.lang-toggle { display: flex; background: var(--bg-hover); border-radius: 10px; padding: 3px; gap: 2px; }
.lang-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active { background: #3a3a3a; color: var(--text-primary); }

/* ── CLOSE BUTTON ────────────────────────────── */
.profile-close-btn {
  width: calc(100% - 48px);
  margin: 8px 24px 0;
  padding: 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.profile-close-btn:hover { background: var(--bg-active); }
