/* ===== TRAINER CARD STYLE PROFILE ===== */
.profile-trainer-card {
  max-width: 700px;
  margin: 0 auto 24px;
  background: linear-gradient(145deg, rgba(45, 30, 60, 0.95) 0%, rgba(30, 20, 45, 0.98) 50%, rgba(20, 15, 35, 0.99) 100%);
  border-radius: 24px;
  border: 2px solid rgba(183, 140, 255, 0.25);
  box-shadow: 
    0 12px 48px rgba(0,0,0,0.5),
    0 0 60px rgba(183,140,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.profile-trainer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,140,255,0.4), transparent);
}

/* Header do card */
.trainer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(183,140,255,0.08);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(183,140,255,0.15);
}

.trainer-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.trainer-card-id {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  font-family: monospace;
  text-shadow: 
    1px 1px 0 rgba(0,0,0,0.3),
    -1px -1px 0 rgba(255,255,255,0.1);
}

/* ID com hover que vira botão editar */
.trainer-card-id-hover {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  font-family: monospace;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
  text-shadow: 
    1px 1px 0 rgba(0,0,0,0.3),
    -1px -1px 0 rgba(255,255,255,0.1);
}

.trainer-card-id-hover .id-text {
  color: rgba(255,255,255,0.5);
  transition: opacity 0.2s ease;
}

.trainer-card-id-hover .edit-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.trainer-card-id-hover:hover {
  background: rgba(183,140,255,0.1);
  border-color: rgba(183,140,255,0.3);
}

.trainer-card-id-hover:hover .id-text {
  opacity: 0;
}

.trainer-card-id-hover:hover .edit-text {
  opacity: 1;
}

/* Grid principal do card */
.trainer-card-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 600px) {
  .trainer-card-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Seção do Avatar - Estilo Discord com chapéu acima */
.trainer-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trainer-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

/* Chapéu posicionado acima do avatar (estilo Discord) */
.trainer-hat {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  pointer-events: none;
}

.trainer-hat-float {
  animation: hatFloat 2s ease-in-out infinite;
}

@keyframes hatFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Avatar base */
.trainer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a2a4a 0%, #2a1a3a 100%);
  border: 3px solid rgba(183,140,255,0.3);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}

.trainer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aura effects no avatar */
.trainer-avatar[data-aura="neon"] {
  box-shadow: 
    0 0 30px rgba(124,139,255,0.6),
    0 0 60px rgba(124,139,255,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
  animation: trainerAuraPulse 2s ease-in-out infinite;
}

.trainer-avatar[data-aura="gold"] {
  box-shadow: 
    0 0 30px rgba(255,211,106,0.6),
    0 0 60px rgba(255,184,107,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
}

.trainer-avatar[data-aura="diamond"] {
  box-shadow: 
    0 0 30px rgba(134,231,255,0.6),
    0 0 60px rgba(134,231,255,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
}

.trainer-avatar[data-aura="crystal"] {
  box-shadow: 
    0 0 30px rgba(200,162,255,0.6),
    0 0 60px rgba(200,162,255,0.3),
    inset 0 2px 4px rgba(255,255,255,0.1);
}

.trainer-avatar[data-aura="divine"] {
  box-shadow: 
    0 0 40px rgba(255,255,255,0.8),
    0 0 80px rgba(183,140,255,0.5),
    inset 0 2px 4px rgba(255,255,255,0.1);
  animation: trainerDivineGlow 3s ease-in-out infinite;
}

@keyframes trainerAuraPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(124,139,255,0.6), 0 0 60px rgba(124,139,255,0.3), inset 0 2px 4px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 50px rgba(124,139,255,0.8), 0 0 80px rgba(124,139,255,0.5), inset 0 2px 4px rgba(255,255,255,0.5); }
}

@keyframes trainerDivineGlow {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(255,255,255,0.8), 0 0 80px rgba(183,140,255,0.5), inset 0 2px 4px rgba(255,255,255,0.5);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 60px rgba(255,255,255,1), 0 0 100px rgba(183,140,255,0.7), inset 0 2px 4px rgba(255,255,255,0.5);
    filter: brightness(1.1);
  }
}

