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

:root {
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --bg-dark: #0a0118;
    --bg-darker: #050010;
    --bg-card: rgba(20, 10, 40, 0.6);
    --text-white: #ffffff;
    --text-gray: #a8a3b8;
    --text-light: #d4d0e0;
    --border: rgba(168, 85, 247, 0.2);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--neon-purple);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-pink);
    top: 40%;
    right: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: var(--neon-blue);
    bottom: -100px;
    left: 30%;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 1, 24, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.75rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.logo-text .accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--neon-purple);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-social {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-purple);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
}

.btn-ghost:hover {
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

/* Hero */
.hero {
    padding: 3.5rem 2rem 3.5rem;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.play-icon {
    font-size: 0.8rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-main);
    filter: blur(60px);
    opacity: 0.6;
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-glow);
    animation: cardFloat 6s ease-in-out infinite;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Features */
.features {
    padding: 4.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-tag {
    display: inline-block;
    background: rgba(236, 72, 153, 0.1);
    color: var(--neon-pink);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    /* 320px (e não 250px) para caber 3 por linha no desktop: são 6 cards, então
       3+3 fecha certo — com 4 colunas sobravam 2 órfãos na segunda fila. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.icon-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.icon-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.icon-amber {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Pricing / Planos */
.pricing {
    padding: 3.5rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 420px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pricing-card.featured {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.22);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
}

.pricing-name {
    font-size: 1.45rem;
    font-weight: 800;
}

.pricing-desc {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin-top: -0.7rem;
}

.pricing-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.price-old {
    color: var(--text-gray);
    text-decoration: line-through;
    font-size: 0.95rem;
    opacity: 0.75;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.price-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.price-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: 800;
}

.pricing-btn {
    justify-content: center;
    text-decoration: none;
    margin-top: 0.4rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 1.75rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* CTA */
.cta {
    padding: 3rem 0 4.5rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
}

.cta-box h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-box button {
    position: relative;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-gray);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--neon-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 0, 16, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.75rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-gray);
}

/* Aviso único dos Spaces Prontos (Magnific / Premium+) */
.spaces-warn-content {
    max-width: 460px;
    text-align: center;
}

.spaces-warn-content .modal-header {
    margin-bottom: 1.25rem;
}

.spaces-warn-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.6));
}

.spaces-warn-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.spaces-warn-sub {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.spaces-warn-btn {
    width: 100%;
    justify-content: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--neon-purple);
}

.link {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 1rem;
}

.btn-social {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-purple);
}

.btn-social span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    color: var(--bg-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.auth-switch {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 600;
}

/* Login popup redesenhado */
.login-card {
    max-width: 420px;
    padding: 2.5rem 2.25rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 1.85rem;
}

.login-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.9rem;
    filter: drop-shadow(0 8px 22px rgba(168, 85, 247, 0.5));
}

.login-title {
    font-size: 1.95rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.login-title .accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.login-card .form-group label {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-gray);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.label-row .link {
    font-size: 0.8rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-svg {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: var(--text-gray);
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding-left: 2.75rem;
}

.login-submit {
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.95rem;
    margin-top: 0.35rem;
}

.login-card .auth-switch .support-link {
    color: #fff;
    font-weight: 700;
}

.login-error {
    display: none;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    text-align: center;
}

.login-error.show {
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        align-items: flex-start;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Bloco decorativo (cards flutuantes) some quando o hero empilha, para não criar espaço vazio */
    .hero-visual {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    .nav-container {
        padding: 1rem;
    }
    .hero {
        padding: 2rem 1.25rem 2.5rem;
        min-height: auto;
        align-items: flex-start;
    }
    /* Bloco decorativo (cards flutuantes) some no celular para não criar espaço vazio */
    .hero-visual {
        display: none;
    }
    .hero-subtitle {
        margin-bottom: 1.75rem;
    }
    .hero-buttons {
        margin-bottom: 2rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .features {
        padding: 3rem 0;
    }
    .pricing {
        padding: 2.5rem 0;
    }
    .cta {
        padding: 2.5rem 0 3.5rem;
    }
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ DASHBOARD ============ */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-logo {
    padding: 0 0.75rem;
    margin-bottom: 2rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-menu li a:hover {
    background: rgba(168, 85, 247, 0.1);
    color: white;
}

.sidebar-menu li a.active {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.menu-icon {
    font-size: 1.15rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.support-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.support-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-btn {
    margin-left: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn svg {
    width: 17px;
    height: 17px;
}

.logout-btn:hover {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.main-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-x: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--text-gray);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.icon-btn:hover {
    border-color: var(--neon-purple);
    color: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.tool-btn {
    background: rgba(168, 85, 247, 0.12);
    color: var(--text-white);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: -1;
}

.tool-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}

.tool-btn:hover::before {
    opacity: 1;
}

.tool-card:hover .tool-btn {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.section-block {
    margin-bottom: 2.5rem;
}

.section-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-block-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.view-all {
    color: var(--neon-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.stat-card-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card-change {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Submenu */
.sidebar-menu .menu-link {
    width: 100%;
}

.chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.menu-link.expanded .chevron {
    transform: rotate(180deg);
}

/* Indicador "Novo" no menu — ponto compacto, fora do fluxo do texto
   (não quebra o texto dos itens nem cola na palavra) */
.sidebar-menu a { position: relative; }

.nav-badge {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.9);
    animation: navBadgePulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

/* Itens com seta (submenus): afasta o ponto para não cobrir o chevron */
.nav-badge.has-chevron { right: 2rem; }

@keyframes navBadgePulse {
    0%, 100% { box-shadow: 0 0 6px rgba(168, 85, 247, 0.5); }
    50%      { box-shadow: 0 0 12px rgba(236, 72, 153, 0.8); }
}

/* Painel de Novidades (Início) */
.novidades-icon {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.novidades-count {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-main);
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.novidades-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.novidade-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.1rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
}

.novidade-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-main);
}

.novidade-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18);
}

.novidade-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.novidade-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-main);
    padding: 0.13rem 0.45rem;
    border-radius: 999px;
    line-height: 1;
}

.novidade-data {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.novidade-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.novidade-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
    margin-bottom: 0.7rem;
}

.novidade-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-purple);
}

/* Selo "Novo" no card de animação */
.anim-card { position: relative; }

.card-new-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 3;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-main);
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    animation: navBadgePulse 1.8s ease-in-out infinite;
}

/* Ponto "Novo" na sub-aba */
.anim-tab { position: relative; }
/* As pílulas (Prompts de Imagem / Vídeo / Agentes) também recebem o ponto.
   Como são arredondadas, o ponto sobe um pouco para não bater na curva. */
.unified-tab { position: relative; }
.unified-tab .tab-new-dot { top: 4px; right: 9px; }

.tab-new-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.9);
    animation: navBadgePulse 1.8s ease-in-out infinite;
}

/* Destaque ao navegar até o card pela novidade */
.card-flash {
    animation: cardFlash 1.7s ease-out;
}

@keyframes cardFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
    20%      { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.75); }
    60%      { box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.55); }
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 2.25rem;
    margin-top: 0;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 0.35rem;
}

