/* ===== DASHBOARD CSS ===== */
:root {
  --sidebar-width: 280px;
  --header-height: 70px;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-content.hidden {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-body {
  padding: 1.5rem;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-lg);
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-blue));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
}

.guest-notice {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  border: 1px dashed rgba(var(--tech-blue-rgb), 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.1);
}

.guest-notice h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.guest-notice p {
  margin-bottom: 1.25rem;
}

.welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.user-greeting h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.user-greeting p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.quick-stat:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.quick-stat:hover .stat-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.15));
}

.quick-stat.quick-stat-clickable {
  cursor: pointer;
}

.quick-stat.quick-stat-clickable:hover {
  border-color: var(--accent-primary);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.stat-icon i {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  /* Allow text to wrap instead of truncating */
  white-space: normal;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .welcome-content {
    flex-direction: column;
    text-align: center;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stat {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
  }

  .stat-icon i {
    font-size: 1.125rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .user-greeting h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .quick-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .quick-stat {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.75rem;
    gap: 0.5rem;
  }

  .stat-info {
    align-items: center;
  }
}

/* ===== PROFILE CARD ===== */
.profile-card .avatar-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  transition: all 0.3s ease;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(var(--tech-dark), var(--tech-dark)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.avatar-container:hover .avatar-overlay,
.avatar-container:focus-within .avatar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(var(--tech-blue-rgb), 0.5),
              0 0 45px rgba(var(--tech-cyan-rgb), 0.3);
}

.btn-avatar-upload {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-steam-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--tech-blue-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-steam-avatar img {
  width: 16px;
  height: 16px;
}

.btn-steam-avatar:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.25), rgba(var(--tech-cyan-rgb), 0.12));
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.3);
  transform: translateY(-1px);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--tech-blue-rgb), 0.25), 0 0 20px rgba(var(--tech-blue-rgb), 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.25rem;
}

/* Compact action buttons scoped to profile card form — don't affect global btn sizes */
.profile-form .form-actions .btn-primary {
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
}

.profile-form .form-actions .btn-secondary {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-form .form-actions .btn-secondary:hover {
  color: var(--text-primary);
  background: none;
  box-shadow: none;
  transform: none;
}

/* ===== SECURITY CARD ===== */
.security-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}

.security-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.security-info h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.security-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== NOTIFICATIONS CARD ===== */
.notifications-card .notification-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.notification-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.2), rgba(var(--tech-cyan-rgb), 0.1));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.2);
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.notification-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.notification-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.notification-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* ===== EMAIL PREFERENCES ===== */
.email-prefs-group { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06)); }
.email-prefs-group:last-child { border-bottom: none; }
.email-prefs-group-header { display: flex; align-items: center; gap: 0.6rem; }
.email-prefs-group-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(139,92,246,0.08); color: var(--accent, #8b5cf6); font-size: 0.9rem; flex-shrink: 0; }
.email-prefs-badge.always-on { background: rgba(34,197,94,0.15); color: #22c55e; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.email-prefs-items { margin-top: 0.5rem; padding-left: 2.5rem; }
.email-prefs-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; }
.email-prefs-label { flex: 1; min-width: 0; }
.email-prefs-label span { display: block; color: var(--text-primary, #f0f2f5); font-size: 0.9rem; }
.email-prefs-label small { display: block; color: var(--text-secondary, #6b7280); font-size: 0.78rem; line-height: 1.3; margin-top: 2px; }
@media (max-width: 480px) {
  .email-prefs-items { padding-left: 0; }
  .email-prefs-group-header { flex-wrap: wrap; }
}

/* ===== LEADERBOARD ===== */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: auto 50px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.leaderboard-position {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.leaderboard-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  transition: all 0.3s ease;
}

.leaderboard-item:hover .leaderboard-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.4),
              0 0 25px rgba(var(--tech-cyan-rgb), 0.2);
}

.leaderboard-name {
  font-weight: 600;
}

.leaderboard-score {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.leaderboard-trend {
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}

.leaderboard-trend.up {
  background: rgba(16,185,129,0.18);
  color: #34d399;
}

.leaderboard-trend.down {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}

.leaderboard-trend.equal {
  background: rgba(148,163,184,0.18);
  color: #cbd5f5;
}

/* ===== MEMBERS ===== */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  transition: all 0.3s ease;
}

.member-item:hover .member-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.4),
              0 0 25px rgba(var(--tech-cyan-rgb), 0.2);
}

.member-info {
  flex: 1;
}

.member-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.member-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  gap: 0.75rem;
}