/* Animações no avatar */
.trainer-avatar[data-anim="float"] {
  animation: trainerFloat 3s ease-in-out infinite;
}

.trainer-avatar[data-anim="pulse"] {
  animation: trainerPulse 2s ease-in-out infinite;
}

.trainer-avatar[data-anim="shake"] {
  animation: trainerShake 0.5s ease-in-out infinite;
}

.trainer-avatar[data-anim="spin"] {
  animation: trainerSpin 4s linear infinite;
}

.trainer-avatar[data-anim="bounce"] {
  animation: trainerBounce 1s ease-in-out infinite;
}

@keyframes trainerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes trainerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes trainerShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes trainerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes trainerBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(0.95) translateY(5px); }
}

/* Badge de rank */
.trainer-rank-badge {
  background: linear-gradient(135deg, rgba(183,140,255,0.2) 0%, rgba(124,139,255,0.15) 100%);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(183,140,255,0.3);
  box-shadow: 0 2px 12px rgba(183,140,255,0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Seção de info */
.trainer-info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.trainer-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trainer-info-row:last-child {
  border-bottom: none;
}

.trainer-info-label {
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  min-width: 80px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.trainer-info-value {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  color: rgba(255,255,255,0.9);
}

.trainer-info-value.about-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  line-height: 1.5;
  max-width: 400px;
}

.trainer-stars {
  color: #ffd700;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Controles DEV para testar insígnias */
.dev-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(238,90,36,0.4);
  z-index: 100;
}

.dev-badge-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid rgba(255,107,107,0.2);
}

.dev-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.dev-btn.evolve {
  border-color: rgba(76,175,80,0.4);
  background: rgba(76,175,80,0.15);
}

.dev-btn.evolve:hover {
  background: rgba(76,175,80,0.25);
}

.dev-btn.devolve {
  border-color: rgba(244,67,54,0.4);
  background: rgba(244,67,54,0.15);
}

.dev-btn.devolve:hover {
  background: rgba(244,67,54,0.25);
}

.dev-btn.reset {
  border-color: rgba(255,193,7,0.4);
  background: rgba(255,193,7,0.15);
}

.dev-btn.reset:hover {
  background: rgba(255,193,7,0.25);
}

/* Contadores de álbuns dentro do card */
.trainer-album-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 600px) {
  .trainer-album-counters {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trainer-counter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.trainer-counter-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.trainer-counter-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.trainer-counter-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Seção de Badges - MUITO menores */
.trainer-badges-section {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.trainer-badges-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  text-align: center;
}

/* Grid de badges - BEM pequenos */
.trainer-badges-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Badges individuais - TAMANHO REDUZIDO BRUSCAMENTE */
.trainer-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.trainer-badge:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Texturas dos badges */
.trainer-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.3) 0%, transparent 40%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.trainer-badge::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 20%;
  height: 12%;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* Cores dos badges por tier - TEXTURAS ÚNICAS */
.trainer-badge.badge-none { 
  background: linear-gradient(145deg, #3a3a4a, #2a2a3a) !important;
  border: 2px solid #1a1a2a !important;
  opacity: 0.4;
}

.trainer-badge.badge-madeira { 
  background: 
    repeating-linear-gradient(45deg, #8B4513 0px, #8B4513 2px, #A0522D 2px, #A0522D 4px),
    linear-gradient(145deg, #8B4513, #CD853F) !important;
  border: 2px solid #654321 !important;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.trainer-badge.badge-pedra { 
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.2) 0%, transparent 20%),
    linear-gradient(145deg, #808080, #A9A9A9) !important;
  border: 2px solid #606060 !important;
}

.trainer-badge.badge-ferro { 
  background: 
    linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.2) 100%),
    linear-gradient(145deg, #4a5568, #718096) !important;
  border: 2px solid #2d3748 !important;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.3);
}

.trainer-badge.badge-ouro { 
  background: 
    linear-gradient(145deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
  border: 2px solid #B8860B !important;
  box-shadow: 0 0 15px rgba(255,215,0,0.4), inset 0 1px 2px rgba(255,255,255,0.5);
  animation: goldShine 3s ease-in-out infinite;
}

.trainer-badge.badge-diamante { 
  background: 
    linear-gradient(145deg, #00CED1, #40E0D0, #AFEEEE) !important;
  border: 2px solid #008B8B !important;
  box-shadow: 0 0 20px rgba(64,224,208,0.5), inset 0 0 10px rgba(255,255,255,0.3);
  animation: diamondSparkle 2s ease-in-out infinite;
}

.trainer-badge.badge-obsidiana { 
  background: 
    linear-gradient(145deg, #1a1a2e, #16213e, #0f3460) !important;
  border: 2px solid #0a0a0a !important;
  box-shadow: 0 4px 20px rgba(138,43,226,0.5), 0 0 30px rgba(75,0,130,0.3);
  animation: obsidianPulse 3s ease-in-out infinite;
}

.trainer-badge.badge-radium { 
  background: 
    linear-gradient(145deg, #39ff14 0%, #00ff00 50%, #7fff00 100%) !important;
  border: 2px solid #39ff14 !important;
  box-shadow: 0 0 20px rgba(57,255,20,0.8), inset 0 0 10px rgba(57,255,20,0.3) !important;
}

.trainer-badge.badge-divino { 
  background: 
    linear-gradient(145deg, #ffffff, #f0f0f0, #fffacd) !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(212,175,55,0.5);
  animation: divineBadgeGlow 2s ease-in-out infinite;
}

@keyframes badgeDivineGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.8), inset 0 0 5px rgba(212,175,55,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,255,255,1), inset 0 0 10px rgba(212,175,55,0.8); }
}

@keyframes goldShine {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(255,215,0,0.4), inset 0 1px 2px rgba(255,255,255,0.5);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 25px rgba(255,215,0,0.7), inset 0 1px 4px rgba(255,255,255,0.8);
    filter: brightness(1.1);
  }
}

@keyframes diamondSparkle {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(64,224,208,0.5), inset 0 0 10px rgba(255,255,255,0.3);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 35px rgba(64,224,208,0.8), inset 0 0 20px rgba(255,255,255,0.6);
    filter: brightness(1.15);
  }
}

@keyframes obsidianPulse {
  0%, 100% { 
    box-shadow: 0 4px 20px rgba(138,43,226,0.5), 0 0 30px rgba(75,0,130,0.3);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 4px 30px rgba(138,43,226,0.7), 0 0 50px rgba(75,0,130,0.5);
    filter: brightness(1.1);
  }
}

@keyframes simpleGlow {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(0,255,0,0.8),
      inset 0 0 10px rgba(0,255,0,0.3);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(0,255,0,1),
      inset 0 0 15px rgba(0,255,0,0.5);
  }
}

@keyframes divineBadgeGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(212,175,55,0.5); }
  50% { box-shadow: 0 0 50px rgba(255,255,255,1), 0 0 100px rgba(212,175,55,0.8); }
}

