/* NightGame — page Mon compte */

.hidden {
  display: none !important;
}

.account-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1rem 3rem;
  min-height: calc(100vh - 70px);
}

/* --- Non connecté --- */
.account-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(124, 92, 255, 0.15);
  backdrop-filter: blur(10px);
}
.account-card h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.account-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.account-card .btn {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0.6rem auto 0;
}

/* --- Profil --- */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(124, 92, 255, 0.12);
}

.profile-banner {
  height: 170px;
  background: linear-gradient(135deg, #7c5cff 0%, #38e1ff 100%);
  background-size: cover;
  background-position: center;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: -56px auto 0;
  border: 4px solid #0b0e1a;
  background: linear-gradient(135deg, #7c5cff, #38e1ff) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 2.6rem/1 "Orbitron", sans-serif;
  color: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.profile-info {
  text-align: center;
  padding: 0.9rem 1.5rem 0.5rem;
}
.profile-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}
.profile-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.profile-stats {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem 0.4rem;
}
.pstat {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}
.pstat-val {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cyan);
}
.pstat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-level {
  padding: 0.7rem 1.5rem 0.5rem;
}
.profile-level-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.profile-level-label { color: var(--text); font-size: 0.9rem; }
.profile-level-label b { color: var(--cyan); font-family: "Orbitron", sans-serif; }
.profile-level-xp { color: var(--text-muted); font-size: 0.8rem; }
.xp-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.4s ease;
}
.profile-coins {
  color: #ffd700;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
}

/* --- Cosmétiques (sélecteur) --- */
.cosmetics-section { margin-top: 1rem; border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.cosmetics-section h4 { font-family: "Orbitron", sans-serif; font-size: 0.95rem; margin-bottom: 0.4rem; }
.cosmetics-hint { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.8rem; }
.cosmetic-slot { margin-bottom: 0.85rem; }
.cosmetic-slot-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cosmetic-items { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cosmetic-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}
.cosmetic-chip:hover { border-color: var(--cyan); }
.cosmetic-chip.equipped { border-color: var(--cyan); background: rgba(56, 225, 255, 0.12); }
.cosmetic-chip.locked { opacity: 0.45; filter: grayscale(0.6); cursor: not-allowed; }
.cosmetic-chip-icon { font-size: 1rem; }
.cosmetic-chip-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-actions {
  text-align: center;
  padding: 0.5rem 1.5rem 1.5rem;
}

/* --- Effets sur le nom --- */
.profile-name.effect-none {
  color: var(--name-color, #e6e9f5);
}
.profile-name.effect-neon {
  color: #fff;
  text-shadow:
    0 0 8px var(--name-color, #38e1ff),
    0 0 20px var(--name-color, #38e1ff),
    0 0 40px var(--name-color, #38e1ff);
}
.profile-name.effect-gradient {
  background: linear-gradient(90deg, #7c5cff, #38e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-name.effect-rainbow {
  background: linear-gradient(90deg, #ff4d6d, #ffb86c, #38e1ff, #7c5cff, #ff4d6d);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 5s linear infinite;
}
@keyframes rainbowShift {
  to { background-position: 300% 50%; }
}

/* --- Panneau d'édition --- */
.edit-panel {
  width: 100%;
  max-width: 640px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}
.edit-panel h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.edit-panel label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0.35rem;
}
.edit-panel input[type="text"],
.edit-panel textarea,
.edit-panel select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
}
.edit-panel input[type="text"]:focus,
.edit-panel textarea:focus,
.edit-panel select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 255, 0.15);
}
.edit-panel select option {
  background: #0b0e1a;
  color: #e6e9f5;
}
.edit-panel input[type="file"] {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 100%;
}
.edit-panel input[type="color"] {
  width: 56px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.file-row input[type="file"] {
  flex: 1;
  min-width: 180px;
}
.edit-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.form-error {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  color: #38e1ff;
  font-size: 0.88rem;
}

/* --- Onglets --- */
#account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.account-tabs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 640px;
}
.tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab-btn.active {
  background: rgba(124, 92, 255, 0.2);
  color: #e6e9f5;
  border-color: var(--violet);
}

.tab-panel {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Badge admin --- */
.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb86c, #ff4d6d);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Panneau administration --- */
.admin-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.admin-panel h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.admin-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.admin-empty {
  color: var(--text-muted);
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  align-items: flex-start;
}
.admin-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--violet);
}
.admin-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #38e1ff);
  color: #fff;
  font: 700 1.2rem/1 "Orbitron", sans-serif;
}
.admin-card-body {
  flex: 1;
  min-width: 0;
}
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-pseudo {
  font-weight: 700;
  color: #e6e9f5;
}
.admin-email {
  color: var(--cyan);
  font-size: 0.85rem;
  word-break: break-all;
}
.admin-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.admin-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}
.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.tag-ok {
  color: #38e1ff;
}
.tag-online {
  color: #38e1ff;
}
.tag-offline {
  color: #7a8294;
}

/* --- Connexion / déconnexion --- */
.login-form {
  text-align: left;
  margin-bottom: 0.5rem;
}
.login-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.9rem 0 0.35rem;
}
.login-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
}
.login-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 255, 0.15);
}
.login-form .btn {
  width: 100%;
  margin-top: 0.9rem;
}
.account-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0.4rem 0 0.9rem;
}
.btn-logout:hover {
  border-color: #ff4d6d;
  color: #ff4d6d;
}