/* ===== LEADERBOARD PAGE ===== */
.leaderboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.leaderboard-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-blue));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
}

.leaderboard-controls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
}

.leaderboard-stats-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lb-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.lb-stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.lb-stat-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.leaderboard-table-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.leaderboard-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(239,68,68,0.15);
  color: #fecaca;
  border: 1px solid rgba(239,68,68,0.35);
}

.leaderboard-table-wrapper {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.leaderboard-table thead {
  background: rgba(255,255,255,0.05);
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.leaderboard-table tbody tr:hover {
  background: rgba(148,163,184,0.1);
}

.leaderboard-loading,
.leaderboard-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
}

.leaderboard-loading .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(148,163,184,0.4);
  border-top-color: var(--tech-blue);
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.leaderboard-page-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.leaderboard-user-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.leaderboard-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.lb-user-pill {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(148,163,184,0.08);
  color: var(--text-primary);
}

.lb-user-pill span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-user-trend {
  font-weight: 600;
}

.lb-up {
  color: #34d399;
}

.lb-down {
  color: #f87171;
}

.lb-equal {
  color: #facc15;
}

.leaderboard-guest {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== HELP PAGE ===== */
.help-hero {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(56,189,248,0.15));
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.help-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.help-card h2,
.help-card h3 {
  font-size: 1.3rem;
}

.help-card ul {
  list-style: disc;
  margin-left: 1.25rem;
  color: var(--text-secondary);
}

.help-card details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
}

.help-card details + details {
  margin-top: 0.75rem;
}

.help-card details summary {
  cursor: pointer;
  font-weight: 600;
}

.help-card-outline {
  border-style: dashed;
}

.help-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.help-contact ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lb-player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  transition: all 0.3s ease;
}

.lb-player-info:hover .lb-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.4),
              0 0 25px rgba(var(--tech-cyan-rgb), 0.2);
}

.lb-name {
  font-weight: 600;
  color: var(--text-primary);
}

.lb-username {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lb-badge.lb-up {
  background: rgba(34,197,94,0.15);
  color: #34d399;
}

.lb-badge.lb-down {
  background: rgba(248,113,113,0.18);
  color: #f97316;
}

.lb-badge.lb-equal {
  background: rgba(250,204,21,0.18);
  color: #fde047;
}

.lb-country,
.lb-score,
.lb-trend,
.lb-updated,
.lb-rank {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .leaderboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-guest {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== AVATAR UPLOAD MODAL ===== */
.avatar-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.avatar-upload-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(var(--tech-blue-rgb), 0.2);
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.avatar-upload-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.avatar-upload-placeholder span {
  font-size: 0.85rem;
}

.avatar-upload-dropzone {
  width: 100%;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-upload-dropzone:hover,
.avatar-upload-dropzone.drag-over {
  border-color: var(--accent-primary);
  background: rgba(var(--tech-blue-rgb), 0.08);
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.15);
}

.dropzone-content i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.dropzone-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.dropzone-content small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dropzone-browse {
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: underline;
}

.dropzone-browse:hover {
  text-decoration: none;
}

.avatar-upload-alert {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  text-align: center;
  font-size: 0.9rem;
}

.avatar-upload-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* ===== 2FA MODAL ===== */
.twofa-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.twofa-status.enabled {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.twofa-status.disabled {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.twofa-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.twofa-status.enabled .twofa-status-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
}

.twofa-status.disabled .twofa-status-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.twofa-status-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.twofa-status-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.twofa-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.twofa-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.twofa-step-number {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.twofa-step-content h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.twofa-step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.twofa-code-input {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.twofa-code-input input {
  width: 45px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.twofa-code-input input:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--tech-blue-rgb), 0.2);
}

.twofa-code-input input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.twofa-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.twofa-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.twofa-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.twofa-alert.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.twofa-resend {
  text-align: center;
  margin-top: 1rem;
}

.twofa-resend button {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.twofa-resend button:hover {
  text-decoration: underline;
}

.twofa-resend button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 2FA Login Step */
.twofa-login-step {
  text-align: center;
  padding: 1rem 0;
}

.twofa-login-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.twofa-login-step p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.twofa-login-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* ===== CLICKABLE PROFILE LINKS ===== */

/* Leaderboard items (dashboard sidebar) */
.leaderboard-item-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-item-clickable:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.leaderboard-item-clickable:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.leaderboard-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.leaderboard-profile-link:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.leaderboard-profile-link i {
  font-size: 0.875rem;
}

/* Member items (dashboard sidebar) */
.member-item-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-item-clickable:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateX(4px);
}

.member-item-clickable:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.member-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.member-profile-link:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.member-profile-link i {
  font-size: 0.875rem;
}

/* Leaderboard page table rows */
.lb-row-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-row-clickable:hover {
  background: rgba(139, 92, 246, 0.1) !important;
}

.lb-row-clickable:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}

.lb-player-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.lb-player-link:hover .lb-name {
  color: var(--accent-primary);
}

.lb-player-link:hover .lb-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.lb-view-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.lb-view-profile:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.lb-view-profile i {
  font-size: 0.75rem;
}

.lb-actions {
  width: 50px;
  text-align: center;
}

/* ===== PRIVACY TOGGLES ===== */
.privacy-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.privacy-toggle-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  transition: all 0.2s ease;
}

.privacy-toggle-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary, rgba(139, 92, 246, 0.3));
}

