/* ============== RESPONSIVO GLOBAL MOBILE ============== */
/* Arquivo global de responsividade - v2.0 */
/* O header.php já tem os estilos responsivos do header */

/* ========== PREVENIR OVERFLOW HORIZONTAL ========== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .stats-hero {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 32px !important;
    }

    .hub-container {
        padding: 60px 24px !important;
    }

    .hub-header {
        margin-bottom: 50px !important;
    }

    .card-value {
        font-size: 32px !important;
    }

    .license-price {
        font-size: 38px !important;
    }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {
    /* === BASE === */
    body {
        padding-top: 70px !important;
        font-size: 14px;
        overflow-x: hidden !important;
    }

    /* === TIPOGRAFIA === */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 16px !important; }
    h4, h5, h6 { font-size: 14px !important; }

    /* === INPUTS/BOTÕES TOUCH-FRIENDLY === */
    button, .btn, [role="button"],
    input[type="submit"], input[type="button"] {
        min-height: 44px !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }

    /* === IMAGENS === */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* === TABELAS === */
    table {
        font-size: 12px !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        padding: 8px !important;
        white-space: nowrap;
    }

    /* === GRIDS => 1 COLUNA === */
    .features-grid,
    .products-grid,
    .testimonials-grid,
    .comparison-grid,
    .category-selection {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* === STATS === */
    .stats-hero {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    .stat-number {
        font-size: 28px !important;
    }

    .stat-label {
        font-size: 11px !important;
    }

    /* === HERO INDEX === */
    .hero-new {
        padding: 40px 16px !important;
    }

    .hero-new h1 {
        font-size: 28px !important;
        letter-spacing: -1px !important;
    }

    .hero-new .subtitle {
        font-size: 14px !important;
    }

    .hero-new .description {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }

    .cta-hero-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-cta-hero,
    .btn-secondary-hero {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 14px !important;
        text-align: center !important;
    }

    .hero-badges {
        gap: 8px !important;
        margin-bottom: 30px !important;
    }

    .badge {
        font-size: 10px !important;
        padding: 8px 12px !important;
    }

    /* === FEATURE BOXES === */
    .feature-box {
        padding: 24px 20px !important;
    }

    .feature-icon {
        font-size: 36px !important;
    }

    .feature-box h3 {
        font-size: 16px !important;
    }

    .feature-box p {
        font-size: 13px !important;
    }

    /* === COMPARISON === */
    .comparison-section {
        padding: 30px 16px !important;
    }

    .comparison-item h3 {
        font-size: 18px !important;
    }

    .comparison-item li {
        font-size: 13px !important;
    }

    .comparison-col.featured {
        transform: scale(1) !important;
    }

    /* === TESTIMONIALS === */
    .testimonial-card {
        padding: 20px !important;
    }

    .testimonial-text {
        font-size: 13px !important;
    }

    /* === PRODUCTS === */
    .products-section {
        padding: 30px 16px !important;
    }

    .products-section h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .product-card {
        padding: 24px 20px !important;
    }

    .product-icon {
        font-size: 36px !important;
    }

    .product-card h3 {
        font-size: 18px !important;
    }

    .product-card p {
        font-size: 13px !important;
    }

    /* === FAQ === */
    .faq-section {
        padding: 0 16px !important;
        margin: 30px auto !important;
    }

    .faq-header h4,
    .faq-item h4 {
        font-size: 14px !important;
    }

    .faq-text,
    .faq-item p {
        font-size: 13px !important;
    }

    .faq-item {
        transform: none !important;
    }

    /* === CTA FINAL === */
    .cta-final {
        padding: 40px 16px !important;
    }

    .cta-final h2 {
        font-size: 28px !important;
    }

    .cta-final p {
        font-size: 14px !important;
    }

    /* === FLOATING BUTTONS === */
    .floating-buttons {
        bottom: 16px !important;
        right: 16px !important;
    }

    .float-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }

    #widgetbot-container {
        width: 260px !important;
        height: 350px !important;
        right: 16px !important;
        bottom: 80px !important;
    }

    /* === HUB === */
    .hub-container {
        padding: 40px 16px !important;
    }

    .hub-header {
        margin-bottom: 30px !important;
    }

    .hub-header h1 {
        font-size: 28px !important;
    }

    .hub-header p {
        font-size: 14px !important;
    }

    .category-icon {
        font-size: 40px !important;
    }

    .category-title {
        font-size: 18px !important;
    }

    .category-desc {
        font-size: 13px !important;
    }

    .category-cta {
        padding: 12px 20px !important;
        font-size: 13px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* === DASHBOARD === */
    .card-value {
        font-size: 26px !important;
    }

    .license-price {
        font-size: 28px !important;
    }

    .license-featured {
        transform: scale(1) !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* === MODAIS === */
    .modal-overlay {
        padding: 12px !important;
    }

    .modal-content {
        padding: 20px !important;
        max-width: 95vw !important;
        width: 95vw !important;
    }

    .modal-content h2 {
        font-size: 20px !important;
    }

    .modal-content img[alt*="QR"],
    #qrcodePix {
        width: 200px !important;
        height: 200px !important;
        max-width: 80vw !important;
    }

    /* === INLINE STYLE OVERRIDES (seletivos) === */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    [style*="grid-template-columns: repeat"],
    [style*="grid-template-columns:repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduzir font-sizes inline excessivos */
    [style*="font-size: 48px"],
    [style*="font-size:48px"],
    [style*="font-size: 52px"],
    [style*="font-size:52px"] {
        font-size: 28px !important;
    }

    [style*="font-size: 42px"],
    [style*="font-size:42px"] {
        font-size: 24px !important;
    }

    [style*="font-size: 36px"],
    [style*="font-size:36px"] {
        font-size: 22px !important;
    }

    [style*="font-size: 32px"],
    [style*="font-size:32px"] {
        font-size: 20px !important;
    }

    [style*="font-size: 28px"],
    [style*="font-size:28px"] {
        font-size: 18px !important;
    }

    [style*="font-size: 24px"],
    [style*="font-size:24px"] {
        font-size: 18px !important;
    }

    /* Reduzir gaps grandes inline */
    [style*="gap: 40px"],
    [style*="gap:40px"],
    [style*="gap: 32px"],
    [style*="gap:32px"],
    [style*="gap: 30px"],
    [style*="gap:30px"] {
        gap: 16px !important;
    }

    /* Transform inline: tirar scales */
    [style*="transform: scale(1.02)"],
    [style*="transform:scale(1.02)"],
    [style*="transform: scale(1.05)"],
    [style*="transform:scale(1.05)"],
    [style*="transform: scale(1.08)"],
    [style*="transform:scale(1.08)"] {
        transform: scale(1) !important;
    }

    /* Footer */
    footer {
        padding: 24px 16px !important;
    }

    footer p {
        font-size: 12px !important;
    }

    /* === STYLE.CSS OVERRIDES === */
    .hero {
        padding: 80px 16px 60px !important;
    }

    .hero h1 {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }

    .hero p {
        font-size: 16px !important;
    }

    .hero-logo {
        max-width: 180px !important;
    }

    .section {
        padding: 40px 16px !important;
    }

    .section h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .revive-section {
        padding: 50px 16px !important;
    }

    .revive-section > div {
        flex-direction: column !important;
    }

    .revive-section h2 {
        font-size: 24px !important;
        text-align: center !important;
    }

    .revive-section p,
    .revive-section ul {
        text-align: center !important;
    }

    .revive-section li {
        justify-content: center !important;
        font-size: 14px !important;
    }

    .revive-section .btn-cta {
        display: block !important;
        margin: 20px auto 0 !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .revive-section .media-block {
        transform: none !important;
    }

    .btn-cta {
        padding: 14px 28px !important;
        font-size: 15px !important;
        transform: none !important;
    }

    .btn-cta:hover {
        transform: translateY(-2px) !important;
    }

    .btn-loja,
    .btn-suporte,
    .btn-discord,
    .cupom-tag {
        transform: none !important;
    }
}

/* ========== MOBILE PEQUENO (max-width: 480px) ========== */
@media (max-width: 480px) {
    body {
        padding-top: 60px !important;
    }

    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 15px !important; }

    .hero-new h1 {
        font-size: 22px !important;
    }

    .hero-new .subtitle {
        font-size: 12px !important;
    }

    .hero-new .description {
        font-size: 13px !important;
    }

    .badge {
        font-size: 9px !important;
        padding: 6px 10px !important;
    }

    .stats-hero {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .stat-number {
        font-size: 24px !important;
    }

    .stat-label {
        font-size: 10px !important;
    }

    .feature-box {
        padding: 20px 16px !important;
    }

    .feature-icon {
        font-size: 32px !important;
    }

    .products-section h2 {
        font-size: 22px !important;
    }

    .product-card {
        padding: 20px 16px !important;
    }

    .btn-cta {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .btn-cta-hero,
    .btn-secondary-hero {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }

    .cta-final h2 {
        font-size: 22px !important;
    }

    /* Inline font sizes override extra */
    [style*="font-size: 48px"],
    [style*="font-size:48px"],
    [style*="font-size: 52px"],
    [style*="font-size:52px"] {
        font-size: 22px !important;
    }

    [style*="font-size: 42px"],
    [style*="font-size:42px"] {
        font-size: 20px !important;
    }

    [style*="font-size: 36px"],
    [style*="font-size:36px"] {
        font-size: 18px !important;
    }

    [style*="font-size: 32px"],
    [style*="font-size:32px"] {
        font-size: 17px !important;
    }

    [style*="font-size: 28px"],
    [style*="font-size:28px"] {
        font-size: 16px !important;
    }

    [style*="font-size: 24px"],
    [style*="font-size:24px"] {
        font-size: 15px !important;
    }

    [style*="font-size: 20px"],
    [style*="font-size:20px"] {
        font-size: 14px !important;
    }

    /* Paddings inline */
    [style*="padding: 40px 32px"],
    [style*="padding:40px 32px"],
    [style*="padding: 44px 36px"],
    [style*="padding:44px 36px"],
    [style*="padding: 40px"],
    [style*="padding:40px"],
    [style*="padding: 32px"],
    [style*="padding:32px"] {
        padding: 16px 12px !important;
    }

    /* Hub */
    .hub-container {
        padding: 24px 12px !important;
    }

    .hub-header {
        margin-bottom: 20px !important;
    }

    .hub-header h1 {
        font-size: 22px !important;
    }

    .category-icon {
        font-size: 32px !important;
    }

    .category-title {
        font-size: 16px !important;
    }

    /* Dashboard */
    .card-value {
        font-size: 22px !important;
    }

    .license-price {
        font-size: 24px !important;
    }

    /* Modais */
    .modal-content {
        padding: 16px !important;
    }

    .modal-content h2 {
        font-size: 18px !important;
    }

    #qrcodePix {
        width: 180px !important;
        height: 180px !important;
    }

    /* Hero style.css */
    .hero h1 {
        font-size: 24px !important;
    }

    .hero p {
        font-size: 14px !important;
    }

    .hero-logo {
        max-width: 150px !important;
    }

    .section h2 {
        font-size: 24px !important;
    }

    .faq-item h4 {
        font-size: 15px !important;
    }

    .faq-item p {
        font-size: 13px !important;
    }

    /* Floating */
    .float-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }

    #widgetbot-container {
        width: 90vw !important;
        height: 300px !important;
        right: 5vw !important;
        bottom: 70px !important;
    }
}

/* ========== TELAS MUITO PEQUENAS (max-width: 360px) ========== */
@media (max-width: 360px) {
    .hero-new h1 {
        font-size: 20px !important;
    }

    .stats-hero {
        grid-template-columns: 1fr !important;
    }

    .stat-number {
        font-size: 22px !important;
    }

    .badge {
        font-size: 8px !important;
        padding: 5px 8px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-badges {
        flex-direction: column !important;
        align-items: center !important;
    }

    .btn-cta-hero,
    .btn-secondary-hero {
        font-size: 12px !important;
        padding: 12px 16px !important;
    }

    .hub-header h1 {
        font-size: 18px !important;
    }

    .products-section h2 {
        font-size: 18px !important;
    }
}
