/* tv-cyberpunk.css - Design High-Tech (HUD + Store Buttons + Modal Fix V5 - Super Compact) */

:root {
    --cyber-orange: #ff4d1d;
    --cyber-cyan: #00ffea;
    --cyber-bg: rgba(5, 7, 10, 0.9);
}

/* Container */
#tv-assinatura {
    position: relative;
    height: 100%;
    /* Ocupa toda a altura do slide pai */
    width: 100%;
    /* Full Width */
    display: flex;
    /* Flex Center */
    align-items: center;
    /* Vertical Center */
    padding: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 234, 0.08), transparent 80%), var(--bg-dark);
    border-top: 1px solid #1a2634;
    border-bottom: 1px solid #1a2634;
    overflow: hidden;
    /* Changed to hidden to match standard */
}

/* CARDS HUD STYLE */
.tv-info-card,
.tv-price-card {
    background: var(--cyber-bg);
    border: 1px solid rgba(0, 255, 234, 0.3);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    padding: 20px;
    /* COMPACTADO */
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 400px;
    /* Reduzido */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tv-info-card {
    border-color: rgba(0, 255, 234, 0.4);
}

.tv-price-card {
    border-color: rgba(255, 77, 29, 0.4);
}

.tv-info-card:hover,
.tv-price-card:hover {
    transform: translateY(-5px);
    background: rgba(5, 7, 10, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.tv-info-card:hover {
    border-color: var(--cyber-cyan);
}

.tv-price-card:hover {
    border-color: var(--cyber-orange);
}

.tv-info-card::before,
.tv-price-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid;
    border-left: 2px solid;
    border-color: inherit;
}

.tv-info-card::after,
.tv-price-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-color: inherit;
}

.tv-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    /* COMPACTADO */
    font-weight: 700;
    margin-bottom: 10px;
    /* COMPACTADO */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.text-cyan {
    color: var(--cyber-cyan);
}

/* Lista de Benefícios */
.tv-features-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.tv-features-list li {
    font-size: 1.0rem;
    margin-bottom: 8px;
    /* COMPACTADO */
    color: #d1d9e0;
    display: flex;
    align-items: center;
}

.tv-features-list li i {
    font-size: 1.3rem;
    color: var(--cyber-cyan);
    margin-right: 12px;
    min-width: 24px;
    text-align: center;
}

/* Preço (COMPACTADO) */
.tv-price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 15px 0;
    font-family: 'Orbitron', sans-serif;
}

.tv-value {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 15px var(--cyber-orange);
    font-weight: 800;
}

.tv-currency {
    font-size: 1.5rem;
    color: var(--cyber-orange);
    margin-right: 8px;
}

.tv-term {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    /* Mais claro e legível */
    margin-left: 5px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Botões de Loja */
.btn-store {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d9e0;
    padding: 10px 15px;
    text-align: left;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn-store img {
    margin-right: 10px;
}

.btn-store:hover {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--cyber-cyan);
    color: #fff;
    transform: translateX(5px);
}

/* Botões Principais */

/* SECUNDÁRIO: Ciano Compacto + Nuclear Fix */
.btn-cyber-secondary {
    background: rgba(0, 255, 234, 0.05);
    border: 2px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    padding: 8px 12px !important;
    /* Compacto */
    width: 100%;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 10;
    text-decoration: none;
    font-size: 0.85rem !important;
    /* Compacto */
    line-height: 1.2 !important;
    margin-top: 12px;
    min-height: 0 !important;
}

.btn-cyber-secondary:hover {
    background: linear-gradient(90deg, #00c8ff, var(--cyber-cyan)) !important;
    color: #000 !important;
    border-color: transparent !important;
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.8) !important;
    transform: translateY(-5px) scale(1.03) !important;
}

.btn-cyber-secondary i {
    transition: transform 0.3s;
}

.btn-cyber-secondary:hover i {
    transform: rotate(90deg);
}

/* PRIMÁRIO: Laranja (Compactado Padding) */
.btn-cyber-cta {
    background: linear-gradient(90deg, var(--cyber-orange), #ff8c00);
    border: none;
    color: white;
    font-weight: 800;
    padding: 10px !important;
    /* COMPACTADO (Era 15) */
    width: 100%;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 77, 29, 0.3);
    margin-top: 10px;
    /* Removido auto, fixo 10px */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cyber-cta:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 30px rgba(255, 77, 29, 0.7);
    color: white;
}

/* SISTEMA SOLAR CENTRAL */
.tv-solar-system {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tv-center-app {
    width: 280px;
    z-index: 10;
    transition: transform 0.5s ease;
}

.tv-center-app:hover {
    transform: scale(1.05);
}

.app-screen {
    width: 100%;
    border-radius: 24px;
    border: 2px solid var(--cyber-cyan);
    box-shadow: 0 0 60px rgba(0, 255, 234, 0.2);
}

/* Órbita */
.stores-orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: solarSpin 30s linear infinite;
}

/* Pausa ao passar o mouse no sistema solar */
.tv-solar-system:hover .stores-orbit-ring,
.tv-solar-system:hover .planet-rotator {
    animation-play-state: paused;
}

/* CONTAINER DO PLANETA */
.orbit-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px;
    transform: translateX(230px);
    transition: z-index 0s;
}