.toggle-label {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toggle-label span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.toggle-label small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Toggle switch - iOS style */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(156, 163, 175, 0.45);
  border: 1px solid rgba(156, 163, 175, 0.25);
  transition: 0.3s ease;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  transition: 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-primary, #8b5cf6);
  border-color: var(--accent-primary, #8b5cf6);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}

/* Privacy section with toggles stacks vertically */
.privacy-section:has(.privacy-toggles) {
  flex-direction: column;
  align-items: stretch;
}

/* Privacy modal wider than default security modals */
#privacyModal .security-modal-content {
  max-width: 540px;
}

/* ===== TOTP SETUP STYLES ===== */
.twofa-method-selector .btn-outline {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.twofa-method-selector .btn-outline.active {
  background: var(--accent-primary, rgba(139, 92, 246, 0.2));
  border-color: var(--accent-primary, rgba(139, 92, 246, 0.5));
  color: var(--accent-primary, #a78bfa);
}

.twofa-totp-section {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  margin-top: 1rem;
}

.totp-step {
  margin-bottom: 1.5rem;
}

.totp-step:last-child {
  margin-bottom: 0;
}

.totp-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.totp-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.loading-spinner {
  color: var(--accent-primary, #a78bfa);
  font-size: 1rem;
}

/* ===== ACCOUNT CONNECTIONS ===== */
.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.conn-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}

.conn-card:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.05);
}

.conn-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.conn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.conn-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.conn-handle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conn-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.conn-status--connected {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.conn-status--disconnected {
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
}

.conn-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.conn-btn--connect {
  background: var(--accent-primary, #8b5cf6);
  color: #fff;
  border-color: var(--accent-primary, #8b5cf6);
}

.conn-btn--connect:hover {
  opacity: 0.85;
}

.conn-btn--disconnect {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.conn-btn--disconnect:hover {
  border-color: #f87171;
  color: #f87171;
}

.conn-manual-row {
  display: flex;
  gap: 0.4rem;
}

.conn-manual-input {
  flex: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.78rem;
}

.conn-manual-input:focus {
  outline: none;
  border-color: var(--accent-primary, #8b5cf6);
}

.conn-btn--save {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-primary, #8b5cf6);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}

.conn-btn--save:hover { opacity: 0.85; }

.conn-linked-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #4ade80;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* ── Remote Login QR Code ────────────────────────────────── */
.rl-qr-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.rl-qr-wrap img {
  display: block;
  image-rendering: pixelated;
}
.rl-success-icon {
  font-size: 3rem;
  color: #22c55e;
  margin: 1rem 0 0.5rem;
  animation: rlFadeIn 0.4s ease;
}
.rl-success-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 0.25rem;
}
.rl-success-device {
  font-size: 0.8rem;
  color: var(--text-secondary, #aaa);
  margin: 0;
  word-break: break-all;
}
@keyframes rlFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══ Inventory Tab ═══ */
.dash-inv-category-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  flex-wrap: wrap;
}
.dash-inv-category-nav::-webkit-scrollbar { display: none; }
.dash-inv-cat {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 99px;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dash-inv-cat i { font-size: 0.65rem; opacity: 0.7; }
.dash-inv-cat:hover { border-color: rgba(139, 92, 246, 0.4); color: var(--text-primary, #fff); }
.dash-inv-cat.active { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.5); color: #a78bfa; }
.dash-inv-cat.active i { opacity: 1; }

.dash-inv-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-inv-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9rem;
}
.dash-inv-empty a { color: #a78bfa; text-decoration: underline; }

.dash-inv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg, 12px);
  transition: border-color 0.2s;
}
.dash-inv-item:hover { border-color: rgba(139, 92, 246, 0.3); }
.dash-inv-item--equipped { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.03); }

.dash-inv-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.dash-inv-item--equipped .dash-inv-item-icon {
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
}

.dash-inv-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-inv-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-inv-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.dash-inv-btn--equip {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.25);
}
.dash-inv-btn--equip:hover { background: rgba(59,130,246,0.2); }
.dash-inv-btn--unequip {
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}
.dash-inv-btn--unequip:hover { background: rgba(239,68,68,0.15); }
.dash-inv-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .dash-inv-item { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .dash-inv-item-icon { width: 32px; height: 32px; font-size: 0.75rem; }
  .dash-inv-item-name { font-size: 0.8rem; }
  .dash-inv-btn { font-size: 0.68rem; padding: 0.3rem 0.5rem; }
  .dash-inv-item-info .store-rarity-badge { display: none; }
}

/* ── Login Methods Strip ────────────────────────────────────────────── */
.login-methods {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.lm-header {
  margin-bottom: 0.5rem;
}

.lm-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: default;
}

.lm-chip--active {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.lm-chip--social {
  background: color-mix(in srgb, var(--lm-color, #94a3b8) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--lm-color, #94a3b8) 28%, transparent);
  color: color-mix(in srgb, var(--lm-color, #94a3b8) 90%, #e2e8f0 10%);
}

.lm-chip--warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
  cursor: pointer;
  transition: background 0.15s;
}
.lm-chip--warning:hover { background: rgba(251, 191, 36, 0.15); }

.lm-chip-warning-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 10px;
  margin-left: 0.1rem;
}

.lm-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--text-secondary, #94a3b8);
}

.lm-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #a78bfa;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.lm-link:hover { color: #c4b5fd; }

.lm-empty {
  font-size: 0.75rem;
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
}

[data-theme="light"] .login-methods {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .lm-chip--active { color: #16a34a; }

/* ── Appearance Slots ───────────────────────────────────────────────── */
.appear-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.appear-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.appear-loading {
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.85rem;
  padding: 0.75rem 0;
  margin: 0;
}

.appear-slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.appear-slot-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s;
}
.appear-slot-main:hover { background: rgba(255, 255, 255, 0.04); }

.appear-slot-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #a78bfa;
  flex-shrink: 0;
}

.appear-slot-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  width: 100px;
  flex-shrink: 0;
}

.appear-slot-equipped {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.appear-none {
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
}

.appear-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(139, 92, 246, 0.08);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.18);
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.appear-change-btn:hover,
.appear-change-btn.is-open { background: rgba(139, 92, 246, 0.18); }
.appear-change-btn .fa-chevron-down { transition: transform 0.2s; }
.appear-change-btn.is-open .fa-chevron-down { transform: rotate(180deg); }

.appear-store-link {
  font-size: 0.7rem;
  color: #a78bfa;
  text-decoration: none;
  flex-shrink: 0;
}
.appear-store-link:hover { text-decoration: underline; }

/* Picker panel */
.appear-picker[hidden] { display: none; }
.appear-picker {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.35rem;
  margin-top: 1px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  max-height: 190px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.appear-picker-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  transition: background 0.1s;
}
.appear-picker-item:hover { background: rgba(255, 255, 255, 0.04); }
.appear-picker-item.is-equipped { background: rgba(59, 130, 246, 0.06); }

.appear-picker-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.appear-picker-equipped-badge {
  font-size: 0.68rem;
  color: #60a5fa;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.appear-picker-equip-btn {
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.09);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.appear-picker-equip-btn:hover { background: rgba(59, 130, 246, 0.18); }
.appear-picker-equip-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.appear-picker-unequip-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(239, 68, 68, 0.06);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.14);
  transition: background 0.15s;
  margin-top: 0.2rem;
  align-self: flex-start;
}
.appear-picker-unequip-btn:hover { background: rgba(239, 68, 68, 0.12); }
.appear-picker-unequip-btn:disabled { opacity: 0.5; cursor: not-allowed; }

[data-theme="light"] .appear-section { border-top-color: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .appear-slot-main { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .appear-slot-main:hover { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .appear-picker { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .appear-picker-item:hover { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .appear-picker-item.is-equipped { background: rgba(59, 130, 246, 0.06); }
