* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar Global - Minimalista */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.8);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.5) transparent;
}

body {
    font-family: 'Allerta', sans-serif;
    min-height: 100vh;
    color: white;
    position: relative;
}

.gradient-bg {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 0, 0, 0.95) 50%, rgba(45, 0, 0, 0.9) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-img {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 180px;
    height: auto;
    border-radius: 0.5rem;
    filter: brightness(1.1) saturate(1.1) contrast(1.1);
    transition: filter 0.3s ease;
    animation: neon-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.logo-img:hover {
    filter: brightness(1.3) saturate(1.4) contrast(1.15);
    animation-duration: 1s;
}

@keyframes neon-glow {
    0% {
        filter: brightness(1.1) saturate(1.1) contrast(1.1) drop-shadow(0 0 3px rgba(220, 38, 38, 0.5)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.3)) drop-shadow(0 0 9px rgba(220, 38, 38, 0.4));
    }

    50% {
        filter: brightness(1.2) saturate(1.2) contrast(1.15) drop-shadow(0 0 6px rgba(220, 38, 38, 0.8)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 18px rgba(220, 38, 38, 0.7)) drop-shadow(0 0 24px rgba(239, 68, 68, 0.5));
    }

    100% {
        filter: brightness(1.15) saturate(1.15) contrast(1.12) drop-shadow(0 0 4px rgba(220, 38, 38, 0.6)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 12px rgba(220, 38, 38, 0.5)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.4));
    }
}

.logo-subtitle {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 30%, #ffd700 60%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #e63946 0%, #c1121f 30%, #8b0000 70%, #5c0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(193, 18, 31, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 50%, #8b0000 100%);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
    color: white;
}

/* Category Section */
.category-section {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: white;
    position: relative;
}

.category-count {
    margin-left: auto;
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(220, 38, 38, 0.3) 10%,
            rgba(220, 38, 38, 0.6) 20%,
            rgba(220, 38, 38, 0.8) 30%,
            rgba(220, 38, 38, 0.6) 40%,
            rgba(220, 38, 38, 0.3) 50%,
            rgba(220, 38, 38, 0.6) 60%,
            rgba(220, 38, 38, 0.8) 70%,
            rgba(220, 38, 38, 0.6) 80%,
            rgba(220, 38, 38, 0.3) 90%,
            transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.category-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 8px,
            rgba(220, 38, 38, 0.4) 8px,
            rgba(220, 38, 38, 0.4) 10px);
}

.popular-fire-icon {
    color: #dc2626;
    font-size: 1.5rem;
    animation: fire-flicker 1.5s ease-in-out infinite;
}

.explore-icon {
    color: #dc2626;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: inline-block;
    animation: rotate-compass 2s ease-in-out infinite;
}

.explore-icon:hover {
    color: #ef4444;
    animation-duration: 1s;
}

@keyframes rotate-compass {

    0%,
    100% {
        transform: rotate(-25deg);
    }

    50% {
        transform: rotate(25deg);
    }
}

@keyframes fire-flicker {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #dc2626);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px #dc2626) drop-shadow(0 0 15px #ef4444);
    }
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.platform-card-link {
    text-decoration: none;
    display: block;
}

.platform-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
}

.platform-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2rem;
    border: 1px solid rgba(127, 29, 29, 0.5);
    display: block;
}

/* Badge */
.badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(to right, #ef4444, #dc2626, #b91c1c);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    animation: shine 3s infinite;
}

.badge svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 3rem 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(127, 29, 29, 0.3);
}

.footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Animations */
@keyframes shine {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.install-banner-content {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.install-banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}

.install-banner-text i {
    font-size: 1.25rem;
    color: #ffd700;
}

.install-button {
    background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Allerta', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    background: linear-gradient(180deg, #ffed4e 0%, #ffd700 100%);
}

.install-button:active {
    transform: translateY(0);
}

.dismiss-button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dismiss-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 640px) {
    .logo-subtitle {
        font-size: 0.875rem;
    }

    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .install-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .install-banner-text {
        text-align: center;
        justify-content: center;
    }

    .install-button {
        width: 100%;
        justify-content: center;
    }

    .dismiss-button {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Install Modal */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.install-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.install-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 0, 0, 0.98) 50%, rgba(45, 0, 0, 0.95) 100%);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 1rem;
    padding: 1.25rem;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(220, 38, 38, 0.3);
    animation: slideUp 0.4s ease-out;
}

/* Custom Scrollbar Modal - Minimalista */
.install-modal-content::-webkit-scrollbar {
    width: 6px;
}

.install-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.install-modal-content::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.5);
    border-radius: 3px;
}

.install-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.8);
}

/* Firefox Scrollbar */
.install-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.5) transparent;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.install-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.875rem;
}

.install-modal-close:hover {
    background: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.install-instructions {
    text-align: center;
}

.install-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.install-icon i {
    font-size: 3.5rem;
    color: #dc2626;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.5));
}

.install-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.install-step {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.install-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-content p {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.step-content strong {
    color: #ffd700;
    font-weight: 700;
}

/* Visual Elements - Android */
.visual-menu {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 0.5rem;
}

.menu-dots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-dots span {
    width: 24px;
    height: 4px;
    background: #dc2626;
    border-radius: 2px;
    display: block;
}

.visual-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #3DDC84 0%, #2BAE66 100%);
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(61, 220, 132, 0.3);
}

.visual-button i {
    font-size: 0.875rem;
}

.visual-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(61, 220, 132, 0.2);
    border: 2px solid #3DDC84;
    border-radius: 0.5rem;
    color: #3DDC84;
    font-weight: 600;
    font-size: 0.75rem;
}

.visual-confirm i {
    font-size: 1rem;
    color: #3DDC84;
}

/* Visual Elements - iOS */
.visual-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.visual-share i {
    font-size: 0.875rem;
}

.visual-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.visual-scroll i.fa-arrow-down {
    font-size: 1rem;
    color: #007AFF;
    animation: bounce 1s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(5px);
    }
}

.scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(0, 122, 255, 0.2);
    border: 2px solid #007AFF;
    border-radius: 0.5rem;
    color: #007AFF;
    font-weight: 600;
    font-size: 0.75rem;
    width: 100%;
}

.scroll-item i {
    font-size: 0.875rem;
}

.visual-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.3);
}

.visual-add i {
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .install-modal-content {
        padding: 1rem;
        border-radius: 0.75rem;
        max-height: 90vh;
    }

    .install-title {
        font-size: 1.25rem;
    }

    .install-icon i {
        font-size: 3rem;
    }

    .install-step {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-content p {
        font-size: 0.8125rem;
    }
}