/* style.css */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    height: auto;
    background: linear-gradient(180deg, #007a00 0%, #004d00 100%);
    background-color: #004d00;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, #007a00 0%, #004d00 100%);
    background-color: #004d00;
    color: white;
    position: relative;
}

/* Container de Cifrões */
#cifrao-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.cifrao {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(255, 215, 0, 0.3);
    animation: falling 12s linear infinite;
}

/* Componentes Mobile */
.mobile-only-components {
    display: none;
}

/* Navbar Mobile */
.navbar-mobile {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFA500, #ADFF2F, #40E0D0, #FFA500);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientAnimation 6s linear infinite;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(173, 255, 47, 0.3);
    color: #ADFF2F;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(173, 255, 47, 0.2);
}

.menu-toggle:hover {
    background: rgba(173, 255, 47, 0.15);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(173, 255, 47, 0.3);
}

.menu-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(173, 255, 47, 0.6));
}

@media (max-width: 991px) {
    .mobile-only-components {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .desktop-header {
        display: none;
    }
}

/* Estilos para dispositivos maiores */
@media (min-width: 992px) {
    .mobile-only-components {
        display: none;
    }
}

/* Modifique a estrutura do cabeçalho mobile */
.mobile-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* Remover o título completamente */
.site-title-mobile {
    display: none;
}

/* Reposicione a informação do usuário */
.mobile-user-profile {
    flex: 1;
    margin-right: 15px;
    background: rgba(0, 100, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.mobile-user-profile:hover {
    background: rgba(0, 100, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Manter as informações de texto do usuário visíveis */
.user-info-mobile {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    text-align: left;
}

/* Ajuste para o botão de fechar o menu */
.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(173, 255, 47, 0.3);
    color: #ADFF2F;
    font-size: 24px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: auto;
}

.close-menu:hover {
    background: rgba(173, 255, 47, 0.15);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(173, 255, 47, 0.2);
}

.close-menu i {
    filter: drop-shadow(0 0 4px rgba(173, 255, 47, 0.6));
}

/* Reposicionar o avatar para ficar depois do texto */
.mobile-menu .user-avatar {
    order: 2;
}

.mobile-menu-content {
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.mobile-menu .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(173, 255, 47, 0.5);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu .status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(34, 197, 94);
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    animation: pulse 2s infinite;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 0 1.5rem;
}

.mobile-menu-button {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-button:hover {
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.mobile-menu-button i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: rgba(173, 255, 47, 0.9);
    filter: drop-shadow(0 0 3px rgba(173, 255, 47, 0.3));
}

.mobile-menu-button:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(173, 255, 47, 0.2));
}

.mobile-menu-button:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(173, 255, 47, 0.3));
}

.mobile-menu-button:nth-child(3) {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.2), rgba(173, 255, 47, 0.2));
}

.mobile-menu-button:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.3), rgba(173, 255, 47, 0.3));
}

.mobile-menu-button:nth-child(5) {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.2), rgba(64, 224, 208, 0.2));
}

.mobile-menu-button:nth-child(5):hover {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.3), rgba(64, 224, 208, 0.3));
}

.mobile-menu-button:nth-child(7) {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(64, 224, 208, 0.2));
}

.mobile-menu-button:nth-child(7):hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(64, 224, 208, 0.3));
}

.logout-button {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 99, 71, 0.3);
}

.logout-button:hover {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
}

.logout-button i {
    color: rgba(255, 99, 71, 0.9);
    filter: drop-shadow(0 0 3px rgba(255, 99, 71, 0.3));
}

.mobile-menu-divider {
    height: 1px;
    width: 92%;
    margin: 0.2rem auto;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.floating-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(173, 255, 47, 0.1), rgba(64, 224, 208, 0.1));
    filter: blur(80px);
    top: -150px;
    right: -150px;
    z-index: -1;
    animation: floatAnimation 15s infinite alternate ease-in-out;
}

