:root {
    --primary: #44aaff;
    --secondary: #8a4dff;
    --danger: #ff5555;
    --bg-main: #0f0f13;
    --bg-card: #1c1c22;
    --border: #2f2f38;
    --button-text-color: #000000;
    --primary-glow: rgba(68, 170, 255, 0.5);
}

* {
    box-sizing: border-box;
    font-family: 'Share Tech Mono', monospace;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #1a1a22, #000);
    color: #eaeaea;
    display: flex;
    justify-content: center;
}

.ficha-container {
    width: 100%;
    max-width: 1100px;
    padding: 26px;
    margin: 30px auto;
    background: rgba(20,20,26,0.96);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.foto-container {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border: 3px solid var(--border, #333);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.foto-container:hover {
    border-color: var(--primary, #3A86FF);
    transform: scale(1.02);
}

.foto-container:hover .foto-overlay {
    opacity: 1;
}

.foto-container.sem-foto .foto-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.foto-container.sem-foto:hover {
    border-color: var(--primary, #3A86FF);
    transform: scale(1.02);
}

.foto-container.sem-foto .foto-btn-substituir {
    border-color: var(--primary, #3A86FF);
    background: rgba(58, 134, 255, 0.15);
}

.foto-container.sem-foto .foto-btn-substituir:hover {
    background: var(--primary, #3A86FF);
    color: #000;
    box-shadow: 0 0 25px rgba(58, 134, 255, 0.3);
}

.foto-container.sem-foto .foto-btn-remover {
    display: none;
}

.foto-personagem {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-card, #1a1a22);
    display: block;
    transition: all 0.3s ease;
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px;
    pointer-events: none;
}

.foto-overlay.visivel {
    opacity: 1;
    pointer-events: auto;
}

.foto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
}

.foto-btn:hover {
    transform: scale(1.05);
}

.foto-btn:active {
    transform: scale(0.95);
}

.foto-btn-icon {
    font-size: 18px;
}

.foto-btn-substituir {
    border-color: var(--primary, #3A86FF);
    background: rgba(58, 134, 255, 0.2);
}

.foto-btn-substituir:hover {
    background: var(--primary, #3A86FF);
    color: #000;
    box-shadow: 0 0 25px rgba(58, 134, 255, 0.3);
}

.foto-btn-remover {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.2);
}

.foto-btn-remover:hover {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 0 25px rgba(211, 47, 47, 0.3);
}

.foto-container.sem-foto .foto-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.foto-container.sem-foto .foto-btn-remover {
    display: none;
}

.foto-container.sem-foto .foto-btn-substituir {
    border-color: var(--primary, #3A86FF);
    background: rgba(58, 134, 255, 0.15);
}

.foto-container.sem-foto .foto-btn-substituir .foto-btn-text {
    font-size: 14px;
}

@media (max-width: 480px) {
    .foto-container {
        width: 120px;
        height: 120px;
    }
    
    .foto-personagem {
        width: 120px;
        height: 120px;
    }
    
    .foto-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .foto-btn-icon {
        font-size: 15px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleInModal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInModal {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

@keyframes piscar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.conteudo-aba {
    animation: fadeIn 0.5s ease;
}