:root {
    --color-background: #12141D;
    /* Um preto azulado mais profundo */
    --color-surface: #1E202E;
    /* Cor de fundo para cards e seções */
    --color-overlay: #272A3B;
    /* Cor para inputs e elementos secundários */
    --color-border: #414561;
    /* Cor para bordas sutis */
    --color-text-primary: #F0F0F5;
    /* Branco suave para textos */
    --color-text-secondary: #A0A3C0;
    /* Cinza azulado para textos secundários */

    --color-accent-primary: #8C64E8;
    /* Roxo vibrante para destaques */
    --color-accent-secondary: #5EE2A0;
    /* Verde menta para sucessos e confirmações */

    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    /* Bordas mais arredondadas */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* === Estilos Globais === */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    /* gradiente radial suave, imperceptível */
    background-image: radial-gradient(circle at center, #0F1327 0%, #101023 100%);
    color: var(--color-text-primary);
    font-family: var(--font-family);
}

header,
footer {
    /* degradê horizontal das extremidades (#1A1B2F) para o centro (#192347) */
    background: linear-gradient(to right, #1A1B2F 0%, #192347 50%, #1A1B2F 100%);
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    /* mantém o efeito glassmorphism se quiser */
    border-bottom: 1px solid #25274e;
    border-top: 1px solid #25274e;
}

footer p {
    color: #939BA9 !important;
}

.text-white {
    color: #939BA9 !important;
}

main {
    flex: 1;
    padding: 40px;
    /* Mais espaçamento */
}

.navbar-icon {
    width: 3em;
    /* um pouco maior que o texto */
    height: 3em;
    object-fit: contain;
}


/* === Tema Escuro === */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1D1E2C;
    color: #fff;
}

header,
footer {
    background-color: #2D2E46;
    padding: 10px 20px;
}

main {
    flex: 1;
    padding: 30px;
}

.navbar-brand {
    color: #fff !important;
}

footer p {
    text-align: center;
    margin: 0;
    color: #fff;
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #211E41;
    color: #f0f0f0;
    border: 1px solid #373376;
    height: 280px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
    position: relative;
    overflow: visible;
    /* permite que a sombra vaze */
    z-index: 0;
}

/* Hover com efeito neon */
.card:hover {
    transform: translateY(-4px);
    background-color: #292651;
    border-color: #5a58a5;
    box-shadow: 0 0 15px 5px rgba(90, 88, 165, 0.7),
        0 0 30px 10px rgba(55, 51, 118, 0.6),
        0 0 45px 15px rgba(90, 88, 165, 0.5);
    z-index: 1;
    /* garante que a sombra fique por cima de outros elementos */
}



.card-title {
    color: #ffffff;
    font-weight: bold;
}

.card-date {
    color: #c3c3e6;
    width: 130px;
    /* ou o tamanho do container */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botões de ação dentro do card */
.action-btn {
    background: none;
    border: none;
    color: #c3c3e6;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}

.action-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #5a58a5, 0 0 10px #373376;
    /* efeito neon nos ícones */
}

.new-card {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
    height: 280px;
    border-radius: 8px;
    background-color: #211E41;
}

.new-card:hover {
    background-color: #292651;
    color: #ffffff;
}

.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #bbb;
    margin-top: auto;
    padding: 0.5rem;
}

.card-footer-custom i {
    margin-right: 10px;
}

.actions i {
    cursor: pointer;
    margin-left: 10px;
    color: #bbb;
    transition: 0.2s;
}

.actions i:hover {
    color: #fff;
}

.hidden {
    display: none;
}

.exp-text {
    width: 100%;
    min-height: 30px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: var(--bs-border-radius);

    text-align: center;
    /* centraliza texto e placeholder */
    color: #f0f0f0;
    /* cor do texto digitado */
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ff9359;
}

#modal-url::placeholder {
    color: hsl(0, 0%, 0%);
    opacity: 0.8;
}

.form-control::placeholder {
    color: hsl(0, 0%, 100%);
    opacity: 0.8;
    text-align: center;
}

/* estiliza apenas o placeholder */
.exp-text::placeholder {
    color: hsl(0, 0%, 100%);
    /* cinza azulado suave */
    opacity: 0.8;
    /* deixa um pouco mais discreto */
    text-align: center;
    /* garante centralização também */
}

#ficha-subclass:disabled {
    background-color: #2D2E46;
    /* cor de fundo */
    color: #aaa;
    /* cor do texto */
    opacity: 1;
    /* impede que o Bootstrap deixe opaco */
    cursor: not-allowed;
    /* cursor de bloqueio */
}