.orbit-planet:hover {
    z-index: 20;
}

/* ROTATOR INTERNO */
.planet-rotator {
    width: 100%;
    height: 100%;
    animation: solarCounterSpin 30s linear infinite;
}

/* LINK COM ZOOM */
.orbit-planet a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.orbit-planet:hover a {
    transform: scale(1.3);
}

/* IMAGEM */
.orbit-planet img {
    width: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 234, 0.5);
    background: #05070a;
    padding: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.orbit-planet:hover img {
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.8);
    border-color: #fff;
}

.planet-1 {
    transform: rotate(0deg) translateX(230px) rotate(0deg);
}

.planet-2 {
    transform: rotate(60deg) translateX(230px) rotate(-60deg);
}

.planet-3 {
    transform: rotate(120deg) translateX(230px) rotate(-120deg);
}

.planet-4 {
    transform: rotate(180deg) translateX(230px) rotate(-180deg);
}

.planet-5 {
    transform: rotate(240deg) translateX(230px) rotate(-240deg);
}

.planet-6 {
    transform: rotate(300deg) translateX(230px) rotate(-300deg);
}

@keyframes solarSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes solarCounterSpin {
    to {
        transform: rotate(-360deg);
    }
}

/* FIX MODAL CANAIS - ESTILO CYBERPUNK (Laranja) */
#tvChannelsModal .modal-content {
    background-color: #0b0e14 !important;
    border: 1px solid var(--cyber-cyan) !important;
    color: #e6e6e6;
    box-shadow: 0 0 50px rgba(0, 255, 234, 0.15);
}

#tvChannelsModal .modal-header {
    border-bottom: 1px solid #1a2634;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tvChannelsModal .modal-title {
    color: var(--cyber-cyan);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.btn-close-custom {
    background: transparent;
    border: 2px solid var(--cyber-orange);
    color: var(--cyber-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0;
}

.btn-close-custom:hover {
    background: var(--cyber-orange);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 0 15px var(--cyber-orange);
}

/* ANIMAÇÃO DE ENTRADA (CARROSSEL MASTER) - SLIDE LATERAL & ZOOM */
/* Colunas Esquerda e Direita (Cards) */
#tv-assinatura .col-lg-3 {
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Coluna 1: Vem da Esquerda */
#tv-assinatura .col-lg-3:first-child {
    transform: translateX(-50px);
}

/* Coluna 3: Vem da Direita */
#tv-assinatura .col-lg-3:last-child {
    transform: translateX(50px);
}

/* Coluna Central (Sistema Solar): Zoom In */
#tv-assinatura .col-lg-6 {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ESTADO ATIVO */
#tv-assinatura.animate-active .col-lg-3 {
    opacity: 1;
    transform: translateX(0);
}

#tv-assinatura.animate-active .col-lg-6 {
    opacity: 1;
    transform: scale(1);
}

/* Delays (Reduzidos 50%) */
#tv-assinatura.animate-active .col-lg-6 {
    transition-delay: 0.05s;
}

#tv-assinatura.animate-active .col-lg-3:first-child {
    transition-delay: 0.15s;
}

