/* --- Profile Arena --- */
.profile-arena {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.profile-arena-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transition: background-image 0.4s ease;
}
.profile-bg-switch {
    position: absolute;
    bottom: 0.7rem;
    left: 0.8rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    background: rgba(var(--bg-body-rgb), 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.profile-bg-switch:hover {
    background: rgba(var(--bg-body-rgb), 0.8);
    border-color: rgba(var(--gold-rgb), 0.55);
    transform: translateY(-1px);
}
.profile-bg-switch:active { transform: translateY(0); }
.profile-bg-switch-icon {
    width: 14px; height: 14px;
    display: inline-block;
    border: 1.5px solid rgba(var(--gold-rgb), 0.85);
    border-top-color: transparent;
    border-radius: 50%;
    position: relative;
}
.profile-bg-switch-icon::after {
    content: '';
    position: absolute;
    top: -3px; right: -2px;
    width: 0; height: 0;
    border-left: 4px solid rgba(var(--gold-rgb), 0.85);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.profile-bg-switch-label {
    color: rgba(var(--gold-rgb), 0.9);
    font-variant-numeric: tabular-nums;
}
.profile-arena-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center 60%, transparent 30%, rgba(var(--bg-body-rgb),0.85) 80%),
        linear-gradient(180deg, rgba(var(--bg-body-rgb),0.3) 0%, rgba(var(--bg-body-rgb),0.6) 100%);
    z-index: 1;
}

/* V/D float badge */
.profile-record-float {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(var(--bg-body-rgb),0.6);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--gold-rgb),0.15);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
}
.profile-record-float .wins { color: var(--success); }
.profile-record-float .record-sep { color: var(--gray-800); font-weight: 400; }
.profile-record-float .losses { color: var(--error); }

/* --- Showcase: two panels side by side --- */
.profile-showcase {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex: 1;
    min-height: 0;
    padding: 1rem 1.5rem;
}

/* =============================================
   PANEL GAUCHE : Carte Dragon
   ============================================= */
.profile-dragon-card {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(var(--gold-rgb), 0.15);
}

.dragon-card-inner {
    position: relative;
    background: rgba(var(--bg-body-rgb),0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.8rem 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.dragon-visual {
    position: relative;
    display: inline-block;
}
.dragon-visual-glow {
    position: absolute;
    top: -30px; left: -30px; right: -30px; bottom: -30px;
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
#dragon-preview {
    display: block;
       position: relative;
    z-index: 1;
    width: 375px;
    height: 375px;
}
.dragon-identity { text-align: center; }
.dragon-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 2.2rem;
    margin: 0 0 0.3rem;
    text-shadow: 0 0 15px rgba(var(--gold-rgb),0.3), 0 2px 4px rgba(var(--black-rgb),0.5);
}
.dragon-species-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.dragon-species-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--text-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dragon-species {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--text-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}
.dragon-lore {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    color: var(--text-brown);
    font-style: italic;
    margin: 0.2rem 0 0.5rem;
    line-height: 1.4;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.dragon-rarity-badge {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid;
    letter-spacing: 1px;
}
.dragon-rarity-corner {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}
#adv-diff-hint { display: none; }
.dragon-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.dragon-element-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}
.dragon-element-tag .icon-btn-sm {
    width: 32px;
    height: 32px;
}
.element-fire { background: rgba(var(--elem-fire-rgb),0.25); color: var(--elem-fire); }
.element-water { background: rgba(var(--blue-rgb),0.25); color: var(--blue); }
.element-earth { background: rgba(var(--elem-earth-rgb),0.25); color: var(--elem-earth); }
.element-lightning { background: rgba(var(--elem-lightning-rgb),0.25); color: var(--elem-lightning); }
.element-wind { background: rgba(var(--elem-wind-rgb),0.25); color: var(--elem-wind); }
.dragon-level-badge {
    color: var(--text-secondary);
    font-size: 1.45rem;
    font-family: 'Oswald', sans-serif;
    background: rgba(var(--white-rgb),0.06);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
}

/* XP bar inside dragon card */
.dragon-card-xp {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
}
.dragon-card-xp-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.dragon-card-xp-bar {
    flex: 1;
    height: 18px;
    background: rgba(var(--white-rgb),0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.dragon-card-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--stat-blue-dark), var(--stat-blue-light));
    border-radius: 4px;
    transition: width 0.6s ease;
}
.dragon-card-xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    text-shadow: 0 0 3px var(--black);
}

/* =============================================
   PANEL DROIT : Stats / Comp / Equip
   ============================================= */