.desktop-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 51, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 153, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.main-content {
    margin-top: 100px;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.main-container {
    padding: 2rem;
    padding-top: 140px;
    /* Adjusted for quick-access-bar */
    max-width: 1500px;
    margin: 0 auto;
}

/* ========================================
   QUICK ACCESS BAR
======================================== */
.quick-access-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 999;
    background: rgba(0, 35, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(173, 255, 47, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.quick-access-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quick-access-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quick-access-item i {
    color: #ADFF2F;
    font-size: 1.15rem;
    filter: drop-shadow(0 0 4px rgba(173, 255, 47, 0.5));
    transition: all 0.3s ease;
}

.quick-access-item span {
    transition: all 0.3s ease;
}

.quick-access-item:hover {
    background: rgba(173, 255, 47, 0.12);
    transform: translateY(-2px);
    color: #fff;
}

.quick-access-item:hover i {
    filter: drop-shadow(0 0 8px rgba(173, 255, 47, 0.8));
    transform: scale(1.1);
}

.quick-access-item.active {
    background: rgba(173, 255, 47, 0.15);
    color: #fff;
}

.quick-access-item.active i {
    color: #FFD700;
}

.quick-access-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ADFF2F, #40E0D0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.quick-access-item:hover::after,
.quick-access-item.active::after {
    width: 80%;
}

/* Responsivo - Mobile */
@media (max-width: 991px) {
    .quick-access-bar {
        top: 60px;
        height: 50px;
    }

    .quick-access-container {
        gap: 1.5rem;
    }

    .quick-access-item {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.4rem 0.8rem;
    }

    .quick-access-item span {
        font-size: 0.7rem;
    }

    .quick-access-item i {
        font-size: 1.2rem;
    }

    .main-container {
        padding-top: 130px;
    }
}

@media (max-width: 480px) {
    .quick-access-container {
        gap: 1rem;
    }

    .quick-access-item span {
        display: none;
    }

    .quick-access-item {
        padding: 0.5rem 1rem;
    }

    .quick-access-item i {
        font-size: 1.4rem;
    }
}

.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.slogan {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #FFD700;
    text-shadow: 3px 3px 15px rgba(255, 215, 0, 0.8);
    margin-top: 2rem;
    margin-bottom: 3rem;
    animation: sloganAnimation 3s infinite alternate;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #003d00, #005a00);
    border-radius: 10px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    margin: 2rem 0 4rem;
    min-width: 300px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.7);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.6);
}

.search-box-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 600px;
}

.search-box {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #005a00, #007a00);
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    flex: 1;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box i {
    color: #FFD700;
    font-size: 1.2rem;
    margin-left: 10px;
}

.search-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.3);
}

.products {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#modulesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    margin-top: 2rem;
}

.module-card {
    background: linear-gradient(135deg, rgba(0, 70, 0, 0.8), rgba(0, 40, 0, 0.9));
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 300px;
    min-height: 300px;
    border: 1px solid #FFD700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, opacity 0.4s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    opacity: 0;
}

.module-card.card-loaded {
    opacity: 1;
}

.module-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.module-card.active-card {
    z-index: 100;
}

.module-card.expanded Ascendant {
    min-height: 450px;
    height: auto;
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
    height: 50px;
    padding-left: 50px;
}

