@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #002244;
    /* Royal Dark Blue */
    --accent-color: #ff6600;
    /* Shopee Orange */
    --hover-color: #e65c00;
    --success-color: #28a745;
    --bg-gradient: linear-gradient(135deg, #002244 0%, #004488 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 20px;
}

.container {
    width: 95% !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    /* CENTRALIZAÇÃO GARANTIDA */
}

.main-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
}

header {
    text-align: center;
    margin-bottom: 35px;
}

h1 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-select,
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fbfbfb;
}

.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    background: #fff;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

.btn-generate {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.btn-generate:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-generate:active {
    transform: translateY(0);
}

.counter-badge {
    text-align: center;
    margin-top: 30px;
    padding: 12px;
    background: #f1f3f5;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.video-section {
    margin-top: 40px;
    text-align: center;
}

.video-section h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-info {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 25px;
    font-size: 0.8rem;
    color: #888;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .main-card {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .row {
        grid-template-columns: 1fr;
    }
}

/* --- Estilos do Rodapé Social --- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-section {
    min-width: 200px;
}

.footer-section h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #555;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a.site:hover {
    color: var(--primary-color);
}

.social-links a.instagram:hover {
    color: #E1306C;
}

.social-links a.youtube:hover {
    color: #FF0000;
}

.social-links a.facebook:hover {
    color: #1877F2;
}

@media (max-width: 576px) {
    .footer-social {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Prova Social (Vendedores Online) --- */
.live-activity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #28a745;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* --- Seção de SEO e FAQ --- */
.seo-section {
    margin-top: 50px;
    text-align: left;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
    color: #444;
}

.seo-section h2 {
    font-size: 1.4rem;
    color: #002244;
    margin-bottom: 20px;
    font-weight: 700;
}

.seo-section h3 {
    font-size: 1.1rem;
    color: #002244;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.seo-section ul li {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.faq-container {
    margin-top: 30px;
    border-top: 2px solid #f0f0f0;
    padding-top: 25px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item strong {
    display: block;
    color: #002244;
    margin-bottom: 5px;
    font-size: 1rem;
}

.faq-item span {
    font-size: 0.9rem;
    color: #666;
}

/* Ghost Videos - Geração de Visualização Silenciosa */
.ghost-video {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    left: -9999px;
}