.submenu li a {
    display: block;
    padding: 0.55rem 0.85rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 8px;
    border-left: 2px solid var(--border);
    margin-bottom: 0.15rem;
    transition: all 0.2s;
    transform: translateX(-6px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, color 0.2s, background 0.2s, border-left-color 0.2s;
}

.submenu.open li a {
    transform: translateX(0);
    opacity: 1;
}

.submenu.open li:nth-child(1) a { transition-delay: 0.05s; }
.submenu.open li:nth-child(2) a { transition-delay: 0.09s; }
.submenu.open li:nth-child(3) a { transition-delay: 0.13s; }
.submenu.open li:nth-child(4) a { transition-delay: 0.17s; }
.submenu.open li:nth-child(5) a { transition-delay: 0.21s; }
.submenu.open li:nth-child(6) a { transition-delay: 0.25s; }
.submenu.open li:nth-child(7) a { transition-delay: 0.29s; }

/* Submenu aninhado (Prompts de Animação → Vídeo Normal → subguias) */
#submenu-prompts.open {
    max-height: 600px;
}

.sidebar-menu a.submenu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    border-left: 2px solid var(--border);
    margin-bottom: 0.15rem;
    cursor: pointer;
    transform: translateX(-6px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, color 0.2s, background 0.2s, border-left-color 0.2s;
}

.submenu.open > li > a.submenu-toggle {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-menu a.submenu-toggle:hover {
    color: white;
    border-left-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.08);
}

.sidebar-menu a.submenu-toggle .chevron {
    margin-left: auto;
}

.sidebar-menu a.submenu-toggle.expanded .chevron {
    transform: rotate(180deg);
}

.submenu-nested {
    padding-left: 1.1rem;
}

.submenu li a:hover {
    color: white;
    border-left-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.08);
}

.submenu li a.active {
    color: white;
    background: rgba(168, 85, 247, 0.15);
    border-left-color: var(--neon-pink);
    font-weight: 600;
}

/* Page sections */
.page-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-intro {
    margin-bottom: 2rem;
}

.page-intro h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.5rem 0 0.5rem;
}

.page-intro p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
}

/* Abas para páginas unificadas (Agentes IA, Imagem, Animação) */
.unified-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.unified-tab {
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-gray);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.unified-tab:hover {
    background: rgba(6, 182, 212, 0.08);
}

.unified-tab.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.unified-topic {
    display: none;
}

.unified-topic.active {
    display: block;
}

/* Segundo nível de pílulas (ex: UGC → Ganchos · Naturais · CTA · Costas):
   um pouco menores para deixar clara a hierarquia sob a aba principal. */
.unified-tabs-sub {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.unified-tabs-sub .unified-tab {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* Cor distinta no 2º nível (rosa→roxo) para não confundir com a aba principal
   (ciano→roxo). */
.unified-tabs-sub .unified-tab:hover {
    background: rgba(236, 72, 153, 0.10);
}

.unified-tabs-sub .unified-tab.active {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

.section-tag.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--neon-pink);
    border-color: rgba(236, 72, 153, 0.3);
}

.section-tag.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--neon-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.section-tag.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(6, 182, 212, 0.3);
}

.section-tag.amber {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
}

.gallery-thumb {
    height: 160px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thumb-overlay {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.gallery-info {
    padding: 1rem 1.25rem 1.25rem;
}

.gallery-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Template cards (visual + copy text) */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.template-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-pink);
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.25);
}

.template-thumb {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.thumb-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.gallery-thumb .thumb-media,
.template-thumb .thumb-media {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

/* Vídeo de fundo borrado aposentado por performance (decodificava 2 vídeos por
   card + aplicava blur em tempo real). O preview mantém o fundo escuro. */
.anim-video-bg {
    display: none;
}

.anim-preview .thumb-media {
    object-fit: contain;
    background: transparent;
    z-index: 2;
}

.anim-preview .anim-video + .anim-scene {
    display: none;
}

.template-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
}

.template-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 25px 25px;
}

.template-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    /* bg sólido em vez de backdrop-filter: o blur recompõe a tela toda a cada
       quadro do scroll e, multiplicado por dezenas de badges, trava. */
    background: rgba(10, 4, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.thumb-overlay {
    z-index: 3;
}

.template-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.template-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.template-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.template-duration {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.template-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--neon-pink);
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}