.module-image {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid;
    border-image: linear-gradient(45deg, #FFD700, #004D00) 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.module-image span {
    display: block;
    width: 100%;
    height: 100%;
}

.module-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.arrowHover {
    font-size: 1.1rem;
    color: #FFD700;
    cursor: pointer;
    transition: transform 0.3s;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.arrowHover:hover {
    transform: translateY(-50%) rotate(180deg);
}

.module-title {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #e0ffe5;
    text-align: left;
    margin: 0;
    padding-right: 20px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-title.long-text {
    font-size: 0.85rem;
}

.module-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.module-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border-radius: 6px;
}

.module-description i {
    color: #FFD700;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.module-description img[src*="facebook"] {
    filter: hue-rotate(0deg) saturate(50%) brightness(1.2);
}

.module-description img[src*="instagram"] {
    filter: hue-rotate(300deg) saturate(50%) brightness(1.2);
}

.description-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.features-list {
    margin: 15px 0;
    padding: 0 15px;
    list-style: none;
    max-height: 100%;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    padding: 3px 5px;
    position: relative;
    min-height: 24px;
}

.feature-item i {
    min-width: 24px;
    width: 24px;
    margin-right: 12px;
    font-size: 14px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item img {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    object-fit: contain;
}

.feature-item span {
    font-size: 0.85rem;
    flex: 1;
    padding-top: 1px;
    line-height: 1.4;
}

.feature-item i,
.feature-item img,
.feature-item svg {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 24px;
    height: 24px;
    margin-right: 12px;
}

.feature-item i.bi-shield-check {
    margin-left: 0;
    margin-right: 12px;
}

.info-button-container {
    margin: 10px 0;
}

.open-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(to right, #00CC00, #009900);
    border: 1px solid #FFD700;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
}

.open-modal-btn:hover {
    background: linear-gradient(to right, #00E600, #00B300);
    border-color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.3);
}

.open-modal-btn i {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.product-details {
    margin-top: 0.75rem;
    padding: 0;
    background: none;
}

.custom-select-container {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    z-index: 1;
    background: none;
}

.custom-select-container.open {
    z-index: 101;
}

.select-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(to right, #00CC00, #009900);
    border: 1px solid #FFD700;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
    text-align: left;
}

.custom-select-container.open .select-display {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    background: linear-gradient(to right, #00E600, #00B300);
}

.select-display:hover {
    background: linear-gradient(to right, #00E600, #00B300);
    border-color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.3);
}

.select-display span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.select-display i {
    color: #FFD700;
    transition: transform 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.custom-select-container.open .select-display i {
    transform: rotate(180deg);
}

.select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 40, 0, 0.95);
    border: 1px solid #FFD700;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.2s ease, max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    display: none;
}

.custom-select-container.open .select-options {
    display: block;
    transform: scaleY(1);
}

.select-option {
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-option:hover {
    background: rgba(0, 60, 0, 0.95);
}

.option-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(173, 255, 47, 0.1);
    justify-content: flex-start;
    gap: 5px;
    /* Espaçamento pequeno e consistente entre os elementos */
}

.option-content.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(50, 50, 50, 0.2);
}

.product-info {
    flex: 1;
    overflow: hidden;
}

.product-name {
    font-weight: 500;
    margin-right: 10px;
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-stock.stock-available {
    color: #4CAF50;
}

.product-stock.stock-unavailable {
    color: #F44336;
}

.select-options::-webkit-scrollbar {
    width: 5px;
}

.select-options::-webkit-scrollbar-track {
    background: transparent;
}

.select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FFA500, #ADFF2F);
    border-radius: 50px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.selected-product {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 40, 0, 0.8);
    border: 1px solid #FFD700;
    border-radius: 8px;
    color: white;
}

.selected-product:not(.d-none) {
    display: block;
}

.product-info {
    margin-bottom: 8px;
}

.product-price-units {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.quantity-selector {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 15px 0;
    height: 38px;
}

.quantity-selector.active {
    display: flex !important;
}

.decrease-quantity,
.increase-quantity {
    width: 38px;
    height: 38px;
    background: #2D2D43;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.decrease-quantity:hover,
.increase-quantity:hover {
    background: #3D3D53;
}



.buy-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #6A0DAD, #9932CC);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.buy-btn.buy-btn-visible {
    display: flex !important;
}

.btn-outline-secondary {
    background: #2D2D43;
    color: white;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, #6A0DAD, #9932CC);
}

.product-features {
    margin-top: 10px;
}

.product-features h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #FFD700;
}

.features-list-details {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 12px;
    width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#modulesContainer.clearing .skeleton-card {
    opacity: 0;
}

.skeleton-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0.2) 18%, rgba(255, 255, 255, 0.1) 33%);
    background-size: 200% 100%;
    animation: shine 1.5s infinite linear;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0.2) 18%, rgba(255, 255, 255, 0.1) 33%);
    background-size: 200% 100%;
    animation: shine 1.5s infinite linear;
}

.skeleton-description {
    height: 16px;
    width: 80%;
    margin-bottom: 15px;
    border-radius: 4px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0.2) 18%, rgba(255, 255, 255, 0.1) 33%);
    background-size: 200% 100%;
    animation: shine 1.5s infinite linear;
}

.skeleton-select {
    height: 38px;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1) 8%, rgba(255, 255, 255, 0.2) 18%, rgba(255, 255, 255, 0.1) 33%);
    background-size: 200% 100%;
    animation: shine 1.5s infinite linear;
}

@keyframes shine {
    0% {
        background-position-x: 200%;
    }

    100% {
        background-position-x: -200%;
    }
}

