/* Estilos extraídos de index1.php */

.news-badges {
            position: absolute;
            top: 16px;
            left: 16px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            z-index: 2;
        }

        .news-exclusive-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(220, 38, 38, 0.96);
            color: #ffffff;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
            margin-bottom: 10px;
        }

        .news-exclusive-badge--content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin-bottom: 0;
            z-index: 3;
            pointer-events: none;
            white-space: nowrap;
        }

        .news-excerpt-wrap {
            position: relative;
        }

        .news-excerpt--blurred {
            filter: blur(4px);
            user-select: none;
        }

        .strategy-desc-wrap {
            position: relative;
        }

        .strategy-desc--blurred {
            filter: blur(4px);
            user-select: none;
        }

        .score-floating-bonus {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) scale(0.7);
            z-index: 14000;
            pointer-events: none;
            color: #00ff66;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 70px;
            font-weight: bold;
            opacity: 0;
            text-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
            white-space: nowrap;
        }

        .score-floating-bonus.play {
            animation: scoreBonusAppear 0.4s ease-out forwards,
                       scoreBonusFade 1s ease-in forwards 0.15s;
        }

        .news-detail-title-row {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }

        .news-detail-score-gain {
            display: inline-block;
            color: #00ff66;
            font-family: Arial, Helvetica, sans-serif;
            font-size: clamp(1.1rem, 2vw, 1.6rem);
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            opacity: 0;
            transform: scale(0.7);
            text-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
            pointer-events: none;
        }

        .news-detail-score-gain.play {
            animation: scoreBonusAppearInline 0.4s ease-out forwards,
                       scoreBonusFadeInline 1s ease-in forwards 0.15s;
        }

        @keyframes scoreBonusAppearInline {
            from {
                opacity: 0;
                transform: scale(0.7);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes scoreBonusFadeInline {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        .footer-theme-toggle {
            width: 100%;
            margin: 18px 0 14px;
            display: flex;
            justify-content: flex-end;
        }

        .theme-toggle-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: #f8f8f8;
            cursor: pointer;
            font-weight: 700;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .theme-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        body.light {
            --bg-primary: #f4f7fb;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f5f9;
            --text-primary: #111111;
            --text-secondary: #3f3f46;
            --text-muted: #6b7280;
            --border: rgba(17, 24, 39, 0.10);
            --glow-gold: rgba(212, 175, 55, 0.20);
            background: #f4f7fb;
            color: #111111;
        }

        body.light a,
        body.light p,
        body.light span,
        body.light label,
        body.light h1,
        body.light h2,
        body.light h3,
        body.light h4,
        body.light h5,
        body.light h6,
        body.light td,
        body.light th,
        body.light .section-desc,
        body.light .news-detail-summary,
        body.light .news-detail-body,
        body.light .video-desc,
        body.light .market-card-desc,
        body.light .poll-highlight-copy {
            color: #111111 !important;
        }

        body.light .container,
        body.light .edit-card,
        body.light .edit-form-card,
        body.light .ad-banner-card,
        body.light .highlight-card,
        body.light .video-card,
        body.light .video-content,
        body.light .market-footer,
        body.light .news-detail-hero,
        body.light .news-detail-content,
        body.light .news-detail-actions,
        body.light .news-detail-meta,
        body.light .news-detail-hero-content,
        body.light .market-card-title,
        body.light .video-actions,
        body.light .market-actions,
        body.light .market-count,
        body.light .market-inline-price,
        body.light .profile-tabs,
        body.light .profile-tab-btn,
        body.light .form-group,
        body.light .form-actions,
        body.light .video-embed,
        body.light .news-detail-page,
        body.light .news-detail-page .container,
        body.light .stat-card,
        body.light .asset-card,
        body.light .news-card,
        body.light .carousel-card,
        body.light .market-card,
        body.light .mentorship-product-card,
        body.light .mentorship-empty,
        body.light .loading-card,
        body.light .strategies-table-wrap,
        body.light .strategies-table thead th,
        body.light .community-rank-slider-box,
        body.light .slogan-banner-content,
        body.light .section-header,
        body.light .section-header-actions,
        body.light .news.main-page .container,
        body.light .statistics .container,
        body.light .poll-highlight-section .container,
        body.light .market-content,
        body.light .market-head-row,
        body.light .market-info-row,
        body.light .template-search-inline,
        body.light .video-card .news-exclusive-badge {
            background: #ffffff !important;
            border-color: rgba(17, 24, 39, 0.08) !important;
            box-shadow: 0 2px 24px rgba(15, 23, 42, 0.04);
        }

        body.light .hero .container,
        body.light .hero-content,
        body.light .community-rank-slider-section,
        body.light .container {
            background: transparent !important;
        }

        .container {
            background: transparent !important;
        }

        body.light .stat-card:hover,
        body.light .highlight-card:hover,
        body.light .news-card:hover,
        body.light .asset-card:hover,
        body.light .carousel-card:hover,
        body.light .market-card:hover,
        body.light .mentorship-product-card:hover {
            border-color: rgba(212, 175, 55, 0.32) !important;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 18px rgba(212, 175, 55, 0.10) !important;
        }

        body.light .form-input,
        body.light textarea.form-input,
        body.light select.form-input,
        body.light input.form-input,
        body.light .strategies-table,
        body.light .strategies-table-wrap,
        body.light .template-view-toggle,
        body.light .community-rank-score {
            background: #f6f8fc !important;
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.10) !important;
        }

        body.light .form-input::placeholder,
        body.light textarea.form-input::placeholder,
        body.light input.form-input::placeholder {
            color: rgba(17, 24, 39, 0.42) !important;
        }

        body.light .market-category,
        body.light .market-version-chip,
        body.light .market-id,
        body.light .slogan-banner-label,
        body.light .badge,
        body.light .tag {
            background: rgba(212, 175, 55, 0.14) !important;
            border-color: rgba(212, 175, 55, 0.30) !important;
            color: #7a5b05 !important;
        }

        body.light .market-count strong,
        body.light .market-price,
        body.light .stat-value,
        body.light .accent-gold,
        body.light a.accent-gold {
            color: #7a5b05 !important;
        }

        body.light .community-rank-name,
        body.light .community-rank-empty {
            color: #111111 !important;
            text-shadow: none !important;
        }

        body.light .community-rank-avatar {
            border-color: rgba(212, 175, 55, 0.60) !important;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
        }

        body.light .community-rank-nav {
            background: #ffffff !important;
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.08) !important;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
        }

        body.light .strategies-table tbody tr:hover {
            background: rgba(212, 175, 55, 0.08) !important;
        }

        body.light .strategies-table td,
        body.light .strategies-table th {
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.08) !important;
        }

        body.light .poll-highlight-dot.is-active {
            background: #d4af37 !important;
        }

        body.light .mentorship-nav {
            background: #ffffff !important;
            color: #111111 !important;
            border-color: rgba(212, 175, 55, 0.32) !important;
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10) !important;
        }

        body.light .mentorship-nav:hover:not(:disabled) {
            background: #f6f8fc !important;
            border-color: rgba(212, 175, 55, 0.50) !important;
        }

        body.light .slogan-banner {
            background-image:
                linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(244, 247, 251, 0.82) 100%),
                url('imagens/mosaico.jpg') !important;
        }

        body.light .slogan-banner-title {
            color: #0f172a !important;
            text-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        }

        body.light .slogan-banner::before {
            opacity: 0.35 !important;
        }

        body.light .section-label {
            color: #7a5b05 !important;
        }

        body.light .section-title {
            color: #0b0b10 !important;
        }

        body.light .video-card .news-exclusive-badge,
        body.light .news-card .news-exclusive-badge {
            background: rgba(212, 175, 55, 0.16) !important;
            color: #7a5b05 !important;
            border-color: rgba(212, 175, 55, 0.30) !important;
        }

        body.light .market-download-flag {
            background: #fef2f2 !important;
            color: #991b1b !important;
            border-color: rgba(153, 27, 27, 0.12) !important;
        }

        body.light .template-view-toggle.active {
            background: #111111 !important;
            color: #ffffff !important;
            border-color: #111111 !important;
        }

        body.light .video-embed {
            background: #0b0b10 !important;
            border-color: rgba(15, 23, 42, 0.08) !important;
        }

        body.light .poll-highlight-main {
            background-color: rgba(255, 255, 255, 0.45) !important;
            box-shadow: 0 2px 24px rgba(15, 23, 42, 0.04) !important;
        }

        body.light .poll-highlight-main::before {
            opacity: 0.12 !important;
        }

        body.light .poll-highlight-label {
            background: rgba(212, 175, 55, 0.14) !important;
            border-color: rgba(212, 175, 55, 0.30) !important;
            color: #7a5b05 !important;
        }

        body.light .poll-highlight-title {
            color: #0b0b10 !important;
            text-shadow: none !important;
        }

        body.light .poll-highlight-desc {
            color: rgba(17, 24, 39, 0.72) !important;
        }

        body.light .poll-highlight-dot {
            background: rgba(17, 24, 39, 0.20) !important;
        }

        body.light .enquetes-widget {
            background: #ffffff !important;
            border-color: rgba(212, 175, 55, 0.30) !important;
            box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10) !important;
            color: #111111 !important;
        }

        body.light .widget-header {
            border-bottom-color: rgba(17, 24, 39, 0.10) !important;
        }

        body.light .widget-titulo,
        body.light .enquete-titulo,
        body.light .pergunta-widget,
        body.light .opcao-texto,
        body.light .widget-result-label,
        body.light .widget-empty h4 {
            color: #111111 !important;
        }

        body.light .widget-titulo i,
        body.light .widget-ver-todas,
        body.light .widget-ver-todas:hover,
        body.light .widget-result-toggle,
        body.light .widget-result-toggle:hover,
        body.light .opcao-percentual,
        body.light .percentual,
        body.light .widget-result-percent,
        body.light .widget-empty i {
            color: #7a5b05 !important;
        }

        body.light .enquete-descricao,
        body.light .enquete-stats,
        body.light .stat-item,
        body.light .widget-stats-participants,
        body.light .stats-header,
        body.light .widget-empty,
        body.light .widget-empty p {
            color: rgba(17, 24, 39, 0.70) !important;
        }

        body.light .resposta-rapida,
        body.light .opcao-widget,
        body.light .escala-opcao,
        body.light .opcao-stat,
        body.light .widget-result-row,
        body.light .texto-widget {
            background: #f6f8fc !important;
            border-color: rgba(17, 24, 39, 0.10) !important;
        }

        body.light .opcao-widget,
        body.light .escala-opcao {
            color: rgba(17, 24, 39, 0.84) !important;
        }

        body.light .status-disponivel {
            background: rgba(212, 175, 55, 0.14) !important;
            color: #7a5b05 !important;
            border-color: rgba(212, 175, 55, 0.30) !important;
        }

        body.light .status-respondida {
            background: rgba(16, 185, 129, 0.12) !important;
            color: #047857 !important;
            border-color: rgba(16, 185, 129, 0.24) !important;
        }

        body.light .btn-widget {
            background: #f6f8fc !important;
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.12) !important;
        }

        body.light .btn-primary-widget,
        body.light .btn-success-widget {
            background: linear-gradient(135deg, #d4af37 0%, #f0d06d 100%) !important;
            color: #0b1120 !important;
            border-color: rgba(212, 175, 55, 0.36) !important;
        }

        body.light .btn-info-widget,
        body.light .btn-secondary-widget {
            background: #f6f8fc !important;
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.12) !important;
        }

        body.light .widget-login-prompt,
        body.light .widget-login-prompt h4,
        body.light .widget-login-prompt p {
            color: #ffffff !important;
        }

        body.light .btn-login-widget {
            background: #ffffff !important;
            color: #667eea !important;
        }

        body.light .opcao-progress-bar {
            background-color: rgba(17, 24, 39, 0.12) !important;
        }

        body.light .opcao-count,
        body.light .votos {
            color: rgba(17, 24, 39, 0.52) !important;
        }

        body.light .widget-result-count {
            background: rgba(212, 175, 55, 0.92) !important;
            color: #0b1120 !important;
        }

        body.light .mensagem-sucesso {
            background: rgba(16, 185, 129, 0.12) !important;
            color: #047857 !important;
            border-color: rgba(16, 185, 129, 0.22) !important;
        }

        body.light .mensagem-erro {
            background: rgba(239, 68, 68, 0.10) !important;
            color: #b91c1c !important;
            border-color: rgba(239, 68, 68, 0.20) !important;
        }

        body.light .strategies-empty {
            background: #ffffff !important;
            color: #111111 !important;
            border-color: rgba(17, 24, 39, 0.08) !important;
        }

        body.light .btn-close-comments-card,
        body.light .btn-close-comments-focus {
            background: #111111 !important;
            color: #ffffff !important;
            border-color: rgba(15, 23, 42, 0.10) !important;
        }


        body.light .btn.btn-secondary,
        body.light .btn.btn-primary,
        body.light .poll-highlight-btn,
        body.light .news-detail-back,
        body.light .video-fullscreen-btn,
        body.light .template-like-btn,
        body.light .carousel-btn,
        body.light .market-buy-btn,
        body.light .market-score-btn {
            background: #111111 !important;
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.12) !important;
        }

        body.light .btn.btn-primary {
            background: #111111 !important;
            border-color: #111111 !important;
        }

        body.light .theme-toggle-btn {
            background: #111111;
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.16);
        }

        body.light .news-detail-hero::before {
            opacity: 0.08 !important;
        }

        @keyframes scoreBonusAppear {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.7);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes scoreBonusFade {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        .video-desc-wrap {
            position: relative;
        }

        .video-desc--blurred {
            filter: blur(4px);
            user-select: none;
        }

        .video-embed--locked {
            position: relative;
            overflow: hidden;
        }

        .video-exclusive-overlay {
            position: absolute;
            inset: 0;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.45);
            backdrop-filter: blur(4px);
            cursor: pointer;
        }

        .video-exclusive-overlay .news-exclusive-badge {
            margin-bottom: 0;
        }

        .exclusive-access-modal .modal {
            max-width: 460px;
            text-align: center;
        }

        .exclusive-access-modal .modal-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .exclusive-access-icon {
            width: 72px;
            height: 72px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(245, 158, 11, 0.16);
            color: #f59e0b;
        }

        .exclusive-access-copy {
            margin: 12px 0 0;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .exclusive-access-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 28px;
            flex-wrap: wrap;
        }

        .status-operacao-icon {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            padding: 3px 8px;
            border-radius: 6px;
            vertical-align: middle;
            line-height: 1;
        }
        .status-operacao-icon.status-ganho {
            color: #22c55e;
            background: rgba(34, 197, 94, 0.12);
        }
        .status-operacao-icon.status-perda {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.12);
        }
        .status-operacao-icon.status-pendente {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.12);
        }

        #editTemplateModal .modal {
            width: min(980px, calc(100vw - 32px));
            max-width: 980px;
        }
        .edit-template-main-row,
        .edit-template-metrics {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .edit-template-main-row > .form-group,
        .edit-template-metrics > .form-group {
            flex: 1 1 0;
            min-width: 0;
        }
        .edit-template-metrics {
            display: grid;
            grid-template-columns: minmax(110px, 1.2fr) minmax(90px, 0.95fr) minmax(120px, 1fr) repeat(2, minmax(90px, 0.85fr));
            align-items: flex-start;
        }
        .edit-template-metrics > .form-group {
            min-width: 0;
        }
        .edit-template-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        .template-search-inline {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .template-search-inline .form-input {
            flex: 1 1 auto;
            min-width: 240px;
        }
        .template-view-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .template-view-toggle.active {
            background: var(--accent-gold);
            border-color: var(--accent-gold);
            color: var(--bg-primary);
        }
        .strategies-grid.strategies-table-mode {
            display: block;
        }
        .strategies-empty {
            text-align: center;
            color: var(--text-secondary);
            padding: 26px 10px;
        }
        .strategies-table-wrap {
            overflow-x: auto;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 16px;
        }
        .strategies-table {
            width: 100%;
            min-width: 1080px;
            border-collapse: collapse;
        }
        .strategies-table thead th {
            text-align: left;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-muted);
            background: var(--bg-secondary);
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }
        .strategies-table tbody tr {
            transition: background 0.2s ease;
            cursor: pointer;
        }
        .strategies-table tbody tr:hover {
            background: rgba(212, 175, 55, 0.06);
        }
        .strategies-table tbody tr + tr td {
            border-top: 1px solid var(--border);
        }
        .strategies-table td {
            padding: 16px;
            vertical-align: middle;
            color: var(--text-primary);
        }
        .strategies-table td:last-child,
        .strategies-table th:last-child {
            text-align: right;
        }
        .strategy-table-author {
            font-size: 0.9rem;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .strategy-table-author-cell {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .strategy-table-avatar {
            width: 38px;
            height: 38px;
            border-radius: 999px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid var(--border);
            background: var(--bg-secondary);
        }
        .strategy-table-title {
            font-weight: 600;
            margin-bottom: 4px;
        }
        .strategy-table-desc {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }
        .strategy-table-badges {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 6px;
        }
        .strategy-table-code {
            font-family: 'JetBrains Mono', monospace;
            white-space: nowrap;
        }
        .strategy-table-status {
            min-width: 120px;
        }
        .strategy-table-like {
            display: inline-flex;
            justify-content: flex-end;
        }
        .strategy-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .strategy-header-top {
            display: flex;
            align-items: flex-start;
            width: 100%;
            gap: 12px;
        }
        .strategy-header-top .strategy-title {
            margin: 0;
            flex: 1 1 auto;
            min-width: 0;
        }
        .strategy-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.4;
        }
        .strategy-card .btn-close-comments-card {
            display: none;
            flex: 0 0 auto;
            margin-left: auto;
        }
        .strategy-card.comments-open .btn-close-comments-card {
            display: inline-flex;
        }
        .strategy-desc-wrap {
            flex: 1 1 auto;
        }
        .strategy-footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-top: 14px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
            margin-top: auto;
        }
        .strategy-footer-right {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
        }
        .template-like-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border: 1px solid rgba(212, 175, 55, 0.28);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            color: #f5f7fb;
            cursor: pointer;
            font: inherit;
            line-height: 1;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .template-like-btn:hover {
            background: rgba(212, 175, 55, 0.10);
            border-color: rgba(212, 175, 55, 0.60);
            transform: translateY(-1px);
        }
        .template-like-btn.liked {
            border-color: rgba(212, 175, 55, 0.85);
            background: rgba(212, 175, 55, 0.14);
        }
        .template-like-label {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-secondary);
        }
        .template-like-heart {
            font-size: 1rem;
        }
        .template-like-count {
            font-weight: 700;
            color: #ffffff;
        }
        .template-edit-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            padding: 0;
            border: 1px solid rgba(212, 175, 55, 0.28);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            color: #f5f7fb;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .template-edit-btn:hover {
            background: rgba(212, 175, 55, 0.10);
            border-color: rgba(212, 175, 55, 0.60);
            transform: translateY(-1px);
        }
        .news-footer-actions,
        .news-detail-actions-group {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        @media (max-width: 768px) {
            .template-search-inline {
                width: 100%;
            }
            .template-search-inline .form-input {
                min-width: 0;
            }
        }

        /* Comments Styles */
        .comments-section {
            margin-top: 20px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        .strategies-grid.comment-focus-mode {
            grid-template-columns: minmax(0, 1fr);
        }
        .strategies-grid.comment-focus-mode .strategy-card {
            display: none;
        }
        .strategies-grid.comment-focus-mode .strategy-card.comment-focus-card {
            display: flex;
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
        }
        .strategies-grid.comment-focus-mode + #templatesPagination {
            display: none;
        }
        .comments-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .comments-header h4 {
            color: #333;
            margin: 0;
            font-size: 1.1em;
        }
        .btn-close-comments-focus {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 0, 0, 0.16);
            background: #ffffff;
            color: #333333;
            border-radius: 8px;
            padding: 4px 8px;
            font-size: 0.85rem;
            line-height: 1.2;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .btn-close-comments-focus:hover {
            background: #f4f4f4;
            border-color: rgba(0, 0, 0, 0.28);
            color: #111111;
        }
        
        .add-comment {
            margin-bottom: 20px;
        }
        
        .add-comment textarea {
            width: 100%;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px;
            color: #333;
            font-family: inherit;
            resize: vertical;
            min-height: 80px;
            box-sizing: border-box;
        }
        
        .add-comment textarea::placeholder {
            color: #999;
        }
        
        .comment-form-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
        }
        
        .char-count {
            color: #666;
            font-size: 0.8em;
        }
        
        .btn-comment-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 20px;
            cursor: pointer;
            font-weight: 400;
        }
        
        .btn-comment-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        
        .btn-comment-submit:disabled {
            opacity: 1;
            cursor: not-allowed;
            filter: none;
        }
        
        .comments-list {
            /* Permitir expansão natural */
        }
        
        .comment-item {
            background: rgba(0, 0, 0, 0.05);
            padding: 12px;
            margin-bottom: 10px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            position: relative;
        }
        
        .comment-actions {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
            opacity: 1;
            transition: none;
        }

        .comment-item:hover .comment-actions { opacity: 1; }
        
        .btn-edit-comment, .btn-delete-comment {
            background: rgba(0, 0, 0, 0.1);
            border: none;
            padding: 5px 8px;
            color: #333;
            cursor: pointer;
            font-size: 0.7em;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .btn-edit-comment:hover {
            background: rgba(102, 126, 234, 0.6);
            color: white;
        }
        
        .btn-delete-comment:hover {
            background: rgba(239, 68, 68, 0.6);
            color: white;
        }
        
        .loading-comments, .no-comments {
            text-align: center;
            color: #666;
            padding: 20px;
            font-style: italic;
        }
        
        .edit-comment-form {
            margin-top: 10px;
            display: none;
        }
        
        .edit-comment-form textarea {
            width: 100%;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 8px;
            color: #333;
            font-family: inherit;
            resize: vertical;
            min-height: 60px;
            box-sizing: border-box;
        }
        
        .edit-comment-actions {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }
        
        .btn-save-edit, .btn-cancel-edit {
            background: rgba(102, 126, 234, 0.8);
            border: none;
            border-radius: 15px;
            padding: 5px 12px;
            color: white;
            cursor: pointer;
            font-size: 0.8em;
            transition: all 0.3s ease;
        }
        
        .btn-save-edit:hover {
            background: rgba(102, 126, 234, 1);
        }
        
        .btn-cancel-edit {
            background: rgba(156, 163, 175, 0.8);
        }
        
        .btn-cancel-edit:hover {
            background: rgba(156, 163, 175, 1);
        }
        
        .btn-like-comment {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #333;
            padding: 4px 12px;
            cursor: pointer;
            font-size: 0.85em;
            border-radius: 4px;
            transition: all 0.3s ease;
            margin-top: 8px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .btn-like-comment:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }
        
        .btn-like-comment.liked {
            background: rgba(255, 107, 107, 0.3);
            border-color: rgba(255, 107, 107, 0.5);
            color: #ff6b6b;
        }
        
        .comment-like-section {
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .btn-reply-comment {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #333;
            padding: 4px 12px;
            cursor: pointer;
            font-size: 0.85em;
            border-radius: 4px;
            transition: all 0.3s ease;
            margin-top: 8px;
        }
        
        .btn-reply-comment:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }
        
        .reply-form {
            margin-top: 10px;
            display: none;
        }
        
        .reply-form textarea {
            width: 100%;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 8px;
            color: #333;
            font-family: inherit;
            resize: vertical;
            min-height: 60px;
            box-sizing: border-box;
        }
        
        .reply-actions {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }
        
        .btn-send-reply, .btn-cancel-reply {
            background: rgba(102, 126, 234, 0.8);
            border: none;
            border-radius: 15px;
            padding: 5px 12px;
            color: white;
            cursor: pointer;
            font-size: 0.8em;
            transition: all 0.3s ease;
        }
        
        .btn-send-reply:hover {
            background: rgba(102, 126, 234, 1);
        }
        
        .btn-cancel-reply {
            background: rgba(156, 163, 175, 0.8);
        }
        
        .btn-cancel-reply:hover {
            background: rgba(156, 163, 175, 1);
        }
        
        /* Estilos para hierarquia de comentários */
        .comment-level-1 {
            margin-left: 20px;
            border-left: 3px solid rgba(102, 126, 234, 0.3);
            padding-left: 15px;
        }
        
        .comment-level-2 {
            margin-left: 40px;
            border-left: 3px solid rgba(34, 197, 94, 0.3);
            padding-left: 15px;
        }
        
        .comment-level-3 {
            margin-left: 60px;
            border-left: 3px solid rgba(251, 146, 60, 0.3);
            padding-left: 15px;
        }
        
        .comment-level-4 {
            margin-left: 80px;
            border-left: 3px solid rgba(239, 68, 68, 0.3);
            padding-left: 15px;
        }
        
        .comment-level-5 {
            margin-left: 100px;
            border-left: 3px solid rgba(168, 85, 247, 0.3);
            padding-left: 15px;
        }
        
        .comment-item[data-level="6"], 
        .comment-item[data-level="7"], 
        .comment-item[data-level="8"], 
        .comment-item[data-level="9"], 
        .comment-item[data-level="10"] {
            margin-left: 120px;
            border-left: 3px solid rgba(156, 163, 175, 0.3);
            padding-left: 15px;
        }
        
        /* Estilos para cabeçalho do comentário */
        .comment-header {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }
        
        .comment-text {
            flex: 1;
        }
        
        .comment-date {
            color: #666;
            font-size: 0.8em;
            margin-top: 5px;
        }
        
        /* Estilos para botões de recolher/expandir */
        .btn-toggle-replies {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #3b82f6;
            padding: 2px 8px;
            cursor: pointer;
            font-size: 0.8em;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .btn-toggle-replies:hover {
            background: rgba(59, 130, 246, 0.2);
        }
        
        /* Comment button in strategy card */
        .template-comment-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #333;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 0.9em;
            border-radius: 20px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .template-comment-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }
        
        .template-comment-btn.active {
            background: rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.5);
        }