/* =============================================
   PANEL DROIT
   ============================================= */
.profile-info-panel {
    background: rgba(var(--bg-body-rgb),0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(var(--gold-rgb),0.15);
    padding: 2.1rem;
}

/* Grille 6 icones stats decoratives 3x2 */
.pstat-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pstat-icon-badge {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--white-rgb),0.08);
    background: rgba(var(--white-rgb),0.03);
    position: relative;
    overflow: hidden;
}
.pstat-icon-badge img {
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(var(--black-rgb),0.6));
}
.pstat-icon-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    border-radius: 10px;
}
.pstat-badge-red    { border-color: rgba(var(--stat-red-rgb),0.3); }
.pstat-badge-red::before    { background: radial-gradient(circle, var(--stat-red), transparent 70%); }
.pstat-badge-orange { border-color: rgba(var(--stat-orange-rgb),0.3); }
.pstat-badge-orange::before { background: radial-gradient(circle, var(--stat-orange), transparent 70%); }
.pstat-badge-green  { border-color: rgba(var(--stat-green-rgb),0.3); }
.pstat-badge-green::before  { background: radial-gradient(circle, var(--stat-green), transparent 70%); }
.pstat-badge-blue   { border-color: rgba(var(--stat-blue-rgb),0.3); }
.pstat-badge-blue::before   { background: radial-gradient(circle, var(--stat-blue), transparent 70%); }
.pstat-badge-yellow { border-color: rgba(var(--stat-yellow-rgb),0.3); }
.pstat-badge-yellow::before { background: radial-gradient(circle, var(--stat-yellow), transparent 70%); }
.pstat-badge-cyan   { border-color: rgba(var(--stat-cyan-rgb),0.3); }
.pstat-badge-cyan::before   { background: radial-gradient(circle, var(--stat-cyan), transparent 70%); }

/* Stats barres lisses */
.pstat-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.pstat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pstat-row-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.pstat-name {
    min-width: 72px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pstat-track {
    flex: 1;
    height: 22px;
    background: rgba(var(--white-rgb),0.06);
    border-radius: 6px;
    overflow: visible;
    position: relative;
    position: relative;
}
.pstat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
    overflow: visible;
}
.pstat-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(var(--white-rgb),0.25), transparent);
    border-radius: 6px 6px 0 0;
}
.pstat-red    { background: linear-gradient(90deg, var(--stat-red-dark), var(--stat-red-light)); }
.pstat-orange { background: linear-gradient(90deg, var(--stat-orange-dark), var(--stat-orange-light)); }
.pstat-green  { background: linear-gradient(90deg, var(--stat-green-dark), var(--stat-green-light)); }
.pstat-blue   { background: linear-gradient(90deg, var(--stat-blue-dark), var(--stat-blue-light)); }
.pstat-yellow { background: linear-gradient(90deg, var(--stat-yellow-dark), var(--stat-yellow-light)); }
.pstat-cyan   { background: linear-gradient(90deg, var(--stat-cyan-dark), var(--stat-cyan-light)); }

/* Progressive glow — rarity colors: fragile → robuste → alpha → ancien → primordial */
.pstat-glow-1::before { /* 35%+ — fragile grey */
    content: '';
    position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 18px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--rarity-fragile-rgb),0.5), transparent 70%);
    filter: blur(2px); z-index: 2;
}
.pstat-glow-2::before { /* 50%+ — robuste blue */
    content: '';
    position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 20px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--blue-rgb),0.6), transparent 70%);
    filter: blur(2px); z-index: 2;
}
.pstat-glow-3::before { /* 70%+ — alpha purple */
    content: '';
    position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
    width: 12px; height: 22px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--rarity-alpha-rgb),0.7), transparent 70%);
    filter: blur(3px); z-index: 2;
}
.pstat-glow-4::before { /* 85%+ — ancien red */
    content: '';
    position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 24px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--orange-rgb),0.8), transparent 70%);
    filter: blur(3px); z-index: 2;
    animation: pstatGlow4 2s ease-in-out infinite;
}
.pstat-glow-5::before { /* 95%+ — primordial orange */
    content: '';
    position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 28px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--red-rgb),0.9), rgba(255,200,60,0.4) 50%, transparent 70%);
    filter: blur(3px); z-index: 2;
    animation: pstatGlow5 1.6s ease-in-out infinite;
}
@keyframes pstatGlow4 {
    0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
    50%      { opacity: 1; transform: translateY(-50%) scale(1.2); }
}
@keyframes pstatGlow5 {
    0%, 100% { opacity: 0.8; transform: translateY(-50%) scale(1); }
    50%      { opacity: 1; transform: translateY(-50%) scale(1.4); }
}