#additionalInfoModal .modal-content {
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px;
}

#additionalInfoModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#additionalInfoModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#additionalInfoModal .btn-close {
    filter: invert(1);
}

#additionalInfoModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#loginModal .modal-content {
    background: #fff;
    color: #000;
    border-radius: 10px;
}

#loginModal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#loginModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#loginModal .modal-body p {
    font-size: 0.9rem;
    color: #444;
}

#loginModal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-toggle {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 6px 12px;
    min-width: 200px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.user-id {
    font-size: 11px;
    opacity: 0.7;
    color: #ffffff;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(34, 197, 94);
    border: 2px solid #1e2028;
    z-index: 10;
    animation: pulse 2s infinite;
}

.profile-toggle i {
    font-size: 12px;
    opacity: 0.8;
}

.footer {
    background: linear-gradient(180deg, #003300 0%, #001a00 100%);
    padding: 3rem 0 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFA500, #ADFF2F, #40E0D0, #FFA500);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientAnimation 6s linear infinite;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1.5px;
}

.footer-title {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.4);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer ul li a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.contact-info li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info li i {
    color: #FFD700;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.notification {
    background-color: #1a3c2b;
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    margin-top: 10px;
    color: #ffffff;
    font-size: 16px;
    max-width: 90vw;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.success {
    background-color: #1a3c2b;
}

.notification.error {
    background-color: #dc3545;
    border-color: #ffffff;
}

.notification.info {
    background-color: #17a2b8;
    border-color: #ffffff;
}

.notification.show {
    opacity: 1;
}

.notification .close-notification {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.notification .close-notification:hover {
    color: #ffd700;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FFA500, #ADFF2F, #40E0D0, #FFA500);
    background-size: 400%;
    border-radius: 50px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    transition: opacity 0.3s;
    opacity: 0;
    min-height: 30px;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

body.scrolling ::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* Estilos para o Modal de Compra */
#purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#purchase-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.purchase-modal-content {
    width: 90%;
    max-width: 500px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #FFD700;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.3);
}

.modal-header {
    padding: 15px;
    background: #004d00;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #FFD700;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #FFD700;
}

.modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    color: white;
}

.purchase-info {
    margin-bottom: 20px;
}

@keyframes falling {
    from {
        transform: translateY(-100vh) rotate(0deg);
    }

    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes textGradientAnimation {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

@keyframes sloganAnimation {
    0% {
        text-shadow: 3px 3px 15px rgba(255, 215, 0, 0.4);
    }

    100% {
        text-shadow: 5px 5px 20px rgba(255, 140, 0, 1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50px, 50px) rotate(15deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .mobile-only-components {
        display: block;
    }

    .desktop-header {
        display: none;
    }

    .main-container {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 15px;
    }

    #modulesContainer {
        gap: 20px;
    }

    .module-card {
        width: 100%;
        max-width: 300px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-divider {
        width: 80%;
        height: 2px;
    }

    .slogan {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2rem 0 0;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-title {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    #notification-container {
        bottom: 10px;
        right: 10px;
    }

    .notification {
        padding: 10px 15px;
        font-size: 14px;
        max-width: 85vw;
        margin-top: 8px;
    }

    .notification .close-notification {
        font-size: 16px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    .module-card {
        height: auto;
        min-height: 300px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    .notification {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 80vw;
    }
}

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    opacity: 1;
}

.product-modal-overlay.fade-out {
    opacity: 0;
}

.product-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(0, 70, 0, 0.8), rgba(0, 40, 0, 0.9));
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.3);
    border: 1px solid #FFD700;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-modal-overlay.active .product-modal-content {
    transform: translateY(0);
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 51, 0, 0.75);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.modal-close-btn:hover {
    transform: scale(1.1);
    color: #ADFF2F;
}

.product-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
    color: rgba(255, 255, 255, 0.9);
}

.product-modal-title {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
}

.product-modal-title p {
    margin: 0;
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
}

.modal-features-content {
    margin-bottom: 25px;
}

.modal-feature-item {
    margin-bottom: 12px;
    padding: 4px 0;
    /* Adiciona um pequeno padding vertical */
}

.modal-feature-item p {
    margin: 0;
    margin-bottom: 12px;
    /* Adiciona espaçamento entre parágrafos */
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    /* Mantendo display block para permitir quebra de linha */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    white-space: pre-line;
    /* Mantendo para respeitar quebras de linha */
}


.warning-title {
    font-size: 1rem;
    color: #FFA500;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-shadow: 1px 1px 4px rgba(255, 165, 0, 0.5);
    text-transform: uppercase;
}

.instruction-item {
    margin-bottom: 10px;
}

.instruction-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.no-features {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

.modal-instructions-section {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
    }

    .product-modal-header h2 {
        font-size: 1.1rem;
    }

    .product-modal-title p {
        font-size: 1rem;
    }

    .modal-feature-item p,
    .instruction-item p {
        font-size: 0.85rem;
    }
}

/* Estilização da barra de rolagem para o modal */
.product-modal-body::-webkit-scrollbar {
    width: 5px;
}

.product-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.product-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FFA500, #ADFF2F);
    border-radius: 50px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* produtos.css - Estilos para api-produtos.js compatíveis com o tema do site */
.module-card.highlight-card {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }
}

.open-features-modal-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #00CC00, #009900);
    border: 1px solid #FFD700;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
}

.open-features-modal-btn:hover {
    background: linear-gradient(to right, #00E600, #00B300);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.3);
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: space;
}

/* Estilos para o loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1003;
    /* Acima do modal de sucesso */
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(173, 255, 47, 0.3);
    border-top: 5px solid #adff2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #adff2f, #40e0d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(173, 255, 47, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ajustes para os modais existentes */
.purchase-modal,
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.purchase-modal.active,
.success-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .loading-content {
        padding: 25px;
        max-width: 280px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        padding: 12px;
    }

    .loading-icon {
        font-size: 26px;
    }

    .loading-content h3 {
        font-size: 1.1rem;
    }

    .loading-content p {
        font-size: 0.9rem;
    }

    .purchase-modal-content,
    .success-modal-content {
        width: 90%;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 20px;
        max-width: 260px;
    }

    .loading-spinner {
        width: 45px;
        height: 45px;
        padding: 10px;
        margin-bottom: 15px;
    }

    .loading-icon {
        font-size: 24px;
    }

    .loading-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .loading-content p {
        font-size: 0.85rem;
    }

    .purchase-modal-content,
    .success-modal-content {
        padding: 15px;
    }

    .purchase-modal-header h3,
    .success-modal-header h3 {
        font-size: 1.1rem;
    }
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.success-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(173, 255, 47, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    max-width: 400px;
    width: 90%;
}

.success-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #adff2f, #40e0d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(173, 255, 47, 0.3);
}

.success-modal-body p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.view-products-btn,
.continue-shopping-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    margin: 0 0.5rem;
}

.view-products-btn {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.2), rgba(64, 224, 208, 0.2));
    color: #fff;
}