.template-prompt {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    max-height: 120px;
    overflow-y: auto;
    /* Só a barra vertical (interna, para rolar o texto). Palavras/linhas longas
       (ex.: prompts em JSON) quebram em vez de gerar uma barra HORIZONTAL indevida. */
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    flex: 1;
}

.template-prompt::-webkit-scrollbar {
    width: 4px;
}

.template-prompt::-webkit-scrollbar-track {
    background: transparent;
}

.template-prompt::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

.copy-btn {
    align-self: stretch;
    justify-content: center;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    color: white !important;
    border-color: transparent !important;
}

.copy-icon {
    font-size: 1rem;
}

/* Generator layout */
.generator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.generator-form,
.generator-preview {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
}

.generator-form .form-group {
    margin-bottom: 1.1rem;
}

.generator-form textarea,
.generator-form input[type="text"],
.generator-form select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    resize: vertical;
}

.generator-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a855f7' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.generator-form select option {
    background: var(--bg-darker);
    color: white;
    padding: 0.5rem;
}

.generator-form textarea:focus,
.generator-form input[type="text"]:focus,
.generator-form select:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.upload-box:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.generator-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.preview-placeholder {
    color: var(--text-gray);
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Agent card */
.agent-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 640px;
}

.agent-card .form-group {
    margin-bottom: 1.1rem;
}

.agent-card textarea,
.agent-card input[type="text"],
.agent-card select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    resize: vertical;
}

.agent-card select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233b82f6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.agent-card select option {
    background: var(--bg-darker);
    color: white;
}

.agent-card textarea:focus,
.agent-card input[type="text"]:focus,
.agent-card select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Agent upload box */
.agent-upload {
    padding: 1.5rem 1rem;
    transition: all 0.25s;
}

.agent-upload.drag-over {
    border-color: var(--neon-blue);
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.01);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--neon-blue);
    margin-bottom: 0.3rem;
}

.upload-content small {
    color: var(--text-gray);
    font-size: 0.78rem;
    opacity: 0.7;
}

.upload-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
}

.upload-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-remove:hover {
    background: rgba(220, 38, 38, 0.85);
    border-color: transparent;
    transform: scale(1.05);
}

.upload-filename {
    color: var(--text-gray);
    font-size: 0.85rem;
    word-break: break-all;
    text-align: center;
}

.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: pulse 2s infinite;
}

/* Animation tabs */
.anim-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ── Grupos de animação (ex: Gancho com sub-seções) ── */
.anim-groups-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.anim-group-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.anim-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.25);
}

.anim-group-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.01em;
}

.anim-group-inner {
    /* herda o grid do .anim-grid pai */
}

/* ── Formato unificado (ex: Ganchos): todos os tópicos numa aba só ── */
.anim-unified {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Barra de tópicos: botões soltos sobre o fundo da página, SEM caixa/fundo ao
   redor (herda só o .anim-tabs base). O espaçamento fica por conta do gap do
   .anim-unified. */
.anim-topic-nav {
    background: transparent;
    margin-bottom: 0;
}

.anim-topic-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scroll-margin-top: 16px;
}

/* Herda a fileira de 4 colunas do .anim-grid base (mesmas quebras responsivas),
   mantendo os cards do MESMO tamanho das outras seções. */
.anim-unified .anim-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1180px) {
    .anim-unified .anim-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .anim-unified .anim-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Cards sem vídeo (locked em runtime) não aparecem */
.anim-card.anim-locked {
    display: none;
}

/* No mobile o card ocupa a largura toda (sem vão à direita) */
@media (max-width: 640px) {
    .anim-unified .anim-grid {
        grid-template-columns: 1fr;
    }
}


.anim-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.anim-tab:hover {
    color: white;
    border-color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.08);
}

.anim-tab.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

/* Animation cards with preview demos */
/* Fileira fixa de 4 cards no desktop (cards maiores). Cai para 3 / 2 / 1
   conforme a largura para não espremer os vídeos verticais. */
.anim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1180px) {
    .anim-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .anim-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .anim-grid { grid-template-columns: 1fr; }
}

.anim-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
    content-visibility: auto;
    /* Altura real do card (~638px: preview 380 + corpo). Se a estimativa for
       menor, cada card "cresce" ao entrar na tela e empurra o conteúdo,
       causando travadas no scroll. */
    contain-intrinsic-size: auto 638px;
    /* will-change fica só no :hover — mantê-lo aqui força uma camada de GPU
       por card e satura a memória gráfica com muitos cards (causa travada). */
}

.anim-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 14px 36px rgba(6, 182, 212, 0.25);
    will-change: transform;
}

/* Locked state */
.anim-locked-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(5, 2, 18, 0.82);
    backdrop-filter: blur(4px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 10;
}

.anim-lock-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: grayscale(0.3);
}

.anim-lock-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.anim-card.anim-locked .anim-locked-overlay {
    display: flex;
}

.anim-card.anim-locked .anim-unlocked-only {
    display: none;
}

.anim-locked-msg {
    display: none;
    color: var(--text-gray);
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.6;
    font-style: italic;
}

.anim-card.anim-locked .anim-locked-msg {
    display: block;
}

.anim-card.anim-locked:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
    cursor: default;
}

/* ── Storyboard: trava com contagem regressiva (liberação após 7 dias) ── */
.page-section.storyboard-locked .anim-grid,
.page-section.storyboard-locked .anim-groups-wrapper,
.page-section.storyboard-locked .anim-group,
.page-section.storyboard-locked .tutorial-block,
.page-section.storyboard-locked .anim-tabs,
.unified-topic.storyboard-locked .anim-grid,
.unified-topic.storyboard-locked .anim-groups-wrapper,
.unified-topic.storyboard-locked .anim-group,
.unified-topic.storyboard-locked .tutorial-block,
.unified-topic.storyboard-locked .anim-tabs {
    display: none !important;
}