#ficha-multirace:disabled {
    background-color: #2D2E46;
    /* cor de fundo */
    color: #aaa;
    /* cor do texto */
    opacity: 1;
    /* impede que o Bootstrap deixe opaco */
    cursor: not-allowed;
    /* cursor de bloqueio */
}


/* === Ficha Section === */
.ficha-section {
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #211E41 0%, #211E41 70%, #2F205A 100%);
    border: 1px solid #5a58a5;
}

.ficha-section label {
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: #ff9359;

}

.ficha-section input,
.ficha-section select,
.ficha-section textarea {
    background-color: #3c3d5a;
    color: #fff;
    border: 1px solid #4a4b6b;
    margin-bottom: 10px;
}

/* === Tabs === */
.nav-tabs .nav-link {
    color: hsl(0, 0%, 100%);
}

.nav-tabs .nav-link.active {
    background-color: #ffffff;
    color: #211E41;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--bs-nav-tabs-border-radius);
}

.nav-tabs {
    border-bottom: none;
}

.tab-content {
    margin-top: 20px;
}

.atributos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.atributo {
    display: flex;
    flex-direction: column;
}

.atributo input {
    text-align: center;
}

.evasao-armadura {
    display: flex;
    gap: 10px;
}

.evasao-armadura input {
    flex: 1;
}

/* Checkboxes vida/estresse/esperança */
.recursos-container .check-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 18px;
    height: 18px;
    transform: scale(1.4);
    margin: 3px;
    /* +15% */

    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;

    display: inline-block;
    vertical-align: middle;
}

/* estado marcado */
.recursos-container .check-group input[type="checkbox"]:checked {
    background-color: #555;
    box-shadow: inset 0 0 0 4px #FECB73;
}


.check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.check-group input[type=checkbox] {
    width: 20px;
    height: 20px;
}

.limiares-dano {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.limiar {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
}

.limiar-input {
    width: 50px;
}

.buttons-wrapper {
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background-color: #5c82c4;
    border: none;
    color: #fff;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: #4466a0;
}



.btn-secondary {
    background-color: #3c3d5a;
    border: none;
    color: #5c82c4;
    font-weight: bold;
    transition: 0.2s;
}

.btn-secondary:hover {
    background-color: #5c82c4;
    color: #fff;
}

.evasao-armadura-container {
    display: flex;
    gap: 20px;
    /* Espaçamento entre os campos */
    margin-top: 10px;
    /* Ocupa 1/3 da linha */
}



.evasao-armadura-item {
    flex: 1;
    /* Ambos ocupam o mesmo espaço */
    display: flex;
    flex-direction: column;
}

.evasao-armadura-item input {
    text-align: center;
}

/* Remove spinner do Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.limiares-dano {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* diminui um pouco para caber em telas pequenas */
    flex-wrap: nowrap;
    /* impede quebra de linha */
    margin-top: 10px;
    overflow-x: auto;
    /* se a tela for MUITO pequena, permite rolagem horizontal */
}

.limiar {
    font-weight: 600;
    font-size: 14px;
    color: #ff9359;
    white-space: nowrap;
    /* impede que o texto quebre */
}

.limiar small {
    font-size: 12px;
    color: hsl(54, 100%, 83%);
    margin-left: 4px;
}

.limiar-input {
    width: 55px;
    height: 26px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    margin: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Responsividade: no mobile diminui ainda mais */
@media (max-width: 480px) {
    .limiar {
        font-size: 12px;
    }

    .limiar small {
        font-size: 11px;
    }

    .limiar-input {
        width: 45px;
        height: 24px;
        font-size: 12px;
    }

    .limiares-dano {
        gap: 10px;
    }
}







/* Container que engloba HP, Estresse e Esperança */
.recursos-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    /* espaçamento entre blocos */
    flex-wrap: nowrap;
    /* no desktop ficam lado a lado */
    margin-top: 20px;
    text-align: center;
}

/* Cada bloco (HP, Estresse, Esperança) */
.recursos-container .grupo {
    flex: 1;
    min-width: 150px;
}

/* Labels */
.recursos-container label {
    display: block;
    font-weight: 600;
    color: #ff9359;
    margin-bottom: 8px;
}