.hero {
            padding-top: 110px;
            padding-bottom: 90px;
        }
        .hero .container {
            width: 100%;
            min-height: calc(78vh - 180px);
            align-items: center;
        }
        .hero-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: calc(78vh - 180px);
        }
        .community-rank-slider-section {
            padding: 32px 0 10px;
        }
        .community-rank-slider-section .section-header {
            margin-bottom: 0px;
        }
        .community-rank-slider-box {
            position: relative;
            overflow: hidden;
            width: 100%;
            min-height: 112px;
            padding: 12px 44px;
            border-radius: 0;
            background: transparent;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
            backdrop-filter: none;
            z-index:  0; 
        }
        .ad-banner-section {
            padding: 8px 0;
             /* background-color:black ; */
        }
        .ad-banner-grid {
            margin-top: 24px;
            display: grid;
            grid-template-columns: 8fr 4fr;
            gap: 20px;
            align-items: stretch;
        }
        .ad-banner-card {
            height: 300px;
            overflow: hidden;
            border: 0px solid rgba(212, 175, 55, 0.28);
            background: rgba(255, 255, 255, 0.02);
     
        }
        .ad-banner-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .news.main-page {
            padding-top: 28px;
        }
        .news.main-page .section-header {
            margin-bottom: 28px;
        }
        .community-rank-slider-viewport {
            overflow: hidden;
            width: 100%;
        }
        .community-rank-slider-track {
            display: flex;
            align-items: center;
            gap: 15px;
            width: max-content;
            transition: transform 0.3s ease;
        }
        .community-rank-user {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 70px;
            flex-shrink: 0;
        }
        .community-rank-link {
            text-decoration: none;
            color: inherit;
        }
        .community-rank-avatar-wrap {
            position: relative;
            margin-top: 5px;
        }
        .community-rank-avatar {
            width: 60px;
            height: 60px;
            border-radius: 0%;
            object-fit: cover;
            border: 3px solid #776c0cff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .community-rank-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            border-color: #ff6b6b;
        }
        .community-rank-squad-icon {
            position: absolute;
            left: -10px;
            top: calc(50% - 30px);
            transform: translateY(-50%);
            z-index: -999;
            font-size: 20px;
        }
        .community-rank-score {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background: #ff6b6b;
            color: #fff;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 700;
            border: 2px solid #fff;
        }
        .community-rank-name {
            margin-top: 5px;
            max-width: 70px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            color: #fff;
            text-decoration: none;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        }
        .community-rank-empty {
            width: 100%;
            padding: 20px 0;
            text-align: center;
            color: #ddd;
            font-size: 0.8rem;
        }
        .community-rank-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            color: #2b2b2b;
        }
        .community-rank-nav-left {
            left: 8px;
        }
        .community-rank-nav-right {
            right: 8px;
        }
        @media (max-width: 768px) {
            .hero {
                padding-top: 72px;
                padding-bottom: 72px;
            }
            .ad-banner-grid {
                grid-template-columns: 1fr;
            }
            .hero .container,
            .hero-content {
                min-height: calc(78vh - 144px);
            }
            .hero-content {
                align-items: center;
            }
            .community-rank-slider-section {
                padding-top: 24px;
            }
            .community-rank-slider-box {
                padding-left: 36px;
                padding-right: 36px;
            }
        }