.unified-topic.storyboard-locked {
    position: relative;
}

.storyboard-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 3rem 1.5rem;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: inset 0 0 60px rgba(6, 182, 212, 0.08);
}

.storyboard-lock-icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(6, 182, 212, 0.55));
}

.storyboard-lock h3 {
    font-size: 1.35rem;
    color: var(--text-white);
}

.storyboard-lock p {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 460px;
}

.storyboard-lock strong { color: var(--neon-cyan); }

.storyboard-countdown {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.sb-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 0.7rem 0.4rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.sb-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--neon-cyan);
    font-variant-numeric: tabular-nums;
}

.sb-lbl {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.sb-sep {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-gray);
    line-height: 2.4rem;
    opacity: 0.5;
}

.storyboard-unlock-date {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-gray);
    font-style: italic;
}

/* ── Space Flow: trava (7 dias) + desbloqueio por código ── */
.page-section.flow-locked .unified-tabs,
.page-section.flow-locked .unified-topic {
    display: none !important;
}

.flow-lock .flow-lock-instructions {
    max-width: 480px;
}

.flow-code-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.flow-code-input {
    flex: 1 1 200px;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-darker);
    color: var(--text-white);
    font-family: inherit;
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: 0.18em;
}

.flow-code-input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.flow-code-form .flow-code-btn {
    flex: 0 0 auto;
}

.flow-code-msg {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.flow-code-msg.error { color: #f87171; }
.flow-code-msg.success { color: var(--neon-cyan); }

/* ── Indique e Ganhe (afiliados) ── */
.referral-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.referral-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.referral-icon {
    font-size: 3rem;
    line-height: 1;
}

.referral-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.referral-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 440px;
}

.referral-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: 380px;
    margin: 0.5rem 0;
    text-align: left;
}

.referral-perks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.35;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.referral-perk-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.referral-btn {
    margin-top: 0.75rem;
    font-size: 1rem;
    text-decoration: none;
}

.referral-steps {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .referral-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 480px) {
    .sb-unit { min-width: 52px; }
    .sb-num { font-size: 1.45rem; }
    .storyboard-countdown { gap: 0.3rem; }
}

.anim-preview {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #0a0118;
}

.anim-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.anim-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
    z-index: 1;
}

.anim-subject {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #06b6d4, #a855f7, #ec4899);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    position: relative;
    z-index: 2;
}

.anim-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.4), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.4), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.3), transparent 40%);
    z-index: 0;
}

/* Camera animations */
.anim-dolly-zoom .anim-bg { animation: dolly-zoom 4s ease-in-out infinite; }
@keyframes dolly-zoom {
    0%, 100% { transform: scale(1) translateZ(0); }
    50% { transform: scale(1.6) translateZ(0); }
}

