/* ====================================================================
   Ivann — CSS Gaming Base (consolidé : XP V1 + Arènes V1 + Grades)
   Consolidation de : ivann_css_13_xp_niveaux, ivann_css_14_arenes, ivann_css_15_grades
   ==================================================================== */


/* === [ivann_css_13_xp_niveaux] === */

/* ========================================================= */
/* IVANN — CSS — 13 — XP / NIVEAUX                            */
/* ========================================================= */

/* Badge XP sticky top-right */
.ivann-xp-badge {
  position: fixed;
  top: 100px;
  right: 16px;
  z-index: 1000;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}
.ivann-xp-badge__link {
  color: #fff !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: inherit;
}
.ivann-xp-badge__icon { font-size: 1.4rem; line-height: 1; }
.ivann-xp-badge__level {
  font-size: 0.95rem; font-weight: 800; line-height: 1;
}
.ivann-xp-badge__xp {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.ivann-xp-badge__bar {
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px; overflow: hidden;
  margin-left: 0.4rem;
}
.ivann-xp-badge__fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
}

/* Toast XP */
.ivann-xp-toast {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 1001;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
  animation: ivannXpSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ivann-xp-toast--levelup {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.55);
  font-size: 1.05rem;
  padding: 1.1rem 1.6rem;
}
.ivann-xp-toast__emoji { font-size: 1.3rem; }
.ivann-xp-toast--levelup .ivann-xp-toast__emoji { font-size: 2rem; }

@keyframes ivannXpSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.ivann-xp-toast.is-leaving {
  animation: ivannXpSlideOut 0.3s ease forwards;
}
@keyframes ivannXpSlideOut {
  to { transform: translateX(120%); opacity: 0; }
}