.stats-grid.stats-grid-four {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        @media (max-width: 1100px) {
            .stats-grid.stats-grid-four {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .stats-grid.stats-grid-four {
                grid-template-columns: minmax(0, 1fr);
            }
        }

.slogan-banner {
            position: relative;
            width: 100%;
            min-height: 420px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 64px 24px;
            background-image:
                linear-gradient(180deg, rgba(2, 6, 23, 0.48) 0%, rgba(2, 6, 23, 0.74) 100%),
                url('imagens/mosaico.jpg');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            overflow: hidden;
        }

        .slogan-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at top center, rgba(212, 175, 55, 0.16), transparent 48%),
                linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
            pointer-events: none;
        }

        .slogan-banner-content {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 1100px;
            text-align: center;
        }

        .slogan-banner-label {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            padding: 10px 18px;
            border: 1px solid rgba(212, 175, 55, 0.36);
            background: rgba(2, 6, 23, 0.48);
            color: var(--accent-gold);
            font-size: 0.88rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .slogan-banner-title {
            margin: 0;
            color: #fff;
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.4rem, 5vw, 4.8rem);
            line-height: 1.08;
            text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        }

        @media (max-width: 768px) {
            .slogan-banner {
                min-height: 320px;
                padding: 48px 20px;
                background-attachment: scroll;
            }
        }

