/* ========== PACKAGES SECTION (FUNCIONALIDADES STYLE) ========== */
/* Note: Core Card/Grid styles are now in main.css (Reference Port) */

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 20px;
    max-width: 900px;
    padding: 0 15px;
}

.category-tab {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Search Wrapper */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 68, 0, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Info Banners */
.info-banner {
    max-width: 900px;
    margin: 0 auto 15px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    text-align: center;
}

.info-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.info-content strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* Close All Button - Floating */
.close-all-wrapper {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.close-all-btn {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--primary-glow);
}

.close-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {

    /* Flex ordering removed to respect HTML structure */
    .search-wrapper {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        width: 100%;
    }

    .category-tabs {
        margin-bottom: 20px;
        justify-content: flex-start;
        width: 100%;
    }

    .package-header {
        padding: 10px 15px;
    }


    .package-title {
        font-size: 1rem;
    }

    .tool-card {
        padding: 8px 10px;
    }

    .tool-name {
        font-size: 0.85rem;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* CTA Button */
.final-cta-wrapper,
.package-cta-wrapper {
    margin: 20px auto 0 !important;
    text-align: center !important;
    padding: 15px 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    max-width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--primary-glow);
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px var(--primary-glow);
}

.cta-button.cta-small {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.cta-icon {
    font-size: 1.1rem;
}

.cta-text {
    font-weight: 700;
}