/* Tooltip nos badges */
.trainer-badge .badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(145deg, #2a1a3a, #1a0a2a);
  border: 1px solid rgba(183,140,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 100px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.trainer-badge:hover .badge-tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.badge-tooltip-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.badge-tooltip-tier {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.badge-tooltip-count {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
}

/* Botão de editar - reposicionado */
.trainer-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(183,140,255,0.15);
  border: 1px solid rgba(183,140,255,0.3);
  border-radius: 10px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.trainer-edit-btn:hover {
  background: rgba(183,140,255,0.25);
  border-color: rgba(183,140,255,0.5);
  transform: translateY(-2px);
}

/* ===== RESUMO DOS ÁLBUNS - ABAIXO DO CARD (REMOVIDO, AGORA DENTRO DO CARD) ===== */
.album-summary-section {
  display: none;
}

/* ===== EDIT PROFILE MODAL - NOVO DESIGN ===== */
.edit-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-profile-container {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border-radius: 24px;
  border: 3px solid #4a5568;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalEnter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.edit-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 2px solid #4a5568;
  background: rgba(0,0,0,0.2);
}

.edit-profile-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.edit-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.edit-close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.edit-profile-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px;
}

@media (max-width: 768px) {
  .edit-profile-body {
    grid-template-columns: 1fr;
  }
}

/* Preview do avatar na edição */
.edit-avatar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-avatar-preview-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  align-self: center;
}

.edit-hat {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 60px;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.edit-avatar-preview {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e0d0 0%, #d0c8b8 100%);
  border: 4px solid #4a5568;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: #2d3748;
  overflow: hidden;
}

.edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inputs */
.edit-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-input-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
}

.edit-input {
  background: rgba(0,0,0,0.3);
  border: 2px solid #4a5568;
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  width: 100%;
  transition: all 0.3s ease;
}

.edit-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.4);
}