.pstat-val {
    position: absolute;
    left: 8px;
    top: 0;
    height: 100%;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 2;
    text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black), 0 0 4px rgba(var(--black-rgb),0.9);
    justify-content: flex-end;
    gap: 6px;
}
/* Sub-sections */
.profile-sub-section {
    padding-top: 0.7rem;
}
.profile-sub-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 8px;
    text-align: center;
}
.profile-slots-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.profile-slot {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    background: rgba(var(--white-rgb),0.03);
    border: 2px solid rgba(var(--white-rgb),0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.profile-slot:hover {
    border-color: rgba(var(--gold-rgb),0.3);
}
.comp-slot-passive {
    border-color: rgba(var(--gold-rgb),0.35);
    background: rgba(var(--gold-rgb),0.06);
}
.profile-slot .slot-ghost {
    width: 42px;
    height: 42px;
    opacity: 0.12;
    filter: grayscale(1);
}
.profile-slot .slot-label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Equipment slots filled state */
.profile-slot.equip-slot {
    position: relative;
    cursor: pointer;
}
.profile-slot.equip-slot-empty:hover {
    border-color: rgba(var(--gold-rgb),0.5);
    background: rgba(var(--gold-rgb),0.05);
}
.profile-slot.equip-slot-filled {
    background: linear-gradient(135deg, var(--bg-profile) 0%, var(--bg-profile-end) 100%);
    border-width: 2px;
}
.profile-slot.equip-slot-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--black-rgb),0.5);
}
.profile-slot.equip-slot-filled .slot-icon {
    width: 56px;
    height: 56px;
       filter: drop-shadow(0 2px 4px rgba(var(--black-rgb),0.6));
}
.profile-slot.equip-tier-1 { border-color: var(--rarity-fragile); box-shadow: 0 0 10px rgba(var(--rarity-fragile-rgb),0.25) inset; }
.profile-slot.equip-tier-2 { border-color: var(--rarity-robuste); box-shadow: 0 0 10px rgba(var(--rarity-robuste-rgb),0.3) inset, 0 0 8px rgba(var(--rarity-robuste-rgb),0.4); }
.profile-slot.equip-tier-3 { border-color: var(--rarity-alpha); box-shadow: 0 0 12px rgba(var(--rarity-alpha-rgb),0.35) inset, 0 0 10px rgba(var(--rarity-alpha-rgb),0.5); }
.profile-slot.equip-tier-4 { border-color: var(--rarity-ancien); box-shadow: 0 0 14px rgba(var(--rarity-ancien-rgb),0.4) inset, 0 0 12px rgba(var(--rarity-ancien-rgb),0.6); }
.profile-slot.equip-tier-5 { border-color: var(--rarity-primordial); box-shadow: 0 0 16px rgba(var(--rarity-primordial-rgb),0.45) inset, 0 0 16px rgba(var(--rarity-primordial-rgb),0.7); animation: aura-pulse-t5 2s ease-in-out infinite; }
.profile-slot .equip-tier-badge {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: rgba(var(--black-rgb),0.75);
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* 5-slots row : taille un poil reduite pour tenir sans scroll */
.profile-slots-row.profile-slots-row-5 {
    gap: 10px;
}
.profile-slots-row.profile-slots-row-5 .profile-slot {
    width: 72px;
    height: 72px;
}
.profile-slots-row.profile-slots-row-5 .profile-slot.equip-slot-filled .slot-icon {
    width: 46px;
    height: 46px;
}

/* Locked slot (niveau dragon insuffisant) */
.profile-slot.equip-slot-locked {
    background: repeating-linear-gradient(45deg, rgba(var(--black-rgb),0.4) 0 8px, rgba(var(--black-rgb),0.25) 8px 16px);
    border: 2px dashed rgba(var(--gold-rgb), 0.25);
    cursor: help;
    flex-direction: column;
    gap: 4px;
}
.profile-slot.equip-slot-locked:hover {
    border-color: rgba(var(--gold-rgb), 0.5);
    background: repeating-linear-gradient(45deg, rgba(var(--gold-rgb),0.08) 0 8px, rgba(var(--black-rgb),0.25) 8px 16px);
}
.profile-slot.equip-slot-locked .slot-lock-svg {
    color: rgba(var(--gold-rgb), 0.55);
    filter: drop-shadow(0 1px 2px rgba(var(--black-rgb),0.6));
}
.profile-slot.equip-slot-locked .equip-lock-level {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(var(--black-rgb),0.7);
}

/* Empty slot : numero du slot en watermark */
.profile-slot .slot-empty-num {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: rgba(var(--gold-rgb), 0.12);
    letter-spacing: 1px;
    user-select: none;
}

/* Bonus percent badge */
.profile-slot .equip-bonus-badge {
    position: absolute;
    top: 3px;
    left: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--stat-positive);
    background: rgba(0, 30, 0, 0.82);
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid rgba(125, 255, 125, 0.35);
    text-shadow: 0 0 4px rgba(125, 255, 125, 0.5);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Doublon : tint rouge sur le bonus pour signaler la penalite */
.profile-slot.equip-duplicate .equip-bonus-badge {
    color: var(--stat-negative);
    border-color: rgba(255, 120, 80, 0.4);
    background: rgba(40, 0, 0, 0.85);
    text-shadow: 0 0 4px rgba(255, 120, 80, 0.5);
}
.profile-slot.equip-duplicate::after {
    content: '!';
    position: absolute;
    top: 3px;
    right: 6px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--stat-negative);
    background: rgba(40,0,0,0.85);
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 120, 80, 0.5);
}