/* Inputs numéricos */
.recursos-container input[type="number"] {
    width: 80px;
    height: 32px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.recursos-container input[type="number"]:focus {
    border-color: #1B5B64;
    box-shadow: 0 0 4px rgba(27, 91, 100, 0.4);
}

/* Checkboxes */
.check-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.check-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1B5B64;
}

/* Responsividade - empilha no mobile */
@media (max-width: 768px) {
    .recursos-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .check-group {
        margin-bottom: 20px;
    }
}


.vida .atributos-separador {
    margin-top: 20px;
}

.exp-text {
    width: 100%;
    min-height: 30px;
    resize: vertical;
    /* permite o usuário ajustar verticalmente */
    box-sizing: border-box;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
}


.actions i {
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s, transform 0.2s;
}

/* Hover nos ícones */
.actions i.edit-icon:hover {
    color: yellow;
    transform: scale(1.2);
}

.actions i.delete-icon:hover {
    color: red;
    transform: scale(1.2);
}



#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-msg {
    background: #333;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.3s forwards, fadeOut 0.3s 2.7s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Mobile: notificação ocupa largura total */
@media (max-width: 768px) {
    #toast-container {
        right: 0;
        left: 0;
        align-items: center;
    }

    .toast-msg {
        width: 90%;
        max-width: 500px;
    }
}





/* wrapper da imagem: ocupa 60% da altura do card (pai precisa ter altura fixa, que medimos) */
.card-img-wrap {
    flex: 0 0 60%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
}

/* imagem cobre todo o wrapper */
.card-img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* quando não há imagem, mostra texto discreto */
.card-img-wrap.no-image {
    background-color: #211E41 !important;
    color: #777;
}

.card-no-image {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
}

/* corpo do card: ocupa 40% */
.card-body-custom {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.6rem;
}

/* hr enxuto */
.card-hr {
    border-color: #5c82c4;
    margin: 6px 0;
    opacity: 0.9;
}

/* footer */
.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.5rem;
}

/* botões: hitbox maior */
.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
    min-width: 36px;
    min-height: 36px;
}

/* cores no hover (apenas visual) */
.action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.edit-btn:hover {
    color: #ffc107;
}

.delete-btn:hover {
    color: #dc3545;
}

/* garante que ícones não disparem o click do card quando o handler não chamar stopPropagation */
.action-btn i {
    pointer-events: none;
}

/* comportamento mobile: mantém proporcionalidade */
@media (max-width: 768px) {
    .card-img-wrap {
        flex: 0 0 60%;
    }

    .card-body-custom {
        flex: 0 0 40%;
        padding: 0.5rem;
    }
}


.card-img-wrap.no-image {
    background: #2D2E46;
    color: #fff;
}

.card-no-image {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
}


.btn-container {
    display: flex;
    justify-content: center;
    /* centraliza horizontalmente */
    margin-top: 1.5rem;
    /* distância do topo */
}

.btn-container .btn {
    padding: 0.5rem 2rem;
    /* deixa maior e mais confortável */
    font-size: 1.1rem;
    border-radius: 12px;
    /* cantos arredondados */
    transition: transform 0.2s, background-color 0.2s;
}

.btn-container .btn:hover {
    background-color: #ffc107;
    /* cor ao passar o mouse */
    color: #000;
    transform: scale(1.05);
    /* leve zoom */
}


.btn-back {
    padding: 0.5rem 2rem;
    /* mesmo tamanho confortável */
    font-size: 1.1rem;
    border-radius: 12px;
    /* cantos arredondados */
    transition: background-color 0.2s;
    /* só muda cor no hover */
}

.btn-back:hover {
    background-color: #ffc107;
    /* mesma cor do hover do salvar */
    color: #000;
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    /* espaço entre textarea e número */
    margin-bottom: 8px;
}

.exp-text {
    flex: 1;
    /* textarea ocupa todo o espaço disponível */
    min-height: 50px;
    resize: none;
    overflow: hidden;
}

.exp-num {
    width: 60px;
    padding: 5px;
    background-color: #211E41;
    border: 1px solid #5a58a5;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    /* centraliza o texto */
}



.item-text {
    width: 100%;
    min-height: 40px;
    /* altura inicial mínima */
    resize: none;
    /* usuário não pode redimensionar manualmente */
    overflow: hidden;
    /* oculta scrollbar */
    background-color: #211E41;
    color: #f0f0f0;
    border: 1px solid #5a58a5;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
}


.item-field label {
    display: block;
    margin-bottom: 4px;
    color: #ccc;
}