.view-products-btn:hover {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.3), rgba(64, 224, 208, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(173, 255, 47, 0.3);
}

.continue-shopping-btn {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
    color: #fff;
    border-color: rgba(255, 99, 71, 0.3);
}

.continue-shopping-btn:hover {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 99, 71, 0.3);
}

.close-modal {
    background: none;
    border: none;
    color: #adff2f;
    font-size: 1.5rem;
    cursor: pointer;
}

.success-icon i {
    font-size: 3rem;
    color: #adff2f;
    margin-bottom: 1rem;
}

/* Ajustes para telas menores (abaixo de 991px) */
@media (max-width: 991px) {
    .success-modal-content {
        padding: 1.5rem;
        max-width: 350px;
        width: 85%;
    }

    .success-modal-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .success-modal-body p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .view-products-btn,
    .continue-shopping-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0 0.3rem;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .loading-spinner p {
        font-size: 1rem;
    }
}

/* Ajustes para telas muito pequenas (abaixo de 576px) */
@media (max-width: 576px) {
    .success-modal-content {
        padding: 1rem;
        max-width: 300px;
        width: 90%;
    }

    .success-modal-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .success-modal-body p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .view-products-btn,
    .continue-shopping-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin: 0.2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .view-products-btn {
        margin-bottom: 0.5rem;
    }

    .spinner {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }

    .loading-spinner p {
        font-size: 0.9rem;
    }
}