.edit-textarea {
  background: rgba(0,0,0,0.3);
  border: 2px solid #4a5568;
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s ease;
}

.edit-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.4);
}

/* Grid de cosméticos */
.cosmetics-section {
  border-top: 2px solid #4a5568;
  padding-top: 24px;
  margin-top: 8px;
}

.cosmetics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cosmetics-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cosmetics-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.cosmetics-category {
  margin-bottom: 24px;
}

.cosmetics-category-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .cosmetics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cosmetic-item {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
  padding: 8px;
  background: rgba(255,255,255,0.05);
}

.cosmetic-item:hover {
  transform: translateY(-4px);
}

.cosmetic-item.selected {
  border-color: var(--accent);
  background: rgba(183,140,255,0.2);
}

.cosmetic-item.unlocked:hover {
  box-shadow: 0 8px 24px rgba(183,140,255,0.2);
}

.cosmetic-item.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.cosmetic-item.locked .cosmetic-icon {
  filter: grayscale(100%);
}

.cosmetic-icon {
  font-size: 32px;
  line-height: 1;
}

.cosmetic-name {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.2;
}

.cosmetic-lock {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 12px;
  opacity: 0.7;
}

/* Save button */
.edit-save-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  width: 100%;
}

.edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183,140,255,0.3);
}

/* Album grid no perfil */
.profile-album-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.profile-filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-filter-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.profile-filter-btn.active {
  background: rgba(183,140,255,0.2);
  border-color: rgba(183,140,255,0.4);
  color: var(--accent);
}

/* Animações de entrada */
.trainer-card {
  animation: cardEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-card-container {
  max-width: 900px;
  margin: 0 auto 24px;
}

.profile-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: cardEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-card-header {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(183,140,255,0.08) 0%, rgba(124,139,255,0.04) 50%, transparent 100%);
}

@media (max-width: 768px) {
  .profile-card-header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
}

/* Avatar Section */
.profile-avatar-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-avatar-main {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  box-shadow: 0 8px 32px rgba(183,140,255,0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-avatar-main:hover {
  transform: scale(1.05);
}

.profile-avatar-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aura Effects */
.profile-avatar-main[data-aura="neon"] {
  box-shadow: 0 0 40px rgba(124,139,255,0.5), 0 0 80px rgba(183,140,255,0.3);
  animation: auraPulse 2s ease-in-out infinite;
}

.profile-avatar-main[data-aura="gold"] {
  box-shadow: 0 0 40px rgba(255,211,106,0.5), 0 0 80px rgba(255,184,107,0.3);
}

.profile-avatar-main[data-aura="diamond"] {
  box-shadow: 0 0 40px rgba(134,231,255,0.5), 0 0 80px rgba(134,231,255,0.3);
}

.profile-avatar-main[data-aura="divine"] {
  box-shadow: 0 0 60px rgba(255,255,255,0.6), 0 0 100px rgba(183,140,255,0.4);
  animation: divineGlow 3s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(124,139,255,0.5), 0 0 80px rgba(183,140,255,0.3); }
  50% { box-shadow: 0 0 60px rgba(124,139,255,0.7), 0 0 100px rgba(183,140,255,0.5); }
}

@keyframes divineGlow {
  0%, 100% { 
    box-shadow: 0 0 60px rgba(255,255,255,0.6), 0 0 100px rgba(183,140,255,0.4);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 80px rgba(255,255,255,0.8), 0 0 120px rgba(183,140,255,0.6);
    filter: brightness(1.1);
  }
}

/* Hat Positioning */
.profile-avatar-main[data-hat="cap"]::after {
  content: '🧢';
  position: absolute;
  top: -10px;
  font-size: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transform: rotate(-5deg);
}

.profile-avatar-main[data-hat="beanie"]::after {
  content: '🎩';
  position: absolute;
  top: -15px;
  font-size: 38px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.profile-avatar-main[data-hat="crown"]::after {
  content: '👑';
  position: absolute;
  top: -20px;
  font-size: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  animation: crownShine 2s ease-in-out infinite;
}

.profile-avatar-main[data-hat="halo"]::after {
  content: '👼';
  position: absolute;
  top: -15px;
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(255,255,200,0.8));
}

@keyframes crownShine {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.1); }
}