.card-dominio {
    width: 270px;
    height: 406px;
    border-radius: 12px;
    overflow: hidden;
    /* garante que a imagem não vaze */
    display: flex;
    flex-direction: column;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card-dominio:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper {
    flex: 1;
    width: 100%;
    overflow: hidden;
    /* garante que a imagem não vaze do wrapper */
}

.card-img-wrapper img {
    width: 100%;
    height: 108%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
    padding: 0;
    transform: scale(1);
    /* aumenta a imagem 110% */
    transition: transform 0.3s;
}

/* efeito hover opcional para zoom leve */
.card-dominio:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.select-btn {
    width: 100%;
    padding: 8px 0;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.select-btn:hover {
    background-color: #FECB73;
}

.select-btn.selected {
    background-color: #FECB73;
    color: #fff;
}

#dominios .card-grid {
    justify-items: center;
    /* centraliza os itens no grid */
}


.card-actions {
    display: flex;
    /* espaçamento entre os botões */
    justify-content: center;
}

.select-btn:hover {
    background-color: #FECB73;
}

.select-btn.selected {
    background-color: #FECB73;
    color: #fff;
}

.lado-lado {
    display: flex;
    gap: 24px;
}

.lado-lado>div {
    flex: 1;
    /* cada um ocupa 50% */
}

.evasao-armadura-container {
    margin-top: 0;
}

@media (max-width: 450px) {
    .lado-lado {
        flex-direction: column;
    }
}

/* ========== CARTAS DE RECURSOS (raça, classe, subclasse, comunidade) ========== */

.recursos-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px;
}

/* Usa exatamente o mesmo estilo de .card-dominio */
.card-recurso {
    width: 270px;
    height: 406px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

/* Efeito hover igual ao card-dominio */
.card-recurso:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-recurso .card-img-wrapper {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.card-recurso .card-img-wrapper img {
    width: 100%;
    height: 108%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
    padding: 0;
    transform: scale(1);
    transition: transform 0.3s;
}

/* Efeito hover zoom na imagem igual ao card-dominio */
.card-recurso:hover .card-img-wrapper img {
    transform: scale(1.05);
}



/* Usa exatamente o mesmo estilo de .card-dominio */
.card-recurso2 {
    width: 270px;
    height: 406px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* hover do card */
.card-recurso2:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}


/* imagem */
.card-recurso-img2 {
    position: absolute;
    inset: 0;
    /* top:0 left:0 right:0 bottom:0 (mais limpo) */

    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;

    transition: transform .3s ease;
    /* animação suave */
}


/* zoom correto */
.card-recurso2:hover .card-recurso-img2 {
    transform: scale(1.05);
}



.prof-check {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #FECB73;
    background: transparent;
    cursor: pointer;
    transition: 0.15s;
}

.prof-check:checked {
    background: #FECB73;
}

.prof-check:disabled {
    opacity: 0.7;
    cursor: default;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #2D2E46;
    border: 1px solid #414561;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    z-index: 10;
}

.gallery-item:hover .gallery-remove-btn {
    opacity: 1;
    opacity: 1;
}

.gallery-remove-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

/* Modal de visualização de imagem (opcional, se quiser clicar p/ ampliar) */
.gallery-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 3001;
}

.gallery-lightbox-close:hover {
    color: #ff6b6b;
}

#gallery-button {
    color: #5C82C4;
    background-color: #3C3D5A !important;
}

#gallery-button:hover {
    color: #000000;
    background-color: #FFC107 !important;
}

/* === LvL Up Tab Aesthetics === */
.lvl-tier-card {
    border-left: 4px solid #FECB73;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.lvl-tier-card h3 {
    color: #FECB73;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.lvl-tier-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.lvl-fixed-reward {
    background-color: rgba(254, 203, 115, 0.1);
    border: 1px dashed rgba(254, 203, 115, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.lvl-options-list {
    list-style: none;
    padding-left: 0;
}

.lvl-option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.lvl-option-item:hover {
    background-color: rgba(254, 203, 115, 0.05);
    transform: translateX(5px);
}

/* Custom Checkbox */
.lvl-check-container {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

.lvl-check {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border: 2px solid #FECB73;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.lvl-check:checked {
    background-color: #FECB73;
    box-shadow: 0 0 10px rgba(254, 203, 115, 0.4);
}

.lvl-check:checked::after {
    content: '\2714';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51%);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 900;
}

.lvl-check:hover {
    box-shadow: 0 0 8px rgba(254, 203, 115, 0.4);
}