#tv-assinatura.animate-active .col-lg-3:last-child {
    transition-delay: 0.15s;
}


/* Mobile - Clean Layout (No Cards) - CLEAN & ORGANIZED */
@media (max-width: 991px) {
    #tv-assinatura {
        min-height: auto;
        height: 100%;
        padding: 0;
        flex-direction: column;
        justify-content: center;
    }

    /* REMOVE CARD LOOK COMPLETELY */
    .tv-info-card,
    .tv-price-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        clip-path: none !important;
        padding: 0 !important;
        margin: 0 auto;
        height: auto;
        min-height: auto;
        max-width: 100% !important;
        text-align: center;
        align-items: center;
    }

    .tv-info-card {
        order: 3;
        margin-top: 0;
    }

    .tv-info-card:hover,
    .tv-price-card:hover {
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tv-info-card::before,
    .tv-price-card::before,
    .tv-info-card::after,
    .tv-price-card::after {
        display: none !important;
    }

    /* TEXTOS */
    .tv-card-title {
        font-size: 1.1rem;
        margin-top: 5px;
        margin-bottom: 2px;
        border: none;
        color: #fff;
        text-shadow: 0 0 10px rgba(0, 255, 234, 0.3);
    }

    /* SISTEMA SOLAR (Centro) - REFACTOR WRAPPER */
    /* Container que reserva o espaço real ocupado no layout (280px) */
    .tv-solar-wrapper {
        width: 100%;
        height: 280px;
        position: relative;
        overflow: visible;
        margin: -40px auto 0 auto;
        /* Ajuste global de posição (puxar pra cima) */
        display: flex;
        /* Centralizar os 500px aqui dentro */
        justify-content: center;
        align-items: center;
        /* Debug border se precisar: border: 1px dashed red; */
    }

    /* O Elemento visual de 500px que será escalado */
    .tv-solar-system {
        /* Dimensões lógicas fixas */
        width: 500px !important;
        height: 500px !important;
        max-width: none !important;

        /* Layout Absoluto dentro do Wrapper */
        position: absolute;
        top: 0;
        /* Colar no topo do wrapper */
        left: 50%;
        /* Como transform-origin é center top, ele escala pra baixo. */
        /* TranslateX para centralizar, Scale Reduzido para 0.48 para mais respiro */
        transform: translateX(-50%) scale(0.48);
        transform-origin: center top;

        margin: 0 !important;
        /* Reset total de margens antigas */
        left: 50% !important;
    }

    /* App Central Menor e mais afastado do topo */
    .tv-center-app {
        width: 280px !important;
        /* Reduzido de 305px */
        /* Reduzido 5% (Era 320px) */
        max-width: none !important;
        /* Centralizado pelo Flex do pai (500px) */
        margin-top: 25px;
        /* Mais espaço do topo da órbita */
    }

    /* Ajuste fino dos planetas se necessário (não precisa pois o container é 500px) */

    /* PREÇO */
    .tv-price-display {
        margin: 0 0 5px 0;
    }

    /* Checklist */
    .tv-features-list {
        margin-top: 5px;
        text-align: center;
        /* ALINHAMENTO SIMPLES DITO PELO USUÁRIO */
    }

    .tv-features-list li {
        font-size: 0.85rem !important;
        /* Levemente ajustado */
        margin-bottom: 2px !important;
        justify-content: center;
        /* Centraliza itens */
    }

    .tv-features-list li i {
        font-size: 0.9rem !important;
        margin-right: 5px;
    }

    /* BOTÕES CTA */
    .btn-cyber-cta {
        max-width: 240px;
        margin: 8px auto 6px auto;
        font-size: 0.85rem !important;
        padding: 10px !important;
    }

    .btn-cyber-secondary {
        max-width: 240px;
        margin: 0 auto;
        background: transparent;
        border: 1px solid var(--cyber-cyan);
        padding: 8px !important;
        font-size: 0.8rem !important;
    }

    /* OCULTAR GRID DE LOJAS (Redundante no mobile) */
    .tv-info-card .d-grid {
        display: none !important;
    }

    .tv-info-card .tv-card-title {
        display: none;
    }
}