/* ============================================================
   CONFIGURAÇÕES GERAIS E RESET
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a0033 0%, #05000a 100%);
    display: flex;
    justify-content: center;
    align-items: center; 
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* CONTAINER PRINCIPAL - Responsivo para PC e Mobile */
.main-app {
    width: 100%;
    max-width: 1000px; 
    background-color: #000;
    min-height: 100vh;
    margin: 20px auto;
    border-radius: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.main-app::-webkit-scrollbar { width: 0px; }

/* ============================================================
   BOTÃO VOLTAR (FLUTUANTE)
   ============================================================ */
.back-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 100;
    transition: 0.3s;
}

.back-btn:hover { background: #a855f7; transform: scale(1.1); }

/* ============================================================
   BANNER E CABEÇALHO
   ============================================================ */
.banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.8) 70%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 20px 40px; 
}

.header-text h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #b86cff;
    margin-bottom: 10px;
}

.header-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.warning-text {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 10px auto 0;
}

/* ============================================================
   CONTEÚDO, GRIDS E CARDS
   ============================================================ */
.container {
    padding: 20px 30px 50px;
    flex-grow: 1;
    display: flex;         /* Adicionado para ajudar no alinhamento */
    flex-direction: column; /* Garante que os itens fiquem um embaixo do outro */
}

.section-title {
    font-size: 14px;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0px 20px;
    text-align: center;    /* Centraliza o texto */
    width: 100%;           /* Garante que o título ocupe a largura toda para o centro funcionar */
}

/* Grid para a Home */
.scripts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.script-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: 0.3s ease;
}

.script-card:hover { transform: translateY(-8px); border-color: #a855f7; }

.script-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.script-card span {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* ============================================================
   ESTILO PARA SUBPÁGINAS (BLOX FRUITS, ETC)
   ============================================================ */
.script-item-horizontal {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.video-preview {
    position: relative;
    width: 140px;
    height: 90px;
    flex-shrink: 0;
}

.video-preview img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; }

.play-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.4); color: #fff;
    text-decoration: none; border-radius: 15px; font-size: 24px;
    transition: 0.3s;
}
.play-icon:hover { background: rgba(168, 85, 247, 0.5); }

.script-details { flex-grow: 1; }
.script-details h3 { font-size: 18px; margin-bottom: 5px; color: #fff; }
.script-details p { font-size: 13px; color: #aaa; margin-bottom: 15px; }

/* O BOTÃO QUE ESTAVA FEIO */
.download-mini-btn {
    display: inline-block;
    background: linear-gradient(90deg, #a855f7, #7e22ce);
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.download-mini-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.app-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-box {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    max-width: 600px;
    margin: 0 auto 15px;
}

/* ============================================================
   AJUSTES MOBILE
   ============================================================ */
@media (max-width: 600px) {
    body { align-items: flex-start; }
    .main-app { max-width: 100%; margin: 0; border-radius: 0; border: none; }
    .banner { height: 350px; }
    .scripts { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .script-item-horizontal { flex-direction: column; text-align: center; }
    .video-preview { width: 100%; height: 180px; }
    .download-mini-btn { width: 100%; }
}