.poll-highlight-section {
            padding: 24px 0 8px;
        }

        .poll-highlight-grid {
            display: grid;
            grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
            gap: 24px;
            align-items: stretch;
        }

        .poll-highlight-main {
            position: relative;
            min-height: 100%;
            border-radius: 28px;
            padding: 36px;
            background:
                linear-gradient(135deg, rgba(7, 11, 26, 0.94), rgba(10, 16, 34, 0.92));
            border: 1px solid rgba(212, 175, 55, 0.16);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
        }

        .poll-highlight-main::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 36%);
            pointer-events: none;
        }

        .poll-highlight-main > * {
            position: relative;
            z-index: 1;
        }

        .poll-highlight-slides {
            position: relative;
            min-height: 280px;
        }

        .poll-highlight-slide {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            opacity: 0;
            transform: translateY(14px);
            pointer-events: none;
            transition: opacity 0.45s ease, transform 0.45s ease;
        }

        .poll-highlight-slide.is-active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .poll-highlight-label {
            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(212, 175, 55, 0.14);
            border: 1px solid rgba(212, 175, 55, 0.24);
            color: var(--accent-gold);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 18px;
        }

        .poll-highlight-title {
            margin: 0 0 14px;
            color: #ffffff;
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2rem, 3.4vw, 3.4rem);
            line-height: 1.02;
        }

        .poll-highlight-desc {
            max-width: 680px;
            margin: 0;
            color: rgba(255, 255, 255, 0.78);
            font-size: 1.02rem;
            line-height: 1.7;
        }

        .poll-highlight-cta {
            margin-top: 22px;
            display: flex;
            justify-content: flex-end;
        }

        .poll-highlight-btn {
            display: inline-flex;
            align-items: right;
            justify-content: center;
            padding: 12px 26px;
            border-radius: 999px;
            background: linear-gradient(135deg, #d4af37 0%, #c99a1f 100%);
            color: #0b0b10;
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-decoration: none;
            border: 1px solid rgba(212, 175, 55, 0.6);
            box-shadow: 0 10px 24px rgba(212, 175, 55, 0.18);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }

        .poll-highlight-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.05);
            box-shadow: 0 14px 30px rgba(212, 175, 55, 0.28);
            color: #0b0b10;
            text-decoration: none;
        }

        .poll-highlight-btn:active {
            transform: translateY(0);
            filter: brightness(0.98);
        }

        @media (max-width: 768px) {
            .poll-highlight-cta {
                margin-top: 18px;
            }

            .poll-highlight-btn {
                width: 100%;
                padding: 12px 18px;
            }
        }

        .poll-highlight-dots {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 22px;
        }

        .poll-highlight-dot {
            width: 12px;
            height: 12px;
            padding: 0;
            border: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.22);
            cursor: pointer;
            transition: transform 0.25s ease, background 0.25s ease;
        }

        .poll-highlight-dot.is-active {
            background: var(--accent-gold);
            transform: scale(1.15);
        }

        .poll-highlight-aside {
            min-width: 0;
        }

        .poll-highlight-aside .enquetes-widget {
            margin: 0;
            height: 100%;
        }

        .mentorship-row {
            position: relative;
        }

        .mentorship-grid {
            display: flex;
            gap: 24px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            padding: 8px 4px 14px;
        }

        .mentorship-grid::-webkit-scrollbar {
            display: none;
        }

        .mentorship-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 3;
            width: 48px;
            height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            border: 1px solid rgba(212, 175, 55, 0.24);
            background: rgba(10, 10, 15, 0.92);
            color: #ffffff;
            cursor: pointer;
            box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32);
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
        }

        .mentorship-nav:hover:not(:disabled) {
            transform: translateY(-50%) scale(1.04);
            border-color: rgba(212, 175, 55, 0.52);
            background: rgba(18, 18, 26, 0.98);
        }

        .mentorship-nav:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        .mentorship-prev {
            left: -22px;
        }

        .mentorship-next {
            right: -22px;
        }

        .mentorship-product-card {
            scroll-snap-align: start;
            flex: 0 0 380px;
            width: 380px;
            max-width: 380px;
        }

        .mentorship-empty {
            padding: 42px 28px;
            border: 1px solid var(--border);
            border-radius: 22px;
            background: rgba(18, 18, 26, 0.88);
            text-align: center;
            color: var(--text-secondary);
            grid-auto-columns: unset;
        }

        .market-card {
            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 100%;
            border-radius: 22px;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 15, 0.96));
            border: 1px solid rgba(212, 175, 55, 0.16);
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
        }

        .market-card:hover {
            transform: translateY(-6px);
            border-color: rgba(212, 175, 55, 0.34);
            box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34), 0 0 24px rgba(212, 175, 55, 0.12);
        }

        .market-thumb-wrap {
            position: relative;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(18, 18, 26, 0.9));
        }

        .market-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .market-id,
        .market-download-flag {
            position: absolute;
            top: 14px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(8px);
            box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
        }

        .market-id {
            left: 14px;
            padding: 6px 10px;
            background: rgba(10, 10, 15, 0.78);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.74rem;
            color: var(--text-primary);
        }

        .market-download-flag {
            right: 14px;
            min-width: 64px;
            height: 34px;
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #c62828;
            color: #ffffff;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .market-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding: 20px;
            flex: 1 1 auto;
        }

        .market-head-row,
        .market-head-tags,
        .market-version-row,
        .market-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .market-head-tags {
            flex-wrap: wrap;
            min-width: 0;
        }

        .market-card-title {
            font-size: 1.28rem;
            margin: 0;
        }

        .market-category,
        .market-version-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 0.78rem;
        }

        .market-category {
            background: rgba(212, 175, 55, 0.12);
            border: 1px solid rgba(212, 175, 55, 0.2);
            color: var(--accent-gold-light);
            font-weight: 600;
        }

        .market-version-chip {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
            font-family: 'JetBrains Mono', monospace;
        }

        .market-card-desc {
            color: var(--text-secondary);
            font-size: 0.94rem;
            line-height: 1.7;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: calc(6.8em - 50px);
            margin: 0;
        }

        .market-info-row,
        .market-footer,
        .market-meta,
        .market-download-stats,
        .market-inline-price,
        .market-count {
            display: flex;
        }

        .market-info-row {
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            margin-top: auto;
            padding-top: 18px;
        }

        .market-download-stats,
        .market-inline-price {
            flex: 0 0 calc(50% - 8px);
            max-width: calc(50% - 8px);
            min-height: 52px;
        }

        .market-download-stats {
            align-items: flex-end;
            justify-content: flex-start;
        }

        .market-count {
            flex-direction: column;
            gap: 2px;
        }

        .market-count strong,
        .market-price {
            color: var(--accent-gold);
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
        }

        .market-count strong {
            font-size: 1rem;
        }

        .market-count span,
        .market-price-label {
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .market-inline-price {
            flex-direction: column;
            align-items: flex-end;
            justify-content: flex-end;
            text-align: right;
        }

        .market-price {
            display: block;
            font-size: 1.22rem;
            margin-top: 4px;
        }

        .market-footer {
            margin-top: auto;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .market-meta {
            flex-direction: column;
            gap: 14px;
            width: 100%;
        }

        .market-actions {
            flex-wrap: nowrap;
            width: 100%;
        }

        .market-buy-btn,
        .market-score-btn,
        .market-download-btn {
            flex: 1 1 0;
            min-width: 0;
        }

        .market-download-btn.btn-success {
            background: #198754;
            border-color: #198754;
            color: #ffffff;
        }

        .market-download-btn.btn-success:hover {
            background: #157347;
            border-color: #157347;
        }

        .market-download-btn.btn-primary {
            background: #0d6efd;
            border-color: #0d6efd;
            color: #ffffff;
        }

        .market-download-btn.btn-primary:hover {
            background: #0b5ed7;
            border-color: #0a58ca;
            color: #ffffff;
        }

        @media (max-width: 980px) {
            .poll-highlight-grid {
                grid-template-columns: 1fr;
            }

            .poll-highlight-main {
                padding: 28px;
            }

            .poll-highlight-slides {
                min-height: 240px;
            }

            .mentorship-grid {
                gap: 20px;
            }

            .mentorship-prev {
                left: -10px;
            }

            .mentorship-next {
                right: -10px;
            }
        }

        @media (max-width: 720px) {
            .mentorship-product-card {
                flex-basis: 360px;
                width: 360px;
                max-width: 360px;
            }

            .mentorship-nav {
                display: none;
            }
        }

        /* Adicione estas regras ao final do arquivo estilos-traderbook.css */

/* ============================================================
   CORREÇÃO DE Z-INDEX PARA MENU E MODALS
   ============================================================ */

/* 1. GARANTIR QUE O MENU FIQUE ACIMA DE TUDO, EXCETO MODALS */
#header {
    position: relative;
    z-index: 1000 !important;
}

/* 2. GARANTIR QUE AS MODALS FIQUEM ACIMA DE TUDO */
.modal-overlay {
    z-index: 9999 !important;
}

.modal-overlay .modal {
    z-index: 10000 !important;
}

/* 3. CORRIGIR O SLIDER PARA FICAR ABAIXO DO MENU E MODALS */
.community-rank-slider-section {
    position: relative;
    z-index: 1 !important;
}

.community-rank-slider-box {
    position: relative;
    z-index: 1 !important;
}

/* 4. GARANTIR QUE O CONTEÚDO PRINCIPAL FIQUE ABAIXO DO MENU */
.main-page {
    position: relative;
    z-index: 1;
}

/* 5. CORRIGIR O FIXED-MOSAIC-BG PARA NÃO INTERFERIR */
.fixed-mosaic-bg-wrap {
    position: relative;
    z-index: 0 !important;
}

.fixed-mosaic-bg {
    z-index: -2 !important;
}

.fixed-mosaic-bg-wrap::after {
    z-index: -1 !important;
}

/* 6. GARANTIR QUE O HERO E OUTROS ELEMENTOS FIQUE NA ORDEM CORRETA */
.hero {
    position: relative;
    z-index: 1;
}

/* 7. CORRIGIR O POLL-HIGHLIGHT PARA NÃO SOBREPOR */
.poll-highlight-section .container,
.poll-highlight-main,
.poll-highlight-aside {
    position: relative;
    z-index: 1;
}

/* 8. GARANTIR QUE O HEADER FIXO FIQUE ACIMA DE TUDO */
.header-fix-spacer {
    position: relative;
    z-index: 1;
}

/* 9. CORRIGIR O SCORE-FLOATING-BONUS PARA FICAR ACIMA DE TUDO */
.score-floating-bonus {
    z-index: 14000 !important;
}

/* 10. GARANTIR QUE O NEWS-DETAIL-PAGE FIQUE ACIMA DO CONTEÚDO MAS ABAIXO DAS MODALS */
.news-detail-page {
    position: relative;
    z-index: 100;
}

.news-detail-page.active {
    z-index: 100;
}

/* 11. GARANTIR QUE O SLIDER DE COMUNIDADE NÃO SOBREPONHA O HEADER */
.community-rank-slider-box .community-rank-nav {
    z-index: 2;
}

/* 12. CORRIGIR O Z-INDEX DO CONTAINER DO SLIDER */
.community-rank-slider-box {
    overflow: hidden;
    width: 100%;
    min-height: 112px;
    padding: 12px 44px;
    border-radius: 0;
    background: transparent;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    backdrop-filter: none;
    z-index: 1 !important; /* Sobrescreve o z-index: 0 original */
}

/* 13. CORRIGIR O TRACK DO SLIDER */
.community-rank-slider-track {
    display: flex;
    align-items: center;
    gap: 15px;
    width: max-content;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 14. GARANTIR QUE O VIEWPORT NÃO CRIE SOBREPOSIÇÃO */
.community-rank-slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 15. CORRIGIR AVATARES PARA NÃO SOBREPOREM */
.community-rank-avatar-wrap {
    position: relative;
    margin-top: 5px;
    z-index: 1;
}

.community-rank-squad-icon {
    position: absolute;
    left: -10px;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    z-index: 0 !important; /* Reduzido de -999 para 0 */
    font-size: 20px;
}

.community-rank-score {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #fff;
    z-index: 2;
}



/* ============================================================
   CORREÇÃO ESPECÍFICA PARA O HEADER (MENU)
   ============================================================ */

/* Certifique-se de que o menu-padrao.php tenha estas classes */
header,
.navbar,
.menu-principal,
#header {
    position: relative;
    z-index: 2000 !important;
}

/* Para o menu fixo/colado no topo */
.header-fixed,
.fixed-top,
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 2000 !important;
}