/* Profil page */
.profil-page { max-width: 900px; margin: 1rem auto 3rem; padding: 0 1rem; }
.profil-hero {
  background: linear-gradient(135deg, var(--course-primary, #2454ff), var(--course-secondary, #7c3aed));
  color: #fff; border-radius: 20px;
  padding: 2rem 1.5rem; margin-bottom: 2rem;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.profil-hero__avatar {
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  border: 3px solid rgba(255,255,255,0.3);
}
.profil-hero__main { flex: 1; min-width: 250px; }
.profil-hero__pseudo { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.2rem !important; border-bottom: 0 !important; color: #fff !important; }
.profil-hero__level { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0.75rem; }
.profil-hero__xp-bar { background: rgba(255,255,255,0.2); height: 12px; border-radius: 999px; overflow: hidden; }
.profil-hero__xp-fill {
  height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.profil-hero__xp-text { font-size: 0.85rem; opacity: 0.9; margin-top: 0.4rem; }

.profil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.profil-card {
  background: var(--course-surface, #fff);
  border: 1px solid var(--course-border, rgba(0,0,0,0.08));
  border-radius: 14px;
  padding: 1.25rem;
}
.profil-card__title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--course-muted, #64748b); font-weight: 700; margin-bottom: 0.5rem; }
.profil-card__value { font-size: 2.2rem; font-weight: 800; color: var(--course-text); line-height: 1; margin-bottom: 0.3rem; }
.profil-card__sub { font-size: 0.85rem; color: var(--course-muted, #64748b); }

.profil-skills { margin-top: 1rem; }
.profil-skill {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--course-border, rgba(0,0,0,0.05));
}
.profil-skill:last-child { border-bottom: 0; }
.profil-skill__lang {
  width: 70px; font-weight: 700;
  display: flex; align-items: center; gap: 0.4rem;
}
.profil-skill__bar { flex: 1; background: rgba(0,0,0,0.06); height: 8px; border-radius: 999px; overflow: hidden; }
.profil-skill__fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.profil-skill[data-lang="php"] .profil-skill__fill { background: linear-gradient(90deg, #2454ff, #7c3aed); }
.profil-skill[data-lang="html"] .profil-skill__fill { background: linear-gradient(90deg, #f97316, #ef4444); }
.profil-skill[data-lang="sql"] .profil-skill__fill { background: linear-gradient(90deg, #0284c7, #06b6d4); }
.profil-skill__level { font-weight: 800; color: var(--course-primary, #2454ff); min-width: 40px; text-align: right; }

.profil-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.profil-btn {
  padding: 0.6rem 1.2rem; border-radius: 10px;
  border: 1px solid var(--course-border, rgba(0,0,0,0.1));
  background: var(--course-surface);
  color: var(--course-text);
  font-weight: 600; cursor: pointer;
}
.profil-btn--primary { background: var(--course-primary, #2454ff); color: #fff; border: 0; }
.profil-btn--danger { background: transparent; color: var(--course-danger, #dc2626); border-color: rgba(220,38,38,0.3); }
.profil-btn--danger:hover { background: rgba(220,38,38,0.05); }

@media (max-width: 720px) {
  .ivann-xp-badge { top: auto; bottom: 16px; right: 16px; }
}

/* === [ivann_css_14_arenes] === */

/* === ARENES PAGE === */
.arenes-page { max-width: 1100px; margin: 0 auto; }
.arenes-page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 1rem 0 0.5rem; text-align: left; }
.arenes-intro { color: #475569; margin-bottom: 1.5rem; text-align: left; }
.arenes-status { background: linear-gradient(135deg,#1e293b,#334155); color: white; padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 2rem; font-size: 1rem; }
.arenes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.arena-card { background: white; border: 2px solid #e2e8f0; border-radius: 18px; padding: 1.5rem; transition: all 0.2s ease; text-align: left; }
.arena-card:hover { border-color: #2454ff; transform: translateY(-3px); box-shadow: 0 12px 28px -10px rgba(36,84,255,0.25); }
.arena-card__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.arena-card h2 { font-size: 1.35rem; margin: 0 0 0.5rem; color: #0f172a; text-align: left; }
.arena-card p { color: #64748b; font-size: 0.95rem; margin: 0 0 0.75rem; text-align: left; }
.arena-card__req { font-size: 0.85rem; color: #475569; margin-bottom: 1rem; padding: 0.5rem 0.75rem; background: #f1f5f9; border-radius: 8px; }
.arena-card__btn {
  display: inline-block; padding: 0.7rem 1.25rem; background: linear-gradient(135deg, #2454ff, #4f7cff);
  color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.arena-card__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(36,84,255,0.5); }
.arena-card__btn--ghost { background: transparent; color: #64748b; border: 2px solid #e2e8f0; margin-left: 0.5rem; }
.arena-card--mixte { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #f59e0b; }
.arena-card--mixte h2 { color: #92400e; }

.arena-stage { background: white; border: 3px solid #2454ff; border-radius: 20px; padding: 2rem; margin-top: 1.5rem; box-shadow: 0 20px 50px -20px rgba(36,84,255,0.4); }

.arena-gate { text-align: center; padding: 2rem 1rem; }
.arena-gate h2 { font-size: 1.5rem; margin-bottom: 1rem; text-align: center; }
.arena-gate p { color: #475569; margin: 0.5rem 0; text-align: center; }
.arena-gate--locked .arena-card__btn { margin: 0.5rem 0.25rem; }

.arena-lobby h2 { font-size: 1.5rem; margin: 0 0 0.5rem; text-align: left; }
.arena-lobby__hint { color: #64748b; margin-bottom: 1.25rem; text-align: left; }
.arena-npcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.arena-npc {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: #f8fafc; border: 2px solid #e2e8f0;
  border-radius: 14px; cursor: pointer; font-family: inherit; transition: all 0.15s ease; text-align: left;
}
.arena-npc:hover { border-color: #2454ff; background: white; transform: translateX(2px); }
.arena-npc__emoji { font-size: 1.75rem; }
.arena-npc__name { flex: 1; font-weight: 600; color: #0f172a; }
.arena-npc__level { background: #2454ff; color: white; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

.arena-fight { padding: 0.5rem; }
.arena-fight__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: linear-gradient(135deg,#0f172a,#1e293b); color: white; border-radius: 14px; }
.arena-fight__player, .arena-fight__npc { font-weight: 700; font-size: 1rem; }
.arena-fight__round { font-size: 0.85rem; opacity: 0.85; }
.arena-fight__q { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 1rem 0 1.25rem; padding: 1rem 1.25rem; background: #f1f5f9; border-radius: 12px; text-align: left; }
.arena-fight__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.arena-opt {
  padding: 0.9rem 1rem; background: white; border: 2px solid #cbd5e1; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; transition: all 0.15s ease;
}
.arena-opt:hover:not(:disabled) { border-color: #2454ff; background: #eff6ff; }
.arena-opt:disabled { cursor: default; opacity: 0.7; }
.arena-opt.is-ok { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.arena-opt.is-ko { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.arena-fight__fb { text-align: center; font-weight: 700; min-height: 1.5rem; }

.arena-result { text-align: center; padding: 1.5rem; }
.arena-result__emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.arena-result h2 { font-size: 2rem; margin: 0 0 1.25rem; text-align: center; }
.arena-result__scores { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin: 1rem 0; }
.arena-result__side { background: #f1f5f9; padding: 1rem 1.5rem; border-radius: 14px; min-width: 120px; }
.arena-result__name { font-size: 0.85rem; color: #64748b; }
.arena-result__score { font-size: 2.5rem; font-weight: 900; color: #0f172a; }
.arena-result__vs { font-size: 1.25rem; font-weight: 900; color: #94a3b8; }
.arena-result__xp { display: inline-block; margin: 0.75rem 0; padding: 0.6rem 1.25rem; background: linear-gradient(135deg,#fbbf24,#f59e0b); color: white; border-radius: 999px; font-weight: 800; font-size: 1.1rem; }
.arena-result--win .arena-result__score:first-of-type { color: #16a34a; }
.arena-result--lose .arena-result__score:first-of-type { color: #dc2626; }
.arena-result__actions { margin-top: 1.25rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .arena-fight__head { flex-direction: column; gap: 0.5rem; text-align: center; }
  .arena-result__scores { gap: 0.75rem; }
  .arena-result__side { min-width: 90px; padding: 0.75rem 1rem; }
}

/* === [ivann_css_15_grades] === */

/* === GRADES & COSMETIQUES === */
:root {
  --grade-bronze: #cd7f32;
  --grade-argent: #b8b8c4;
  --grade-or: #f0c419;
  --grade-platine: #5fc4c4;
  --grade-diamant: #00b8d4;
  --grade-legende: #b06aff;
}

/* Pseudo coloré selon grade */
.player-pseudo { font-weight: 700; }
.player-pseudo[data-grade="bronze"] { color: var(--grade-bronze); }
.player-pseudo[data-grade="argent"] { color: var(--grade-argent); text-shadow: 0 0 1px rgba(0,0,0,0.2); }
.player-pseudo[data-grade="or"] { color: var(--grade-or); text-shadow: 0 0 8px rgba(240,196,25,0.4); }
.player-pseudo[data-grade="platine"] { color: var(--grade-platine); text-shadow: 0 0 10px rgba(95,196,196,0.5); }
.player-pseudo[data-grade="diamant"] {
  background: linear-gradient(90deg, #00b8d4, #80deea, #00b8d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  background-size: 200% 100%; animation: diamantShine 3s ease-in-out infinite;
}
.player-pseudo[data-grade="legende"] {
  background: linear-gradient(90deg, #b06aff, #ff70a6, #ffd166, #b06aff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  background-size: 300% 100%; animation: legendeAura 4s linear infinite;
  font-weight: 900;
}
@keyframes diamantShine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes legendeAura { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* Badge grade (chip avec icône + nom) */
.grade-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  background: rgba(255,255,255,0.08); color: white; border: 2px solid currentColor;
}
.grade-chip[data-grade="bronze"] { color: var(--grade-bronze); background: rgba(205,127,50,0.12); }
.grade-chip[data-grade="argent"] { color: var(--grade-argent); background: rgba(184,184,196,0.15); }
.grade-chip[data-grade="or"] { color: var(--grade-or); background: rgba(240,196,25,0.15); }
.grade-chip[data-grade="platine"] { color: var(--grade-platine); background: rgba(95,196,196,0.15); }
.grade-chip[data-grade="diamant"] { color: var(--grade-diamant); background: rgba(0,184,212,0.18); }
.grade-chip[data-grade="legende"] { color: var(--grade-legende); background: rgba(176,106,255,0.2); }

/* Frame autour de la badge XP selon grade */
.ivann-xp-badge[data-grade="or"] { box-shadow: 0 0 0 2px var(--grade-or), 0 8px 28px -12px rgba(240,196,25,0.6); }
.ivann-xp-badge[data-grade="platine"] { box-shadow: 0 0 0 2px var(--grade-platine), 0 8px 28px -12px rgba(95,196,196,0.6); }
.ivann-xp-badge[data-grade="diamant"] { box-shadow: 0 0 0 3px var(--grade-diamant), 0 0 24px -4px rgba(0,184,212,0.7); }
.ivann-xp-badge[data-grade="legende"] {
  box-shadow: 0 0 0 3px var(--grade-legende), 0 0 32px -2px rgba(176,106,255,0.8);
  animation: legendePulse 2.5s ease-in-out infinite;
}
@keyframes legendePulse {
  0%,100% { box-shadow: 0 0 0 3px var(--grade-legende), 0 0 32px -2px rgba(176,106,255,0.6); }
  50% { box-shadow: 0 0 0 3px var(--grade-legende), 0 0 50px 0 rgba(176,106,255,0.95); }
}

/* === LEADERBOARD === */
.classement-page { max-width: 980px; margin: 0 auto; }
.classement-page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 1rem 0 0.5rem; text-align: left; }
.classement-intro { color: #475569; margin-bottom: 1.5rem; text-align: left; }
.classement-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; align-items: end; }
.podium-step {
  background: white; border-radius: 14px; padding: 1.25rem 1rem; text-align: center;
  border: 2px solid; transition: transform 0.2s ease;
}
.podium-step:hover { transform: translateY(-3px); cursor: pointer; }
.podium-step--1 { border-color: var(--grade-or); padding-top: 1.75rem; padding-bottom: 1.75rem; }
.podium-step--2 { border-color: var(--grade-argent); }
.podium-step--3 { border-color: var(--grade-bronze); }
.podium-rank { font-size: 1.5rem; font-weight: 900; }
.podium-pseudo { font-size: 1.05rem; margin: 0.4rem 0; }
.podium-xp { font-size: 0.85rem; color: #64748b; }
.podium-step--1 .podium-rank { color: var(--grade-or); font-size: 2rem; }
.podium-step--2 .podium-rank { color: var(--grade-argent); }
.podium-step--3 .podium-rank { color: var(--grade-bronze); }

.classement-list { background: white; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; }
.classement-row {
  display: grid; grid-template-columns: 50px 1fr auto auto auto; gap: 1rem; align-items: center;
  padding: 0.85rem 1.25rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.1s ease;
}
.classement-row:hover { background: #f8fafc; }
.classement-row:last-child { border-bottom: none; }
.classement-row.is-me { background: linear-gradient(90deg, rgba(36,84,255,0.08), transparent); border-left: 4px solid #2454ff; padding-left: 1rem; }
.classement-rank { font-weight: 800; color: #475569; font-size: 1.1rem; }
.classement-info { display: flex; flex-direction: column; gap: 0.2rem; }
.classement-stats { font-size: 0.85rem; color: #64748b; }
.classement-action { background: #2454ff; color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.classement-action--ghost { background: white; color: #475569; border: 1px solid #cbd5e1; }
.classement-action:hover { transform: translateY(-1px); }

/* Profil modal */
.profil-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.7); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.profil-modal {
  background: white; border-radius: 20px; padding: 2rem; max-width: 480px; width: 100%;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); position: relative;
}
.profil-modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #94a3b8; line-height: 1;
}
.profil-modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.profil-modal__avatar { font-size: 3rem; }
.profil-modal__pseudo { font-size: 1.5rem; margin: 0; }
.profil-modal__grade { margin-top: 0.3rem; }
.profil-modal__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.profil-modal__stat { background: #f1f5f9; padding: 0.85rem; border-radius: 10px; text-align: center; }
.profil-modal__stat-num { font-size: 1.5rem; font-weight: 900; color: #0f172a; }
.profil-modal__stat-lbl { font-size: 0.78rem; color: #64748b; }
.profil-modal__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.profil-modal__btn {
  flex: 1; min-width: 130px; padding: 0.7rem 1rem; border: none; border-radius: 10px;
  font-weight: 700; cursor: pointer; font-size: 0.95rem;
}
.profil-modal__btn--challenge { background: linear-gradient(135deg, #dc2626, #ef4444); color: white; }
.profil-modal__btn--message { background: linear-gradient(135deg, #2454ff, #4f7cff); color: white; }
.profil-modal__btn--close { background: #f1f5f9; color: #475569; }

/* === INBOX === */
.profil-inbox { margin-top: 1rem; }
.inbox-empty { color: #94a3b8; font-style: italic; padding: 1rem; text-align: center; }
.inbox-msg { display: flex; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 10px; background: #f8fafc; margin-bottom: 0.5rem; }
.inbox-msg.is-unread { background: linear-gradient(90deg, rgba(36,84,255,0.1), transparent); border-left: 3px solid #2454ff; }
.inbox-msg__icon { font-size: 1.5rem; }
.inbox-msg__body { flex: 1; }
.inbox-msg__from { font-weight: 700; font-size: 0.9rem; }
.inbox-msg__text { color: #475569; font-size: 0.92rem; margin-top: 0.2rem; }
.inbox-msg__time { font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.inbox-msg__actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.inbox-msg__btn { background: white; border: 1px solid #cbd5e1; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* Compose message */
.compose-area textarea { width: 100%; min-height: 80px; padding: 0.7rem; border: 2px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 0.95rem; resize: vertical; }
.compose-area__quick { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.5rem 0; }
.compose-area__quick button { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; }

/* Cosmetic gallery */
.cosmetics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.cosmetic-item {
  background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 1rem 0.75rem; text-align: center;
  position: relative; transition: all 0.15s ease;
}
.cosmetic-item.is-locked { opacity: 0.45; }
.cosmetic-item.is-unlocked { border-color: #16a34a; background: #dcfce7; }
.cosmetic-item.is-equipped { border-color: #2454ff; background: linear-gradient(135deg,#dbeafe,#eff6ff); box-shadow: 0 0 0 3px rgba(36,84,255,0.15); }
.cosmetic-item__icon { font-size: 2rem; margin-bottom: 0.3rem; }
.cosmetic-item__name { font-weight: 700; font-size: 0.85rem; color: #0f172a; }
.cosmetic-item__req { font-size: 0.72rem; color: #64748b; margin-top: 0.2rem; }
.cosmetic-item__btn { background: #2454ff; color: white; border: none; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.75rem; cursor: pointer; margin-top: 0.4rem; font-weight: 600; }
.cosmetic-item__btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Inbox bell on header (XP badge) */
.ivann-xp-badge__inbox {
  position: absolute; top: -6px; right: -6px; background: #ef4444; color: white;
  border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