.anim-orbit .anim-subject { animation: orbit-subject 4s linear infinite; transform-style: preserve-3d; }
@keyframes orbit-subject {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.anim-crane-up .anim-subject { animation: crane-up 4s ease-in-out infinite; }
@keyframes crane-up {
    0%, 100% { transform: translateY(40px) scale(1.1); }
    50% { transform: translateY(-40px) scale(0.8); }
}

.anim-tracking .anim-subject { animation: tracking 4s ease-in-out infinite; }
.anim-tracking .anim-bg { animation: tracking-bg 4s ease-in-out infinite; }
@keyframes tracking {
    0%, 100% { transform: translateX(-60px); }
    50% { transform: translateX(60px); }
}
@keyframes tracking-bg {
    0%, 100% { transform: translateX(60px); }
    50% { transform: translateX(-60px); }
}

.anim-push-in .anim-subject { animation: push-in 4s ease-in-out infinite; }
@keyframes push-in {
    0%, 100% { transform: scale(0.7); }
    50% { transform: scale(1.4); }
}

.anim-whip-pan .anim-scene { animation: whip-pan 2.5s ease-in-out infinite; }
@keyframes whip-pan {
    0%, 45% { transform: translateX(0); filter: blur(0); }
    50% { transform: translateX(-200px); filter: blur(15px); }
    55%, 100% { transform: translateX(0); filter: blur(0); }
}

/* Product animations */
.anim-spin .anim-subject { animation: spin 3s linear infinite; }
@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.anim-zoom-detail .anim-subject { animation: zoom-detail 3s ease-in-out infinite; }
@keyframes zoom-detail {
    0%, 100% { transform: scale(0.6); }
    50% { transform: scale(2); }
}

.anim-float .anim-subject { animation: float-product 3s ease-in-out infinite; }
@keyframes float-product {
    0%, 100% { transform: translateY(-15px); }
    50% { transform: translateY(15px); }
}

.anim-reveal .anim-subject { animation: reveal 3s ease-in-out infinite; }
@keyframes reveal {
    0%, 100% { transform: scale(0.4); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
}

.anim-color-shift .anim-subject {
    animation: color-shift 3s linear infinite;
}
@keyframes color-shift {
    0% { background: linear-gradient(135deg, #06b6d4, #a855f7); }
    33% { background: linear-gradient(135deg, #ec4899, #f59e0b); }
    66% { background: linear-gradient(135deg, #10b981, #06b6d4); }
    100% { background: linear-gradient(135deg, #06b6d4, #a855f7); }
}

.anim-particles .anim-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.9) 1px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(236,72,153,0.9) 1px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(6,182,212,0.9) 1px, transparent 2px),
        radial-gradient(circle at 60% 30%, rgba(168,85,247,0.9) 1px, transparent 2px),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.9) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(236,72,153,0.9) 1px, transparent 2px);
    animation: particles-fly 3s ease-out infinite;
    z-index: 3;
}
@keyframes particles-fly {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Transitions */
.anim-match-cut .anim-subject { animation: match-cut 3s ease-in-out infinite; }
@keyframes match-cut {
    0%, 45% { border-radius: 14px; transform: rotate(0); }
    50% { border-radius: 50%; transform: rotate(180deg); }
    55%, 100% { border-radius: 14px; transform: rotate(360deg); }
}

.anim-wipe .anim-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-cyan), transparent);
    animation: wipe 2.5s ease-in-out infinite;
    z-index: 3;
}
@keyframes wipe {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.anim-morph .anim-subject { animation: morph 3s ease-in-out infinite; }
@keyframes morph {
    0%, 100% { border-radius: 14px; transform: scale(1); }
    25% { border-radius: 50% 14px; transform: scale(1.2); }
    50% { border-radius: 50%; transform: scale(0.9); }
    75% { border-radius: 14px 50%; transform: scale(1.3); }
}

.anim-zoom-blur .anim-scene { animation: zoom-blur 2.5s ease-in-out infinite; }
@keyframes zoom-blur {
    0%, 100% { transform: scale(1); filter: blur(0); }
    50% { transform: scale(2.5); filter: blur(8px); }
}

.anim-spin-trans .anim-scene { animation: spin-trans 2.5s ease-in-out infinite; }
@keyframes spin-trans {
    0%, 100% { transform: rotate(0) scale(1); filter: blur(0); }
    50% { transform: rotate(360deg) scale(0.6); filter: blur(6px); }
}

.anim-glitch .anim-subject {
    animation: glitch 1.5s steps(8) infinite;
}
@keyframes glitch {
    0%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
    10% { transform: translate(-3px, 2px); filter: hue-rotate(60deg); }
    20% { transform: translate(3px, -2px); filter: hue-rotate(-60deg); }
    30% { transform: translate(-2px, -3px); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, 3px); filter: hue-rotate(-90deg); }
    50% { transform: translate(0); filter: hue-rotate(180deg); }
}

/* Effects */
.anim-wind .anim-subject {
    animation: wind 2s ease-in-out infinite;
    transform-origin: bottom center;
}
@keyframes wind {
    0%, 100% { transform: skewX(0) rotate(0); }
    25% { transform: skewX(-12deg) rotate(-3deg); }
    75% { transform: skewX(12deg) rotate(3deg); }
}

.anim-rain .anim-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 50%, var(--neon-pink) 50%, var(--neon-pink) 55%, transparent 55%),
        linear-gradient(180deg, transparent 30%, var(--neon-cyan) 30%, var(--neon-cyan) 35%, transparent 35%),
        linear-gradient(180deg, transparent 70%, var(--neon-purple) 70%, var(--neon-purple) 75%, transparent 75%);
    background-size: 30px 40px, 25px 50px, 35px 45px;
    background-position: 0 0, 15px 0, 30px 0;
    animation: rain 1s linear infinite;
    z-index: 3;
    opacity: 0.7;
}
@keyframes rain {
    0% { background-position: 0 -40px, 15px -50px, 30px -45px; }
    100% { background-position: 0 40px, 15px 50px, 30px 45px; }
}

.anim-hologram .anim-subject {
    animation: hologram 2s ease-in-out infinite;
    box-shadow:
        0 0 30px var(--neon-cyan),
        inset 0 0 20px rgba(6, 182, 212, 0.3);
}
@keyframes hologram {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 30px var(--neon-cyan), 0 0 60px var(--neon-blue); }
    50% { opacity: 1; box-shadow: 0 0 50px var(--neon-cyan), 0 0 90px var(--neon-blue); }
}
.anim-hologram .anim-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(6, 182, 212, 0.1) 3px,
        rgba(6, 182, 212, 0.1) 4px
    );
    animation: scanlines 3s linear infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.anim-liquid .anim-subject {
    animation: liquid 3s ease-in-out infinite;
}
@keyframes liquid {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0); }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(180deg); }
}

.anim-sparkle .anim-preview::after {
    content: '✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 1rem;
    color: #fde047;
    text-shadow: 0 0 10px #fde047;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 3;
    flex-wrap: wrap;
    padding: 20px;
    pointer-events: none;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

.anim-trail .anim-subject {
    animation: trail 3s linear infinite;
    box-shadow:
        -10px 0 20px var(--neon-pink),
        -20px 0 30px var(--neon-cyan),
        -30px 0 40px var(--neon-purple);
}
@keyframes trail {
    0%, 100% { transform: translateX(-50px); }
    50% { transform: translateX(50px); }
}

/* Prompts list (legacy, kept for compatibility) */
.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s;
}

.prompt-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(4px);
}

.prompt-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.prompt-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.prompt-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Empty state */
.empty-state {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--neon-purple);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-gray);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.25s;
}

.mobile-menu-toggle:hover {
    border-color: var(--neon-purple);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(5, 0, 16, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Spaces Prontos não é suportado em celular: oculta o acesso apenas em telas de celular
   (mantém Tablet e iPad, que têm 768px ou mais). */
@media (max-width: 600px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 180;
        width: 280px;
        height: 100vh;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-logo {
        margin-top: 3rem;
    }

    .main-content {
        padding: 5rem 1rem 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        align-self: flex-end;
    }

    .generator-layout {
        grid-template-columns: 1fr;
    }

    .generator-preview {
        min-height: 240px;
    }

    .tools-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .prompt-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .prompt-item .tool-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* =============================================
   Settings / Configurações
   ============================================= */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.config-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.3s;
}

.config-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
}

.config-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.config-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.config-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.config-card-header p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Avatar row */
.config-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
}