/* ============================================================
   CORREÇÃO PARA O FOOTER
   ============================================================ */

footer,
.rodape {
    position: relative;
    z-index: 1;
}

/* ============================================================
   CORREÇÃO PARA O BOTÃO DE TEMA
   ============================================================ */

.footer-theme-toggle {
    width: 100%;
    margin: 18px 0 14px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8f8f8;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1;
}

/* ============================================================
   CORREÇÃO PARA O MODO LIGHT
   ============================================================ */

body.light .community-rank-slider-box {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: rgba(17, 24, 39, 0.08) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    z-index: 1 !important;
}

body.light .community-rank-slider-section {
    z-index: 1 !important;
}

body.light .community-rank-nav {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: rgba(17, 24, 39, 0.08) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

/* ============================================================
   CORREÇÃO PARA O BOTÃO DE FECHAR MODAL
   ============================================================ */

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001 !important;
}

/* ============================================================
   CORREÇÃO PARA O HEADER FIXO SPACER
   ============================================================ */

.header-fix-spacer {
    height: 110px;
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================================
   CORREÇÃO PARA O CONTAINER DO SLIDER EM DISPOSITIVOS MÓVEIS
   ============================================================ */

@media (max-width: 768px) {
    .community-rank-slider-box {
        padding-left: 36px;
        padding-right: 36px;
        z-index: 1 !important;
    }
    
    .community-rank-slider-section {
        padding-top: 24px;
        z-index: 1 !important;
    }
}

/* ============================================================
   MODO LIGHT — AJUSTES COMPLEMENTARES (index.php)
   ============================================================ */

body.light .strategy-card {
    background: #ffffff !important;
    border-color: rgba(17, 24, 39, 0.10) !important;
    box-shadow: 0 2px 24px rgba(15, 23, 42, 0.04) !important;
}
body.light .strategy-card:hover {
    border-color: rgba(212, 175, 55, 0.45) !important;
}
body.light .strategy-meta {
    color: #3f3f46 !important;
}
body.light .strategy-footer {
    border-top-color: rgba(17, 24, 39, 0.08) !important;
}

body.light .modal {
    background: #ffffff !important;
    border-color: rgba(17, 24, 39, 0.10) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
}
body.light .modal-close {
    color: #6b7280 !important;
}
body.light .modal-close:hover {
    color: #111111 !important;
}
body.light .modal-oauth-divider::before {
    background: rgba(17, 24, 39, 0.08) !important;
}
body.light .modal-oauth-divider span {
    background: #ffffff !important;
    color: #6b7280 !important;
}
body.light .modal-oauth-btn {
    background: #f8fafc !important;
    border-color: rgba(17, 24, 39, 0.10) !important;
    color: #111111 !important;
}
body.light .modal-oauth-btn:hover {
    background: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10) !important;
}

body.light .page-btn {
    background: #ffffff !important;
    border-color: rgba(17, 24, 39, 0.10) !important;
    color: #111111 !important;
}
body.light .page-btn:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
}
body.light .page-btn.active {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

body.light .template-like-btn,
body.light .template-edit-btn,
body.light .template-comment-btn {
    background: #ffffff !important;
    border-color: rgba(17, 24, 39, 0.12) !important;
    color: #111111 !important;
}
body.light .template-like-btn:hover,
body.light .template-edit-btn:hover,
body.light .template-comment-btn:hover {
    background: #f1f5f9 !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}
body.light .template-like-btn.liked {
    background: rgba(212, 175, 55, 0.14) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}
body.light .template-like-count {
    color: #111111 !important;
}
body.light .news-readmore {
    color: #7a5b05 !important;
}

body.light .community-rank-slider-section .section-header,
body.light .community-rank-slider-box {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.ig-fly-coin {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    will-change: transform, left, top, opacity;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.35), 0 0 14px rgba(255, 215, 0, 0.25);
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.25));
    user-select: none;
}