/* CSS específico para o painel do jogador */

/* Hero Section do Painel */
.painel-main {
    padding-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(30, 20, 50, 0.95));
}

.painel-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg'); /* Ajustado caminho da imagem */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
}

.painel-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.7) 70%);
}

.painel-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.avatar {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d4af37;
    cursor: pointer;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 300px;
}

.user-name {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.user-title {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-since {
    color: #cccccc;
    font-size: 1rem;
}

.user-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conteúdo do Painel */
.painel-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.painel-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Aba Personagens */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.character-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.character-card.epic::before {
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
}

.character-card.rare::before {
    background: linear-gradient(90deg, transparent, #4834d4, transparent);
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.character-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #d4af37;
    object-fit: cover;
}

.character-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #ffffff;
}

.character-info {
    text-align: center;
    margin-bottom: 20px;
}

.character-info h3 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.character-class {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-server {
    color: #cccccc;
    margin-bottom: 15px;
}

.character-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.character-stats .stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.character-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.character-card.create-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    cursor: pointer;
}

.create-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.character-card.create-new:hover .create-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2));
}

/* Loja Premium */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.category-icon {
    font-size: 1.1rem;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.shop-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.shop-item:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.shop-item.featured {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

.item-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-image {
    margin-bottom: 20px;
}

.item-image img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    border: 2px solid #d4af37;
    object-fit: cover;
}

.item-info h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.item-info p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.item-benefits {
    list-style: none;
    margin-bottom: 20px;
}

.item-benefits li {
    color: #00ff88;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.item-benefits li::before {
    content: '✓ ';
    color: #00ff88;
    font-weight: bold;
}

.item-price {
    margin-bottom: 20px;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}

.price {
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Inventário */
.inventory-container {
    margin-top: 30px;
}

.inventory-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.inventory-slot {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inventory-slot.empty {
    background: rgba(0, 0, 0, 0.2);
    border-style: dashed;
}

.inventory-slot.filled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.inventory-slot.epic {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.inventory-slot.rare {
    border-color: #4834d4;
    box-shadow: 0 0 10px rgba(72, 52, 212, 0.3);
}

.inventory-slot.uncommon {
    border-color: #ffa502;
    box-shadow: 0 0 10px rgba(255, 165, 2, 0.3);
}

.inventory-slot.common {
    border-color: #cccccc;
}

.inventory-slot:hover {
    transform: scale(1.05);
    border-color: #d4af37;
}

.inventory-slot img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.item-quantity {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 700;
}

.item-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 1px solid #d4af37;
}

.inventory-slot:hover .item-tooltip {
    opacity: 1;
}

/* Conquistas */
.achievements-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.achievement-stat {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
}

.stat-label {
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.achievement {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.achievement:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.achievement.completed {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
}

.achievement.in-progress {
    border-color: #ffa502;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.1), rgba(255, 165, 2, 0.05));
}

.achievement.locked {
    border-color: #666;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(102, 102, 102, 0.05));
    opacity: 0.7;
}

.achievement-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
}

.achievement-info p {
    color: #cccccc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.achievement-date,
.achievement-requirement {
    color: #888;
    font-size: 0.9rem;
}

.achievement-progress {
    margin-top: 10px;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    background: linear-gradient(90deg, #ffa502, #ff6348);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #ffa502;
    font-size: 0.9rem;
    font-weight: 600;
}

.achievement-reward {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Configurações */
.settings-container {
    margin-top: 30px;
}

.settings-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group label {
    color: #cccccc;
    font-weight: 600;
    min-width: 150px;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-option {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: #cccccc;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-color: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.option-desc {
    font-size: 0.9rem;
    color: #888;
}

.security-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: #ffffff;
    border: 2px solid #ff4757;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .painel-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .characters-grid,
    .shop-items {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .inventory-slot {
        width: 60px;
        height: 60px;
    }
    
    .inventory-slot img {
        width: 45px;
        height: 45px;
    }
    
    .achievement {
        flex-direction: column;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group label {
        min-width: auto;
    }
    
    .security-actions {
        flex-direction: column;
    }
}

/* Ajustes para o avatar, agora que é apenas um elemento img */
.avatar {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    padding-top: 60px;
    display: flex; /* Para centralizar o conteúdo do modal */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
}

.modal-content {
    background-color: #2a2a3a; /* Dark background for the modal */
    margin: auto; /* Remove margin auto top/bottom, use flex align-items */
    padding: 30px;
    border: 1px solid #d4af37;
    border-radius: 15px;
    width: 90%; /* Ajuste para ter mais espaço em telas pequenas */
    max-width: 450px; /* Reduzido para ficar mais compacto */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.3s ease-out; /* Adiciona animação de entrada */
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h2 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Adicionado sombra ao texto */
}

.modal-content p {
    color: #cccccc;
    margin-bottom: 0px;
    font-size: 1rem;
}


.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #d4af37;
    text-decoration: none;
}

.modal .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: 600;
}

.modal .form-group input[type="text"],
.modal .form-group input[type="password"],
.modal .form-group select {
    width: calc(100% - 20px); /* Ajuste para padding */
    padding: 12px 15px; /* Aumentado o padding */
    border: 1px solid #555;
    border-radius: 8px; /* Borda mais arredondada */
    background-color: #3a3a4a;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box; /* Garante que padding não aumenta a largura total */
}

.modal .form-group input[type="text"]:focus,
.modal .form-group input[type="password"]:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.modal .btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a; /* Texto mais escuro para contraste */
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase; /* Mais impactante */
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.character-password-container {
    display: inline;
    align-items: center;
    gap: 5px;
}

.character-password {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    color: #ccc;
}

.toggle-password {
    cursor: pointer;
    color: #d4af37;
    font-size: 0.8em;
}

.character-level-display {
    font-weight: bold;
    color: #d4af37;
}

/* Estilos para a seção de configurações */
.settings-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.settings-form h3 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

/* Ajustes no form-group para configurações, para não conflitarem com o modal */
.settings-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 8px;
}

.settings-form .form-group label {
    color: #cccccc;
    font-weight: 600;
    margin-bottom: 0;
    min-width: auto;
}

.settings-form .form-group input[type="email"],
.settings-form .form-group input[type="password"],
.settings-form .form-group input[type="text"] {
    padding: 12px 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.settings-form .form-group input[type="email"]:focus,
.settings-form .form-group input[type="password"]:focus,
.settings-form .form-group input[type="text"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.settings-form .btn-primary {
    width: auto;
    align-self: flex-start;
    margin-top: 10px;
}

/* Estilos para o upload de avatar */
.avatar-upload-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.avatar-upload-group input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4834d4, #6860e0);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #6860e0, #4834d4);
}

.avatar-upload-group small {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}

/* Estilos para o modal de criação de personagem */
#createCharacterModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#createCharacterModal .modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(40, 30, 60, 0.95));
    margin: auto; /* Centraliza via flexbox do .modal */
    padding: 0;
    border: 2px solid #d4af37;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.3s ease-out;
}

#createCharacterModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}

#createCharacterModal .modal-header h2 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#createCharacterModal .close-button {
    color: #cccccc;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

#createCharacterModal .close-button:hover {
    color: #d4af37;
    transform: scale(1.1);
}

#createCharacterModal .modal-form {
    padding: 30px;
}

#createCharacterModal .modal-form .form-group {
    margin-bottom: 20px;
}

#createCharacterModal .modal-form .form-group label {
    display: block;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

#createCharacterModal .modal-form .form-group input,
#createCharacterModal .modal-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#createCharacterModal .modal-form .form-group input:focus,
#createCharacterModal .modal-form .form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

#createCharacterModal .modal-form .form-group input::placeholder {
    color: #888;
}

#createCharacterModal .modal-form .form-group select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

#createCharacterModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

#createCharacterModal .modal-footer .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#createCharacterModal .modal-footer .btn-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8), rgba(73, 80, 87, 0.8));
    color: #ffffff;
}

#createCharacterModal .modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(73, 80, 87, 0.9), rgba(52, 58, 64, 0.9));
    transform: translateY(-2px);
}

