/* === HERO SECTION EM TELA CHEIA === */
.hero-section {
    min-height: 100vh;
    max-height: none;
    padding-top: var(--header-height, 70px);
    padding-bottom: 0;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(66, 184, 131, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    height: calc(100vh - var(--header-height, 70px));
    width: 100vw;
    max-width: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

.hero-wrapper {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-content {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3vw;
    height: 100%;
    z-index: 2;
}

.hero-image {
    flex: 1 1 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    position: relative;
}

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

/* === CORREÇÃO DO LOGO NA HERO SECTION === */
.hero-title .logo-wrapper {
    display: inline-flex !important;
    white-space: nowrap !important;
    align-items: baseline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: -0.02em;
    vertical-align: baseline;
    line-height: inherit;
}

.hero-title .brand-ia,
.hero-title .logo-ia {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    display: inline-block !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
}

.hero-title .brand-fundo,
.hero-title .logo-fundo {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 700 !important;
    display: inline-block !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
}

.hero-title .logo-wrapper * {
    display: inline !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.hero-title,
.hero-title * {
    animation: none !important;
    transition: none !important;
}

.hero-title::after,
.hero-title *::after,
.typing-cursor,
.cursor {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

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


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

.demo-section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.demo-section-header h3 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.demo-section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* DEMO INTERATIVO - MELHORADO COM FEEDBACK VISUAL */
.interactive-demo {
    margin: 2rem 0;
    padding: 0;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.5), rgba(20, 20, 30, 0.5));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.interactive-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.02), rgba(156, 39, 176, 0.02));
    pointer-events: none;
    z-index: 1;
}

.demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.demo-screen {
    position: relative;
    background: #0E0E10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

.demo-background {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/demo/ai-bg-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave */
    opacity: 1;
    transform: scale(1);
}

/* Classes específicas para diferentes backgrounds */
.demo-background.bg-forest {
    background-image: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(139, 195, 74, 0.8)), url('/static/images/demo/ai-bg-2.jpg') !important;
}

.demo-background.bg-cyber {
    background-image: linear-gradient(135deg, rgba(156, 39, 176, 0.7), rgba(233, 30, 99, 0.7)), url('/static/images/demo/ai-bg-3.jpg') !important;
}

.demo-background.bg-space {
    background-image: linear-gradient(135deg, rgba(63, 81, 181, 0.7), rgba(103, 58, 183, 0.7)), url('/static/images/demo/ai-bg-4.jpg') !important;
}

/* Classes específicas para cada background */
.demo-background.bg-1 {
    background-image: url('/static/images/demo/ai-bg-1.jpg') !important;
    background-position: center center !important;
}

.demo-background.bg-2 {
    background-image: url('/static/images/demo/ai-bg-2.jpg') !important;
    background-position: center center !important;
}

.demo-background.bg-3 {
    background-image: url('/static/images/demo/ai-bg-3.jpg') !important;
    background-position: center center !important;
}

.demo-background.bg-4 {
    background-image: url('/static/images/demo/ai-bg-4.jpg') !important;
    background-position: center center !important;
}

.demo-background.bg-5 {
    background-image: url('/static/images/demo/ai-bg-5.jpg') !important;
    background-position: center center !important;
}

/* RESTAURAR: Overlay da stream */
.stream-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stream-title {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.viewer-count {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    width: fit-content;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


/* RESTAURAR: Webcam do streamer */
.demo-streamer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.streamer-cam {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* RESTAURAR: Chat do demo */
.demo-chat {
    background: #18181B;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chat-header h4 {
    color: #EFEFF1;
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
    max-height: 250px;
}

.chat-message {
    animation: messageAppear 0.3s ease;
    line-height: 1.5;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    flex-wrap: nowrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animação de processamento */
@keyframes processing {
    0% { content: '🎨 Processando...'; }
    33% { content: '🎨 Processando.'; }
    66% { content: '🎨 Processando..'; }
    100% { content: '🎨 Processando...'; }
}

.chat-message.processing .message-text::after {
    animation: processing 1s infinite;
}

/* Efeito de sucesso */
@keyframes successPulse {
    0% { 
        background: rgba(76, 175, 80, 0.1);
        transform: scale(1);
    }
    50% { 
        background: rgba(76, 175, 80, 0.3);
        transform: scale(1.02);
    }
    100% { 
        background: rgba(76, 175, 80, 0.1);
        transform: scale(1);
    }
}

.chat-message.success {
    animation: successPulse 0.6s ease;
    border-left: 3px solid #4CAF50;
    padding-left: 0.5rem;
}

/* Efeito de mudança de fundo */
@keyframes backgroundChange {
    0% { 
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
    25% { 
        filter: brightness(1.1) contrast(1.1);
        transform: scale(1.005);
    }
    50% { 
        filter: brightness(0.9) contrast(1.2);
        transform: scale(1.01);
    }
    75% { 
        filter: brightness(1.05) contrast(1.05);
        transform: scale(1.005);
    }
    100% { 
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
}

.demo-background.changing {
    animation: backgroundChange 2.5s ease-in-out;
}

.username {
    font-weight: 600;
    margin-right: 0.5rem;
}

.username.viewer { 
    color: #EFEFF1; 
}

.username.mod { 
    color: #00FF00; 
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.username.sub { 
    color: #9147FF;
    text-shadow: 0 0 5px rgba(145, 71, 255, 0.3);
}

.username.streamer { 
    color: #FF6B35;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.message-text {
    color: #EFEFF1;
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    display: inline;
    line-height: 1.5;
    white-space: normal;
}

.demo-commands {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(20, 20, 30, 0.3));
}

.demo-cmd-btn {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.demo-cmd-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.demo-cmd-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(5px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.demo-cmd-btn:hover::before {
    left: 100%;
}

.demo-cmd-btn:active {
    transform: translateX(3px) scale(0.98);
}

/* === CARROSSEL DE CANAIS === */
.channels-preview-section {
    padding: 3rem 0;
    background: linear-gradient(145deg, var(--bg-color), var(--bg-secondary));
}

.channels-carousel {
    position: relative;
    margin: 1.5rem 0;
    margin-bottom: 1rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Touch-friendly no mobile */
@media (max-width: 768px) {
    .carousel-track {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    .carousel-container {
        overflow: visible;
    }
}

.channel-preview-card {
    min-width: 320px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Overlay clicável invisível por cima do card */
.card-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Botões devem ficar acima do overlay */
.channel-actions {
    position: relative;
    z-index: 2;
}

.channel-actions a.btn {
    position: relative;
    z-index: 3;
}

/* Estilo quando card é um link */
a.channel-preview-card.channel-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.channel-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.channel-banner {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    border-radius: 16px 16px 0 0;
}

.channel-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
}

.channel-preview-card:hover .channel-banner img {
    transform: scale(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.9);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* === ESTILOS PARA CARDS DE CANAIS NA HOME - CORRIGIDOS === */

.channel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-preview-card:hover .channel-overlay {
    opacity: 1;
}

.channel-overlay .status-indicator {
    background: rgba(138, 43, 226, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.channel-overlay .status-indicator.online {
    background: rgba(66, 184, 131, 0.9);
    border-color: rgba(66, 184, 131, 0.3);
    animation: pulse-online 2s infinite;
}

.channel-overlay .status-indicator.offline {
    background: rgba(120, 120, 120, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.channel-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.channel-info {
    padding: 1.5rem;
    background: var(--card-bg);
    position: relative;
    margin-top: -20px;
    border-radius: 0 0 16px 16px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.channel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.channel-preview-card:hover .channel-avatar img {
    transform: scale(1.1);
}

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

.channel-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.channel-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel-stats i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.channel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.channel-actions .btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), rgba(138, 43, 226, 0.8));
    border: none;
    color: white;
}

.channel-actions .btn.btn-primary:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.channel-actions .btn.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.channel-actions .btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animação para status online */
@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 184, 131, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 184, 131, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 184, 131, 0);
    }
}

/* Ajustes responsivos para cards da home */
@media (max-width: 768px) {
    .channel-preview-card {
        min-width: 280px;
    }
    
    .channel-info {
        padding: 1rem;
        margin-top: -15px;
    }
    
    .channel-avatar {
        width: 50px;
        height: 50px;
    }
    
    .channel-details h3 {
        font-size: 1rem;
    }
    
    .channel-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .channel-actions {
        padding-top: 0.75rem;
        gap: 0.375rem;
    }
    
    .channel-actions .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .channel-preview-card {
        min-width: 250px;
    }
    
    .carousel-btn.prev {
        left: -15px;
    }
    
    .carousel-btn.next {
        right: -15px;
    }
}

/* Esconder botões do carrossel no mobile (usar swipe) */
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
}

/* === SEÇÕES GERAIS === */
section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

section:nth-child(even) {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-color));
}

section:nth-child(odd) {
    background: var(--bg-color);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Responsividade dos títulos das seções */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header h2 i {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
        flex-wrap: wrap;
    }
    
    .section-header h2 i {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* === COMO FUNCIONA === */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.how-card {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.how-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.how-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.how-icon i {
    font-size: 2rem;
    color: white;
}

.how-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.how-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
    padding-bottom: 5rem;
    padding-top: 1rem;
}

.cta-section .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.cta-section .cta-content h2 {
    margin-bottom: 0;
}

.cta-section .cta-content p {
    margin-bottom: 0.25rem;
}

.cta-section .btn-upgrade {
    margin-bottom: 1rem;
}

/* === BOTÕES === */
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 100px;
}

.btn-upgrade {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(138, 43, 226, 0.3) 25%,
        rgba(138, 43, 226, 0.5) 50%,
        rgba(138, 43, 226, 0.3) 75%,
        transparent 100%
    );
    animation: highlightSweep 3s ease-in-out infinite;
}

@keyframes highlightSweep {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.btn-upgrade:hover {
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-btn:hover {
    background: var(--primary-color);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

/* === PRICING TABLE === */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
}

/* === PLACEHOLDERS === */
.image-content img[src*="placeholder"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.image-content img[src*="placeholder"]::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
}

/* === MOSAICO CONTAINER REFERÊNCIA - MANTIDO APENAS PARA O AFTER === */
.mosaic-container::after {
    content: '';
    grid-column: 1 / -1;
    grid-row: 1;
    height: 0;
}

/* === SCROLLBARS === */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 2px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.6);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

/* === PREVENÇÃO DE TREMOR === */
.hero-section,
.community-mosaic {
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

/* === HERO IMAGE ADJUSTMENTS - MANTIDO APENAS ESTES === */
.hero-image .community-mosaic {
    transform: translateY(-140px) !important;
}

.hero-image {
    overflow: visible !important;
    padding-bottom: 80px !important;
}

/* === CORREÇÕES PARA EVITAR TREMOR NO SCROLL === */

/* Garantir transições suaves entre seções */
.main-content {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
}

/* Estabilizar o layout durante mudanças */
.main-content section {
    contain: layout style;
    will-change: auto;
}

/* Remover qualquer layout shift */
.section-header {
    min-height: auto;
    transition: none;
}

/* Garantir que não há mudanças de altura inesperadas */
.hero-section {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.how-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Corrigir espaçamento entre seções sem a highlights-section */
.hero-section + .how-section,
.hero-section + section {
    margin-top: 0;
    padding-top: 3rem;
}

/* === SEÇÃO DE PRICING NA HOME === */
.pricing-section {
    padding: 5rem 0;
    background: linear-gradient(145deg, var(--bg-color), var(--bg-secondary));
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.pricing-section .container {
    position: relative;
    z-index: 1;
}

/* Melhorar integração visual dos cards de pricing */
.pricing-section .pricing-table {
    margin-top: 3rem;
}

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

.pricing-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pricing-section .section-header h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.pricing-section .section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Responsividade para seção de pricing na home */
@media (max-width: 768px) {
    .pricing-section {
        padding: 3rem 0;
    }
    
    .pricing-section .section-header h2 {
        font-size: 2rem;
    }
    
    .pricing-section .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 2rem 0;
    }
    
    .pricing-section .section-header {
        margin-bottom: 2rem;
    }
    
    .pricing-section .section-header h2 {
        font-size: 1.8rem;
    }
}
/* === CARD DEMO (SUBSTITUINDO FREE) === */
.price-card.demo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(234, 88, 12, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.price-card.demo .price-header {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.price-card.demo .price-header h3 {
    color: #f59e0b;
}

.price-card.demo .amount {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card.demo .period {
    color: #fb923c;
}

.price-card.demo .btn-price.outline {
    border-color: #f59e0b;
    color: #f59e0b;
}

.price-card.demo .btn-price.outline:hover {
    background: #f59e0b;
    color: white;
}

/* Features desabilitadas */
.feature-disabled {
    text-decoration: line-through;
    opacity: 0.5;
}

.price-features li:has(.feature-disabled) {
    opacity: 0.6;
}

.price-features li:has(.feature-disabled) i.bx-x {
    color: #ef4444;
}

/* Destaque para quota de imagens nos planos */
.price-features li strong {
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.1em;
}

/* Melhorar card Starter */
.price-card.starter {
    border-color: rgba(59, 130, 246, 0.2);
}

.price-card.starter .price-header h3 {
    color: #3b82f6;
}

/* Melhorar card Streamer Pro */
.price-card.streamer-pro {
    border-color: rgba(236, 72, 153, 0.2);
}

.price-card.streamer-pro .price-header h3 {
    color: #ec4899;
}

.price-card.streamer-pro .btn-price {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.price-card.streamer-pro .btn-price:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

/* ========== OTIMIZAÇÕES DE PERFORMANCE MOBILE ========== */
/* Respeitar preferência de movimento reduzido do usuário */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .demo-background {
        transition: none !important;
    }
    
    .hero-image {
        transform: none !important;
    }
}

/* Desativar efeitos pesados em dispositivos móveis para melhor performance */
@media (max-width: 768px) {
    /* Remover backdrop-filter que causa travamento no mobile */
    .stream-title,
    .viewer-count,
    .demo-streamer,
    .streamer-cam {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.85) !important;
    }
    
    /* Simplificar transições para mobile */
    .demo-background {
        transition: background-image 0.5s ease-out !important;
    }
    
    /* Desativar animação de mudança de background */
    .demo-background.changing {
        animation: none !important;
    }
    
    /* Reduzir complexidade visual */
    .how-card,
    .feature-card,
    .price-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
}

/* Otimização extra para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    /* Remover efeitos hover em touch devices */
    .how-card:hover,
    .feature-card:hover,
    .price-card:hover {
        transform: none !important;
    }
    
    /* Performance otimizada */
    .demo-background {
        will-change: auto !important;
    }
}