/* Animation Effects */
.profile-avatar-main[data-anim="float"] {
  animation: avatarFloat 3s ease-in-out infinite;
}

.profile-avatar-main[data-anim="pulse"] {
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Rank Badge */
.profile-rank-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Info Section */
.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.profile-name-lg {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.profile-handle-lg {
  font-size: 14px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-handle-lg span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-bio-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 400px;
}

/* Stats Row */
.profile-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .profile-stat-item {
    align-items: center;
  }
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Actions */
.profile-actions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .profile-actions-section {
    align-items: center;
    width: 100%;
  }
}

.profile-edit-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-edit-btn:hover {
  background: rgba(183,140,255,0.15);
  border-color: rgba(183,140,255,0.3);
  transform: translateY(-2px);
}

/* Badges Section */
.profile-badges-section {
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.profile-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 16px;
}

/* Pokemon-style Badges Grid */
.pokemon-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .pokemon-badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .pokemon-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Badge */
.pokemon-badge {
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.pokemon-badge:hover {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.2);
}

.pokemon-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.pokemon-badge::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 15%;
  width: 25%;
  height: 15%;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: rotate(-30deg);
  filter: blur(2px);
}

/* Badge Types - Wood */
.trainer-badge.badge-wood {
  background: linear-gradient(145deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
  border: 3px solid #654321;
}

.trainer-badge.badge-wood .badge-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Badge Types - Stone */
.trainer-badge.badge-stone {
  background: linear-gradient(145deg, #696969 0%, #808080 50%, #A9A9A9 100%);
  border: 3px solid #4a4a4a;
}

/* Badge Types - Iron */
.trainer-badge.badge-iron {
  background: linear-gradient(145deg, #2C3E50 0%, #4a5568 50%, #718096 100%);
  border: 3px solid #1a202c;
}

/* Badge Types - Gold */
.trainer-badge.badge-gold {
  background: linear-gradient(145deg, #B8860B 0%, #FFD700 50%, #FFA500 100%);
  border: 3px solid #8B6914;
}

/* Badge Types - Diamond */
.trainer-badge.badge-diamond {
  background: linear-gradient(145deg, #00CED1 0%, #40E0D0 50%, #AFEEEE 100%);
  border: 3px solid #008B8B;
}

/* Badge Types - Obsidian */
.trainer-badge.badge-obsidian {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 3px solid #0a0a0a;
  box-shadow: 0 4px 20px rgba(75,0,130,0.4);
}


/* Badge Types - Divine */
.trainer-badge.badge-divine {
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
  border: 3px solid #d4af37;
  animation: divineBadgeGlow 3s ease-in-out infinite;
}

@keyframes divineBadgeGlow {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(255,255,255,0.6), inset 0 0 20px rgba(212,175,55,0.3);
  }
  50% { 
    box-shadow: 0 0 50px rgba(255,255,255,0.9), inset 0 0 30px rgba(212,175,55,0.5);
  }
}

/* Badge Types - No Badge */
.trainer-badge.badge-none {
  background: linear-gradient(145deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
  border: 3px solid #1a202c;
  opacity: 0.5;
}

.trainer-badge.badge-none .badge-icon {
  filter: grayscale(100%);
}

/* Badge Tooltip */
.pokemon-badge .badge-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 160px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.pokemon-badge:hover .badge-tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.badge-tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.badge-tooltip-tier {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.badge-tooltip-count {
  font-size: 11px;
  color: var(--text3);
}

/* Album Section */
.profile-album-section {
  padding: 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.profile-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.profile-filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-filter-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.profile-filter-btn.active {
  background: rgba(183,140,255,0.2);
  border-color: rgba(183,140,255,0.4);
  color: var(--accent);
}

/* ===== EDIT PROFILE MODAL - NEW DESIGN ===== */
.edit-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-profile-container {
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(30px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modalEnter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.edit-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  border-radius: 32px 32px 0 0;
}

.edit-profile-title-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edit-profile-subtitle {
  font-size: 14px;
  color: var(--text2);
  margin-top: 4px;
  opacity: 0.8;
}

.edit-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.edit-close-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

.edit-profile-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px;
}

@media (max-width: 768px) {
  .edit-profile-body {
    grid-template-columns: 1fr;
  }
}

/* Left Column - Avatar */
.edit-avatar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-avatar-preview {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(183,140,255,0.3);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-avatar-input-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text3);
}

.edit-avatar-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  transition: all 0.3s ease;
}

.edit-avatar-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(183,140,255,0.05);
}

/* Right Column - Form */
.edit-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  opacity: 0.9;
}

.edit-input, .edit-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.edit-input:focus, .edit-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(183,140,255,0.1);
}

.edit-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.edit-save-btn, .edit-cancel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.edit-save-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(183,140,255,0.3);
}

.edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183,140,255,0.4);
}