/* Flash message au clic sur un slot verrouille */
.profile-slot .slot-flash {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 28, 0.95);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(var(--black-rgb),0.6);
    animation: slotFlashFade 1.8s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}
@keyframes slotFlashFade {
    0%   { opacity: 0; transform: translate(-50%, 4px); }
    15%  { opacity: 1; transform: translate(-50%, 0); }
    75%  { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* Stats bonus indicator */
.pstat-bonus {
    color: var(--stat-positive);
    font-weight: 700;
    font-size: 0.85em;
    text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black), 0 0 4px rgba(var(--black-rgb),0.9);
}

/* Inventory equipped badge */
.inv-item.inv-equipped {
    box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(var(--gold-rgb),0.3);
}
.inv-equipped-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Equip slot picker (inventory → pick slot 1-4) */
.equip-slot-picker {
    background: var(--bg-field);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(var(--black-rgb),0.7);
    min-width: 160px;
}
.equip-slot-picker-title {
    font-family: 'Georgia', serif;
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}
.equip-slot-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.equip-slot-picker-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-row);
    color: var(--gold);
    border: 1px solid var(--gray-800);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1;
}
.equip-slot-picker-btn:hover:not(.locked) {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}
.equip-slot-picker-btn.locked {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-placeholder);
    background: var(--bg-profile-end);
    border-style: dashed;
}
.equip-slot-picker-btn.occupied {
    border-color: var(--border-input);
    background: var(--bg-card);
}
.equip-slot-picker-btn.occupied img {
   }
.equip-slot-picker-btn .picker-lock {
    display: block;
    font-size: 8px;
    color: var(--text-sub);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* Scale picker (profile slot → pick scale from inventory) */
.scale-picker {
    background: var(--bg-field);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 12px;
    width: 300px;
    max-height: 360px;
    box-shadow: 0 10px 30px rgba(var(--black-rgb),0.8);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.scale-picker-title {
    font-family: 'Georgia', serif;
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}
.scale-picker-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.scale-picker-empty {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 16px 0;
}
.scale-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-profile);
    border: 1px solid var(--gray-900);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.scale-picker-item:hover {
    background: var(--bg-row);
    border-color: var(--gold);
}
.scale-picker-item img {
    width: 36px;
    height: 36px;
   }
.scale-picker-info { flex: 1; min-width: 0; }
.scale-picker-name {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scale-picker-sub {
    color: var(--stat-positive);
    font-size: 11px;
    margin-top: 2px;
}

/* XP Bar */
.xp-bar-container {
    background: var(--bg-card);
    border-radius: 6px;
    height: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
}
.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 5px;
    transition: width 0.5s;
}
.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: var(--white);
    text-shadow: 0 0 3px var(--black);
    font-family: 'Roboto Condensed', sans-serif;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem;
    background: rgba(42, 42, 74, 0.4);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.icon-stat {
    width: 28px;
    height: 28px;
   }
.stat-name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Stats secondaires */
.stats-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 0.8rem;
}
.stat-secondary {
    padding: 0.4rem;
}

/* Record W/L */
.record {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.wins { color: var(--success); font-weight: 600; }
.losses { color: var(--error); font-weight: 600; }
.fights-left { color: var(--gray-600); font-size: 0.75rem; }