#createCharacterModal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000000;
}

#createCharacterModal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #b8941f, #9a7b1a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Responsividade do modal */
@media (max-width: 768px) {
    #createCharacterModal .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #createCharacterModal .modal-header {
        padding: 20px;
    }
    
    #createCharacterModal .modal-form {
        padding: 20px;
    }
    
    #createCharacterModal .modal-footer {
        flex-direction: column;
    }
    
    #createCharacterModal .modal-footer .btn {
        width: 100%;
    }
}

/* Estilos para personagens comuns (novos personagens) */
.character-card.common::before {
    background: linear-gradient(90deg, transparent, #cccccc, transparent);
}

.character-card.common .character-info h3 {
    color: #cccccc;
}

.character-card.common .character-class {
    color: #ffffff;
}

/* Estilos para o modal de troca de senha */
#changePasswordModal.modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, #2a1810, #3d2817);
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    padding: 20px;
    border-radius: 13px 13px 0 0;
    text-align: center;
    position: relative;
}

#changePasswordModal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#changePasswordModal .close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

#changePasswordModal .close-button:hover {
    color: #8b0000;
}

#changePasswordModal .modal-form {
    padding: 30px;
}

#changePasswordModal .form-group {
    margin-bottom: 20px;
}

#changePasswordModal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: bold;
    font-size: 0.95rem;
}