.config-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
    text-transform: uppercase;
}

.config-avatar-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.config-avatar-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.config-avatar-plan {
    font-size: 0.78rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

/* Input rows */
.input-edit-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.input-edit-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.93rem;
    transition: all 0.2s;
}

.input-edit-row input:focus {
    outline: none;
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.btn-save {
    padding: 0.8rem 1.2rem;
    white-space: nowrap;
    font-size: 0.88rem;
}

/* Locked email */
.input-locked-row {
    position: relative;
    display: flex;
    align-items: center;
}

.input-locked-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 3rem 0.8rem 1rem;
    color: var(--text-gray);
    font-family: inherit;
    font-size: 0.93rem;
    cursor: not-allowed;
}

.lock-icon {
    position: absolute;
    right: 0.9rem;
    font-size: 1rem;
    opacity: 0.5;
}

/* Password row */
.input-password-row {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 3rem 0.8rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.93rem;
    transition: all 0.2s;
}

.input-password-row input:focus {
    outline: none;
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.btn-toggle-pass {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-gray);
    padding: 0.2rem;
    line-height: 1;
    transition: opacity 0.2s;
    opacity: 0.6;
}

.btn-toggle-pass:hover {
    opacity: 1;
}

/* Hints */
.input-hint {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-top: 0.35rem;
    display: block;
}

.input-hint.locked {
    color: rgba(168, 130, 130, 0.65);
}

/* Feedback messages */
.config-save-feedback {
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1.2rem;
    transition: all 0.3s;
}

.config-save-feedback.success {
    color: #34d399;
}

.config-save-feedback.error {
    color: #f87171;
}

/* Config form */
.config-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }

    .input-edit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   Device Notice — Spaces Prontos
   ============================================= */
.device-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.device-notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.device-notice-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.device-notice-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fcd34d;
    letter-spacing: 0.01em;
}

.device-notice-text span {
    font-size: 0.82rem;
    color: rgba(200, 185, 150, 0.85);
    line-height: 1.4;
}

