body {
    background: linear-gradient(45deg, #000, #333);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-animation {
    width: 150px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

h1 {
    color: #f10f0f;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.profile-container {
    width: 100%;
    height: 100%;
    padding: 20px;
}

#profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.profile {
    margin: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    text-align: center;
}

.profile-lock {
    position: absolute;
    top: 85px;
    right: 15px;
    background: rgba(20, 20, 20, 0.9);
    color: #ff0000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid #ff0000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.profile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgb(255, 0, 0);
}

.profile img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f10f0f;
}

.profile-name {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

#bottom-actions {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}

/* Estilo dos botões */
.action-button {
    position: relative;
    color: #f10f0f;
    background-color: #222;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    color: #fff;
    background-color: #e62222;
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.manage-profiles a,
.editar-perfil a {
    position: relative;
    top: -1px;
    color: #f10f0f;
    background-color: #222;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.manage-profiles a:hover,
.editar-perfil a:hover {
    color: #fff;
    background-color: #e62222;
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.criar-crianca a {
    color: #ffffff;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1);
    background-size: 300% 300%;
    animation: colorPulse 5s ease infinite;
    font-weight: bold;
    padding: 10px;
    display: inline-block;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.criar-crianca a:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Animação de cor pulsante */
@keyframes colorPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsivo para celular */
@media (max-width: 576px) {
    #bottom-actions {
        bottom: 18px;
        gap: 14px;
    }

    .manage-profiles a,
    .editar-perfil a {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

#bottom-actions {
    transition: opacity 0.3s ease;
}

#bottom-actions.hide {
    opacity: 0;
    pointer-events: none;
}

#avatarPreview {
    display: none;
    max-width: 120px;
    border-radius: 50%;
    border: 3px solid red;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}


.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}


#slider img {
    width: 100%;
    display: none;
    position: absolute;
}

#slider img.active {
    display: block;
}



/* Modal de PIN */
.pin-dot {
    width: 50px;
    height: 50px;
    font-size: 24px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.pin-dot:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #e50914 !important;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4) !important;
    transform: translateY(-2px);
}

#pinModal .modal-content {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#biometricsBtn {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

#biometricsBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d2ff;
    color: #00d2ff;
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 8px !important;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #e50914 !important;
    box-shadow: none !important;
}

/* Fundo com slides de filmes */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.background-slider img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-slider img.active {
    opacity: 1;
}

.overlay {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }

    .profile {
        margin: 10px;
    }

    .profile img {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    #profiles {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 40px;
    }

    .profile {
        display: flex;
        align-items: center;
    }

    .profile img {
        margin-right: 10px;
    }

    .profile-name {
        margin-top: 0;
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 3rem;
    }

    .profile-container {
        padding: 30px;
    }
}

/* Modal Editar Perfil - Design Profissional */
#editarPerfilModal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    border: 2px solid rgba(220, 38, 38, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(220, 38, 38, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 500px;
    overflow: hidden;
}

#editarPerfilModal .modal-header {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 1.5rem 1.75rem;
}

#editarPerfilModal .modal-title {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#editarPerfilModal .modal-title i {
    color: #dc2626;
}

#editarPerfilModal .modal-body {
    padding: 1.75rem;
}

#editarPerfilModal label {
    color: #e5e5e5;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

#editarPerfilModal label i {
    color: #dc2626;
}

.form-select-custom,
.form-control-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(220, 38, 38, 0.4);
    color: #ffffff;
    border-radius: 0.6rem;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-select-custom:focus,
.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #dc2626;
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
    color: #ffffff;
}

.form-select-custom option {
    background: #1a1a1a;
    color: #ffffff;
}

.avatar-preview-container {
    position: relative;
    display: inline-block;
}

.avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5), 0 0 50px rgba(220, 38, 38, 0.3);
}

.btn-custom {
    border-radius: 0.6rem;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

#editarPerfilModal .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#editarPerfilModal .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

#editarPerfilModal .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

#editarPerfilModal .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#editarPerfilModal .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

#editarPerfilModal .form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-outline-light {
    border: 1.5px solid rgba(220, 38, 38, 0.4);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #ffffff;
}

#gifResults img {
    transition: all 0.3s ease;
}

#gifResults img:hover {
    transform: scale(1.1);
    border-color: #dc2626 !important;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

#gifResults img.selected {
    border-color: #dc2626 !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.7);
}

@media (max-width: 576px) {
    #editarPerfilModal .modal-content {
        margin: 0.5rem;
        border-radius: 1rem;
    }

    #editarPerfilModal .modal-header,
    #editarPerfilModal .modal-body {
        padding: 1.25rem;
    }

    #editarPerfilModal .modal-title {
        font-size: 1.1rem;
    }

    .avatar-preview {
        width: 110px;
        height: 110px;
    }

    #gifResults img {
        width: 70px !important;
        height: 70px !important;
    }

    #editarPerfilModal .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    #editarPerfilModal .modal-footer>div {
        width: 100%;
    }

    .btn-custom {
        width: 100%;
        padding: 0.75rem;
    }
}

#overlay-black {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

#overlay-black.active {
    opacity: 1;
    visibility: visible;
}

.profile-selected-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060;
    display: none;
    text-align: center;
}

.selected-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.7);
    border: 3px solid #dc2626;
}

#profile-selected-overlay .spinner-border {
    margin-top: 20px;
    display: block;
}

.spinner-border {
    display: block;
    margin: 15px auto 0 auto;
    /* top auto bottom auto */
}

@media (max-width: 576px) {
    #profile-selected-overlay img {
        width: 110px;
        height: 110px;
    }
}

/* Spinner fixo embaixo da imagem */
#spinner {
    position: fixed !important;
    top: calc(50% + 100px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    display: none;
}

#spinner.show {
    display: block !important;
}

/* Container dos perfis fica esmaecido, mas NÃO afeta o perfil selecionado */
.profiles-faded {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Perfis normais não selecionados */
.profile:not(.selected) {
    transition: opacity 0.4s ease;
}

/* Responsivo: tamanho menor para perfil selecionado em mobile */
@media (max-width: 576px) {
    .profile.selected {
        width: 110px;
        height: 110px;
        box-shadow: 0 0 15px rgba(178, 34, 34, 0.7);
    }

    #spinner {
        top: calc(50% + 80px);
    }
}

/* Para navegadores baseados em WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
    /* Largura da barra */
}

::-webkit-scrollbar-track {
    background: #00000000;
    /* Cor do fundo da barra */
}

::-webkit-scrollbar-thumb {
    background-color: red;
    /* Cor da barra de rolagem */
    border-radius: 6px;
    border: 3px solid red;
    /* Espaço ao redor da barra */
}