#changePasswordModal .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #555;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#changePasswordModal .form-group input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#changePasswordModal .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#changePasswordModal .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#changePasswordModal .btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
}

#changePasswordModal .btn-primary:hover {
    background: linear-gradient(135deg, #e6c547, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

#changePasswordModal .btn-secondary {
    background: linear-gradient(135deg, #666, #555);
    color: #fff;
}

#changePasswordModal .btn-secondary:hover {
    background: linear-gradient(135deg, #777, #666);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos para a seção de compra de moedas (Mantido o seletor original) */
.buy-coins-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    max-width: 500px;
    margin: 30px auto;
}

/* Estilos para as novas caixas de troca (EPS e VIP) */
/* Sub-abas de Troca de Moedas */
.trade-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
}

.trade-category-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.trade-category-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.trade-category-btn.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.trade-category-btn .category-icon {
    font-size: 1.1rem;
}

.trade-content-area {
    margin-top: 30px;
}

.trade-sub-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.trade-sub-pane.active {
    display: block;
}

/* Títulos de sub-seção dentro das abas */
.section-header.small {
    margin-bottom: 30px;
}

.section-title-sub {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title-sub::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.description-text {
    color: #cccccc;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.trade-form-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Container das opções de troca (grid) */
.trade-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

/* Estilo individual de cada caixa de opção (EPS ou VIP) */
.trade-option-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.trade-option-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
}

.trade-option-card.selected {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.trade-option-card.selected h3,
.trade-option-card.selected p,
.trade-option-card.selected span {
    color: #000 !important;
}


.trade-option-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.trade-option-card p {
    color: #cccccc;
    font-size: 1rem;
}

.trade-option-card p span {
    font-weight: 700;
    color: #00ff88;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Esconder o select de moedas que foi substituído */
.trade-form-section select {
    display: none;
}

/* Ajustes para a pré-visualização de troca */
.exchange-preview {
    margin-top: 30px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    justify-content: center;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.exchange-preview .preview-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Estilos para a seção de benefícios VIP */
.vip-benefits-preview {
    margin-top: 30px;
    display: none;
    background: rgba(72, 52, 212, 0.1);
    border: 1px solid rgba(72, 52, 212, 0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.vip-benefits-preview h4 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.vip-benefits-preview ul {
    list-style: none;
    padding: 0;
}

.vip-benefits-preview li {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.vip-benefits-preview li::before {
    content: '⭐';
    margin-right: 10px;
    color: #ffd700;
}

.vip-benefits-preview strong {
    color: #ffffff;
}

/* Esconder o botão de compra/contratação até uma opção ser selecionada */
#exchangeEpsBtn, #exchangeVipBtn {
    margin-top: 25px;
    display: none;
}

/* Estilos para a seção de COMPRAR MOEDA ESPECIAL (NOVOS BOTÕES) */

/* Container do grid de opções de compra */
.buy-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

/* Estilo individual de cada botão de compra */
.buy-option-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.buy-option-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
}

.buy-option-card.selected {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000;
    border-color: #d4af37;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.buy-option-card.selected h3,
.buy-option-card.selected p,
.buy-option-card.selected span {
    color: #000 !important;
}

.buy-option-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.buy-option-card p {
    color: #cccccc;
    font-size: 1rem;
}

.buy-option-card p span {
    font-weight: 700;
    color: #00ff88;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Ajustes para a seção de compra de moedas (seletor buy-coins-section) */
.buy-coins-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    max-width: 700px;
    margin: 30px auto;
}

.buy-coins-section .description-text {
    color: #cccccc;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

/* Esconder o select que foi substituído no HTML */
.buy-coins-section select {
    display: none !important;
}

/* Ajuste do botão Comprar Agora */
#buyCoinBtn {
    margin-top: 25px;
    display: none;
}

/* Responsividade para o grid de opções de compra */
@media (max-width: 576px) {
    .buy-options-grid {
        grid-template-columns: 1fr;
    }
}