.device-notice-badges {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.device-badge {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .device-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .device-notice-badges {
        width: 100%;
    }
}

/* =============================================
   Tutorial Block — Geração de Imagem
   ============================================= */
.tutorial-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tutorial-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tutorial-steps {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tutorial-steps h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.tutorial-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.tutorial-step:hover {
    background: rgba(168, 85, 247, 0.06);
}

.tutorial-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.tutorial-step p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.55;
    padding-top: 0.18rem;
}

.tutorial-step p a {
    color: var(--neon-pink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.tutorial-step p a:hover {
    color: #f472b6;
}

.tutorial-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tutorial-demo img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.tutorial-demo-video video {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
    background: #0a0118;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tutorial-demo.no-image {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.06));
    min-height: 260px;
    justify-content: center;
    align-items: center;
}

.tutorial-demo.no-image::after {
    content: '📷 Imagem demonstrativa\Aeм breve';
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    padding: 1rem;
}

.tutorial-demo-video.no-image::after {
    content: '🎬 Vídeo demonstrativo\A em breve';
}

.tutorial-demo-label {
    font-size: 0.76rem;
    color: var(--text-gray);
    padding: 0.55rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.tutorial-prompt-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-prompt-box > label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.tutorial-prompt-text {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    user-select: text;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.tutorial-prompt-text::-webkit-scrollbar {
    width: 5px;
}

.tutorial-prompt-text::-webkit-scrollbar-track {
    background: transparent;
}

.tutorial-prompt-text::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 10px;
}

.tutorial-prompt-box .btn-primary {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.tutorial-prompt-box a.btn-primary {
    text-decoration: none;
}

.flow-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tutorial-prompt-box .flow-actions .btn-primary,
.tutorial-prompt-box .flow-actions .btn-secondary {
    align-self: auto;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tutorial-note {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.tutorial-note-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.tutorial-note p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.55;
}

.tutorial-note strong {
    color: var(--neon-purple);
}

@media (max-width: 900px) {
    .tutorial-top {
        grid-template-columns: 1fr;
    }

    .tutorial-demo img {
        max-height: 240px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
}


/* ============ ÁREA DO ADMIN ============ */

/* Tela de acesso */
.admin-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-gate-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
}

.admin-gate-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.admin-gate-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.admin-gate-card p {
    color: var(--text-gray);
    margin-bottom: 1.75rem;
}

.admin-gate-card .form-group {
    margin-bottom: 0.75rem;
}

.admin-gate-card input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: center;
}

.admin-gate-card input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.admin-error {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.25s;
}

.admin-error.show {
    height: auto;
    opacity: 1;
    margin-bottom: 1rem;
}

.admin-back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.admin-back-link:hover {
    color: var(--neon-purple);
}

/* Painel */
.admin-panel {
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 1, 24, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-badge {
    background: var(--gradient-main);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.admin-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-title-row h1 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.admin-title-row p {
    color: var(--text-gray);
    max-width: 480px;
}

.admin-stat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 130px;
}

.admin-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.admin-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.admin-add-form {
    display: flex;
    gap: 0.75rem;
}

.admin-add-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-add-form input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.admin-feedback {
    font-size: 0.85rem;
    margin-top: 0.85rem;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.25s;
}

.admin-feedback.show {
    height: auto;
    opacity: 1;
}

.admin-feedback.success { color: #34d399; }
.admin-feedback.error { color: #f87171; }

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.admin-list-header h3 {
    margin-bottom: 0;
}

.admin-list-tools {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-list-tools input[type="search"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    width: 220px;
}

.admin-list-tools input[type="search"]:focus {
    outline: none;
    border-color: var(--neon-purple);
}

.btn-danger-ghost {
    color: #f87171 !important;
}

.btn-danger-ghost:hover {
    background: rgba(248, 113, 113, 0.1) !important;
}

.admin-email-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 460px;
    overflow-y: auto;
}

.admin-email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.admin-email-item:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.06);
}

.admin-email-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.admin-email-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.admin-email-text {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-remove-btn {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-remove-btn:hover {
    background: #f87171;
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

/* Storyboard: status + aprovação manual no painel admin */
.admin-email-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

/* Nome do comprador (linha principal do item) */
.admin-email-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-email-name--empty {
    font-weight: 500;
    color: var(--text-gray);
    font-style: italic;
}

/* Sigla do produto comprado (MTA = Comunidade MTA / NEON = NeonAI) */
.admin-plan-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
}

.admin-plan-mta {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.admin-plan-neon {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.4);
}

/* E-mail borrado quando oculto (controlado pelo olho único do topo da lista) */
.admin-email-text.is-blurred {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.15s;
}

/* Botão único (topo da lista) para mostrar/ocultar TODOS os e-mails de uma vez */
.admin-eye-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-eye-toggle svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-name-edit {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.1rem 0.25rem;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.15s;
    flex-shrink: 0;
}

.admin-name-edit:hover {
    color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.12);
}

/* Chips de status agrupados (compactos, quebram linha em vez de esticar) */
.admin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.admin-email-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    max-width: 300px;
}

.sb-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    width: fit-content;
    white-space: nowrap;
}

.sb-status-waiting {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.sb-status-released {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.sb-status-approved {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

/* Novos chips de status */
.sb-status-reset {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.sb-status-paused {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.sb-status-rebought {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.4);
}

/* ---- Sistema unificado de botões de ação (menos poluição) ---- */
.admin-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-btn:hover { transform: translateY(-1px); }

.admin-btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.admin-btn-primary:hover { box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35); }

.admin-btn-ghost:hover {
    border-color: var(--neon-purple);
    color: #fff;
    background: rgba(168, 85, 247, 0.1);
}

.admin-btn-reset {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.admin-btn-reset:hover {
    background: #38bdf8;
    color: #0b1220;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.admin-btn-reset:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.admin-btn-unpause {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
}

.admin-btn-unpause:hover {
    background: #4ade80;
    color: #052e16;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

.admin-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

/* Destaques da linha conforme o estado */
.admin-email-item--reset {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
}

.admin-email-item--flag {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.06);
}

/* ===================== BARRA DE ALERTAS (topo) ===================== */
.admin-alerts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.admin-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
}

.admin-alert b { font-weight: 800; }
.admin-alert:hover { transform: translateY(-1px); }
.admin-alert.is-active { box-shadow: 0 0 0 2px currentColor inset; }

.admin-alert-reset {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

.admin-alert-rebought {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.08);
}

.admin-alert-paused {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

.admin-alert-clear {
    color: var(--text-gray);
    background: transparent;
}

.admin-alert-clear:hover { color: #fff; }

.admin-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

.admin-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.admin-empty h4 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

/* Erro de login na landing */
.login-error {
    color: #f87171;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transition: all 0.25s;
}

.login-error.show {
    height: auto;
    opacity: 1;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-width: 1px;
}

/* Variante de sucesso (ex.: "Esqueceu?" redefiniu a senha) */
.login-error.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
}

@media (max-width: 600px) {
    /* Menos respiro lateral p/ aproveitar a largura no celular */
    .admin-header {
        padding: 0.9rem 1.1rem;
    }
    .admin-header-actions {
        gap: 0.5rem;
    }
    .admin-main {
        padding: 1.5rem 1.1rem;
    }
    .admin-title-row {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    .admin-title-row h1 {
        font-size: 1.5rem;
    }
    .admin-stat-pill {
        padding: 0.75rem 1.1rem;
        min-width: 108px;
    }
    .admin-add-form {
        flex-direction: column;
    }
    .admin-add-form .btn-primary {
        width: 100%;
    }
    /* Ferramentas da lista: a busca ocupa a linha toda; os botões dividem
       a linha de baixo em colunas iguais (alvos de toque maiores). */
    .admin-list-tools {
        width: 100%;
        flex-wrap: wrap;
    }
    .admin-list-tools input[type="search"] {
        flex: 1 1 100%;
        width: 100%;
    }
    .admin-list-tools .btn-ghost {
        flex: 1;
        justify-content: center;
        padding: 0.55rem 0.5rem;
    }
    /* Item empilhado: dados em cima, ações embaixo alinhadas à esquerda */
    .admin-email-item {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-email-actions {
        justify-content: flex-start;
        max-width: none;
        padding-left: calc(38px + 0.85rem); /* alinha com o texto (após o avatar) */
    }
    .admin-alert {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .admin-main {
        padding: 1.25rem 0.8rem;
    }
    .admin-title-row h1 {
        font-size: 1.35rem;
    }
    /* Sem recuo: as ações usam a largura toda e viram alvos de toque maiores */
    .admin-email-actions {
        padding-left: 0;
        gap: 0.4rem;
    }
    .admin-email-actions .admin-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.55rem 0.6rem;
    }
}

.footer-admin-link {
    color: var(--text-gray);
    text-decoration: none;
    opacity: 0.6;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.footer-admin-link:hover {
    color: var(--neon-purple);
    opacity: 1;
}

/* ============================================================
   Otimização: respeita quem prefere menos animação (economiza
   CPU/GPU e bateria) — desliga animações contínuas e transições.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .bg-glow,
    .badge-dot {
        animation: none !important;
    }
}

/* ============================================================
   Meus Favoritos
   Botão ♥ no canto do preview do card + seção com os cards
   clonados. O botão fica fora do .anim-locked-overlay, mas o
   card travado some por completo (display:none), então não há
   como favoritar um card sem vídeo.
   ============================================================ */
.fav-btn {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 4;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    /* bg sólido em vez de backdrop-filter: o blur recompõe a tela a cada
       quadro do scroll e, multiplicado por dezenas de cards, trava. */
    background: rgba(10, 4, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.fav-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    transition: fill 0.2s;
}

/* Sem @media, no celular o coração ficaria preso no estado de hover (rosa e
   ampliado) depois do toque, parecendo favoritado sem estar. */
@media (hover: hover) {
    .fav-btn:hover {
        color: var(--neon-pink);
        border-color: var(--neon-pink);
        transform: scale(1.12);
    }
}

.fav-btn.is-fav {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    background: rgba(236, 72, 153, 0.18);
}

.fav-btn.is-fav svg {
    fill: var(--neon-pink);
}

/* Pulso curto ao marcar */
.fav-btn.is-fav:active {
    transform: scale(0.9);
}

/* O selo "Novo" também mora no canto superior esquerdo — sai da frente do
   coração (o badge é filho do .anim-card, o botão é filho do .anim-preview,
   então os dois se sobrepõem no mesmo canto). */
.anim-card .card-new-badge {
    left: 3.4rem;
}

.fav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.5rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 0.8rem;
    font-weight: 800;
    vertical-align: middle;
}

.fav-count:empty {
    display: none;
}

.fav-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 18px;
}

.fav-empty-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--neon-pink);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.fav-empty h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.fav-empty p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* ============================================================
   LANDING — seções novas: prévia em carrossel, 3 passos e FAQ
   ============================================================ */

.center {
    text-align: center;
}

/* Microcopy sob os CTAs (preço / acesso imediato) */
.cta-micro {
    margin-top: 1.1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.pricing-micro {
    margin-top: 0.75rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.78rem;
}

/* ── Prévia real (carrossel de vídeos) ───────────────────── */
.showcase {
    padding: 4.5rem 0;
}

.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.showcase-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

/* Todo :hover do carrossel fica atrás de @media (hover: hover). Em tela de
   toque não existe "sair do hover": o estado gruda no último item tocado — o
   card ficaria levantado e com borda acesa andando pela tela. */
@media (hover: hover) {
    .showcase-tab:hover {
        color: var(--text-white);
        border-color: var(--neon-cyan);
    }
}

.showcase-tab.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

.showcase-carousel {
    position: relative;
}

.showcase-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    /* sem scroll-snap: o carrossel anda sozinho (ver showcaseAutoTick) e o snap
       puxaria o track de volta para o card mais próximo a cada frame */
    padding: 0.25rem;
    /* a barra de rolagem nativa polui o visual; as setas fazem o papel dela */
    scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar {
    display: none;
}

/* Só entra quando os cards cabem sem scroll (ver updateShowcaseNav). */
.showcase-track.is-centered {
    justify-content: center;
}

.showcase-card {
    flex: 0 0 232px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
    .showcase-card:hover {
        transform: translateY(-4px);
        border-color: var(--neon-cyan);
        box-shadow: 0 14px 36px rgba(6, 182, 212, 0.25);
    }
}

.showcase-media {
    position: relative;
    /* 9:16 dos vídeos verticais — trava a altura antes do mp4 carregar e evita
       o layout pular quando o vídeo entra. */
    aspect-ratio: 9 / 16;
    background: #0a0118;
    overflow: hidden;
}

.showcase-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-card-tag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(10, 4, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}

.showcase-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1rem 0;
}

/* Imita o botão de copiar do painel — mostra o que o usuário vai encontrar
   lá dentro sem fingir que é clicável aqui. */
.showcase-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.7rem 1rem 1rem;
    padding: 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 600;
}

.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 4, 26, 0.85);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s, border-color 0.25s, background 0.25s;
}

@media (hover: hover) {
    .showcase-nav:hover:not(:disabled) {
        border-color: var(--neon-cyan);
        background: rgba(6, 182, 212, 0.2);
    }
}

.showcase-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.showcase-nav.prev { left: -14px; }
.showcase-nav.next { right: -14px; }

.showcase-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 1.75rem 0 1.5rem;
}

@media (max-width: 640px) {
    .showcase-card { flex: 0 0 61vw; }
    .showcase-nav { display: none; } /* no celular o swipe já resolve */

    /* As 4 abas somam ~424px e não cabiam nos ~375px da tela. Encolhidas, elas
       fecham em ~335px e entram numa linha só, centralizadas. Nada de faixa
       deslizante: cortar "Storyboard" na borda esconde uma aba inteira. Em tela
       muito estreita o wrap quebra a linha — feio é melhor que escondido. */
    .showcase-tabs {
        gap: 0.4rem;
        /* recupera metade do padding do .container (2rem) — as abas ainda ficam
           a 1rem da borda da tela, e a linha passa a caber */
        margin-inline: -1rem;
    }

    .showcase-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ── Em 3 passos ─────────────────────────────────────────── */
.lp-steps {
    padding: 4.5rem 0;
}

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

@media (max-width: 860px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.steps-grid .step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.steps-grid .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 800;
}

.steps-grid .step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.steps-grid .step p {
    color: var(--text-gray);
    font-size: 0.92rem;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
    padding: 4.5rem 0;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    transition: border-color 0.25s;
}

.faq-item[open] {
    border-color: var(--neon-purple);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--neon-purple);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 0.85rem;
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}