.edit-cancel-btn {
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.1);
}

.edit-cancel-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.btn-icon {
  font-size: 16px;
}

.btn-text {
  font-weight: 600;
}

/* Hat Position Control */
.hat-position-control {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.hat-position-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hat-position-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.position-btn {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.position-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.position-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(183,140,255,0.4);
}

.position-icon {
  font-size: 20px;
}

.hat-position-note {
  font-size: 12px;
  color: var(--text2);
  opacity: 0.7;
  text-align: center;
  font-style: italic;
}

/* Avatar Decorations - Removed complex borders, keeping only basic structure */

/* Base das decorações - REMOVIDO, apenas placeholder */
.avatar-decoration {
  display: none; /* Decorações desabilitadas por enquanto */
}

.decoration-none {
  display: none;
}

/* Cosmetics Grid */
.edit-cosmetics-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  margin-top: 8px;
}

.edit-cosmetics-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-cosmetics-subtitle {
  font-size: 12px;
  color: var(--text3);
  font-weight: 400;
}

.cosmetics-category {
  margin-bottom: 24px;
}

.cosmetics-category-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text3);
  margin-bottom: 12px;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .cosmetics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cosmetic-item {
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
  padding: 8px;
}

.cosmetic-item:hover {
  transform: translateY(-4px);
}

.cosmetic-item.selected {
  border-color: var(--accent);
  background: rgba(183,140,255,0.15);
}

/* Unlocked Cosmetic */
.cosmetic-item.unlocked {
  background: rgba(255,255,255,0.08);
}

.cosmetic-item.unlocked:hover {
  background: rgba(183,140,255,0.2);
  box-shadow: 0 8px 24px rgba(183,140,255,0.2);
}

/* Locked Cosmetic */
.cosmetic-item.locked {
  background: rgba(255,255,255,0.02);
  opacity: 0.5;
  cursor: not-allowed;
}

.cosmetic-item.locked .cosmetic-icon {
  filter: grayscale(100%);
}

.cosmetic-icon {
  font-size: 28px;
  line-height: 1;
}

.cosmetic-name {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  line-height: 1.2;
}

.cosmetic-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
  opacity: 0.6;
}

/* Save Button */
.edit-save-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #7c8bff 100%);
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  width: 100%;
}

.edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183,140,255,0.3);
}

.edit-save-btn:active {
  transform: translateY(0);
}