.insufficient-balance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1003;
}

.insufficient-balance-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 99, 71, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    max-width: 400px;
    width: 90%;
}

.insufficient-balance-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6347, #ffa500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(255, 99, 71, 0.3);
}

.insufficient-balance-body p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.warning-icon i {
    font-size: 3rem;
    color: #ff6347;
    margin-bottom: 1rem;
}

.balance-actions {
    display: flex;
    justify-content: center;
    /* Centraliza os botões horizontalmente */
    gap: 1rem;
    /* Espaçamento entre os botões */
    margin-top: 1.5rem;
    /* Espaçamento superior para melhor estética */
}





.cancel-purchase-btn {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
    color: #fff;
    border-color: rgba(255, 99, 71, 0.3);
}

.cancel-purchase-btn:hover {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 99, 71, 0.3);
}

/* Ajustes para telas menores (abaixo de 991px) */
@media (max-width: 991px) {
    .insufficient-balance-content {
        padding: 1.5rem;
        max-width: 350px;
        width: 85%;
    }

    .insufficient-balance-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .insufficient-balance-body p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
}

/* Ajustes para telas muito pequenas (abaixo de 576px) */
@media (max-width: 576px) {
    .insufficient-balance-content {
        padding: 1rem;
        max-width: 300px;
        width: 90%;
    }

    .insufficient-balance-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .insufficient-balance-body p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .balance-actions {
        flex-direction: column;
        /* Empilha os botões verticalmente */
        gap: 0.5rem;
    }



    .cancel-purchase-btn {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
        color: #fff;
        border-color: rgba(255, 99, 71, 0.3);
    }

    .cancel-purchase-btn:hover {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255, 99, 71, 0.3);
    }


    /* Estilos para o modal de confirmação de compra */
    .purchase-modal-content {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
        backdrop-filter: blur(16px);
        border: 1px solid rgba(173, 255, 47, 0.3);
        /* Correção do erro de sintaxe */
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        width: 90%;
    }

    .purchase-modal-header h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, #adff2f, #40e0d0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 4px rgba(173, 255, 47, 0.3);
    }

    .purchase-modal-body p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .confirm-purchase-btn,
    .cancel-btn {
        padding: 0.8rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        margin: 0 0.5rem;
    }

    .confirm-purchase-btn {
        background: linear-gradient(135deg, rgba(173, 255, 47, 0.2), rgba(64, 224, 208, 0.2));
        color: #fff;
    }

    .confirm-purchase-btn:hover {
        background: linear-gradient(135deg, rgba(173, 255, 47, 0.3), rgba(64, 224, 208, 0.3));
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(173, 255, 47, 0.3);
    }

    .cancel-btn {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
        color: #fff;
        border-color: rgba(255, 99, 71, 0.3);
    }

    .cancel-btn:hover {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255, 99, 71, 0.3);
    }

    /* Estilos para o overlay de loading */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        display: none;
        /* Escondido por padrão */
        justify-content: center;
        align-items: center;
        z-index: 1003;
        /* Acima de outros modais */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .loading-overlay.active {
        display: flex;
        /* Garante que o loading apareça quando ativo */
        opacity: 1;
    }

    .loading-spinner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 5px solid rgba(173, 255, 47, 0.3);
        border-top: 5px solid #adff2f;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .loading-spinner p {
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(45deg, #adff2f, #40e0d0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 4px rgba(173, 255, 47, 0.3);
    }

    /* Estilos adicionais para responsividade */
    @media (max-width: 991px) {
        .purchase-modal-content {
            padding: 1.5rem;
            max-width: 350px;
            width: 85%;
        }

        .purchase-modal-header h3 {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
        }

        .purchase-modal-body p {
            font-size: 0.9rem;
            margin-bottom: 1.2rem;
        }

        .confirm-purchase-btn,
        .cancel-btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
            margin: 0 0.3rem;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border-width: 4px;
        }

        .loading-spinner p {
            font-size: 1rem;
        }
    }

    @media (max-width: 576px) {
        .purchase-modal-content {
            padding: 1rem;
            max-width: 300px;
            width: 90%;
        }

        .purchase-modal-header h3 {
            font-size: 1.3rem;
            margin-bottom: 0.6rem;
        }

        .purchase-modal-body p {
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }

        .confirm-purchase-btn,
        .cancel-btn {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            width: 100%;
            margin: 0.2rem 0;
        }

        .confirm-purchase-btn {
            margin-bottom: 0.5rem;
        }

        .spinner {
            width: 35px;
            height: 35px;
            border-width: 3px;
        }

        .loading-spinner p {
            font-size: 0.9rem;
        }
    }

    /* Estilos para o modal de erro genérico */
    .error-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1002;
    }

    .error-modal.active {
        display: flex;
        opacity: 1;
    }

    .error-modal-content {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 99, 71, 0.3);
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        width: 90%;
        animation: fadeIn 0.5s ease-out;
    }

    .error-modal-header h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, #ff6347, #ffa500);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 4px rgba(255, 99, 71, 0.3);
    }

    .error-modal-body p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .error-icon i {
        font-size: 3rem;
        color: #ff6347;
        margin-bottom: 1rem;
    }

    .close-error-btn {
        padding: 0.8rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(255, 165, 0, 0.2));
        color: #fff;
        border: 1px solid rgba(255, 99, 71, 0.3);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

    .close-error-btn:hover {
        background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 165, 0, 0.3));
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(255, 99, 71, 0.3);
    }

    /* Ajustes responsivos para o modal de erro */
    @media (max-width: 991px) {
        .error-modal-content {
            padding: 1.5rem;
            max-width: 350px;
            width: 85%;
        }

        .error-modal-header h3 {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
        }

        .error-modal-body p {
            font-size: 0.9rem;
            margin-bottom: 1.2rem;
        }

        .close-error-btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 576px) {
        .error-modal-content {
            padding: 1rem;
            max-width: 300px;
            width: 90%;
        }

        .error-modal-header h3 {
            font-size: 1.3rem;
            margin-bottom: 0.6rem;
        }

        .error-modal-body p {
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }

        .close-error-btn {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            width: 100%;
        }
    }

    /* Ajustes finais para garantir consistência */
    body {
        overflow-x: hidden;
        /* Evita rolagem horizontal indesejada */
    }

    /* Garantir que todos os modais tenham prioridade sobre outros elementos */
    .purchase-modal,
    .success-modal,
    .insufficient-balance-modal,
    .error-modal,
    .loading-overlay {
        pointer-events: none;
        /* Desativado por padrão */
    }

    .purchase-modal.active,
    .success-modal.active,
    .insufficient-balance-modal.active,
    .error-modal.active,
    .loading-overlay.active {
        pointer-events: auto;
        /* Ativado quando visível */
    }

    /* Ajuste para animações suaves em todos os modais */
    .purchase-modal,
    .success-modal,
    .insufficient-balance-modal,
    .error-modal {
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .purchase-modal.active,
    .success-modal.active,
    .insufficient-balance-modal.active,
    .error-modal.active {
        visibility: visible;
        transition: opacity 0.3s ease;
    }



    /* Container do porco flutuante */
    #pig-float-container {
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 1000;
        pointer-events: none;
    }

    /* Botão do porco flutuante */
    #pig-float-button {
        position: absolute;
        bottom: 50px;
        right: 50px;
        z-index: 2147483647;
        width: 35px;
        height: auto;
        transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        cursor: pointer;
        pointer-events: auto;
        animation: 3s ease-in-out infinite subtlePulse;
        display: block;
        text-decoration: none;
    }

    /* Imagem do porco */
    #pig-float-button img {
        width: 35px;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s;
    }

    /* Efeitos de hover */
    #pig-float-button:hover {
        animation: none;
        transform: translateY(-5px);
    }

    #pig-float-button:hover img {
        filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.3));
    }

    /* Animação de pulsar */
    @keyframes subtlePulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    /* Responsividade para dispositivos menores */
    @media (max-width: 768px) {
        #pig-float-button {
            width: 30px;
            bottom: 30px;
            right: 20px;
        }

        #pig-float-button img {
            width: 30px;
        }
    }

    @media (max-width: 480px) {
        #pig-float-button {
            width: 25px;
            bottom: 20px;
            right: 15px;
        }

        #pig-float-button img {
            width: 25px;
        }
    }



    .modal-feature-item p:last-child {
        margin-bottom: 0;
    }


    .modal-feature-item p {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}