/* Responsive Cinema Style - Fluix V1.5 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary-color: #E50914;
    --primary-glow: rgba(229, 9, 20, 0.8);
    --secondary-color: #B81D24;
    --bg-dark: #0a0a0a;
    --glass-panel: rgba(0, 0, 0, 0.75);
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    /* Vibrant Background with Fallback Gradient */
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('https://assets.nflxext.com/ffe/siteui/vlv3/f841d4c7-10e1-40af-bcae-07a3f8dc141a/f6d7434e-d6de-4185-a6d4-c77a2d08648f/BR-pt-20220502-popsignuptwoweeks-perspective_alpha_website_medium.jpg'),
        radial-gradient(circle at center, #600f13 0%, #000000 100%);
    /* Strong Red Fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    padding: 40px 20px;
    /* Added top/bottom padding */
    display: block;
    /* Removed flex centering for stability */
    overflow-x: hidden;
}

/* Container: Fixed max-width, Centered, Responsive */
.container {
    width: 100%;
    max-width: 1200px;
    /* Increased for Desktop */
    margin: 0 auto;
    /* Standard Centering */
    background: var(--glass-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Cinematic Top Glow */
.container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

/* Admin Panel Tables & Layout Fixes - Complete Overhaul */
.admin-container {
    max-width: 95% !important;
    /* Force wide width */
    width: 95% !important;
    background: rgba(10, 10, 10, 0.95) !important;
    /* Solid dark background */
    display: block !important;
    /* disable flex centering */
    margin: 20px auto !important;
    padding: 30px !important;
    height: auto !important;
    min-height: 80vh;
}

.admin-container header {
    max-width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 0.9rem;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #1f1f1f;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

td {
    color: #eee;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Table Optimization - CARD LAYOUT */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px !important;
        margin: 10px auto !important;
        width: 95% !important;
    }

    .admin-container header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    /* Hide standard table headers */
    thead {
        display: none;
    }

    /* Turn rows into Cards */
    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 20px;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    td {
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
    }

    td:last-child {
        border-bottom: none;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-top: 10px;
    }

    /* Add labels via CSS content for columns (Manual approach for simplicity) */
    td:nth-of-type(1)::before {
        content: "Data:";
        font-weight: bold;
        color: #888;
    }

    td:nth-of-type(2)::before {
        content: "Nome:";
        font-weight: bold;
        color: #888;
    }

    /* td:nth-of-type(3) is WhatsApp - Usually has button, label might be redundant or needed */

    .btn-small {
        width: 100%;
        /* Full width buttons on mobile */
        padding: 15px;
        font-size: 1rem;
        margin: 5px 0;
        text-align: center;
        border-radius: 8px;
    }
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.status-waiting {
    color: #ffd700;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.status-done {
    color: #00ff00;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 4px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
}

h1 {
    font-size: 4rem;
    /* Larger on desktop */
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ff4c4c, #E50914);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
    letter-spacing: 3px;
    line-height: 1;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Cinema Frame Showcase */
.cinema-showcase {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
    /* Deeper shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Benefits Grid */
.benefits {
    width: 100%;
    margin-bottom: 50px;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns on Desktop */
    gap: 30px;
    list-style: none;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    /* Align to top for multi-line text */
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.check-icon {
    font-size: 2rem;
    min-width: 30px;
    /* Prevent shrinking */
}

/* Form Area */
.form-box {
    width: 100%;
    max-width: 600px;
    /* Slightly wider */
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

h2 {
    color: var(--text-white);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.input-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 20px;
    background: #151515;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #111;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

/* CTA Animation */
@keyframes glowing-pulse {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 30px var(--primary-color), 0 0 15px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

.btn-cta {
    width: 100%;
    padding: 25px;
    margin-top: 15px;
    background: linear-gradient(180deg, #ff1f1f 0%, #b20710 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glowing-pulse 2s infinite;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
}

footer {
    margin-top: 60px;
    color: #777;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    width: 100%;
}

/* RESPONSIVE QUERIES */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
    .container {
        padding: 40px;
        max-width: 95%;
    }

    .benefit-list {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns */
    }

    h1 {
        font-size: 3rem;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    body {
        padding: 10px;
        /* On mobile, we might want less background movement or just static */
        background-attachment: scroll;
    }

    .container {
        padding: 20px;
        border-radius: 12px;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .benefit-list {
        grid-template-columns: 1fr;
        /* 1 Column */
    }

    .form-box {
        padding: 25px;
    }

    .btn-cta {
        font-size: 1.2rem;
        padding: 20px;
    }

    input {
        padding: 15px;
        font-size: 1rem;
    }
}